It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
OK, here's the error code from the new build:
2020-Mar-16 11:22:10 [Thread #1] Download complete (HTTP response code said error (504)): 1954alcatraz_artworks.zip

That is a 504 Gateway Timeout Error
Any settings I can use to try to fix this?

Thanks!
avatar
sbaylus: That is a 504 Gateway Timeout Error
These are usually happening on GOG side, when their servers are overloaded.
Most of the time, trying again later is your best bet ;)

---

If it reliably happens on some specific items, of course something else might be going wrong.
Post edited March 16, 2020 by vv221
This happens every time I try to download anything new. I run a batch file nightly:

/usr/bin/lgogdownloader --update-cache
/usr/bin/lgogdownloader --download --report

Almost nothing (or maybe nothing) seems to download without the error. I wind up with empty directories, or just the changelog. Doesn't seem to matter when I run the batch.
avatar
sbaylus: That is a 504 Gateway Timeout Error
Any settings I can use to try to fix this?
Unfortunately, Galaxy APIs will return a lot of 504/502 errors when the servers are stressed.

Additionally, some of them are even throttled by GOG, adding insult to injury.

The only way to really address this is to implement a timeout and retry mechanism in LGOGDownloader.
So this evening I'm seeing a different error.
429 Too Many Requests
Any idea what a good value for the following would be?
--wait arg (=0)
I suddenly got a API: login failed error since about a week ago. When I tried to login, GOG send a two-step security code into my mailbox. How do I login with lgogdownloader?
Thanks for this awesome program, been meaning to try and find something to keep my ~400 games library synced and updated!

Currently my command is this:

lgogdownloader --download --directory /media/megaraid/Games/GOG --limit-rate 37500 --platform l+w --language en+nl --verbose --timeout 10 --retries 3 --save-serials --include all --save-changelogs --threads 4 --info-threads 4 --include-hidden-products

What I would like to still achieve is this:
the Witcher 3 gets an entire new version, no patch, LGOGDownloader downloads the entire 33GB+ anew, in this case I want it to delete the older version, so I don't need ~70GB to store both versions.

How do I go about this?

Also some kind of mail notification would be nice, I'd like to be notified if LGOGDownloader:
- downloads anything new
- fails to download (backend changes, certificate issues, login expired, etc.)
- encounters any kind of error
- runs out of storage
- etc.

Thanks a lot in advance! :-D
Post edited April 06, 2020 by epain
Look at the --check-orphans option. I actually do it this way (in a separate command, following the --download command). The following lines are in a shell script run from crontab nightly. You can get lgogdownloader to delete orphans but I like to look at what is being deleted first, so this winds up with an orphans.sh script that I can look at before running. The other options are included in the config file at
~/.config/lgogdownloader/config.cfg

/usr/bin/lgogdownloader --update-cache
/usr/bin/lgogdownloader --download --report
/usr/bin/lgogdownloader --check-orphans | /bin/sed -r "s/^(.+)$/rm \"\1\"/" > orphans.sh
high rated
LGOGDownloader 3.7
- Fixed return code when using --download-file
* I accidentally reversed the return code when rewriting it to use Galaxy API
- Better retry condition for downloads
- Made downloader wait between retries if --wait option is used
- Fixed possible issue where downloader tries to get product info even though it failed to get valid product id beforehand

https://sites.google.com/site/gogdownloader/lgogdownloader-3.7.tar.gz

sha256: 984859eb2e0802cfe6fe76b1fe4b90e7354e95d52c001b6b434e0a9f5ed23bf0
md5: f23ea65cd9ca604bd5bb0b1039bd1e7d




avatar
1jocator: I suddenly got a API: login failed error since about a week ago. When I tried to login, GOG send a two-step security code into my mailbox. How do I login with lgogdownloader?
Since you are getting "API: login failed" error it means you are using old version of the downloader which still uses the old downloader API.
GOG removed the old downloader API few weeks ago.
Update to version 3.6 or newer

Just in case I tested 2-step login to make sure GOG hasn't changed anything and it still works

┌─[sude@ArchLinux]─[/media/sdf1/GOG.com]
└─> $ lgogdownloader --login
Email: Sude
Password:
Security code: 5258
HTTP: Login successful
Galaxy: Login successful
Post edited April 08, 2020 by Sude
Just built it, will try it tonight. What's a good value to start with for --wait?
avatar
sbaylus: /usr/bin/lgogdownloader --check-orphans | /bin/sed -r "s/^(.+)$/rm \"\1\"/" > orphans.sh
Thanks, I'll try and look into that!
avatar
IanM: On the subject on bandwidth limits, is it possible to download a few specific games together? e.g. I want Syberia + Arx Fatalis + Sanitarium. Would the command be:

or something else?
avatar
Sude: lgogdownloader --download --game "^(syberia|arx_fatalis|sanitarium)$"
or
lgogdownloader --download --game "^syberia$|^arx_fatalis$|^sanitarium$"
both should give the same result

edit: you can see which games will be downloaded by using it on the list
lgogdownloader --list --game "^(syberia|arx_fatalis|sanitarium)$"
Thank you both for this (IanM for asking, Sude for the answer). I just needed this and found it via a thread search.

(edit: I left the full quote for others who might not have the patience to go through pages of hits for "games" like I did.)
Post edited April 09, 2020 by V4V
Hint: The above commands need exact game names. To find partial names, remove the "^" before and the "$" behind the brackets.

Question: Is there a way to exclude games with certain name parts? For example, to download "war_for_the_overworld" but not "war_for_the_overworld_underlord_edition_upgrade"?

After a quick web search about negation in regular expressions, I tried "(overworld|(?!upgrade))", but that only gave me the error "bash: !upgrade: event not found".

Of course, I could just use "^(war_for_the_overworld)$" in this case, but I need it more flexible for other games with similar names that I want to download at once, but exclude some of them with a regex pattern.

Any help is very appreciated.
avatar
V4V: (…)
To be able to use (?!pattern), you need to enclose your string in single quotes.

See:
$ lgogdownloader --game 'wing_commander' --list
Getting game names (6/6) 43 / 43
wing_commander
wing_commander_ii
wing_commander_prophecy
wing_commander_secret_ops
wing_commander_privateer
wing_commander_3_heart_of_the_tiger
wing_commander_4_the_price_of_freedom
wing_commander_academy
wing_commander_armada
$ lgogdownloader --game "wing_commander_(?!privateer)" --list
-bash: !privateer: event not found
$ lgogdownloader --game 'wing_commander_(?!privateer)' --list
Getting game names (6/6) 43 / 43
wing_commander_ii
wing_commander_prophecy
wing_commander_secret_ops
wing_commander_3_heart_of_the_tiger
wing_commander_4_the_price_of_freedom
wing_commander_academy
wing_commander_armada
avatar
vv221: To be able to use (?!pattern), you need to enclose your string in single quotes.
That works! Thank you!