DB crash (free lists corrupted) during Rebuild Stock
Aldevinas Katkus
2021-06-03
Operating system: Windows
Why the server crashes during Rebuild Stock maintenance when the second checkbox "Use item history records" is ticked after upgrading to 8.5 2021-04-18 (build 85360453)?

I can see in the log a connection to the smtp server is made after rebuild stock has started.
Shouldn't this maintenance block all incoming and outgoing connections during stock rebuilding?
Aldevinas Katkus
2021-06-03
It looks like it has something to do with Optional features>>reconnect. I turned it off and no more crashes.
With Reconnect feature ON, our client experienced endless (at least 4 times in a row) Rebuild Stock maintenances:
The maintenance finishes and starts again after the user is reconnected:

2021-06-03 17:15:26 AVA Maintenance RebuildStockMn
2021-06-03 17:15:26 AVA Database set to unsafe (import and maintenance) mode
2021-06-03 17:15:26 AVA Database set to unsafe (import and maintenance) mode
2021-06-03 17:20:35 AVA Database set to safe (normal) mode, flushing cache...
2021-06-03 17:20:35 AVA Database set to safe (normal) mode, flushing cache...
2021-06-03 17:20:35 AVA GetThreadRepCancel() = true -- SendROData(): SendDataSV() Failed 2
...
2021-06-03 17:20:36 Database not in Live Mode
2021-06-03 17:20:36 SYSTEM Logoff 10.78.254.182:51595: the client closed the connection (2)
2021-06-03 17:20:36 AVA Login @10.78.254.182 << automatic reconnect

2021-06-03 17:20:37 AVA Maintenance RebuildStockMn < 2021-06-03 17:20:37 AVA Database set to unsafe (import and maintenance) mode
2021-06-03 17:20:37 AVA Database set to unsafe (import and maintenance) mode
David Delač
2021-06-10
Hi Aldevinas,

Can you please report this bug with backup where we can repeat the issue?

Best Regards,
David Delač
Aldevinas Katkus
2021-07-09
it Should be a quite big DB for Rebuild Stock to last more than 5 minutes. I do not think it possible.
I think you may create some test maintenance which exits after running for 6 mins. Not tested this idea.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Piotr Wycichowski
Hi, I checked option &quot;Use External Mail Software&quot; in setting &quot;Mail and Conferences Settings&quot; in module &quot;Mail and Conferences&quot;. When I create an invoice email I have a ...
17:38 8 Aug 2025
Piotr Wycichowski
Hi, Is somebody experienced in necessary settings for successful connection to server using webclient. When I tried, I got warning in brower, that Web client settings for HTTPS is not setup. So I ...
12:59 21 July 2025