Cant login to nextcloud

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): 23.0.10.1
Operating system and version (eg, Ubuntu 20.04): ubuntu 21.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.46
PHP version (eg, 7.4): replace me

The issue you are facing:
Can’t login to nextcloud anymore.
I can access the login interface, but when I press the login button with the credentials filled I get:

Internal Server Error

The server is unable to execute your request.

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

The server log file may provide more information.
Technical information

 Remote address: 192.168.1.1
 Request ID: ZHhIjO24bTsCYjK4X0OX

Where 192.168.1.1 is my firewall IP and it shoud be 192.168.1.200

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

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

{"reqId":"JYPAlNS9t2RPVAWT9VRB","level":0,"time":"2023-03-27T17:41:44+02:00","remoteAddr":"192.168.1.1","user":"--","app":"extract","method":"OPTIONS","url":"/","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"23.0.10.1","data":{"app":"extract"}}

Hi, try to check the files ownersip in /var/www/html/nextcloud (or other specific path of your personal Apache content root). It must be www-data:www-data

Hi,
Thanks for answering. I tried to set the permissions and ownership but no luck.
Weird thing is some users can login and other get the error.
When I login as an admin it works, I can open setting or files, but If I go to user menu I get that error message.

Ok, problem was from corrupted ldap app.
Reinstalling the app did the trick, thanks