meepen / salien-bot

Steam Summer Sale 2018 "Salien" minigame bot - runs in console or browser
MIT License
417 stars 103 forks source link

Bot hangs after a while - Possible timeout? #107

Closed Adenser closed 6 years ago

Adenser commented 6 years ago

Happens to me 2 times in a row (I believe with the newest files), after something like 1hr of working bot gets stuck and cant get xp. cmd

SuicidalcookieS commented 6 years ago

same here

berkayoz commented 6 years ago

I have been experiencing this issue too.

Adenser commented 6 years ago

happened again after 15 mins cmd2

meepen commented 6 years ago

fixed in 985274e340a07555ef47feaf97d9ab9a54d8cefb

Adenser commented 6 years ago

@meepen It happend again in 1.3.1 image

EoD commented 6 years ago

I can confirm, it happened here too. @Adenser do you have a log by any chance?

For this this happened before 16:00 UTC, unfortunately my log got truncated (we should remove this) after restarting. It seems it gets stuck in some kind of loop, see here:

2018-06-25T16:07:45.773Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
2018-06-25T16:07:45.888Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested
2018-06-25T16:07:46.193Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
2018-06-25T16:07:46.288Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested
2018-06-25T16:07:46.592Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
2018-06-25T16:07:46.699Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested
2018-06-25T16:07:46.977Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
2018-06-25T16:07:47.231Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested
2018-06-25T16:07:47.514Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
2018-06-25T16:07:47.828Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested

This log continues like this for hours until I manually restarted.

Adenser commented 6 years ago

Where can I find them? @EoD

EoD commented 6 years ago

@Adenser if you start the bot with node headless --log you will create a log.txt file in the same folder.

Adenser commented 6 years ago

Nope, I don't have any logs. I will leave bot with the --log option for a night maybe I will be able to catch something,

berkayoz commented 6 years ago

Can confirm it happened again. But only 1 of the 4 accounts I was running got stuck. Script version is 1.2.2.

Adenser commented 6 years ago

So I've been running bot for over 8h and nothing happened, weird image

SuicidalcookieS commented 6 years ago

sometimes only one of my eight bots get stuck and sometimes all of them. it happens randomly, i have started them up just now with the log enabled will see if it happens again.

tofuBox commented 6 years ago

Mine has been running fine for over a day on a VPS.

I did experience some problems with a previous version, but it now works great with the latest.

I believe it was not able to reconnect when there is either a drop of internet connection or a bad response.

The version I am using is 1.3.1

stats

SuicidalcookieS commented 6 years ago

Have been running version 1.3.1 for 4 hours and no crash so far.

DivineFroopy commented 6 years ago

This happened to me

url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=19&language=english requested
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=20&language=english requested
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=21&language=english requested
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=22&language=english requested
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=24&language=english requested
url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
url https://community.steam-api.com/ITerritoryControlMinigameService/ReportScore/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/ReportScore/v0001/, count 1
url https://community.steam-api.com/ITerritoryControlMinigameService/ReportScore/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/ReportScore/v0001/, count 2
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/, count 1
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/, count 2
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/, count 1
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/, count 2
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/, count 1
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/, count 2
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/, count 1
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/, count 2
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
failed url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/, count 1
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested

log.txt

EoD commented 6 years ago

@DivineFroopy you seem to be using a very old version. Can you please update?

EoD commented 6 years ago

It happened again. This time, I have a log, but it is not very useful:

2018-06-26T14:47:29.344Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:29.632Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:29.922Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
2018-06-26T14:47:30.001Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=19&language=english requested
2018-06-26T14:47:30.137Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=20&language=english requested
2018-06-26T14:47:30.257Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=21&language=english requested
2018-06-26T14:47:30.428Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=22&language=english requested
2018-06-26T14:47:30.560Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=24&language=english requested
2018-06-26T14:47:30.690Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:35.744Z: failed url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/, count 1
2018-06-26T14:47:36.245Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:40.247Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:40.587Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:40.884Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:41.205Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:41.526Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:41.814Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:42.106Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:42.464Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:42.787Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:43.090Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:43.438Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:43.739Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:44.042Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:44.337Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:44.644Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:44.928Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:45.230Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:45.562Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:45.850Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
2018-06-26T14:47:46.163Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinZone/v0001/ requested
2018-06-26T14:47:46.526Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlayerInfo/v0001/ requested
berkayoz commented 6 years ago

Happened after 2 days of runtime on 3 accounts but I don't have any logs.

Adenser commented 6 years ago

Running for almost 24h. zero errors. image

Shobai-Original commented 6 years ago

I have two instances running on the same PC. The first has been running for 30hr 6m for 1,721,400 exp.

The second ran for 24hr 20m for 1,256,400 exp, before I noticed it was not taking on new tiles. I immediately restarted it, and that has been running for 5hr 45 mins for 169,200 exp.

Total time for both is almost identical, but the restarted one is down almost 300,000 experience relative to the other.

On Wed., 27 Jun. 2018, 7:40 am Adenser, notifications@github.com wrote:

Running for almost 24h. zero errors. [image: image] https://user-images.githubusercontent.com/39248856/41940796-44f996aa-799a-11e8-910c-df2aaac47c25.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/meepen/salien-bot/issues/107#issuecomment-400471924, or mute the thread https://github.com/notifications/unsubscribe-auth/AmpFfKQRBBG34b4axdCw5ygSVkRqGqUUks5uAqpIgaJpZM4U1FGT .

meepen commented 6 years ago

looking now

meepen commented 6 years ago

so it seems to happen once a planet dies and you were trying to join the zone it was in maybe?

Shobai-Original commented 6 years ago

That is my guess, yes

On Wed., 27 Jun. 2018, 1:29 pm Meepen, notifications@github.com wrote:

so it seems to happen once a planet dies and you were trying to join the zone it was in maybe?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/meepen/salien-bot/issues/107#issuecomment-400531652, or mute the thread https://github.com/notifications/unsubscribe-auth/AmpFfAPzWnENVhwH8jJtgA_zHvTUT4gHks5uAvwNgaJpZM4U1FGT .

DivineFroopy commented 6 years ago

It happend again after running for almost 11h . The strange thing is that in the log shows that it had this same error yesterday but it had not stopped working, I don't know what happened different today for it to stop working. m1pl-dngqoe06pwxvt_7ug

2018-06-28T00:19:52.186Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
2018-06-28T00:19:52.268Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested
2018-06-28T00:19:52.593Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
2018-06-28T00:19:52.675Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested
2018-06-28T00:19:52.894Z: failed url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/, count 1
2018-06-28T00:19:53.396Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested
2018-06-28T00:19:53.719Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested
2018-06-28T00:19:53.937Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested
2018-06-28T00:19:54.243Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanets/v0001/?active_only=1&language=english requested

I'm using the latest version. log.txt

meepen commented 6 years ago

@DivineFroopy got that too, not sure what was wrong but i've tried to implement another fix for it.

BoberMod commented 6 years ago

It happened again (4 of 5 accounts) when the planet changed

DivineFroopy commented 6 years ago

Well happened again, I think the problem really happens when a planet dies. The last time I saw the bot the world was around 99% the log as always does not show anything enough to indicate what is exactly.

Latest version. log.txt

daarwin commented 6 years ago

The problem still exists. After your active planet dies, you can not leave it even in the steam client with regular means for some time. So, maybe you could edit the script to leave the planet before it is completely captured?

Adenser commented 6 years ago

I don't think so that it happens when the planet dies, I was running bot or almost 48h (40h right now) and he was able to change a planet when one of them disappeared (it happened on my eyes) Or maybe I was just lucky, version 1.3.1 without hotfixes. image

daarwin commented 6 years ago

Yes, it does not happen all the time, but I saw it with my own eyes. The script was on the last tile of the Speedrunners Paradise Planet. Then the planet died before the timer expired. And the script hung for couple of minutes before I tried to restart it. It didn't help. And the 'Leave planet' button in steam client didn't work either. I managed to launch it only after whole 10 minutes passing. I don't saved a log unfortunately.

Adenser commented 6 years ago

Okay nvm, it just hanged after 42h

Adenser commented 6 years ago

image Possible freeze time between 6:30 to 7:00 Uploading whole log folder log.txt

Adenser commented 6 years ago

And bot dosnt want to work after the restart image

daarwin commented 6 years ago

Same here. log.txt

Adenser commented 6 years ago

So I was trying to manually play a game, "leave a planet" button didn't react for any of my clicks. Trying to play any kind of tile caused an error from a steam site. Maybe it's the steam fault?

BoberMod commented 6 years ago

Maybe it's the steam fault?

Yes, but then bot doesn't start itself and it must be rebooted by me. This doesn't always happen, I have ~ once a day

daarwin commented 6 years ago

Maybe it is related to that bug when reporting score don't kicks you out of current game like it should? The same one that helps some users reach lvl 20 earlier?

meepen commented 6 years ago

what versions are you guys running?

meepen commented 6 years ago

@daarwin @Adenser your logs show that the game api is down, it will fix itself once it is back up if you give it time.

CaptainFlint commented 6 years ago

Same problem here, last time happened this night on the latest version 1.4.0 (commit 8508032). The log contains the following mesages:

2018-06-29T08:25:22.601Z: url https://community.steam-api.com/ITerritoryControlMinigameService/GetPlanet/v0001/?id=33&language=english requested
2018-06-29T08:25:22.732Z: url https://community.steam-api.com/ITerritoryControlMinigameService/JoinPlanet/v0001/ requested
meepen commented 6 years ago

can you get the full log?

daarwin commented 6 years ago

But it didn't. Lost at least 1.5 hours of progress because of night crash. v1.4.0

meepen commented 6 years ago

I've tried ti implement another fix just now.

CaptainFlint commented 6 years ago

@meepen Here it is. log.txt.gz

DivineFroopy commented 6 years ago

screenshot_119 Weird, maybe the "bug" happens when an area ends and the bot is still inside it?

Latest version. log.txt

VanackSabbadium commented 6 years ago

It's happening to me right now. Just updated to last commit, but it didn't work with the older version either.

selection_001

BoberMod commented 6 years ago

last commit image

meepen commented 6 years ago

hey the original bug and the latest ones are fixed, but i'm going to close this since people keep bumping this with unrelated bugs