Updating database schema PHP Fatal error Allowed memory size

My docker instance of librenms won’t get through the database update. This container was shutdown for a month of 3.
I’ve increased the allowed memory setting in docker-compose to 64GB which is around the max i have free and still it doesn’t finish.

Since the container doesn’t start i cannot provide much other details or run the validate script.
Its a really small instance with less than 20 nodes being monitored so it cannot be a big database.

Any ideas how i could fix this?

librenms | Waiting 60s for database to be ready…
librenms | Database ready!
librenms | Updating database schema…
librenms | PHP Fatal error: Allowed memory size of 68719476736 bytes exhausted (tried to allocate 20480 bytes) in /data/config/config.php on line 46
librenms |
librenms | PHP Fatal error: Allowed memory size of 68719476736 bytes exhausted (tried to allocate 65536 bytes) in /opt/librenms/vendor/composer/ClassLoader.php on line 576
librenms | [cont-init.d] 04-svc-main.sh: exited 255.

Manage to resolve the issue. I thought the issue was in the database.
Started with a fresh database, same issue appeared only the second fatal error did no longer mention a php file.
It was somewhere in the data folder outside docker, once i removed the data folder, restored database everything was back operational.

Hi, try this:
lnms config:set php_memory_limit

I put 2048 MB and it works fine for me!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.