Error in upgrade to NC15.0.2 - snap installation

I am getting an error during upgrade to Nextcloud 15 in my snap installation.

I described my problem here:

Basically, it forces an upgrade but the upgrade fails at some point. The error I could find in the logs is

Allowed memory size of 134217728 bytes exhausted (tried to allocate 217088 bytes) at /snap/nextcloud/11343/htdocs/3rdparty/sabre/vobject/lib/Parser/MimeDir.php#319

which is odd because it exhausts memory while trying to allocate a relatively small amount.

Does anybody have a suggestion to try? I will have to downgrade it back if I can find a solution.

Yes, I do:

As default for the snap installation PHP uses 128MB (= 134217728 bytes) as memory limit. I would try to increase the memory limit for example to 192MB with:

sudo snap set nextcloud php.memory-limit=192M

and then try the upgrade again.
Good luck!

It solved the problem. Thanks a lot!

1 Like