Upgrade fail from NC13!

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2):
Operating system and version (eg, Ubuntu 17.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:


Hi, I attempted to upgrade 13.0.4**

A new version is available: Nextcloud 14.0.4

by logging into my Nextcloud server and choosing the update option.

Is this the first time you’ve seen this error? (Y/N):
Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE## Initializing

Current version is 13.0.4.
Update to Nextcloud 14.0.4 available. (channel: "stable")
Following file will be downloaded automatically: `https://download.nextcloud.com/server/releases/nextcloud-14.0.4.zip`

* ## Check for expected files

The following extra files have been found:
* error_log
* cgi-bin
* tmp-nextcloud1528722634
* .well-known

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


The output of your Apache/nginx/system log in /var/log/____:


What method are you trying to use for the upgrade?

I was trying to use the updater at /index.php/settings/admin

What was the output of the update? error messages or any logs?

How would I obtain that?
Do I need to go to my cpanel. I cannot login to that at present.

All I got from the updater was:

The following extra files have been found:
* error_log
* cgi-bin
* tmp-nextcloud1528722634
* .well-known

login to your cpanel > File Manager, and move the 4 files out of the NC directory, u can create a folder called backup in the root directory and move them there (not in the public_html nor www). then try again.

if you have access to SSH, then try do upgrade using the occ.
else, if you installed it via cpanel Softaculous, you can upgrade from there

ok. Thanks for your help!
I cannot find the location of ```
error_log or .well-known
Where would they be located?

They might be hidden.
in the file manager, click settings in the top right corner, then tick “Show Hidden Files (dotfiles)”

Yes, true. I did figure that out eventually!
Now I am getting this in the upgrade process:

  • Create backup

Parsing response failed. <html><head><title>500 Internal Server Error</title></head><body> <h2>Request Timeout</h2> <p>This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase ‘Connection Timeout’. </p> </body></html>

and now this:

This Nextcloud instance is currently in maintenance mode, which may take a while.

This page will refresh itself when the Nextcloud instance is available again.

Contact your system administrator if this message persists or appeared unexpectedly.

Thank you for your patience.

This might take some time, depending on the size of your files.

You will need access to SSH to turn off maintenance mode

#location of your nextcloud
cd /usr/share/nginx/nextcloud/
sudo -u www-data php occ maintenance:mode --off

If that didnt work, try to restart the server.

re: Acess SSH - How do I do that?
Cpanel has a SSH section in which I can generate a key.
I downloaded easySSH onto my laptop running Kubuntu.
What is the best and easiest way to do this?
Can I just use my terminal?
Can I trun off maintenance mode from within cpanel?

[11:37:36 barkingb@vmcp07.web-servers.com.au ~]$ cd /home/barkingb/nextcloud.barkingbandicoot.com/
[11:42:19 barkingb@vmcp07.web-servers.com.au nextcloud.barkingbandicoot.com]$ sudo -u www-data php occ maintenance:mode --off
-bash: sudo: command not found
[11:42:46 barkingb@vmcp07.web-servers.com.au nextcloud.barkingbandicoot.com]$ -u www-data php occ maintenance:mode --off
-bash: -u: command not found
[11:43:22 barkingb@vmcp07.web-servers.com.au nextcloud.barkingbandicoot.com]$

barkingb@vmcp07.web-servers.com.au nextcloud.barkingbandicoot.com]$ ls
./ AUTHORS cron.php index.php ocs-provider/ robots.txt updater/
…/ config/ data/ lib/ public.php settings/ .user.ini
3rdparty/ console.php .htaccess occ remote.php status.php version.php
apps/ core/ index.html ocs/ resources/ themes/
[11:52:28 barkingb@vmcp07.web-servers.com.au nextcloud.barkingbandicoot.com]$

hmm, what do I do from here?

So, I found the setting in /config/config.php and I set it to false.
I have access to Nextcloud again.
Hitting the updater says it is in process of step 4.

How long should Step 4 take?
How do I restart the server?

apt-get install sudo -y
yum install sudo -y

What was step 4?

Install sudo, and try the upgrade again via SSH

sudo -u www-data php occ files:cleanup
sudo -u www-data php occ app:update --all
sudo -u www-data php occ upgrade

Neither of those Linux commands work.
Settings in cpanel just say Linux and do not specify if it is rhel or Ubuntu or other!
I do not appear to have sudo.
I will have to put in a ticket to my server provider.

Do you have a shared hosting account or VPS?

A hosting account -with Panthur -panthur.com.au