PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 133
When it initially came up it wanted to click the button to update to NC 22 which failed and now I am stuck in maintenance mode.
occ maintenance:mode --off gives;
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 133
That installed correctly, and now I am backup to the Nextcloud will be updated to version 21.0.3
with the Start update button, which failed before.
Is this safe to run, or should I run occ upgrade from cli?
Everything should be automatic, unless you had a previous interrupted upgrade.
By the way, if the database has been migrated to the new db instance, you can safely run occ.
If you’re stuck, please provide an extract of /var/log/messages.
I am not sure if database is updated, I did nothing manually, I just ran the updates from the Software Center. I had no interrupted upgrades, unless this one did initially and it did not inform me.
I am getting a little different emails every 5 minutes now;
This is on a live system in use by about 10 users at the moment, for Domain Controller, file server, webtop email, and guacamole. Is it safe to run the occ upgrade command, or should I wait until the evening when noone is using?
Not sure what you mean to hack a little on the system, but will try anything that is safe on live, or can try something later.
Jul 05 07:28:49 lrtserv.mydomain.com systemd[1]: Starting MariaDB 10.5 database server…
Jul 05 07:28:51 lrtserv.mydomain.com scl[1707]: Database MariaDB is probably initialized in /var/opt/rh/rh-mariadb105/lib/mysql-nextcloud already, nothing is done.
Jul 05 07:28:51 lrtserv.mydomain.com scl[1707]: If this is not the case, make sure the /var/opt/rh/rh-mariadb105/lib/mysql-nextcloud is empty before running mysql-prepare-db-dir.
Jul 05 07:28:53 lrtserv.mydomain.com mysqld-scl-helper[1779]: 2021-07-05 7:28:53 0 [Note] /opt/rh/rh-mariadb105/root/usr/libexec/mysqld (mysqld 10.5.8-MariaDB) starting as process 1779 …
Jul 05 07:28:57 lrtserv.mydomain.com systemd[1]: Started MariaDB 10.5 database server.
I figured out what was happening.
I had a 1GB /tmp partition, and during the NC update it was filling, and something was going wrong but nothing reported, it just finished. I extended the /tmp to 2GB and reinstalled NC and now seems to be all working again.
Thanks for all the help.
The following could be due to failed service or duplicate port:
Jul 4 23:40:40 lrtserv-data daemon.sh: 04-Jul-2021 23:40:40.031 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-8080]]
Jul 4 23:40:40 lrtserv-data daemon.sh: org.apache.catalina.LifecycleException: Protocol handler initialization failed
(…)
Jul 4 23:40:40 lrtserv-data daemon.sh: Caused by: java.net.BindException: Address already in use
Another one refers to a firmware bug (you can search for firmware updates for your hardware, if any), and could be related to time skew issues.
kernel: [Firmware Bug]: TSC doesn’t count with P0 frequency!
More info:
The AMD processor has the x86 constant TSC feature enabled but the firmware has not set bit 24 of the MSR MSR_K7_HWCR and so the processor TSC does not count in the P0 frequency level.
Some errors/warnings might be harmless and could be ignored, but I don’t know which ones.