Jump to content

Umm did you try a fresh wipe or server restart?

Fixed 2.2.0 2.2.2

SeesAll
SeesAll

Posted

David,

I implemented your new ShopCore plugin earlier today, went with the ShopMarket template ... works good, looks good. But 3 of my 10x servers did their normal Friday wipe and none of them would come back online... I had updated a few plugins today, so had to narrow it down a bit but can confirm its 100% this ShopCore plugin as server boots fine without it. I am delving into it now, I suspect your "database startup" is positioned incorrectly. Will mess around and let you know what I find ... but, this version has issues bud. 


container@PineHosting~ Server marked as offline...
[PineHosting Daemon]: ---------- Detected server process in a crashed state! ----------
[PineHosting Daemon]: Exit code: 139
[PineHosting Daemon]: Out of memory: false
[PineHosting Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.

SeesAll

Posted

It's been fixed... I will private message you the "updated" plugin ... you can review it and roll out an updated version. Also made couple other subtle changes as well. Brief summary below...

For the startup Issue, needed to move the trade database open out of Init() and then delayed it until 20 seconds after OnServerInitialized(). Checkout will now stay blocked until the database schema and startup trade totals can be read, and until dynamic prices load when enabled. This fix alone resolved the issue I was having with the servers entering a crashed state by SIGSEGV on world finalization.

Other changes ... 

For partial delivery and refunds, allocate all stacks for a physical item before handing any out. For cart checkout, use one price snapshot and reconcile the charge per currency against what was delivered, instead of rounding each refund separately. An unconfirmed refund now says contact staff and logs the amount for review. Sell payouts, now direct sales and sell all no longer remove the sale items or log success before payout succeeds. The database shutdown... the outgoing worker holds an exclusive file lease while it drains queued writes.... that will stop a replacement worker from opening the same database during a slow unload. For the shop market UI... search reuses the priced catalog instead of pricing the matching items a second time. The shop commands also avoid the duplicate redraw caused by the synchronous refresh callback. 

David

Posted

We spoke in DM already but this into ticket just for the record, 

Exit code: 139 was database crash which unfortunately I could not detect myself since it was exclusive to Linux. 
 

Quote

Other changes ...

I wouldn't jump on every single thing the agent puts out. I went over the points you mentioned. The double redraw was a valid mistake on my part, but the agent often overcomplicates things and recommends solutions for edge cases that will never happen. For example, the stack allocation: there's no scenario where the server fails to create a stack partway through, so partial refunds are never needed. The same goes for the database worker during unload. It's such an edge case that it won't happen 99.9% of the time, and even if it did, SQLite locks the file and the write just waits for the timeout, so nothing gets damaged.
 

David

Posted

Changed Status from Pending to Fixed
Changed Fixed In from Not set to 2.2.2

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.4m
Total downloads
Customers
12.5k
Customers served
Files Sold
177.2k
Total sales
Payments
3.9m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.