After upgrading my nextcloud doesn’t work.
I may have made a right mess of it, or it may be something simple.
When I go to the url I get an “internal server error” with a message suggesting to view the logs. There are so many log files around the system I don’t know where to start.

Nextcloud version : 11 initially now 14.0.4.2
Operating system and version : Raspbian GNU/Linux 8 (jessie) on raspberry pi 3
Apache or nginx version : Apache 2.4.10
PHP version :7.0.30

After upgrading I get:
‘’’
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.
‘’’

Is this the first time you’ve seen this error? : N

Steps to replicate it:

I was still at NC 11 so it really needed upgrading. I tried to upgrade via the admin login / account, which looked like it went ok but then I got the “Internal server error” when I tried to log in.

Thinking I would re-try I ran occ upgrade from the command line. But that brought me to NC 13 without changing the problem. (this may have been a big mistake.)

Thinking I was in trouble anyway I ran the command again ending up at version 14.something. and did the recommended db updates, which looked like they finished ok.

I tried disabling all non essential plugins through occ, because I found various posts blaming this or the other plugin for internal server errors but to no avail.

there are so many .log files I dont really no where to start. the section pasted below from nextcloud.log in my data directory seems to be repeating over and over again.

I tried to do a fresh manual upgrade today, replacing /var/www/nextcloud with a freshly downloaded one and putting back the config.php (included below)
but I still get the same error message on a white screen.

One funny thing is I found a .php file that looks like it creates the error text. So I changed the text in the file, but I don’t see the change in my browser.

Any suggestions are apreciated, no problem if more logs are needed, but please include a hint to where I can find them.

Cheers,
Smitje

The last section of Nextcloud .log in my data folder (not located in www/nextcloud/):

The first command runs fine, and appears to fix some calendar things. (output below)
The second one asks for more arguments, and doesn’t appear to do anything. I need some help here, I think I can find “username” “hostname” and “database” but what should “type” be?. (output belower)
The third could be the most interesting results in:

- INVALID_HASH:
- index.php:
- expected: ###Some Long Number I replaced
- current: ###Some Different Long Number I replaced

But regarding your index.php…
I’m not sure what happened to it but try to download your Nextcloud version from https://nextcloud.com/install/#instructions-server and replace your index.php with the one from the archive. You should at least fix something then. Remember to change the ownership of the new file to www-data after doing that:sudo chown www-data:www-data index.php

Or if you want to do it over the whole NC folder:sudo chown -R www-data:www-data .

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.