ArchiSteamFarm icon indicating copy to clipboard operation
ArchiSteamFarm copied to clipboard

After updating ASF multiple accounts have been renamed

Open Magellano opened this issue 10 years ago • 27 comments

Hi. After updating ASF multiple accounts have been renamed to [unassigned]. What could be the reason?

Magellano avatar Dec 17 '15 09:12 Magellano

Met the same problem yesterday, but it was after asf restart, so I thought it's because previous instance didn't exit properly. But if it is not only me - then probably it's some problem either with asf or with steam.

Rudokhvist avatar Dec 17 '15 11:12 Rudokhvist

Got the same problem with couple accounts. Nickname is set to null in xml files.

v3rg avatar Dec 17 '15 16:12 v3rg

There is no logical explanation as why that should happen, because nickname is ONLY set, if it's non-null: https://github.com/JustArchi/ArchiSteamFarm/blob/master/ArchiSteamFarm/Bot.cs#L759

Moreover, if that would be ASF request, it would either not succeed, or set your nickname accordingly, and not make it unassigned.

Even if such situation happened, although I can't reproduce it with neither main nor my alts, it couldn't be caused by ASF, because default SteamNickname is "null" and you must define it to use other value.

Conclusion: Steam fuckup, nothing to fix. I see it very often as temporary problem and everything goes back to normal after some time.

JustArchi avatar Dec 17 '15 20:12 JustArchi

Unless you can provide steps to reproduce issue, I doubt there is anything to be done.

JustArchi avatar Dec 17 '15 20:12 JustArchi

I would agree that this is steam fuckup, but it seems to affect only to asf users. But if steam would not "hiccup" like this again, there is nothing to worry about.

Rudokhvist avatar Dec 17 '15 20:12 Rudokhvist

There is no logical explanation why something like that would happen, as there is no method to change your nickname to null or make it unassigned, and even if there is one, ASF simply doesn't use it. Nickname is set ONCE after logging in, and only if SteamNickname is not "null". If that would be ASF problem, it would affect all accounts, including mine, and not some random ones for unknown reasons.

JustArchi avatar Dec 17 '15 20:12 JustArchi

I would say it's some incompatibility of steamkit and steam, that only happens once in a while. I thinks so, because when there was infestation of scam-bots, I've seen some bots with [unassigned] instead of name. I suppose those bots were based on steamkit too, because - what else it could be? Here, look at my blacklisted users: http://imgur.com/bVv5yUD

Rudokhvist avatar Dec 17 '15 20:12 Rudokhvist

Possible. Either way, not ASF issue.

JustArchi avatar Dec 17 '15 20:12 JustArchi

Closing it until somebody provides some steps to reproduce, or any other clue that would make it possible for fix.

JustArchi avatar Dec 17 '15 20:12 JustArchi

Maybe about SteamKit? https://github.com/JustArchi/ArchiSteamFarm/blob/aa1c1962de069be235744735440cd736ffab2c26/packages/SteamKit2.1.6.5/readme.txt#L308 I see one of my bots try to reconnect to Steam and fail login many time. Then I check my bot profile, I found my bot name is changed to [unassigned].

iFantz7E avatar Dec 20 '15 20:12 iFantz7E

I see one of my bots try to reconnect to Steam and fail login many time.

Logs.

JustArchi avatar Dec 20 '15 20:12 JustArchi

Sorry, I closed window so it has no log. Has an option to write log file in your application?

iFantz7E avatar Dec 20 '15 20:12 iFantz7E

On linux, just redirect stdout. On windows, I don't think so.

If there is anything weird happening, I need logs to guess what went wrong. If there are no logs, and I can't reproduce it, it falls under "won't fix".

I'll add independent logging I guess.

JustArchi avatar Dec 20 '15 20:12 JustArchi

On windows, I don't think so.

On windows - just redirect stdout.

Rudokhvist avatar Dec 20 '15 21:12 Rudokhvist

So, I tried to reproduce it. As I recall - the problem happened to me in the past when bot was connected, I stopped it, an started again. I took one config file, set up a copy of asf in separate folder, and tried to start-stop it all over. After about 10-15 retries, I gave up, removed the whole folder with logs (!) and started asf with all my accounts in main folder. Soon after that I noticed that I got [unassigned] on the account I was using in the tests :laughing: So, here is a full log of this start, but sadly no previous logs that were the cause for this :disappointed: asf_2015_12_20__23_40_28.txt Also, I replaced bot names for the sake of my paranoia. The bot that got [unassigned] is botname2 here. ~~And, just noticed another strange thing - in steam profile it's just [unassigned], but in chat he has (8) next to his name, like this: http://imgur.com/8cW9TgJ~~ This is because i have 7 [unassigned] bots in my blacklist, so it's not important.

Rudokhvist avatar Dec 20 '15 22:12 Rudokhvist

@JustArchi I am looking at it and can not understand how it possible, but I found something.

  1. String [unassigned] is hardcoded.
  2. SteamKit caches real name when SteamUser.AccountInfoCallback comes in to send it with new persona state.
  3. You call SetPersonaState when callback comes in. It is OK, right? But what if SteamUser manager broadcasts this callback before SteamFriends manager caches it? :scream: Or it is impossibro?

PS: Sorry if my english is too poor for you :(

Ne3tCode avatar Dec 21 '15 07:12 Ne3tCode

What I don't like is this:

20.12.2015 23:41:11 [*] INFO: OnConnected() <botname2> Connected to Steam!
20.12.2015 23:41:12 [*] INFO: StopFarming() <botname2> Farming stopped!
20.12.2015 23:41:12 [!] WARNING: OnDisconnected() <botname2> Disconnected from Steam, reconnecting...
20.12.2015 23:41:12 [*] INFO: OnLoggedOn() <botname2> Successfully logged on!

To me it looks like for some reason 2 bots are running and trying to fight with each other.

JustArchi avatar Dec 21 '15 07:12 JustArchi

Thing is I have no idea how it's even possible for such scenario to happen, because the only way new bot instance can be created is through ResponseStart() and main Program entry point, and according to @Ryzhehvost it happened out of sudden, without stopping/starting bots, right after start of the app, so it's not possible that there was more than one instance of that bot.

JustArchi avatar Dec 21 '15 07:12 JustArchi

20.12.2015 23:41:07 [*] INFO: OnConnected() <botname2> Connected to Steam!
20.12.2015 23:41:08 [*] INFO: OnLoggedOn() <botname2> Successfully logged on!
20.12.2015 23:41:08 [*] INFO: Init() <botname2> Logging in to ISteamUserAuth...
20.12.2015 23:41:10 [*] INFO: Init() <botname2> Success!
20.12.2015 23:41:10 [*] INFO: StartFarming() <botname2> Checking possibility to farm...
20.12.2015 23:41:11 [*] INFO: StopFarming() <botname2> Sending signal to stop farming
20.12.2015 23:41:11 [*] INFO: StopFarming() <botname2> Waiting for reaction...
20.12.2015 23:41:11 [*] INFO: OnConnected() <botname2> Connected to Steam!

It doesn't make ANY sense to me, why the hell would second connected response happen, something had to call SteamClient.Disconnect() for that previously, and why the hell something called StopFarming() at the same time.

JustArchi avatar Dec 21 '15 08:12 JustArchi

@Ne3tCode I doubt it's SK2 issue, I'm more likely to believe that something is really fucked up here regarding ASF flow, some request out of sudden enters in between the call from one and another, and causes a fuckup because of that. I think I'll just add more debug logs to try to understand what exactly is happening.

JustArchi avatar Dec 21 '15 08:12 JustArchi