[NC 16.0.6] Error: you are trying to reinstall

Nextcloud version: 16.0.6
Operating system and version: OpenBSD 6.6
Apache or nginx version: nginx 1.16.1
PHP version: 7.3

The issue you are facing:
After upgrade from 16.0.5 to 16.0.6, without no errors, when I attempt to connect at the webUI, I have the message:

Error

It looks like you are trying to reinstall your Nextcloud. However the file CAN_INSTALL is missing from your config directory. Please create the file CAN_INSTALL in your config folder to continue.

But, I not search to reinstall!

Is this the first time you’ve seen this error?: Y

Steps to replicate it:

  1. php-7.3 occ upgrade
  2. cp the previous file config.php to new folder nextcloud/config/
  3. connect to my url nextcloud with browser web

The output of your Nextcloud log in Admin > Logging:

{"reqId":"zBzZZMlnl7yRMRpOZ0rP","level":0,"time":"2019-11-18T18:30:20+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from 16.0.5.1 to 16.0.6.1","userAgent":"--","version":"16.0.5.1"}
(...)
{"reqId":"zBzZZMlnl7yRMRpOZ0rP","level":1,"time":"2019-11-18T18:30:25+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"16.0.5.1"}
{"reqId":"zBzZZMlnl7yRMRpOZ0rP","level":1,"time":"2019-11-18T18:30:30+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"16.0.5.1"}
{"reqId":"zBzZZMlnl7yRMRpOZ0rP","level":1,"time":"2019-11-18T18:30:30+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"16.0.6.1"}
{"reqId":"zBzZZMlnl7yRMRpOZ0rP","level":1,"time":"2019-11-18T18:30:30+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active","userAgent":"--","version":"16.0.6.1"}
{"reqId":"zBzZZMlnl7yRMRpOZ0rP","level":1,"time":"2019-11-18T18:30:30+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"16.0.6.1"}
{"reqId":"PuV9YnwPrcR34ahGeAaX","level":2,"time":"2019-11-18T18:30:41+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory \/var\/www\/tmp is not present or writable","userAgent":"--","version":"16.0.6.1"}

(Due to limit numbers of words, I paste here the fully log!)

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

<?php
$CONFIG = array (
  'instanceid' => '***',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' => 
  array (
    0 => 'cld.stephane-huc.net',
  ),
  'datadirectory' => '/htdocs/cld/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '16.0.6.1',
  'overwrite.cli.url' => 'https://cld.stephane-huc.net',
  'dbname' => '***',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '***',
  'dbpassword' => '***',
  'installed' => true,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 1.5,
  ),
  'updater.release.channel' => 'stable',
  'default_language' => 'fr',
  'default_locale' => 'fr_FR',
  'knowledgebaseenabled' => true,
  'allow_user_to_change_display_name' => false,
  'auth.bruteforce.protection.enabled' => true,

  'theme' => '',
  'loglevel' => 2,
  'mysql.utf8mb4' => true,
  'app_install_overwrite' => 
  array (
    0 => 'calendar',
  ),
  'appstoreenabled' => true,
);

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

88.136.16.221 - - [19/Nov/2019:18:45:59 +0100] "GET / HTTP/2.0" 200 1288 "-" "Mozilla/5.0 (X11; OpenBSD amd64; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"

The result of the process occc upgrade:

$ php-7.3 occ upgrade      
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
Updating database schema
Updated database
Updating <files_rightclick> ...
Updated <files_rightclick> to 0.13.0
Updating <viewer> ...
Updated <viewer> to 1.2.0
Checking for update of app accessibility in appstore
Checked for update of app "accessibility" in appstore 
Checking for update of app activity in appstore
Checked for update of app "activity" in appstore 
Checking for update of app calendar in appstore
Checked for update of app "calendar" in appstore 
Checking for update of app cloud_federation_api in appstore
Checked for update of app "cloud_federation_api" in appstore 
Checking for update of app comments in appstore
Checked for update of app "comments" in appstore 
Checking for update of app contacts in appstore
Update app contacts from appstore
Checked for update of app "contacts" in appstore 
Checking for update of app dav in appstore
Checked for update of app "dav" in appstore 
Checking for update of app federatedfilesharing in appstore
Checked for update of app "federatedfilesharing" in appstore 
Checking for update of app federation in appstore
Checked for update of app "federation" in appstore 
Checking for update of app files in appstore
Checked for update of app "files" in appstore 
Checking for update of app files_pdfviewer in appstore
Checked for update of app "files_pdfviewer" in appstore 
Checking for update of app files_rightclick in appstore
Update app files_rightclick from appstore
Checked for update of app "files_rightclick" in appstore 
Checking for update of app files_sharing in appstore
Checked for update of app "files_sharing" in appstore 
Checking for update of app files_texteditor in appstore
Checked for update of app "files_texteditor" in appstore 
Checking for update of app files_trashbin in appstore
Checked for update of app "files_trashbin" in appstore 
Checking for update of app files_versions in appstore
Checked for update of app "files_versions" in appstore 
Checking for update of app files_videoplayer in appstore
Checked for update of app "files_videoplayer" in appstore 
Checking for update of app firstrunwizard in appstore
Checked for update of app "firstrunwizard" in appstore 
Checking for update of app gallery in appstore
Checked for update of app "gallery" in appstore 
Checking for update of app logreader in appstore
Checked for update of app "logreader" in appstore 
Checking for update of app lookup_server_connector in appstore
Checked for update of app "lookup_server_connector" in appstore 
Checking for update of app nextcloud_announcements in appstore
Checked for update of app "nextcloud_announcements" in appstore 
Checking for update of app notes in appstore
Checked for update of app "notes" in appstore 
Checking for update of app notifications in appstore
Checked for update of app "notifications" in appstore 
Checking for update of app oauth2 in appstore
Checked for update of app "oauth2" in appstore 
Checking for update of app ocsms in appstore
Update app ocsms from appstore
Migrate legacy conversation reading states

 Done
    1/1 [============================] 100%
Checked for update of app "ocsms" in appstore 
Checking for update of app password_policy in appstore
Checked for update of app "password_policy" in appstore 
Checking for update of app privacy in appstore
Checked for update of app "privacy" in appstore 
Checking for update of app provisioning_api in appstore
Checked for update of app "provisioning_api" in appstore 
Checking for update of app recommendations in appstore
Checked for update of app "recommendations" in appstore 
Checking for update of app richdocuments in appstore
Update app richdocuments from appstore
Checked for update of app "richdocuments" in appstore 
Checking for update of app serverinfo in appstore
Checked for update of app "serverinfo" in appstore 
Checking for update of app sharebymail in appstore
Checked for update of app "sharebymail" in appstore 
Checking for update of app support in appstore
Checked for update of app "support" in appstore 
Checking for update of app survey_client in appstore
Checked for update of app "survey_client" in appstore 
Checking for update of app systemtags in appstore
Checked for update of app "systemtags" in appstore 
Checking for update of app tasks in appstore
Checked for update of app "tasks" in appstore 
Checking for update of app theming in appstore
Checked for update of app "theming" in appstore 
Checking for update of app twofactor_backupcodes in appstore
Checked for update of app "twofactor_backupcodes" in appstore 
Checking for update of app twofactor_totp in appstore
Checked for update of app "twofactor_totp" in appstore 
Checking for update of app twofactor_u2f in appstore
Checked for update of app "twofactor_u2f" in appstore 
Checking for update of app unsplash in appstore
Update app unsplash from appstore
Checked for update of app "unsplash" in appstore 
Checking for update of app updatenotification in appstore
Checked for update of app "updatenotification" in appstore 
Checking for update of app viewer in appstore
Checked for update of app "viewer" in appstore 
Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in appstore 
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Reset log level

After, I copied the previous config.php to the new folder nextcloud/config/

And I disable the maintenance mode:

$ php-7.3 occ maintenance:mode --off
Maintenance mode disabled

Any idea ?!

Nobody have one idea to resolve this problem?
I cant use my server NC since during this problem (me and my family) :frowning:

OK, after upgrade to v17.0.1, it’s run correctly!

I explain in french here :

:smiley: “happy D!” :smiley: