Nextcloud AIO Login instead of server up

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): AIO Docker
Operating system and version (eg, Ubuntu 20.04): Docker Synology NAS
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): replace me

The issue you are facing:
System was working fine, but this morning I noticed my computer was not syncing with the server, so when I tried logging in on the web browser to nexctloud.mydomain.com I receive an Internal Server error, so I then go to localipaddress:8080 but it's giving me the AIO Login screen asking for a password that I didn't save

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

Steps to replicate it:

  1. restart nextcloud aio docker containers
  2. direct browser to nextcloud.mydomain.com
  3. when logging in with admin user and pass I get the below message:
## 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: 172.XX.X.X
* Request ID: xxxxxxxxxxxxxxxx

  1. Also, when going to https://localipaddress:8080 I get the Nextcloud AIO Login screen, but I didn't save that password, so I don't have it.

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

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

PASTE HERE

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

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Hi, see How to re-obtain/retreive the Nextcloud AIO password? · nextcloud/all-in-one · Discussion #1786 · GitHub

Thank you. I was able to obtain the password and login to the AIO interface.

Nevertheless, after logging in, I stopped and restarted all containers, and then tried again going to nextcloud.mydomain.com and after logging in with admin user and password I get the following Internal Server Error screen:

I guess you will need to check the nextcloud log which is usually stored in /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/data/nextcloud.log

These are the latest timestamps on that log. But I can’t figure out if any of these is causing the problem.
I am trying to log in using the admin account, which is not an LDAP account, but a local account.

If I understand correctly the issue seems to be that it can’t connect with the LDAP server, which is odd since this has been working without a problem for a couple months and nothing has changed (that I know of). The ldap server is pingable from withing the nextcloud-aio-nextcloud container

{"reqId":"OnZbaSACTWl02sAvo9wj","level":3,"time":"2024-02-14T22:03:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArc>
{"reqId":"OnZbaSACTWl02sAvo9wj","level":3,"time":"2024-02-14T22:03:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"index","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArchitecture: a>
{"reqId":"IbzxQBQBE9YDjDJ7CC0q","level":3,"time":"2024-02-14T22:03:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nex>
{"reqId":"IbzxQBQBE9YDjDJ7CC0q","level":3,"time":"2024-02-14T22:03:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"Lost connection to LDAP server.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0>
{"reqId":"IbzxQBQBE9YDjDJ7CC0q","level":3,"time":"2024-02-14T22:03:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"OC\\ServerNotAvailableException: Lost connection to LDAP server.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) >

Here are more lines on the log… it seems lines keep getting added with LDAP users trying to sync their computers…

{"reqId":"mMAOMnAhPuFuIV5oxc3O","level":3,"time":"2024-02-14T22:31:45+00:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner::processFiles, exception: Lost connection to LDAP server.","userAgent":"--","version":"27.1.5.1","exception":{"Exception":"OC\\ServerNotAvailable>
{"reqId":"cDarSuuOAjxTXKx99eQu","level":3,"time":"2024-02-14T22:32:31+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArc>
{"reqId":"cDarSuuOAjxTXKx99eQu","level":3,"time":"2024-02-14T22:32:31+00:00","remoteAddr":"172.23.0.1","user":"--","app":"index","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArchitecture: a>
{"reqId":"iUbhCbRpYhMjLEWE6IX2","level":3,"time":"2024-02-14T22:32:31+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArc>
{"reqId":"iUbhCbRpYhMjLEWE6IX2","level":3,"time":"2024-02-14T22:32:31+00:00","remoteAddr":"172.23.0.1","user":"--","app":"index","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArchitecture: a>
{"reqId":"7WyEktZB8wEc2NIHSL2w","level":3,"time":"2024-02-14T22:32:31+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nex>
{"reqId":"7WyEktZB8wEc2NIHSL2w","level":3,"time":"2024-02-14T22:32:31+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"Lost connection to LDAP server.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0>
{"reqId":"7WyEktZB8wEc2NIHSL2w","level":3,"time":"2024-02-14T22:32:31+00:00","remoteAddr":"172.23.0.1","user":"--","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"OC\\ServerNotAvailableException: Lost connection to LDAP server.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) >
{"reqId":"JpZ4qyYOidNqKgvLLXOo","level":3,"time":"2024-02-14T22:33:32+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArc>
{"reqId":"JpZ4qyYOidNqKgvLLXOo","level":3,"time":"2024-02-14T22:33:32+00:00","remoteAddr":"172.23.0.1","user":"--","app":"index","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArchitecture: a>
{"reqId":"G9mBY66nrBNrAWAVZ1v9","level":3,"time":"2024-02-14T22:33:32+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArc>
{"reqId":"G9mBY66nrBNrAWAVZ1v9","level":3,"time":"2024-02-14T22:33:32+00:00","remoteAddr":"172.23.0.1","user":"--","app":"index","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArchitecture: a>
{"reqId":"nN6gAflsXO4cTvMgOctp","level":3,"time":"2024-02-14T22:33:33+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nex>
{"reqId":"nN6gAflsXO4cTvMgOctp","level":3,"time":"2024-02-14T22:33:33+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"Lost connection to LDAP server.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0>
{"reqId":"nN6gAflsXO4cTvMgOctp","level":3,"time":"2024-02-14T22:33:33+00:00","remoteAddr":"172.23.0.1","user":"--","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"OC\\ServerNotAvailableException: Lost connection to LDAP server.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) >
{"reqId":"KiozGSDIRGqPhNUarNNz","level":3,"time":"2024-02-14T22:34:34+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArc>
{"reqId":"KiozGSDIRGqPhNUarNNz","level":3,"time":"2024-02-14T22:34:34+00:00","remoteAddr":"172.23.0.1","user":"--","app":"index","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArchitecture: a>
{"reqId":"Ar0WNEoQQC3z07z0tMd7","level":3,"time":"2024-02-14T22:34:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArc>
{"reqId":"Ar0WNEoQQC3z07z0tMd7","level":3,"time":"2024-02-14T22:34:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"index","method":"GET","url":"/index.php/204","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0 ClientArchitecture: arm64 OsArchitecture: a>
{"reqId":"anODtQ5NcAE88bTg9m6r","level":3,"time":"2024-02-14T22:34:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"Exception thrown: OC\\ServerNotAvailableException","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nex>
{"reqId":"anODtQ5NcAE88bTg9m6r","level":3,"time":"2024-02-14T22:34:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"Lost connection to LDAP server.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) (Nextcloud, osx-23.2.0>
{"reqId":"anODtQ5NcAE88bTg9m6r","level":3,"time":"2024-02-14T22:34:35+00:00","remoteAddr":"172.23.0.1","user":"--","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/fc0b725b-d896-48a7-ab5d-ac3022e0f873/","message":"OC\\ServerNotAvailableException: Lost connection to LDAP server.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.12.0git (build 20569) >

indeed it seems the problem stems from nextcloud not being able to communicate with the LDAP server…

I disabled the LDAP configuration using the occ command sudo -u www-data php occ ldap:set-config s01 ldapConfigurationActive 0 as suggested in this post and I can now login using the local admin user, although all ldap users dont show up as users on the system.

According to that post I am thinking this could be some sort of ssl certificate issue since I do have LDAPS configured.

The LDAP server is behind a reverse proxy that automatically renews the letsencypt certificate.

If the reverse proxy renewed the certificate for the ldap subdomain, do I need to do anything in Nextcloud?

Problem solved !

I first verified that the nextcloud container was able to communicate with the LDAP server on port 636 by issuing the following command from withing the nextcloud-aio-nextcloud container:

543a7599cc5:/var/www/html# nc -vz ldap.mydomain.com 636
Connection to ldap.mydomain.com (136.28.46.40) 636 port [tcp/ldaps] succeeded!

I then simply restarted the LDAP server and then everything worked back again so all users can log in to Nextcloud.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.