Trouble upgrading

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:

example

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

longer
example
here

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): NextCloudPi 17.0.3
Operating system and version (eg, Ubuntu 17.04): Linux nextcloudpi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
Apache or nginx version (eg, Apache 2.4.25): don’t know how to determine this
PHP version (eg, 7.1): 7.2.27

The issue you are facing:
Can’t upgrade to NextCloudPi v1.20.7
When I log into the pi using the comand line, it says:
NextCloudPi v1.14.0 is outdated
update to v1.20.7 through ‘ncp-config’ or type ‘sudo ncp-update’

So I do:
$ sudo ncp-update
and get:

Downloading updates
Performing updates
Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Hit:3 https://packages.sury.org/php stretch InRelease
Fetched 40.3 kB in 1s (20.9 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:3 https://packages.sury.org/php stretch InRelease     
Fetched 25.4 kB in 1s (17.3 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cannot load Zend OPcache - it was already loaded
Config value jpeg_quality for app preview set to 60
Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:3 https://packages.sury.org/php stretch InRelease     
Fetched 25.4 kB in 6s (3,734 B/s)                                                                                                      
Reading package lists... Done
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Hit:3 https://packages.sury.org/php stretch InRelease
Fetched 25.4 kB in 2s (12.3 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Failed to enable unit: File haveged.service: No such file or directory

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. run sudp ncp-update

I am using arn Rpi 3 B+

Thanks for any advice. :slight_smile:

The output of your Nextcloud log in Admin > Logging:

[no app in context] Error: RedisException: Redis server /var/run/redis/redis.sock:0 went away at <<closure>>

0. /var/www/nextcloud/lib/private/Memcache/Redis.php line 54
   Redis->get("eda366bd99e0870 ... 0")
1. /var/www/nextcloud/lib/private/Route/CachingRouter.php line 56
   OC\Memcache\Redis->get("localhost#/inde ... 0")
2. /var/www/nextcloud/lib/private/URLGenerator.php line 79
   OC\Route\CachingRouter->generate("theming.Theming.getStylesheet", {v: "0"})
3. /var/www/nextcloud/apps/theming/appinfo/app.php line 34
   OC\URLGenerator->linkToRoute("theming.Theming.getStylesheet", {v: "0"})
4. /var/www/nextcloud/lib/private/legacy/app.php line 265
   undefinedundefinedrequire_once("/var/www/nextcl ... p")
5. /var/www/nextcloud/lib/private/legacy/app.php line 155
   OC_App::requireAppFile(OCP\AppFramework\App {})
6. /var/www/nextcloud/lib/private/legacy/app.php line 128
   OC_App::loadApp("theming")
7. /var/www/nextcloud/lib/private/Console/Application.php line 125
   OC_App::loadApps()
8. /var/www/nextcloud/console.php line 96
   OC\Console\Application->loadCommands(Symfony\Componen ... {}, Symfony\Componen ... {})
9. /var/www/nextcloud/occ line 11
   undefinedundefinedrequire_once("/var/www/nextcloud/console.php")

at 2020-02-02T15:25:31+00:00

[no app in context] Error: RedisException: Connection lost at <<closure>>

 0. /var/www/nextcloud/lib/private/Memcache/Redis.php line 54
    Redis->get("eda366bd99e0870 ... 0")
 1. /var/www/nextcloud/lib/private/Route/CachingRouter.php line 56
    OC\Memcache\Redis->get("localhost#/inde ... 0")
 2. /var/www/nextcloud/lib/private/URLGenerator.php line 79
    OC\Route\CachingRouter->generate("accessibility.a ... t", {v: "0"})
 3. /var/www/nextcloud/apps/accessibility/lib/AppInfo/Application.php line 70
    OC\URLGenerator->linkToRoute("accessibility.a ... t", {v: "0"})
 4. /var/www/nextcloud/apps/accessibility/appinfo/app.php line 31
    OCA\Accessibility\AppInfo\Application->injectJavascript()
 5. /var/www/nextcloud/lib/private/legacy/app.php line 265
    undefinedundefinedrequire_once("/var/www/nextcl ... p")
 6. /var/www/nextcloud/lib/private/legacy/app.php line 155
    OC_App::requireAppFile(OCA\Accessibility\AppInfo\Application {})
 7. /var/www/nextcloud/lib/private/legacy/app.php line 128
    OC_App::loadApp("accessibility")
 8. /var/www/nextcloud/lib/private/Console/Application.php line 125
    OC_App::loadApps()
 9. /var/www/nextcloud/console.php line 96
    OC\Console\Application->loadCommands(Symfony\Componen ... {}, Symfony\Componen ... {})
10. /var/www/nextcloud/occ line 11
    undefinedundefinedrequire_once("/var/www/nextcloud/console.php")

at 2020-02-02T15:25:30+00:00

[no app in context] Error: RedisException: Connection lost at <<closure>>

 0. /var/www/nextcloud/lib/private/Memcache/Redis.php line 54
    Redis->get("eda366bd99e0870 ... 0")
 1. /var/www/nextcloud/lib/private/Route/CachingRouter.php line 56
    OC\Memcache\Redis->get("localhost#/inde ... 0")
 2. /var/www/nextcloud/lib/private/URLGenerator.php line 79
    OC\Route\CachingRouter->generate("accessibility.a ... t", {v: "0"})
 3. /var/www/nextcloud/apps/accessibility/lib/AppInfo/Application.php line 70
    OC\URLGenerator->linkToRoute("accessibility.a ... t", {v: "0"})
 4. /var/www/nextcloud/apps/accessibility/appinfo/app.php line 31
    OCA\Accessibility\AppInfo\Application->injectJavascript()
 5. /var/www/nextcloud/lib/private/legacy/app.php line 265
    undefinedundefinedrequire_once("/var/www/nextcl ... p")
 6. /var/www/nextcloud/lib/private/legacy/app.php line 155
    OC_App::requireAppFile(OCA\Accessibility\AppInfo\Application {})
 7. /var/www/nextcloud/lib/private/legacy/app.php line 128
    OC_App::loadApp("accessibility")
 8. /var/www/nextcloud/lib/private/Console/Application.php line 125
    OC_App::loadApps()
 9. /var/www/nextcloud/console.php line 96
    OC\Console\Application->loadCommands(Symfony\Componen ... {}, Symfony\Componen ... {})
10. /var/www/nextcloud/occ line 11
    undefinedundefinedrequire_once("/var/www/nextcloud/console.php")

at 2020-02-02T15:25:30+00:00

[PHP] Error: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'SELECT `uid`, `displayname` FROM `oc_users` WHERE `uid_lower` = ?' with params ["ncp"]:

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php#106

GET /ocs/v2.php/apps/notifications/api/v2/notifications
from 192.168.1.25 by ncp at 2020-02-02T15:24:38+00:00

[PHP] Error: Error while sending QUERY packet. PID=860 at /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#117

GET /ocs/v2.php/apps/notifications/api/v2/notifications
from 192.168.1.25 by ncp at 2020-02-02T15:24:38+00:00

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

don't know where to find this....

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

[Sun Feb 02 06:25:04.509092 2020] [ssl:warn] [pid 1013:tid 1996361968] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 06:25:04.509554 2020] [ssl:error] [pid 1013:tid 1996361968] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 06:25:04.509579 2020] [ssl:error] [pid 1013:tid 1996361968] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 06:25:05.000712 2020] [mpm_event:notice] [pid 1013:tid 1996361968] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2t configured -- resuming normal operations
[Sun Feb 02 06:25:05.000750 2020] [core:notice] [pid 1013:tid 1996361968] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 15:23:22.294791 2020] [mpm_event:notice] [pid 1013:tid 1996361968] AH00491: caught SIGTERM, shutting down
[Sun Feb 02 15:23:52.808807 2020] [ssl:warn] [pid 846:tid 1995440368] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:23:52.809252 2020] [ssl:error] [pid 846:tid 1995440368] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:23:52.809270 2020] [ssl:error] [pid 846:tid 1995440368] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:23:53.059870 2020] [ssl:warn] [pid 859:tid 1995440368] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:23:53.060179 2020] [ssl:error] [pid 859:tid 1995440368] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:23:53.060199 2020] [ssl:error] [pid 859:tid 1995440368] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:23:54.006090 2020] [mpm_event:notice] [pid 859:tid 1995440368] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2t configured -- resuming normal operations
[Sun Feb 02 15:23:54.006316 2020] [core:notice] [pid 859:tid 1995440368] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 15:32:21.066759 2020] [mpm_event:notice] [pid 859:tid 1995440368] AH00491: caught SIGTERM, shutting down
[Sun Feb 02 15:32:40.417158 2020] [ssl:warn] [pid 743:tid 1996194032] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:32:40.418080 2020] [ssl:error] [pid 743:tid 1996194032] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:32:40.418116 2020] [ssl:error] [pid 743:tid 1996194032] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:32:41.051864 2020] [ssl:warn] [pid 890:tid 1996194032] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:32:41.052200 2020] [ssl:error] [pid 890:tid 1996194032] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:32:41.052222 2020] [ssl:error] [pid 890:tid 1996194032] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:32:42.005860 2020] [mpm_event:notice] [pid 890:tid 1996194032] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2t configured -- resuming normal operations
[Sun Feb 02 15:32:42.006094 2020] [core:notice] [pid 890:tid 1996194032] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 15:41:24.273809 2020] [mpm_event:notice] [pid 890:tid 1996194032] AH00491: caught SIGTERM, shutting down
[Sun Feb 02 15:41:44.348110 2020] [ssl:warn] [pid 735:tid 1996296432] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:41:44.349014 2020] [ssl:error] [pid 735:tid 1996296432] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:41:44.349051 2020] [ssl:error] [pid 735:tid 1996296432] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:41:45.045429 2020] [ssl:warn] [pid 897:tid 1996296432] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:41:45.045733 2020] [ssl:error] [pid 897:tid 1996296432] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:41:45.045755 2020] [ssl:error] [pid 897:tid 1996296432] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:41:46.003657 2020] [mpm_event:notice] [pid 897:tid 1996296432] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2t configured -- resuming normal operations
[Sun Feb 02 15:41:46.003816 2020] [core:notice] [pid 897:tid 1996296432] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 15:49:42.997170 2020] [mpm_event:notice] [pid 897:tid 1996296432] AH00491: caught SIGTERM, shutting down
[Sun Feb 02 15:49:59.448483 2020] [ssl:warn] [pid 739:tid 1995682032] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:49:59.449388 2020] [ssl:error] [pid 739:tid 1995682032] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:49:59.449426 2020] [ssl:error] [pid 739:tid 1995682032] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:50:00.045729 2020] [ssl:warn] [pid 886:tid 1995682032] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:50:00.046053 2020] [ssl:error] [pid 886:tid 1995682032] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:50:00.046071 2020] [ssl:error] [pid 886:tid 1995682032] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:50:01.006228 2020] [mpm_event:notice] [pid 886:tid 1995682032] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2t configured -- resuming normal operations
[Sun Feb 02 15:50:01.006452 2020] [core:notice] [pid 886:tid 1995682032] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 15:58:32.579236 2020] [mpm_event:notice] [pid 886:tid 1995682032] AH00491: caught SIGTERM, shutting down
[Sun Feb 02 15:58:52.209959 2020] [ssl:warn] [pid 739:tid 1995956464] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:58:52.210918 2020] [ssl:error] [pid 739:tid 1995956464] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:58:52.210957 2020] [ssl:error] [pid 739:tid 1995956464] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:58:53.051401 2020] [ssl:warn] [pid 887:tid 1995956464] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 15:58:53.051768 2020] [ssl:error] [pid 887:tid 1995956464] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: D987EDFDE6955027 / notbefore: Nov  4 14:31:08 2018 GMT / notafter: Nov  1 14:31:08 2028 GMT]
[Sun Feb 02 15:58:53.051808 2020] [ssl:error] [pid 887:tid 1995956464] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Feb 02 15:58:54.006315 2020] [mpm_event:notice] [pid 887:tid 1995956464] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2u configured -- resuming normal operations
[Sun Feb 02 15:58:54.006531 2020] [core:notice] [pid 887:tid 1995956464] AH00094: Command line: '/usr/sbin/apache2'