Crash after upgrade to 22.2.3 from 21.0.7 (Solved)

[details=“Support intro”]

Nextcloud version (eg, 20.0.5): 22.2.3 from 21.0.7
Operating system and version (eg, Ubuntu 20.04): web server on IONOS
Apache or nginx version (eg, Apache 2.4.25): Apache (don’t know more, sorry)
PHP version (eg, 7.4): 7.3

The issue you are facing:
I have a big problem, after upgrde from 21.0.7 to 22.2.3 through web updater I can’t login, even I can’t see the login web, only this mesagge:
fallo next

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

Steps to replicate it:

  1. Try to enter to the web
  2. Upload all the files by ftp
  3. Always the same

The output of your Nextcloud log in Admin > Logging:

> {"reqId":"X752jkg31A-xX-@Q9wzhvQAAAAk","level":2,"time":"2020-11-25T15:21:50+00:00","remoteAddr":"37.15.122.142","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/","message":"Could not detect any host in https:///nextcloud/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0","version":""}
> {"reqId":"X752jkg31A-xX-@Q9wzhvQAAAAk","level":2,"time":"2020-11-25T15:21:50+00:00","remoteAddr":"37.15.122.142","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/","message":"Could not detect any host in http:///nextcloud/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0","version":""}
> {"reqId":"X752jkg31A-xX-@Q9wzhvQAAAAk","level":3,"time":"2020-11-25T15:21:51+00:00","remoteAddr":"37.15.122.142","user":"--","app":"jsresourceloader","method":"GET","url":"/nextcloud/","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0","version":""}
> {"reqId":"X7525piiihiwcXIwbohhfwAAAAc","level":2,"time":"2020-11-25T15:23:18+00:00","remoteAddr":"37.15.122.142","user":"--","app":"no app in context","method":"POST","url":"/nextcloud/index.php","message":"Could not detect any host in https:///nextcloud/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0","version":""}
> {"reqId":"X7525piiihiwcXIwbohhfwAAAAc","level":2,"time":"2020-11-25T15:23:18+00:00","remoteAddr":"37.15.122.142","user":"--","app":"no app in context","method":"POST","url":"/nextcloud/index.php","message":"Could not detect any host in http:///nextcloud/data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0","version":""}
> {"reqId":"X7525piiihiwcXIwbohhfwAAAAc","level":3,"time":"2020-11-25T15:23:18+00:00","remoteAddr":"37.15.122.142","user":"--","app":"jsresourceloader","method":"POST","url":"/nextcloud/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0","version":"20.0.2.2"}

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

> <?php
> $CONFIG = array (
>   'instanceid' => 'oct6xcvcqnsa',
>   'passwordsalt' => 'x',
>   'secret' => 'x',
>   'trusted_domains' => 
>   array (
>     0 => 'www.singulargreen.com',
>   ),
>   'datadirectory' => '/homepages/2/d546902342/htdocs/nextcloud_data',
>   'dbtype' => 'mysql',
>   'version' => '22.2.2.0',
>   'overwrite.cli.url' => 'https://www.singulargreen.com/nextcloud',
>   'dbname' => 'x',
>   'dbhost' => 'x',
>   'dbport' => '',
>   'dbtableprefix' => 'oc_',
>   'mysql.utf8mb4' => true,
>   'dbuser' => 'x',
>   'dbpassword' => x',
>   'installed' => true,
>   'mail_from_address' => 'info',
>   'mail_smtpmode' => 'smtp',
>   'mail_sendmailmode' => 'smtp',
>   'mail_domain' => 'singulargreen.com',
>   'mail_smtpsecure' => 'tls',
>   'mail_smtpauth' => 1,
>   'mail_smtphost' => 'smtp.1und1.de',
>   'mail_smtpport' => '587',
>   'mail_smtpname' => 'info@singulargreen.com',
>   'mail_smtppassword' => 'x',
>   'app_install_overwrite' => 
>   array (
>     0 => 'files_external_dropbox',
>   ),
>   'maintenance' => false,
>   'theme' => '',
>   'loglevel' => 0,
>   'updater.secret' => 'x',
> );

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

I can't acces to that file.

Please, any idea for put it on again?
Thanks a lot.

These log entries are very old and don’t show the current error!

For the webserver log, sometimes you have a folder in your webspace with such logs or some web interface from the provider.

Do you have ssh access to run some commands from commandline?

The log is what I have in nextcloud.log, where can I find other log with more information?
I think that I can have ssh access, but I don’t know how… But I can try.
Please, tell me what commands can I run, I need the sistem up.
Thanks.

Hello again, I found 2 logs more:
The first is updater.log, it’s this:
https://drive.google.com/file/d/1TtxyWp07b8hwOex7S9r2u_gK2uWxyS6D/view?usp=sharing

And the second is nextcloud.log in my data folder, is this link (it’s 126Mb)
https://drive.google.com/file/d/1oarmHKE9wBVQhCvJnQNiRSocZrT4T1u8/view?usp=sharing

Thanks for helping!

did you check the permits? try sudo chown -R www-data:www-data /var/www/nextcloud

Generally right now a have the same issue but only on the fresh install as a second instance.

@hurior any progress here?

External Storage backend for Dropbox is not supported.

Perhaps uninstall it:

sudo -u www-data php occ app:remove files_external_dropbox

occ docu

Hi everyone and thanks for the support.

In the end I did a fresh installation and I found the error (I think a big one): I have MySQL 5.7, and NC 22 works with 8 or newer, so I think that on the update the data was broken …: frowning:

I tryed a fresh installation 22+5.7 and the same problem. And I can’t have MySQL 8 because my server is with IONOS and I don’t have support for that. So I make a new DB with MariaDB 10 and a new fresh installation with NC22 and it works fine.

So, for me to solve the problem I have to lost all the data (I’ll try to recover but I don’t know if it’s possible…), at least I have all the files.

Thanks for the help.
See you.

If you have all the data, try put them in appriopriate users’ data location: /pathToNCdata/data/userID/files/ and scan the files:

cd /var/www/nextcloud/

sudo -u www-data php occ files:scan --all

This topic was automatically closed after 4 days. New replies are no longer allowed.