Problem with upgrading 19.0.0->19.0.4 (NC not installed-error though it IS)

Hi,

my nextcloud is out of date. I use dockerized deployment with Mariadb (using docker-compose). In settings, it shows me that my docker is 19.0.0 and there is an update to 19.0.4 available. When I click on “Open updater”, I end up with blank screen (I get a 404 on request to /updater/).

Then I tried to update with occ:

docker exec -it -w /var/www/html -u www-data 6baebbcae145 php ./occ upgrade
Nextcloud is not installed - only a limited number of commands are available


  Command "upgrade" is not defined.

It is interesting, because nextcloud is definitely installed - I see files, I sync with desktop app, I can login to web interface, I access apps.

How does nextcloud (command line) figure out if it is installed or not?

Nextcloud version (eg, 18.0.2): 19.0.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.1 LTS, nextcloud is nextcloud:fpm docker image

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

The output of your Nextcloud log in Admin > Logging:

(these are unrelated and there are no logs that seem relevant)

{"reqId":"IkXQ2BZKIsF3hC2mPHFo","level":3,"time":"2020-10-16T10:29:03+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/3/stacks/11/cards/10?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}
{"reqId":"zeTBprNcXZXb2YssL15G","level":3,"time":"2020-10-16T10:29:03+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/5/stacks/16/cards/21?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}
{"reqId":"NsyIb9hUTntSvNvB6TZZ","level":3,"time":"2020-10-16T10:29:03+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/5/stacks/16/cards/24?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}
{"reqId":"ptPYbpH5zmDczAIeTVWC","level":3,"time":"2020-10-16T10:29:04+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/4/stacks/12/cards/12?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}
{"reqId":"7uG6PrjTRPLjwBa8SFbk","level":3,"time":"2020-10-16T10:29:04+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/4/stacks/12/cards/15?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}
{"reqId":"bqQJ9H1hivvbBOZn6I8y","level":3,"time":"2020-10-16T10:29:04+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/4/stacks/12/cards/39?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}
{"reqId":"iZ4H8P8HgwB7lVHKHvRU","level":3,"time":"2020-10-16T10:29:04+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/4/stacks/12/cards/58?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}
{"reqId":"4tt2ddft7GdKhJUdTtS0","level":3,"time":"2020-10-16T10:29:04+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/4/stacks/12/cards/14?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}
{"reqId":"XpXOroxsrRhktFf5bEvH","level":3,"time":"2020-10-16T10:29:04+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/4/stacks/12/cards/42?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}
{"reqId":"jzzkFJGXS6RTqgmnIoA9","level":3,"time":"2020-10-16T10:29:04+00:00","remoteAddr":"172.18.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/deck/api/v1.0/boards/5/stacks/17/cards/23?","message":"session_start(): A session had already been started - ignoring at /var/www/html/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.13.1","version":"19.0.0.12"}

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'XXXXXXXXXXXX',
  'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.XXXXXX.XX',
    1 => 'nginx-server',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '19.0.0.12',
  'overwrite.cli.url' => 'https://nextcloud.XXXXXX.XX',
  'overwriteprotocol' => 'https',
  'overwritehost' => 'nextcloud.XXXXXX.XX',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'XXXXXXXXXXXXX',
  'installed' => true,
  'onlyoffice' =>
  array (
    'DocumentServerUrl' => '/ds-vpath/',
    'DocumentServerInternalUrl' => 'http://onlyoffice-document-server/',
    'StorageUrl' => 'http://nginx-server/',
  ),
  'allow_local_remote_servers' => 'true',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'XXXXXX.XX',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.XXXXXXXX.XX',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'XXXXXXXXX@XXXXXX.XX',
  'mail_smtppassword' => 'XXXXXXXXXXXXXXXX',
  'maintenance' => false,
  'updater.secret' => '$2y$10$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
);

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

172.22.0.2 -  16/Oct/2020:08:29:24 +0000 "GET /index.php" 200
172.22.0.2 - juraj 16/Oct/2020:08:35:02 +0000 "PROPFIND /remote.php" 302
172.22.0.2 - juraj 16/Oct/2020:08:43:13 +0000 "PROPFIND /remote.php" 302
172.22.0.2 -  16/Oct/2020:08:44:24 +0000 "GET /index.php" 200
172.22.0.2 - juraj 16/Oct/2020:08:51:20 +0000 "PROPFIND /remote.php" 302
172.22.0.2 -  16/Oct/2020:08:59:24 +0000 "GET /index.php" 200
172.22.0.2 - juraj 16/Oct/2020:08:59:30 +0000 "PROPFIND /remote.php" 302
172.22.0.2 -  16/Oct/2020:09:00:46 +0000 "GET /index.php" 200
172.22.0.2 - juraj 16/Oct/2020:09:07:37 +0000 "PROPFIND /remote.php" 302
172.22.0.2 -  16/Oct/2020:09:10:50 +0000 "GET /index.php" 200
172.22.0.2 -  16/Oct/2020:09:12:07 +0000 "GET /index.php" 200
172.22.0.2 -  16/Oct/2020:09:13:08 +0000 "GET /index.php" 200
172.22.0.2 - juraj 16/Oct/2020:09:15:38 +0000 "PROPFIND /remote.php" 302
172.22.0.2 - juraj 16/Oct/2020:09:23:45 +0000 "PROPFIND /remote.php" 302
172.22.0.2 -  16/Oct/2020:09:27:07 +0000 "GET /index.php" 200
172.22.0.2 - juraj 16/Oct/2020:09:31:50 +0000 "PROPFIND /remote.php" 302
172.22.0.2 - juraj 16/Oct/2020:09:39:51 +0000 "PROPFIND /remote.php" 302
172.22.0.2 -  16/Oct/2020:09:44:01 +0000 "GET /index.php" 200
172.22.0.2 - juraj 16/Oct/2020:09:48:01 +0000 "PROPFIND /remote.php" 302
[16-Oct-2020 09:49:48] NOTICE: fpm is running, pid 1
[16-Oct-2020 09:49:48] NOTICE: ready to handle connections

@jooray welcome to the forums and thank you for your first contribution here.

have you searched the forum before posting (could save you time, eventually)? Since sometimes problems have already come up beforehand…

so I found this thing here for you

maybe it’s gonna help you.

BTW: you have beautifully posted your problem… if only everyone else would do that the way you did! :heart_eyes_cat:

Thank you. Yes, I searched the forums. And this does not help me unfortunately, I do not have empty config.php.