Broken update to 16.0.5 and kind of a broken fix

Hi,

I have a bit of a history with broken updates, but this one is weirdly stuck and I’d really appreciate any help.
I recently tried to update my NC in Docker with NCP from 16.0.4 to 16.0.5. I updated through the web updater and for some reasons it didn’t go through, first it got stuck on step 3 (the nextcloud was still working) and after trying the next day I got to step 9 but the nextcloud was gone with the message “Update in process” or something like that.

Now I googled the problems and found several solutions that apparently didn’t work but I can tell a bit about the history:

  • Mirrored the whole external disk, where NCP is running from.
  • Created a new SD-card with Ubuntu 18.04.3 (for Odroid N2)
  • Created a new container with the same run parameters, grabbing the files from the external HDD
  • Tried to find the occ-file in /data/nextcloud, couldn’t find it as it gets deleted in one of the steps in the update I believe.
  • Manually downloaded NC 16.0.5 from nextcloud.com and extracted it in /data/nextcloud
  • Played around with the owner-rights, but I’m a bit afraid to expose too much and don’t really know if 744 is what I want everywhere and if fix-permissionsalso fixes files outside the /data/nextcloud/data-folder. Among other I used
    sudo chown -R www-data:www-data /data/nextcloud
    chown -R www-data:www-data .*

I use NCP as I would break my system all the time had I installed it manually. I’m not an expert in this, therefore I can’t really say it was very clever or structured what I did.

My backup is very old and I’d prefer to not going back to that. Somehow the system is still partly working.

What works: ncp-config

uname -a

Linux odroid 4.9.196-63 #1 SMP PREEMPT Thu Oct 17 00:44:03 -03 2019 aarch64 aarch64 aarch64 GNU/Linux

docker --version

Docker version 19.03.4, build 9013bf5

nc-info
Running nc-info
Gathering information...
Cannot load Zend OPcache - it was already loaded
NextCloudPi version  v1.17.1
NextCloudPi image    NextCloudPi_docker_07-20-19
distribution         Debian GNU/Linux 10 \n \l
automount            no
USB devices          sda 
datadir              /data/nextcloud/data
data in SD           no
data filesystem      ext2/ext3
data disk usage      1.2T/1.8T
rootfs usage         6.6G/59G
swapfile             none
dbdir                /data/database
Nextcloud check      ok
Nextcloud version    16.0.5.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
port check 80        open
port check 443       open
IP                   172.17.0.2
gateway              172.17.0.1
interface            eth0
certificates         removed
NAT loopback         no
uptime               17:13 
ncp-update
ncp-update
Downloading updates
Performing updates
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Running modsecurity
Enabling module security2
Installing nc-backup
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
pigz is already the newest version (2.4-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
NextCloudPi updated to version v1.17.1
nc-update-nextcloud (through ncp-config)
Running nc-update-nextcloud
Cannot load Zend OPcache - it was already loaded
Current   Nextcloud version 16.0.5.1
Available Nextcloud version 17.0.0
ERROR 1146 (42S02) at line 1: Table 'nextcloud.oc_jobs' doesn't exist
Done. Press any key...
ncc upgrade
ncc upgrade
Cannot load Zend OPcache - it was already loaded
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'':

SQLSTATE[HY000]: General error: 1018 Can't read dir of './nextcloud/' (errno: 13 "Permission denied")
Update failed
Maintenance mode is kept active
Reset log level
config.php
    <?php
    $CONFIG = array (
      'passwordsalt' => 'salt',
      'secret' => 'secret',
      'trusted_domains' => 
      array (
        0 => 'localhost',
        1 => '192.168.0.80',
        2 => 'sub.domain.tld',
      ),
      'datadirectory' => '/data/nextcloud/data',
      'dbtype' => 'mysql',
      'version' => '16.0.4.1',
      'overwrite.cli.url' => 'https://sub.domain.tld/',
      'dbname' => 'nextcloud',
      'dbhost' => 'localhost',
      'dbport' => '',
      'dbtableprefix' => 'oc_',
      'mysql.utf8mb4' => true,
      'dbuser' => 'xxx',
      'dbpassword' => 'xxx',
      'installed' => true,
      'instanceid' => 'xxx',
      'memcache.local' => '\\OC\\Memcache\\Redis',
      'memcache.locking' => '\\OC\\Memcache\\Redis',
      'redis' => 
      array (
        'host' => '/var/run/redis/redis.sock',
        'port' => 0,
        'timeout' => 0.0,
        'password' => 'xxx',
      ),
      'tempdirectory' => '/var/www/nextcloud/data/tmp',
      'mail_smtpmode' => 'smtp',
      'mail_smtpauthtype' => 'LOGIN',
      'mail_from_address' => 'xxx',
      'mail_domain' => 'domain.tld',
      'overwriteprotocol' => 'https',
      'htaccess.RewriteBase' => '/',
      'maintenance' => true,
      'theme' => '',
      'loglevel' => 2,
      'jpeg_quality' => '60',
      'mail_sendmailmode' => 'smtp',
      'mail_smtpauth' => 1,
      'mail_smtphost' => 'domain.tld',
      'mail_smtpport' => '587',
      'mail_smtpname' => 'mail@domain.tld',
      'mail_smtppassword' => 'password',
      'mail_smtpsecure' => 'tls',
      'updater.release.channel' => 'stable',
      'preview_max_x' => '2048',
      'preview_max_y' => '2048',
      'updater.secret' => 'xxx',
    );
ls -lh /data/nextcloud
drwxr-xr-x 32 www-data www-data 4.0K Sep 25 19:12 3rdparty
-rwxr-xr-x  1 www-data www-data  12K Sep 25 19:09 AUTHORS
-rwxr-xr-x  1 www-data www-data  34K Sep 25 19:09 COPYING
drwxr-xr-x 85 www-data www-data 4.0K Oct 26 10:37 apps
drwxr-xr-x  2 www-data www-data 4.0K Oct 26 10:45 config
-rwxr-xr-x  1 www-data www-data 3.8K Sep 25 19:09 console.php
drwxr-xr-x 23 www-data www-data 4.0K Sep 25 19:12 core
-rwxr-xr-x  1 www-data www-data 4.9K Sep 25 19:09 cron.php
drwxrwx--- 19 www-data www-data 4.0K Oct 24 20:18 data
-rwxr-xr-x  1 www-data www-data  156 Sep 25 19:09 index.html
-rwxr-xr-x  1 www-data www-data 3.1K Sep 25 19:09 index.php
drwxr-xr-x  6 www-data www-data 4.0K Sep 25 19:09 lib
-rwxr-xr-x  1 www-data www-data  283 Sep 25 19:09 occ
drwxr-xr-x  2 www-data www-data 4.0K Sep 25 19:09 ocm-provider
drwxr-xr-x  2 www-data www-data 4.0K Sep 25 19:09 ocs
drwxr-xr-x  2 www-data www-data 4.0K Sep 25 19:09 ocs-provider
-rwxr-xr-x  1 www-data www-data 2.9K Sep 25 19:09 public.php
-rwxr-xr-x  1 www-data www-data 5.1K Sep 25 19:09 remote.php
drwxr-xr-x  4 www-data www-data 4.0K Sep 25 19:09 resources
-rwxr-xr-x  1 www-data www-data   26 Sep 25 19:09 robots.txt
drwxr-xr-x 12 www-data www-data 4.0K Sep 25 19:12 settings
-rwxr-xr-x  1 www-data www-data 2.2K Sep 25 19:09 status.php
drwxr-xr-x  3 www-data www-data 4.0K Sep 25 19:09 themes
drwxrwxrwx  2 www-data www-data 4.0K Sep 25 19:10 updater
-rwxrwxrwx  1 www-data www-data  362 Sep 25 19:12 version.php
update.log
2019-10-23T19:38:23+0000 JtKsoYmL85 [info] request to updater
2019-10-23T19:38:23+0000 JtKsoYmL85 [info] currentStep()
2019-10-23T19:38:23+0000 JtKsoYmL85 [info] show HTML page
2019-10-23T19:38:23+0000 JtKsoYmL85 [info] current version: 16.0.4 build time: 2019-08-14T18:57:27+00:00 a1a245e88202d834f08f4c2e4451dcbe9baee3aa
2019-10-23T19:38:24+0000 JtKsoYmL85 [info] getUpdateServerResponse()
2019-10-23T19:38:24+0000 JtKsoYmL85 [info] updaterServer: https://updates.nextcloud.com/updater_server/
2019-10-23T19:38:24+0000 JtKsoYmL85 [info] releaseChannel: stable
2019-10-23T19:38:24+0000 JtKsoYmL85 [info] internal version: 16.0.4.1
2019-10-23T19:38:24+0000 JtKsoYmL85 [info] updateURL: https://updates.nextcloud.com/updater_server/?version=16x0x4x1xxxstablexx2019-08-14T18%3A57%3A27%2B00%3A00+a1a245e88202d834f08f4c2e4451dcbe9baee3aax7$
2019-10-23T19:38:24+0000 JtKsoYmL85 [info] getUpdateServerResponse response: Array
(
    [version] => 16.0.5.1
    [versionstring] => Nextcloud 16.0.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-16.0.5.zip
    [web] => https://docs.nextcloud.com/server/16/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=16.0.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => secret?
)

2019-10-23T19:38:24+0000 JtKsoYmL85 [info] checkForUpdate() Array
(
    [version] => 16.0.5.1
    [versionstring] => Nextcloud 16.0.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-16.0.5.zip
    [web] => https://docs.nextcloud.com/server/16/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=16.0.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => secret?
)
2019-10-23T19:38:24+0000 JtKsoYmL85 [info] getChangelogURL()
2019-10-23T19:38:24+0000 JtKsoYmL85 [info] end of checkForUpdate() Update to Nextcloud 16.0.5 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</spa$
2019-10-23T19:38:47+0000 6Oh42hs9Do [info] request to updater
2019-10-23T19:38:47+0000 6Oh42hs9Do [info] currentStep()
2019-10-23T19:38:47+0000 6Oh42hs9Do [info] POST request for step "1"
2019-10-23T19:38:47+0000 6Oh42hs9Do [info] startStep("1")
2019-10-23T19:38:47+0000 6Oh42hs9Do [info] checkForExpectedFilesAndFolders()
2019-10-23T19:38:47+0000 6Oh42hs9Do [info] end of checkForExpectedFilesAndFolders()
2019-10-23T19:38:47+0000 6Oh42hs9Do [info] endStep("1")
2019-10-23T19:38:47+0000 3hChptJM9u [info] request to updater
2019-10-23T19:38:47+0000 3hChptJM9u [info] currentStep()
2019-10-23T19:38:47+0000 3hChptJM9u [info] Step 1 is in state "end".
2019-10-23T19:38:47+0000 3hChptJM9u [info] POST request for step "2"
2019-10-23T19:38:47+0000 3hChptJM9u [info] startStep("2")
2019-10-23T19:38:47+0000 3hChptJM9u [info] checkWritePermissions()
2019-10-23T19:38:47+0000 3hChptJM9u [info] end of checkWritePermissions()
2019-10-23T19:38:47+0000 3hChptJM9u [info] endStep("2")
2019-10-23T19:38:47+0000 TYfagcAK3d [info] request to updater
2019-10-23T19:38:47+0000 TYfagcAK3d [info] currentStep()
2019-10-23T19:38:47+0000 TYfagcAK3d [info] Step 2 is in state "end".
2019-10-23T19:38:47+0000 TYfagcAK3d [info] POST request for step "3"
2019-10-23T19:38:47+0000 TYfagcAK3d [info] startStep("3")
2019-10-23T19:38:47+0000 TYfagcAK3d [info] createBackup()
2019-10-23T19:48:09+0000 9JdojIsRup [info] request to updater
2019-10-23T19:48:10+0000 9JdojIsRup [info] currentStep()
2019-10-23T19:48:10+0000 9JdojIsRup [info] Step 3 is in state "start".
2019-10-23T19:48:16+0000 loLthzIMLV [info] request to updater
2019-10-23T19:48:16+0000 loLthzIMLV [info] currentStep()
2019-10-23T19:48:16+0000 loLthzIMLV [info] Step 3 is in state "start".
2019-10-23T19:51:25+0000 xZN6huMq5p [info] request to updater
2019-10-23T19:51:25+0000 xZN6huMq5p [info] currentStep()
2019-10-23T19:51:25+0000 xZN6huMq5p [info] Step 3 is in state "start".
2019-10-23T19:51:30+0000 jYxgCoQevP [info] request to updater
2019-10-23T19:51:30+0000 jYxgCoQevP [info] currentStep()
2019-10-23T19:51:30+0000 jYxgCoQevP [info] Step 3 is in state "start".
2019-10-23T21:15:37+0000 TYfagcAK3d [info] end of createBackup()
2019-10-23T21:15:37+0000 TYfagcAK3d [info] endStep("3")
2019-10-24T15:32:01+0000 q2KXGQylRF [info] request to updater
2019-10-24T15:32:01+0000 q2KXGQylRF [info] currentStep()
2019-10-24T15:32:01+0000 q2KXGQylRF [info] Step 3 is in state "end".
2019-10-24T15:32:01+0000 q2KXGQylRF [info] show HTML page
2019-10-24T15:32:01+0000 q2KXGQylRF [info] current version: 16.0.4 build time: 2019-08-14T18:57:27+00:00 a1a245e88202d834f08f4c2e4451dcbe9baee3aa
2019-10-24T15:32:01+0000 q2KXGQylRF [info] getUpdateServerResponse()
2019-10-24T15:32:01+0000 q2KXGQylRF [info] updaterServer: https://updates.nextcloud.com/updater_server/
2019-10-24T15:32:01+0000 q2KXGQylRF [info] releaseChannel: stable
2019-10-24T15:32:01+0000 q2KXGQylRF [info] internal version: 16.0.4.1
2019-10-24T15:32:01+0000 q2KXGQylRF [info] updateURL: https://updates.nextcloud.com/updater_server/?version=16x0x4x1xxxstablexx2019-08-14T18%3A57%3A27%2B00%3A00+a1a245e88202d834f08f4c2e4451dcbe9baee3aax7$
2019-10-24T15:32:01+0000 q2KXGQylRF [info] getUpdateServerResponse response: Array
(
    [version] => 16.0.5.1
    [versionstring] => Nextcloud 16.0.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-16.0.5.zip
    [web] => https://docs.nextcloud.com/server/16/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=16.0.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => secret?
)

2019-10-24T15:32:01+0000 q2KXGQylRF [info] checkForUpdate() Array
(
    [version] => 16.0.5.1
    [versionstring] => Nextcloud 16.0.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-16.0.5.zip
    [web] => https://docs.nextcloud.com/server/16/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=16.0.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => secret?
)
2019-10-24T15:32:01+0000 q2KXGQylRF [info] getChangelogURL()
2019-10-24T15:32:01+0000 q2KXGQylRF [info] end of checkForUpdate() Update to Nextcloud 16.0.5 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</spa$
2019-10-24T15:35:12+0000 jzJmso0TQU [info] request to updater
2019-10-24T15:35:12+0000 jzJmso0TQU [info] currentStep()
2019-10-24T15:35:12+0000 jzJmso0TQU [info] Step 3 is in state "end".
2019-10-24T15:35:12+0000 jzJmso0TQU [info] POST request for step "4"
2019-10-24T15:35:12+0000 jzJmso0TQU [info] startStep("4")
2019-10-24T15:35:12+0000 jzJmso0TQU [info] downloadUpdate()
2019-10-24T15:35:12+0000 jzJmso0TQU [info] getUpdateServerResponse()
2019-10-24T15:35:12+0000 jzJmso0TQU [info] updaterServer: https://updates.nextcloud.com/updater_server/
2019-10-24T15:35:12+0000 jzJmso0TQU [info] releaseChannel: stable
2019-10-24T15:35:12+0000 jzJmso0TQU [info] internal version: 16.0.4.1
2019-10-24T15:35:12+0000 jzJmso0TQU [info] updateURL: https://updates.nextcloud.com/updater_server/?version=16x0x4x1xxxstablexx2019-08-14T18%3A57%3A27%2B00%3A00+a1a245e88202d834f08f4c2e4451dcbe9baee3aax7$
2019-10-24T15:35:12+0000 jzJmso0TQU [info] getUpdateServerResponse response: Array
(
    [version] => 16.0.5.1
    [versionstring] => Nextcloud 16.0.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-16.0.5.zip
    [web] => https://docs.nextcloud.com/server/16/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=16.0.5
    [autoupdater] => 1
    [eol] => 0

    [signature] => secret?
)

2019-10-24T15:35:12+0000 jzJmso0TQU [info] storage location exists
2019-10-24T15:35:17+0000 jzJmso0TQU [info] end of downloadUpdate()
2019-10-24T15:35:17+0000 jzJmso0TQU [info] endStep("4")
2019-10-24T15:35:17+0000 58XWNSwoVj [info] request to updater
2019-10-24T15:35:17+0000 58XWNSwoVj [info] currentStep()
2019-10-24T15:35:17+0000 58XWNSwoVj [info] Step 4 is in state "end".
2019-10-24T15:35:17+0000 58XWNSwoVj [info] POST request for step "5"
2019-10-24T15:35:17+0000 58XWNSwoVj [info] startStep("5")
2019-10-24T15:35:17+0000 58XWNSwoVj [info] verifyIntegrity()
2019-10-24T15:35:17+0000 58XWNSwoVj [info] getUpdateServerResponse()
2019-10-24T15:35:17+0000 58XWNSwoVj [info] updaterServer: https://updates.nextcloud.com/updater_server/
2019-10-24T15:35:17+0000 58XWNSwoVj [info] releaseChannel: stable
2019-10-24T15:35:17+0000 58XWNSwoVj [info] internal version: 16.0.4.1
2019-10-24T15:35:17+0000 58XWNSwoVj [info] updateURL: https://updates.nextcloud.com/updater_server/?version=16x0x4x1xxxstablexx2019-08-14T18%3A57%3A27%2B00%3A00+a1a245e88202d834f08f4c2e4451dcbe9baee3aax7$
2019-10-24T15:35:17+0000 58XWNSwoVj [info] getUpdateServerResponse response: Array
(
    [version] => 16.0.5.1
    [versionstring] => Nextcloud 16.0.5
    [url] => https://download.nextcloud.com/server/releases/nextcloud-16.0.5.zip
    [web] => https://docs.nextcloud.com/server/16/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=16.0.5
    [autoupdater] => 1
    [eol] => 0
    [signature] => secret?
)

2019-10-24T15:35:17+0000 58XWNSwoVj [info] storage location: /data/nextcloud/data/updater-oco4cksoykn8/downloads/
2019-10-24T15:35:18+0000 58XWNSwoVj [info] end of verifyIntegrity()
2019-10-24T15:35:18+0000 58XWNSwoVj [info] endStep("5")
2019-10-24T15:35:18+0000 0Rc4Q1F3Ob [info] request to updater
2019-10-24T15:35:18+0000 0Rc4Q1F3Ob [info] currentStep()
2019-10-24T15:35:18+0000 0Rc4Q1F3Ob [info] Step 5 is in state "end".
2019-10-24T15:35:18+0000 0Rc4Q1F3Ob [info] POST request for step "6"
2019-10-24T15:35:18+0000 0Rc4Q1F3Ob [info] startStep("6")
2019-10-24T15:35:18+0000 0Rc4Q1F3Ob [info] extractDownload()
2019-10-24T15:35:18+0000 0Rc4Q1F3Ob [info] storage location: /data/nextcloud/data/updater-oco4cksoykn8/downloads/
2019-10-24T15:35:24+0000 0Rc4Q1F3Ob [info] end of extractDownload()
2019-10-24T15:35:24+0000 0Rc4Q1F3Ob [info] endStep("6")
2019-10-24T15:35:24+0000 21yMVbCAlH [info] request to updater
2019-10-24T15:35:24+0000 21yMVbCAlH [info] currentStep()
2019-10-24T15:35:24+0000 21yMVbCAlH [info] Step 6 is in state "end".
2019-10-24T15:35:24+0000 21yMVbCAlH [info] POST request for step "7"
2019-10-24T15:35:24+0000 21yMVbCAlH [info] startStep("7")
2019-10-24T15:35:24+0000 21yMVbCAlH [info] setMaintenanceMode("true")
2019-10-24T15:35:24+0000 21yMVbCAlH [info] configFileName /data/nextcloud/updater/../config/config.php
2019-10-24T15:35:24+0000 21yMVbCAlH [info] end of setMaintenanceMode()
2019-10-24T15:35:24+0000 21yMVbCAlH [info] endStep("7")
2019-10-24T15:35:24+0000 DLB01b8sBw [info] request to updater
2019-10-24T15:35:24+0000 DLB01b8sBw [info] currentStep()
2019-10-24T15:35:24+0000 DLB01b8sBw [info] Step 7 is in state "end".
2019-10-24T15:35:24+0000 DLB01b8sBw [info] POST request for step "8"
2019-10-24T15:35:24+0000 DLB01b8sBw [info] startStep("8")
2019-10-24T15:35:24+0000 DLB01b8sBw [info] replaceEntryPoints()
2019-10-24T15:35:24+0000 DLB01b8sBw [info] replace index.php
2019-10-24T15:35:24+0000 DLB01b8sBw [info] replace status.php
2019-10-24T15:35:24+0000 DLB01b8sBw [info] replace remote.php
2019-10-24T15:35:24+0000 DLB01b8sBw [info] replace public.php
2019-10-24T15:35:24+0000 DLB01b8sBw [info] replace ocs/v1.php
2019-10-24T15:35:24+0000 DLB01b8sBw [info] replace ocs/v2.php
2019-10-24T15:35:24+0000 DLB01b8sBw [info] end of replaceEntryPoints()
2019-10-24T15:35:24+0000 DLB01b8sBw [info] endStep("8")
2019-10-24T15:35:24+0000 CxZVmTpU8y [info] request to updater
2019-10-24T15:35:24+0000 CxZVmTpU8y [info] currentStep()
2019-10-24T15:35:24+0000 CxZVmTpU8y [info] Step 8 is in state "end".
2019-10-24T15:35:24+0000 CxZVmTpU8y [info] POST request for step "9"
2019-10-24T15:35:24+0000 CxZVmTpU8y [info] startStep("9")
2019-10-24T15:35:24+0000 CxZVmTpU8y [info] deleteOldFiles()
2019-10-24T15:35:25+0000 CxZVmTpU8y [info] config sample exists
2019-10-24T15:35:26+0000 CxZVmTpU8y [info] themes README exists
2019-10-24T15:50:13+0000 CxZVmTpU8y [info] end of deleteOldFiles()
2019-10-24T15:50:13+0000 CxZVmTpU8y [info] endStep("9")

It would be great if you could give me some hints, links, tipps, help on how I get this system running again.

Please tell me if you need more information! Like logs and so on, no clue where to find the rest of them (and how to copy them in an easy way -.-). Thanks for your help!

I’m guessing it has to do with the permissions, but as I said, I don’t feel very save in playing with them.

Nobody had a similar scenario or is good at reading logs and knowing what to do?

use ncp-web updater, not nextcloud’s one

From the web panel I get this feedback:

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Is there any way to save the user accounts and the app data and just setup an new ncp?

I found a backup in
data/nextcloud/data/updater-xxx/backups/nextcloud-16.0.4.1

How can I use this backup? Just copy all the content to data/nextcloud/?

Thanks in advance for your help!

You could try nc-restore from ncp-web or ncp-config.

https://docs.nextcloudpi.com/en/how-to-backup-and-restore-a-nextcloudpi-instance-using-ncp-config/

NCP-web(:4443) has an extended new backup/restore interface for backups and snapshots, accessed through top menu. (no documentation yet)

Thanks for the tip, totally forgot about that option.
Unfortunately is the web-interface not working for some reason even though as you can see in the status info from NCP above, I get no errors, even Nextcloud check is ok.
The files that are in data/nextcloud/data/updater-xxx/backups/nextcloud-16.0.4.1 are lose not packed as needed for nc-restore. Can I just pack the contents in the folder into a .tar.bz or what is the actual content of the backup file?