| Posted by: DogMan - 12 December 2025 15:13:31 |
|---|
| What can I do about thsi message - is it because it cannot reach the database? |
| Posted by: sirclesadmin - 12 December 2025 17:51:49 |
|---|
|
This error typically indicates that the system cannot calculate or retrieve the current stock levels during the initialization phase. Since uzERP relies heavily on a "calc_stock" process to reconcile inventory from the ledger, this often points to a database connectivity issue or a corruption in the stock transaction table. Here is a step-by-step troubleshooting guide to resolve the "Failed to start uzERP stock balances" error. 1. Check Service Status (Database is usually the culprit)The most common cause is that the PostgreSQL database service hasn't fully started before uzERP tries to access it.
2. Inspect the LogsIf restarting the services doesn't work, you need to see exactly why the calculation is failing.
3. Clear the Cache (Stock Map Rebuild)uzERP caches stock balances to speed up performance. If this cache is corrupted, the boot process will fail.
4. Database Integrity CheckIf you recently had a power outage or a hard crash, the stock transaction table might be locked or damaged.
Summary Checklist
Next Step: Would you like me to provide the specific command to rebuild the stock map via the command line (CLI) if you cannot access the web interface? |