NCP upgrade to Debian Bullseye thread

Hi all,

The upgrade to Bullseye is on devel (under testing by volunteer testers). While it is not strictly required to migrate, and things should continue to work including updates, there will be no support any longer, so it is recommended to migrate.

We have two options to do so. In either case Always back up your instance first, and if possible also snapshot your VM or clone your SD card

  • Backup everything, start from scratch with the latest image (Bullseye, whenever that is released) and then restore everything.
  • Run sudo ncp-dist-upgrade (NCP will alert you that you should do this) if we are on v1.45.0 or higher. This should work and has been tested but it’s a best effort “you are on your own” approach. This will upgrade your system and make all the necessary changes to upgrade and should work but if it doesn’t your instance will be completely broken most likely. You have been warned.

There will be a testing period where brave users get a chance of testing this process and report back before it’s pushed out for everyone else. Please, use this forum thread to report any issues with it.

Once this has been verified a new batch of images will be released.

6 Likes

Ran ncp-dist-update on a vm, after making snapshot :wink:
Almost finished, when get error:

Running hooks in /etc/ca-certificates/update.d…
done.
Processing triggers for initramfs-tools (0.140) …
update-initramfs: Generating /boot/initrd.img-5.10.0-9-amd64
Processing triggers for dbus (1.12.20-2) …
Reading package lists… Done
E: The value ‘bullseye-security’ is invalid for APT::Default-Release as such a release is not available in the sources
Something went wrong. Fix it and try again

Terminal output

Upgrade over NextCloudPi_RPi_10-08-21

After the upgrade and a reboot the network does not start.

When booting there are several errors that the DHCP-client can not start.

NCP log after the upgrade and before the reboot

https://pastebin.com/2wdG9dGR

NCP-report after the upgrade and before the reboot

https://pastebin.com/PTb0QLsU

I was able to fully complete the distro-upgrade migration to Bullseye on my RPi4 :slight_smile: tho there appears to be an issue in the library.sh for letsencrypt that needs to be fixed? Not sure… Running it from ncp-config makes it run however it is unable to retrieve any certificates

I had to use pastebin since the logs wouldn’t fit in a forum post

:: NOTE ::
It’s veeery long, you’ve been warned. 5149 lines

https://pastebin.com/s2grNVvc

Contains ::

  • Installation logs from terminal
  • NCP-report after successful upgrade
  • Error log reported from letsencrypt after successful upgrade

EDIT :: After some tinkering I was finllay able to get letsencrypt to at least run, however it still ends with an error

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Requesting a certificate for ××××××.×××××××.×××
Performing the following challenges:
http-01 challenge for ××××××.×××××××.×××
Using the webroot path /var/www/nextcloud for all unmatched domains.
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/××××××.×××××××.×××/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/××××××.×××××××.×××/privkey.pem
   Your certificate will expire on 2022-03-11. To obtain a new or
   tweaked version of this certificate in the future, simply run
   certbot again. To non-interactively renew *all* of your
   certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

/usr/local/etc/library.sh: line 23: 'ip': syntax error: operand expected (error token is "'ip'")
System config value trusted_domains => 12 set to string ××××××.×××××××.×××
warning: No domain found. Defaulting to '××××××××'
System config value trusted_domains =>  set to string ××××××××
System config value overwrite.cli.url set to string https://××××××××/
System config value trusted_proxies => 11 set to string 127.0.0.1
System config value trusted_proxies => 12 set to string ::1
System config value trusted_proxies => 13 set to string ××××××××
System config value trusted_proxies => 14 set to empty string
✓ redis is configured
🗴 can't connect to push server: cURL error 35: error:1408F10B:SSL routines:ssl3_get_record:wrong version number (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://××××××××/push/test/cookie
Done. Press any key...

PHP7.4-FPM also needs to be enabled to be used as default it seems, I haven’t tried running the suggested commands yet as the time is quite late and I need to go to sleep, will update when/if I’ve tried it tomorrow

NOTICE: Not enabling PHP 7.4 FPM by default.
NOTICE: To enable PHP 7.4 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.4-fpm
NOTICE: You are seeing this message because you have apache2 package installed.

EDIT 2: Figured I should add what installation I upgraded as well.
I installed the NextCloudPi_RPi_10-08-21 to my external USB 3.0 HDD directly and is booting from that one instead of any SD card. The installation was completely clean apart from :

  • 1 update from NC 21.0.4 to NC 22.2.2 and NCP 1.44 to 1.45.0

  • 1 apt update && apt upgrade after successful installation of the base image to the HDD

  • Only the security apps had been downloaded and enabled (suspicious login, brute force protection, 2FA ToTP)

  • Created 1 new admin user and 1 regular user

  • Removed Pi user and created another sudo user with the pi home files copied over

After these base configurations did I perform the upgrade

HDD is formatted to use GPT

/boot is formatted to MBR

/ is formatted to ext4

/ncdata is formatted to BTRFS

1 Like

Tried on another VM, this one failed from the start

Terminal oiutput

I can already see one difference between your output and mine that happens right at the start, when you do the ncp-dist-upgrade it tries to get the security updates from the backports while mine is getting them from the regular release channel it seems …

Perhaps that’s the reason the VM image fails?
It does say in the output that the backports update isn’t available for another 10 days, tho not really sure what to make of that output

Hey guys,
I’m willing to help but not sure if I am able to help.
I have set up a VM with the current ncp version to test an get used to nc talk. But after I did my trials I surely can crash an burn it with nc-dist-upgrade. To help you I only need the information which logs I should safe and check before and after.
Thx.

Thanks for helping out :slight_smile:

I would say an app list of what apps you have installed and the output of sudo ncp-report before the installation would be a good place to start.
Also noting down if you made any other changes like when trying to get an app or something to work.

Since OliverV also used the VM image as well and got errors in his installation logs while using the backports, could you check if the backports are in your VM image as well?

sudo nano /etc/apt/sources.list

If they are, try and remove them and then follow through with the upgrade with an apt update && apt upgrade before :slight_smile:

Then save the installation log, and if you can do another sudo ncp-report after and include that.

Always remember to check for personal information and remove it

Other than that it would be to check the logs of whatever went wrong, if anything goes wrong

I can confirm that after the reboot the network stops working for me as well, I’ll see if I can connect it to a monitor later during the day or after work and see if I can find what might be causing it.

There appears to be a TSL or SSL issue as well

New VM-Installation. Just installed the Collabora stuff and coTURN in addition.
After apt update && upgrade it was still running well. Updated to devel. Looked still good.
ncp-dist-upgrade and i had the same issue as OliverV.

Added the source list.
Bildschirmfoto vom 2021-12-12 14-00-55

1 Like

I connected my RPi to a monitor a little bit earlier and did some checks.

[ Workaround for DHCP issue ]
Edit

sudo nano /etc/systemd/system/dhcpcd.service.d/wait.conf

from:

[Service]
ExecStart=
ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -w

to:

[Service]
ExecStart=
ExecStart=/usr/sbin/dhcpcd -q -w

Source : dhcpcd5 update broken in bullseye Raspberry Pi OS? - Raspberry Pi Forums

[ ncp-report after fixing dhcp issue ]

NextCloudPi diagnostics

NextCloudPi version  v1.45.0
NextCloudPi image    NextCloudPi_10-08-21
OS                   Debian GNU/Linux 11. 5.10.63-v8+ (aarch64)
automount            yes
USB devices          sda 
datadir              /media/USBdrive/ncdata/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      3.1G/119G
rootfs usage         3.1G/119G
swapfile             /var/swap
dbdir                /media/USBdrive/ncdatabase
Nextcloud check      ok
Nextcloud version    22.2.2.0
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
internet check       ok
port check 80        closed
port check 443       closed
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               1min

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "22": "nextcloudpi",
            "1": "×××.×××.×××.××",
            "11": "××××:××××:××××:××××:××××:××××:××××:××××",
            "3": "nextcloudpi",
            "": "××××",
            "20": "××××.××××.××××",
            "21": "××××.××××",
            "12": "××××.××××.××××",
            "14": "××××"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "22.2.2.0",
        "overwrite.cli.url": "https:\/\/××××\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/media\/USBdrive\/ncdata\/data\/tmp",
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "loglevel": "2",
        "maintenance": false,
        "logfile": "\/media\/USBdrive\/ncdata\/data\/nextcloud.log",
        "log_type": "file",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "admin",
            "users"
        ],
        "twofactor_enforced_excluded_groups": [],
        "mail_sendmailmode": "smtp"
    }
}

HTTPd logs
[Sun Dec 12 23:02:43.467809 2021] [mpm_event:notice] [pid 704:tid 548626646080] AH00489: Apache/2.4.51 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sun Dec 12 23:02:43.467889 2021] [core:notice] [pid 704:tid 548626646080] AH00094: Command line: '/usr/sbin/apache2'
[Sun Dec 12 23:11:26.809979 2021] [mpm_event:notice] [pid 704:tid 548626646080] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Dec 12 23:11:26.896821 2021] [ssl:warn] [pid 4269:tid 547961885760] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Dec 12 23:11:26.897144 2021] [ssl:error] [pid 4269:tid 547961885760] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Sun Dec 12 23:11:26.897171 2021] [ssl:error] [pid 4269:tid 547961885760] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Dec 12 23:11:26.915867 2021] [ssl:warn] [pid 4270:tid 547961885760] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Dec 12 23:11:26.916206 2021] [ssl:error] [pid 4270:tid 547961885760] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Sun Dec 12 23:11:26.916351 2021] [ssl:error] [pid 4270:tid 547961885760] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Dec 12 23:11:26.921041 2021] [mpm_event:notice] [pid 4270:tid 547961885760] AH00489: Apache/2.4.51 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sun Dec 12 23:11:26.921157 2021] [core:notice] [pid 4270:tid 547961885760] AH00094: Command line: '/usr/sbin/apache2'
[Sun Dec 12 23:11:53.638889 2021] [mpm_event:notice] [pid 4270:tid 547961885760] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Dec 12 23:11:53.733085 2021] [ssl:warn] [pid 4490:tid 548356183104] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Dec 12 23:11:53.733437 2021] [ssl:error] [pid 4490:tid 548356183104] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Sun Dec 12 23:11:53.733470 2021] [ssl:error] [pid 4490:tid 548356183104] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Dec 12 23:11:53.754051 2021] [ssl:warn] [pid 4493:tid 548356183104] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Dec 12 23:11:53.754387 2021] [ssl:error] [pid 4493:tid 548356183104] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Sun Dec 12 23:11:53.754429 2021] [ssl:error] [pid 4493:tid 548356183104] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Dec 12 23:11:53.759762 2021] [mpm_event:notice] [pid 4493:tid 548356183104] AH00489: Apache/2.4.51 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sun Dec 12 23:11:53.759975 2021] [core:notice] [pid 4493:tid 548356183104] AH00094: Command line: '/usr/sbin/apache2'
Database logs

2021-12-11  0:34:58 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-12-11  0:34:58 0 [Note] InnoDB: 10.3.31 started; log sequence number 3862150; transaction id 5128
2021-12-11  0:34:58 0 [Note] InnoDB: Loading buffer pool(s) from /media/USBdrive/ncdatabase/ib_buffer_pool
2021-12-11  0:34:58 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-12-11  0:34:59 0 [Note] Server socket created on IP: '127.0.0.1'.
2021-12-11  0:34:59 0 [Note] Reading of all Master_info entries succeeded
2021-12-11  0:34:59 0 [Note] Added new Master_info '' to hash table
2021-12-11  0:34:59 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.31-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Debian 10
2021-12-11  0:34:59 0 [Note] InnoDB: Buffer pool(s) load completed at 211211  0:34:59
2021-12-11  1:44:14 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2021-12-11  1:44:14 0 [Note] Event Scheduler: Purging the queue. 0 events
2021-12-11  1:44:14 0 [Note] InnoDB: FTS optimize thread exiting.
2021-12-11  1:44:14 0 [Note] InnoDB: Starting shutdown...
2021-12-11  1:44:14 0 [Note] InnoDB: Dumping buffer pool(s) to /media/USBdrive/ncdatabase/ib_buffer_pool
2021-12-11  1:44:14 0 [Note] InnoDB: Buffer pool(s) dump completed at 211211  1:44:14
2021-12-11  1:44:16 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2021-12-11  1:44:16 0 [Note] InnoDB: Shutdown completed; log sequence number 6268198; transaction id 11339
2021-12-11  1:44:16 0 [Note] /usr/sbin/mysqld: Shutdown complete


Nextcloud logs

{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Remove old dashboard app config data","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Add job to cleanup the bruteforce entries","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Queue a one-time job to check for user uploaded certificates","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair DAV shares","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Add background job to set the lookup server share state for users","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:36+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"21.0.4.1"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"22.2.2.0"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"22.2.2.0"}
{"reqId":"UJrnczgAlgsMPAOzZrIk","level":1,"time":"2021-12-10T23:54:44+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"22.2.2.0"}
{"reqId":"ObhmX78yW0Cczd5DbxDv","level":4,"time":"2021-12-12T22:03:03+00:00","remoteAddr":"","user":"--","app":"nextcloudpi","method":"","url":"--","message":"Error during app loading: read error on connection to /var/run/redis/redis.sock:0","userAgent":"--","version":"22.2.2.0","exception":{"Exception":"RedisException","Message":"read error on connection to /var/run/redis/redis.sock:0","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":55,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":153,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"function":"spl_autoload_call"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":194,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":171,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":139,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":119,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":98,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":55,"CustomMessage":"Error during app loading: read error on connection to /var/run/redis/redis.sock:0"}}
{"reqId":"ObhmX78yW0Cczd5DbxDv","level":4,"time":"2021-12-12T22:03:03+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Could not boot notify_push: No such file or directory","userAgent":"--","version":"22.2.2.0","exception":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":124,"function":"connect","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":164,"function":"create","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/nextcloud/apps/notify_push/lib/AppInfo/Application.php","line":62,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":160,"function":"OCA\\NotifyPush\\AppInfo\\{closure}","class":"OCA\\NotifyPush\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":127,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":454,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":56,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":50,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"function":"OC\\AppFramework\\Bootstrap\\{closure}","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":67,"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":51,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/nextcloud/apps/notify_push/lib/AppInfo/Application.php","line":70,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":178,"function":"boot","class":"OCA\\NotifyPush\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":205,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":139,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":204,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":244,"function":"setupFS","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/lib/private/Server.php","line":413,"function":"getMountManager","class":"OC\\Files\\Filesystem","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":160,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":127,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":136,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":56,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Server.php","line":446,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":62,"function":"call_user_func"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":79,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/AppInfo/NotesHooks.php","line":70,"function":"listen","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/AppInfo/NotesHooks.php","line":37,"function":"listenTo","class":"OCA\\Notes\\AppInfo\\NotesHooks","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/AppInfo/Application.php","line":32,"function":"register","class":"OCA\\Notes\\AppInfo\\NotesHooks","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":178,"function":"boot","class":"OCA\\Notes\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":205,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":139,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":119,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":98,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/RedisFactory.php","Line":124,"CustomMessage":"Could not boot notify_push: No such file or directory"}}
{"reqId":"ObhmX78yW0Cczd5DbxDv","level":4,"time":"2021-12-12T22:03:03+00:00","remoteAddr":"","user":"--","app":"oauth2","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"22.2.2.0","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":55,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":153,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"function":"spl_autoload_call"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":194,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":171,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":139,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":119,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":98,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":55,"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
{"reqId":"ObhmX78yW0Cczd5DbxDv","level":4,"time":"2021-12-12T22:03:03+00:00","remoteAddr":"","user":"--","app":"privacy","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"22.2.2.0","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":55,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":153,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"function":"spl_autoload_call"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":194,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":171,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":139,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":119,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":98,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":55,"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}
{"reqId":"ObhmX78yW0Cczd5DbxDv","level":4,"time":"2021-12-12T22:03:03+00:00","remoteAddr":"","user":"--","app":"serverinfo","method":"","url":"--","message":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away","userAgent":"--","version":"22.2.2.0","exception":{"Exception":"RedisException","Message":"Redis server /var/run/redis/redis.sock:0 went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":55,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":153,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"function":"spl_autoload_call"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":194,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":171,"function":"isBootable","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":139,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":119,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/console.php","line":98,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":55,"CustomMessage":"Error during app loading: Redis server /var/run/redis/redis.sock:0 went away"}}

There are still SSL ceritificate issues making it so it’s not possible to access the NC or NCP website

/usr/local/etc/library.sh: line 23: 'ip': syntax error: operand expected (error token is "'ip'")

EDIT: turning off https-only and changing the overwrite.cli in config.php from https to http allowed me to access the website again

And just a side-note … but damn … the speed boost is really noticable on the raspberry

2 Likes

thanks, the letsencrypt issue is separate and should be fixed now on devel and master. The PHP message is misleading, we are using the right version.

Looks good to me

1 Like

you have incorrect date on this VM

just save the output from ncp-dist-upgrade and share ncp-report afterwards. Make sure to snapshot VM before the process

thanks!

yep, ran dpkg-reconfigure locales and tzdata.

still fails at the end with :

Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
Something went wrong. Fix it and try again

(I tried to fix this by reinstalling grub, but to no avail)

nc-info tells me

Running nc-info
Gathering information…
sudo: php: command not found
NextCloudPi version v1.46.7
NextCloudPi image NextCloudPi_11-08-21
OS Debian GNU/Linux 11. 4.19.0-18-amd64 (x86_64)
automount no
USB devices none
datadir /var/www/nextcloud/data
data in SD yes
data filesystem ext2/ext3
data disk usage 6,1G/20G
rootfs usage 6,1G/20G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check error
HTTPD service up
PHP service down
MariaDB service up
Redis service up
HPB service down
Postfix service up
internet check ok
port check 80 open
port check 443 open
IP 192.168.2.44
gateway 192.168.2.0
interface eth0
certificates none
NAT loopback no
uptime 23min

You are using an outdated distro release. You should upgrade to latest Debian/Raspbian

I’d like to assist in testing as well (this next weekend). Some questions though:

  1. do i need to use a snapshot of my current install, and migrate to a VM to test it? Or can I do a clean install in a VM, activate any apps that I use, and then perform the upgrade (in the VM)?

  2. info needed? just ‘ncp-dist-upgrade’ and ‘ncp-report’ after I’ve upgraded?

I’m on an Intel NUC (x86_64) running debian 10.

  1. Either way works :slightly_smiling_face: just document which one you do

  2. yes, info through ncp-report is appreciated and document the upgrade process and how it went

Thanks for helping out

Hi, is there a docker image version to test or is it just generated when NCPi is stable?

This problem keeps happening

I don’t have a RPi handy. There seems to be a problem with DHCP during the upgrade, the other problems should be fixed now.

@ZendaiOwl do you want to add your fix? I cannot test it but if you send me a PR that is tested by you, I’ll wait for that to publish for everyone. Otherwise I’ll just publish as is.