I recently updated Nextcloud to the most recent version (previous was 19, currently unsupported)
I made a backup of the original folder, and unzipped the new one. I went to the site and initially it said that nextcloud couldn’t write to the folder, so I gave apache ownership of the folder and now I’m getting the error:
"Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log."
I’m the admin, so it’s on me
The server log is currently blank, so I’m guessing there’s another issue. I’ve also rebooted the computer and restarted the different apps like httpd and such.
Nextcloud version _was 19 something, was upgrading to 25 (installed the version on the site labled “latest”
Operating system and version: Centos 8
Apache or nginx version : Apache/2.4.37
PHP version : v8.0.28 (just updated that too, initially Nextcloud gave an error about that too)
Just first thing in mind, because it triggers a memory: Did you also give permissions and ownership down recursively?
Assuming you went from 19 to 20 to 21 etc. Did you try to clear the op cache?
I did yes, made sure that should work properly
So, I did not do that, I went straight from 19 to 25 or 26 (whichever the most recent is). Should I have done it step by step like that? If “upgrading” is only moving a folder wouldn’t it be sufficient to just replace the old folder with the most recent?
I just did clear the cache, and no dice, but thanks for the idea!
Not sure if it helps, but I finally have something in the log file, it’s below:
Can you roll back with backup?
Try update with
sudo -u apache php -d memory_limit=512M -f /path/to/nextcloud/updater/updater.phar
(asuming that your webserver-user is apache)
That script does all the update steps but secure.
Running the update script it says it can’t find the input file.
I rolled back the nextcloud version and it says that PHP isn’t compatible (I had already updated it to >8, I’m trying to figure out how to roll back PHP to 7.4, but haven’t found anything yet).