streetmerchant: StreetMerchant Docker container causing random server reboots

I use StreetMerchant on Debian as a dockerized service. About twenty to sixty minutes after detecting a card that’s in stock, my whole server (!) reboots. Both the container or the system logs contain absolutely no clues as to why it happens. I’m going to run StreetMerchant in debug mode and send you any logs if they’re usable, but needless to say, the script is close to being unusable in this state, definitely not on any kind of server.

Parameters set:

STORES=alternate,amazon-de,amazon-uk,asus-de,euronics-de,mediamarkt,saturn
SHOW_ONLY_SERIES=3070,3080
DISCORD_WEB_HOOK=<redacted_webhook>
DISCORD_NOTIFY_GROUP_3070=<redacted_group_id>
DISCORD_NOTIFY_GROUP_3080=<redacted_group_id>
MAX_PRICE_SERIES_3080=1050
MAX_PRICE_SERIES_3070=800
SCREENSHOT=false
AUTO_ADD_TO_CART=false
BROWSER_TRUSTED=false
OPEN_BROWSER=false

Parameters SCREENSHOT, AUTO_ADD_TO_CART, BROWSER_TRUSTED and OPEN_BROWSER were set in response to these behaviors, but nothing has changed since I’ve set them.

EDIT: While setting the logger to debug, I’ve found that OPEN_BROWSER was set incorrectly to blank instead of false. I’ve set it to false and will update this report if it crashes again (or not).

_Originally posted by @shindouj in https://github.com/jef/streetmerchant/issues/1557#issuecomment-753705054_

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 18 (15 by maintainers)

Most upvoted comments

In fact i do not do this for a new card, i have my 3090 fe from the first NVIDIA batch 😃

I want only to support @jef for his great work on this and make it at least possible for a few people to buy a card the way they want it 😉

With all the cycles spend on rendering endless websites we could mine coins instead and buy our cards like that lol. /offtopic

This might be a stupid question, but… why not curl? If the only thing this script does is fetching website, it could just as well do that by invoking curl with a fake useragent.

As you are only limiting only on series, and a list of shops, it could be ( since there are alot variantions of 3080 / 3070s around ) that you are running into a memory limit.

I refuse to believe 32 gigs of RAM is not enough to run this. Last time I checked it consumed well below that (around 5); not to mention that I have never seen a Linux server just die on the spot without leaving any log because of insufficient system memory.

I’m stress testing this server and while the thermals are atrocious for a desktop PC (CPU is at just below 90C in sustained 100% all core load), it’s running stable for the past twenty minutes or so, not to mention that these kinds of temperatures are supposedly not unheard of in server environments. Since the script is nowhere near this kind of load, I doubt this is the issue as well.

What I’m going to do is to set a hard limit for StreetMerchant’s RAM and CPU loads. If this does not help, it must be a StreetMerchant problem.