nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.42k stars 4.07k forks source link

Internal Server Error after Upgrade from 20.0.6 to 21.0.1 - no login possible anymore #26573

Closed Githopp192 closed 3 years ago

Githopp192 commented 3 years ago

Actual behaviour

NC Upgrade: from 20.0.6 to 21.0.1

LOGIN to the CLOUD is not possible anymore

(it remains to mention that the release 20.0.9 was skipped, although announced via GUI )!?)

2021-04-14T18:02:09+0000 ZAibphg2Gb [info] storage location: /media/updater-ocxxxxxx/downloads/nextcloud/ 2021-04-14T18:02:09+0000 ZAibphg2Gb [info] call opcache_reset() 2021-04-14T18:02:09+0000 ZAibphg2Gb [info] end of finalize() 2021-04-14T18:02:09+0000 ZAibphg2Gb [info] endStep("12") 2021-04-14T18:02:09+0000 ZAibphg2Gb [info] ### update of code successful. 2021-04-14T18:05:58+0000 ZAibphg2Gb [info] maintenance mode is disabled - return code: 0 2021-04-14T23:29:50+0000 hFMVCO5GKg [info] updater cli is executed 2021-04-14T23:29:50+0000 hFMVCO5GKg [info] currentStep() 2021-04-14T23:29:50+0000 hFMVCO5GKg [info] current version: 21.0.1 build time: 2021-04-08T13:32:52+00:00 bd555dbe8568b2509bd7d82fabbe38d76c86afbe 2021-04-14T23:29:50+0000 hFMVCO5GKg [info] getUpdateServerResponse() 2021-04-14T23:29:50+0000 hFMVCO5GKg [info] updaterServer: https://updates.nextcloud.com/updater_server/ 2021-04-14T23:29:50+0000 hFMVCO5GKg [info] releaseChannel: stable 2021-04-14T23:29:50+0000 hFMVCO5GKg [info] internal version: 21.0.1.1 2021-04-14T23:29:50+0000 hFMVCO5GKg [info] updateURL: https://updates.nextcloud.com/updater_server/?version=21x0x1x1xxxstablexx2021-04-08T13%3A32%3A52%2B00%3A00+bd555dbe8568b2509bd7d82fabbe38d76c86afbex7x4x16 2021-04-14T23:29:50+0000 hFMVCO5GKg [info] checkForUpdate() Array

ScreenShot1392

I explicitly checked if propably the appdata_xxx instance-directory has got wrong permissions - but everything was ok (all on apache:apache permissions).

The only workaround here was to setup a new config.php with a new "instanceid" .. the consequence of that, was , that a new "appdata_xxxxx" Instance-directory data directory was created.

After that i tried to restore some users data (avatar & more) to the new instance-Directory - but - the Server crashed again.

I had to rebuild a new Instanceid again - now the user Login is possible.

One additional issue is here:

So i suppose - some of my users lost access to their encrypted folders ?!

Steps to reproduce

repeat the above steps

Expected behaviour

I think, this i an important issuse/case ! If you would need additional information (log report & more) - let me know.

Client configuration details

--------------------------------

Windows 10/Mac

Server configuration details

--------------------------------

Version: Intel(R) Xeon(R) E-2136 CPU @ 3.30GHz Max Speed : 4300 MHz Current Speed: 3300 MHz Memory: 16GB

Operating System: CentOS Linux release 8.3.2011

Upstream OS : Derived from Red Hat Enterprise Linux 8.3

Webserver: Apache/2.4.37 (centos)

Database: mysql 10.3.27-MariaDB,

PHP version: PHP Version => 7.4.16

[PHP Modules] apcu bcmath bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext gmp hash iconv igbinary imagick intl json ldap libsmbclient libxml mbstring memcached msgpack mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline redis Reflection session shmop SimpleXML smbclient sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache

Nextcloud: - version: 21.0.1.1

Updated from an older Nextcloud/ownCloud or fresh install:

Upgrade from NC 20.0.6

Where did you install Nextcloud from:

Origin NC Source

Signing status:

Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here.

No errors have been found.

{ "system": { "memcache.distributed": "\OC\Memcache\Redis", "memcache.locking": "\OC\Memcache\Redis", "memcache.local": "\OC\Memcache\APCu", "filelocking.enabled": true, "redis": { "host": "REMOVED SENSITIVE VALUE", "timeout": 1.5, "password": "REMOVED SENSITIVE VALUE" }, "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ ], "datadirectory": "REMOVED SENSITIVE VALUE", "htaccess.RewriteBase": "\/", "overwriteprotocol": "https", "dbtype": "mysql", "version": "21.0.1.1", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "mysql.utf8mb4": true, "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "maintenance": false, "theme": "", "loglevel": 2, "auth.bruteforce.protection.enabled": true, "check_for_working_htaccess": true, "updater.release.channel": "stable", "logfile": "\/media\/log\/nextcloud.log", "instanceid": "REMOVED SENSITIVE VALUE", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtpsecure": "tls", "mail_smtpauth": 1, "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "mail_smtphost": "REMOVED SENSITIVE VALUE", "session_lifetime": 1200, "session_keepalive": false, "default_phone_region": "CH", "knowledgebaseenabled": false, "log_rotate_size": 3145728, "mail_sendmailmode": "smtp", "app_install_overwrite": [ "passman",

Enabled:

kesselb commented 3 years ago

nextcloud.log is missing. The updater.log looks fine. Files are replaced successfully.

"memcache.local": "\OC\Memcache\APCu",

APCu is causing issues on upgrade via CLI: https://github.com/nextcloud/server/issues/25742

So i suppose - some of my users lost access to their encrypted folders ?!

Copy nextcloud.log and updater.log. Restore the working configuration from the backup.

Githopp192 commented 3 years ago

Update.log appended - the other logs will follow

updater.log

about the working configuration .. i think you mean config.php .. that's i did - restore the old config.php - but replaced the config with a new instance_id (that one, which was replaced by NC).

Nextcloud will crash with the old appdata_ocxxxxx folder and the appropriate instanceid in config.php

Of course .. i could again restore this folder (appdata_ocxxx) and replace the old "instanceid" in the config.php

But the NC would crash again i think. There must be some inconsistencies into the appdata_ocxxx folder !?

Only with the config.php with a new instanceid NC does run again.

Githopp192 commented 3 years ago

NC 21.0.1 crashed again with the new appdata_ocxxx instance. Internal Server ERROR Many users are affected.

The question here:

I think about to go back to version 20.0.6. At least i do prepare the backup-stuff, that i will be able to quickly restore the whole bunch (nextcloud code & appdata_ocxxxx). No Restore of user data & database due to changed data already.

Update: 16.4.21/10:30

ScreenShot1384

For that moment NC 21.0.1 is running again.

the only question remains - for how long. And where the dog might be buried.

Githopp192 commented 3 years ago

Now - the Environment is running stable - finally i did run --> occ files:scan-app-data

Thanks for your support & and i wish you a great day