Upgraded to latest - Now connection refused?

All,

Just upgraded to the latest Nextcloud and now I can’t get into the docker.

Running R710 Dell Server, 48 Gb ram, 30Tb space on Unraid.
Docker container is linuxserver.

This is the message I get:

Here is the text in case you can’t see it:

Internal Server Error
The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details
Remote Address: 192.168.1.29
Request ID: VuYu7IeO7IvoqC2iKHZl

I’m stumped - I haven’t had any problems for over a year.

I have checked all the usual culprits maintenance mode off, checked the files etc using occ.

Looking for a direction to head in to solve this…

I suspect its probably something dumb I did - these things usually are…

Thanks in advance

Toolmanz

Well a little more information on the problem … and it seems I’m not the only one with this issue.

The docker is running and except for the webui seems to be functioning as expected.

I did all of the maintenance as I would normally do with files and indices through OCC … not a problem.

I checked the PHP version and it is up to date (Jan 7-2021) [php -v in terminal]

“PHP 7.4.14 (cli) (built: Jan 7 2021 11:46:25) ( NTS )
Copyright © The PHP Group
Zend Engine v3.4.0, Copyright © Zend Technologies
with Zend OPcache v7.4.14, Copyright ©, by Zend Technologies”

So thats not it … I have had that problem before and fixed it with an update.

I can still access most of my files through the Nextcloud sync client in Windows so not a complete loss.

It’s got to be with the webui only… but can’t think what that would be since nothing else changed.

I use reverse proxy for remote access but get the same error when I access locally - so that’s not it…

I get the same error in Linux Mint when I try to use the webui …at least its consistent🙄

Well I’ll bump along and noodle on this some more…perhaps there are others that run into the same problem and will wake up the NC folks to the problem.

I left the same post on the linuxserver.io support forum.

Ill post back if I find a solution …:thinking:

Cheers

Toolmanz

I woke up to the same issue. I use nextcloud on a docker environment with Odroid HC1 hardware running with OMV 5.

Please update if you figure out what is the issue and how to fix it.

Well, going to dive into the logs for Nginx and NC and see if that provides a clue.

There has to be a clue in there somewhere. :nerd_face:

Cheers

Toolmanz

Hi, had same error message today after update of unsplash app. I had to disable this app.

sudo -u www-data php occ app:disable unsplash

Maybe this helps.

Regard,
Michael

I don’t have that app. Therefore I do not believe it is related to that, at least in my case.
No such app enabled: unsplash

Nextcloud php error.log shows wrong dates;
"
[17-Jan-2021 22:14:04] NOTICE: Terminating …
[17-Jan-2021 22:14:04] NOTICE: exiting, bye-bye!
[07-Jun-2071 20:53:52] NOTICE: fpm is running, pid 362
[07-Jun-2071 20:52:32] NOTICE: ready to handle connections
[07-Jun-2071 20:51:04] NOTICE: Terminating …
[07-Jun-2071 20:44:08] NOTICE: exiting, bye-bye!
"
besides that, there is no indication. This thing happened on 17th at night, after that entry, the date jumps to 2071… ???

Nextcloud nginx error.log also shows wrong dates after some errors;
"
2021/01/17 22:14:04 [error] 1958#1958: *101957 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Class ‘OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin’ not found in /config/www/nextcloud/remote.php:61
Stack trace:
#0 /config/www/nextcloud/remote.php(169): handleException(Object(Doctrine\DBAL\DBALException))
#1 {main}
thrown in /config/www/nextcloud/remote.php on line 61” while reading response header from upstream, client: 192.168.1.70, server: _, request: “PROPFIND /remote.php/dav/files/Bolkar/-%20Games HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “192.168.1.100”
2021/01/17 22:14:04 [error] 1958#1958: *101519 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Class ‘OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin’ not found in /config/www/nextcloud/remote.php:61
Stack trace:
#0 /config/www/nextcloud/remote.php(169): handleException(Object(Doctrine\DBAL\DBALException))
#1 {main}
thrown in /config/www/nextcloud/remote.php on line 61” while reading response header from upstream, client: 192.168.1.70, server: _, request: “PROPFIND /remote.php/dav/files/Bolkar/-%20My%20Music HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “192.168.1.100”
2021/01/17 22:14:04 [error] 1958#1958: *101957 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Class ‘OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin’ not found in /config/www/nextcloud/remote.php:61
Stack trace:
#0 /config/www/nextcloud/remote.php(169): handleException(Object(Doctrine\DBAL\DBALException))
#1 {main}
thrown in /config/www/nextcloud/remote.php on line 61” while reading response header from upstream, client: 192.168.1.70, server: _, request: “PROPFIND /remote.php/dav/files/Bolkar/-%20My%20Pictures HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “192.168.1.100”
2071/05/19 15:45:28 [error] 377#377: *682 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.70, server: _, request: “PROPFIND /remote.php/dav/files/Bolkar/-%20My%20Music HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “192.168.1.100”
"

What is the ExceptionLoggerPlugin ? I can not see it on the list of plugins, perhaps some internal logger?

For now, I reverted to an older image linuxserver/nextcloud:arm32v7-version-20.0.4 and everything is back to normal. I will wait and see if they fix the issue, or a workaround…

I don’t have that app but thanks for the suggestion!

Cheers

Toolmanz

Bolkar, as for whether it has a date and time issue I’ll have to look at that.

I may revert as well … seems a reasonable compromise. Since the latest was “only” a maintenance release.

I looked at error and access logs for both NC and NGINX (I use a reverse proxy for remote access) and there are definitely some issues there …just don’t know what it is… :weary:

I’ll keep working on it …also working with the folks at linuxserver.io which is the author f the NC docker I use.

Cheers

Toolmanz

Ok reverted back to 20.0.4 and all is working as normal.

Except I now have a “sexy” dashboard component with weather and other stuff. Nice!

Cheers

Toolmanz

I got a response to my post on unraid - linuxserver.io that I think may be helpful and may resolve the issue:

user: raz0r3dge

https://forums.unraid.net/topic/48383-support-linuxserverio-nextcloud/page/173/

Might be useful.

Cheers

Toolmanz

I have the same problom,I am using HPE microserverGen8 with omv5,but not docker.I am running NC with php7.3&nginx.when I upgrade to 20.05 the problom is out.and back to 20.04 the error is the same. :face_with_thermometer:
iOS app is working well and the windows10 app too ,but web.

2021/01/19 11:07:51 [error] 51775#51775: *393 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Class ‘OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin’ not found in /./remote.php:61
Stack trace:
#0 /./remote.php(169): handleException(Object(Doctrine\DBAL\DBALException))
#1 {main}
thrown in /./remote.php on line 61” while reading response header from upstream, client: 2400:4050:8cc0:3d00:49bf:a102:3eb7:f76e, server: , request: “PROPFIND /remote.php/dav/files/mikasun/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.3-fpm.sock:”, host: “x.x.x.x”
2021/01/19 11:07:52 [error] 51775#51775: *393 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user ‘omvdamin’@‘localhost’ (using password: YES) in /./lib/private/DB/Connection.php:72
Stack trace:
#0 /./3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1449): OC\DB\Connection->connect()
#1 /./3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(892): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /./lib/private/DB/Connection.php(202): Doctrine\DBAL\Connection->executeQuery(‘SELECT * FROM `…’, Array, Array, NULL)
#3 /./3rdparty/doctrine/d” while reading response header from upstream, client: 2400:4050:8cc0:3d00:49bf:a102:3eb7:f76e, server: , request: “GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.3-fpm.sock:”, host: “x.x.x.”

mysql -u root -p
Enter password:
mysql> Use nextcloud;
mysql> select * from oc_storages;
mysql> TRUNCATE TABLE oc_filecache;
mysql> quit;

clean the DB cache,I am back, I hope the same as everyone.

I tried the new 20.0.6 docker image, and the issue is still there. I will continue to use 20.0.4 docker image…
Let me know if you find a solution.

Thanks for this Bolkar …was just about to upgrade … guess I’ll wait for a fix A-G-A-I-N …

That’s 2 in a row!

Cheers

toolmanz

Here is the solution (at least this is what worked for me);
1- first run this command " sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC 648ACFD622F3D138"
2- add "deb http://deb.debian.org/debian buster-backports main” in your /etc/apt/sources.list.d file
3- do a apt update
4- install “apt install -t buster-backports libseccomp2”
All of the above you do on your debian NOT inside the nextcloud docker.
5- Now go back to your docker image and recreate the nextcloud docker with the :latest one instead of the 20.0.4 we were using.

This allowed me to use the latest linuxserver/nextcloud:latest
I could also upgrade to 20.0.6 with no problem.
I hope this resolves the issue for you as well.
Cheers!