Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
In normal operation, fqadd/fqrm command appropriately updates Bot.db, as you found out yourself, and unless something else either refuses to let that write happen for ASF, or actively replaces content of that file, there should be no realistic way how your scenario can happen. I personally bet on first, which would be signalized in the log the moment ASF tries to save the database, i.e. after your command.
FYI, if that's permissions error like I said, then execute command (from root, so either shell or sudo) chown -hR user:user /home/user/ArchiSteamaFarm - accordingly replacing user with your target user running asf, and path to your ASF root directory. It'll correct the error for you. Not related to ASF at all but your OS usage, but no reason for me either to force you into finding the solution yourself.
Some kind of permissions issue was also my first hunch. But unfortunately there is no warning or error to be found in the logfiles that points in that direction. There are only unsuspicious INFO level entries.
I don't use Linux by the way, but Windows 10.
Another strange thing that seems to support my bug theory and at the same time contradict a permissions issue is the following:
If I use the fbadd/fbrm commands to update the blacklist (in contrast to fqadd/fqrm to update the farming queue) the Bot.db file is updated immediately. This by the way does also invoke updates I've made to the farming queue during the ASF session to be written to the Bot.db file. I think this could work as some kind of workaround. But invoking some dummy change to the farming blacklist only to actually persist changes to the farming queue seems quite inconvenient. But well, I think I could live with that.
Any further ideas or help would be appreciated.
The ASF routine works in a way that it tries to update the collection in the database, and if that succeeds, i.e. there is any update, it writes it to the database. I don't see any bug in this regard, especially since I can't reproduce it.
Are you sure you're updating the correct bot? Maybe you have more than one and you're mixing things up? Are you sure no more than one ASF instance is launched for given config directory?
I do have in fact two bots configured. The farming queue bot I was talking about in this thread is my primary bot. And I've tested to use fqadd/fqrm with and without the bot's name. Both didn't work as in the changes didn't get persisted.
The other bot is configured to not rely on the farming queue at all btw.
What I did then is temporarily delete the config files for the other bot (3 files in total: bot.json, bot.db and bot.bin) and restarted ASF. And suddenly it worked as expected. The changes did get persisted.
I've then restored the config files for the other bot, restarted and it still did seem to work.
Unfortunately after another restart it was all back to the previous, faulty behavior.
So it must have to do something with using more than one bot instance that leads to ASF not being able to persist to the correct bot.db.
The other bot does not have a FarmingPriorityQueueAppIDs entry at all in it's bot.db. Maybe that's why it seems that sometimes changes are persisted to nowhere.
Maybe this information can help to find a bug and resolve it. But I also have the impression that it is a pretty exotic configuration I am using. At least I have already learned a lot.
I think I'll stick with the fbadd/fbrm workaround then.