New Content Inventory not sync'd after pull all

Crowther

Active member
I believe this is a KoL "change" in that emptying Hangk's is taking even longer than KoLmafia expects. I called this "New Content" instead of "Bug", because I believe it is a server side change.

Post run, I do a "pull all" and after that completes KoLmafia still only has my in run items in inventory while KoL has a lot more.

Doing a "refresh all" allows KoLmafia to have the full inventory list.
 

Attachments

Or it's taking longer because you have more stuff slash there are more item IDs (and player IDs) so the server has to go through larger tables.
For me "pull all" has taken longer than mafia expects long ago already. I just do it manually in (relay) browser so that I see when it's done, and then refresh all.
 
My experience is the same as xKiv. When I break the prism and "pull all," KoLmafia always takes longer than expected. It's been that way for at least a year now. I don't think it's new behavior.

For my part, I always logout of KoLmafia and logon again after I break the prism and grab all my stuff. It may not be elegant, but it seems to avoid most trouble.
 
It doesn't always happen to me, but I'm not very consistent on what time of day I pull things. I do have a lot of items, because I keep cheap PvP fodder. My workaround has been to log out after pulling everything, since I need to do that to have KoL reset the New You quest after a standard run.
 
My experience is the same as xKiv. When I break the prism and "pull all," KoLmafia always takes longer than expected. It's been that way for at least a year now. I don't think it's new behavior.

For my part, I always logout of KoLmafia and logon again after I break the prism and grab all my stuff. It may not be elegant, but it seems to avoid most trouble.
Yeah. I've had mafia acting weird after I break the prism and pull all for about 3 years. I thought mafia just wasn't able to ever handle it. It also does this if you either drop ronin or spend 1000 adventures to get rid of ronin, then pull all.
 
As long as I can remember getting everything out of Hagnk's has been a time intensive process. I stopped having inventory synch issues when I only pulled all from the relay browser and waited until the relay browser and KoLmafia said it was done.

I'm not convinced this is new if only because I have characters who strive to have two of every item - one in the Display Case and one in inventory. So I have been pulling several hundred items for years. I expect at least two minutes of wall clock time.

My sense is this is not New Content but Bug - Won't Fix - because a manual inventory refresh will address the problem.

If we do try and fix, I am not certain how to detect that Hagnk's has been emptied. One solution would be to block KoLmafia from doing anything else while Hagnk's is being emptied. That will keep the inventory in synch at the cost of people thinking KolMafia is hung or unresponsive. The other solution would be to poll Hagnks and issue an inventory refresh when it appeared empty. I can see downsides to both which is why I am not the best person to try and fix this :)

Tangentially I empty Hagnk's because I have scripts that look in inventory but not Hagnks and I am lazy enough to pull all once a run than rewrite the scripts to make them smarter.
 
I pulled everything from the CLI. I didn't think to mention this.

One thing I've notice is when it fails, mafia updates the inventory and then after that I still get an error about chat messages:

Code:
Emptying Hagnks!
Please wait for up to 1 minute...
Emptying storage...
Waiting 40 seconds for KoL to finish processing...
Server returned response code 504 for newchatmessages.php
Updating inventory...
Server returned response code 504 for newchatmessages.php

There might be other ways to test if KoL is ready.
 
504 is specifically gateway timeout
for chat (and other things?) ... while the long pull is being processed (not necessarily caused by it)
and we don't know *which* gateway
 
Back
Top