Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Nextcloud 14] Internal Server Error #11205

Closed
untilbit opened this issue Sep 13, 2018 · 13 comments
Closed

[Nextcloud 14] Internal Server Error #11205

untilbit opened this issue Sep 13, 2018 · 13 comments
Labels

Comments

@untilbit
Copy link

untilbit commented Sep 13, 2018

I have installed Nextcloud and was working for a few hours and then it's showing an Internal Server Error. I have checked the server log and haven't found what's the problem.

BTW, I have other apps working fine. The issue is just with nextcloud 14.

Client 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: 99.88.77.66
    Request ID: J7wh8ZzJdBW0OTsvCaf7

Server Log

{"reqId":"E2TFLfYzmEWyyaK6D5r4","level":3,"time":"2018-09-13T13:32:05+00:00","remoteAddr":"99.88.77.66","user":"MyUser","app":"index","method":"GET","url":"\/","message":{"Exception":"Doctrine\\DBAL\\Ex$
@timm2k
Copy link
Contributor

timm2k commented Sep 13, 2018

Your server log is incomplete. Can you please post more content of your server log?
Have a look at it with "less" or "cat" and not with "vi".

And check first that your database is reachable if you use MySQL or PostgreSQL.

@nebulade
Copy link

This also happens for me, during first time LDAP login. The error logs are:

{"reqId":"uWEAWO931jFZJ443scyn","level":3,"time":"2018-09-13T13:34:30+00:00","remoteAddr":"172.18.0.1","user":"--","app":"index","method":"POST","url":"\/index.php\/login","message":{"Exception":"Error","Message":"Call to a member function getBackendClassName() on null","Code":0,"Trace":[{"file":"\/app\/data\/apps\/dav\/lib\/HookManager.php","line":104,"function":"updateUser","class":"OCA\\DAV\\CardDAV\\SyncService","type":"->","args":["*** sensitive parameter replaced***"]},{"file":"\/app\/data\/apps\/dav\/lib\/HookManager.php","line":81,"function":"postCreateUser","class":"OCA\\DAV\\HookManager","type":"->","args":[{"uid":"*** sensitive parameter replaced ***"}]},{"function":"OCA\\DAV\\{closure}","class":"OCA\\DAV\\HookManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/app\/code\/lib\/private\/Hooks\/EmitterTrait.php","line":99,"function":"call_user_func_array","args":[{"__class__":"Closure"},["*** sensitive parameter replaced ***"]]},{"file":"\/app\/code\/lib\/private\/Hooks\/PublicEmitter.php","line":36,"function":"emit","class":"OC\\Hooks\\BasicEmitter","type":"->","args":["\\OC\\User","assignedUserId",["*** sensitive parameter replaced ***"]]},{"file":"\/app\/data\/apps\/user_ldap\/lib\/Access.php","line":618,"function":"emit","class":"OC\\Hooks\\PublicEmitter","type":"->","args":["\\OC\\User","assignedUserId",["*** sensitive parameter replaced ***"]]},{"file":"\/app\/data\/apps\/user_ldap\/lib\/Access.php","line":875,"function":"dn2ocname","class":"OCA\\User_LDAP\\Access","type":"->","args":["cn=uid-54f8d364-6904-48cc-8592-d6e26bd557c8,ou=users,dc=cloudron","Johannes Zellner","*** sensitive parameter replaced ***",false,"*** sensitive parameter replaced ***"]},{"function":"OCA\\User_LDAP\\{closure}","class":"OCA\\User_LDAP\\Access","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/app\/data\/apps\/user_ldap\/lib\/Access.php","line":880,"function":"array_filter","args":[["*** sensitive parameter replaced ***"],{"__class__":"Closure"}]},{"file":"\/app\/data\/apps\/user_ldap\/lib\/Access.php","line":843,"function":"fetchListOfUsers","class":"OCA\\User_LDAP\\Access","type":"->","args":["(&(objectclass=user)(|(username=nebulon)(mail=nebulon)))",["entryuuid","nsuniqueid","objectguid","guid","ipauniqueid","dn","uid","samaccountname","memberof","uid","","mail","displayname","","jpegphoto","thumbnailphoto"]]},{"file":"\/app\/data\/apps\/user_ldap\/lib\/User_LDAP.php","line":172,"function":"fetchUsersByLoginName","class":"OCA\\User_LDAP\\Access","type":"->","args":["*** sensitive parameter replaced ***",["entryuuid","nsuniqueid","objectguid","guid","ipauniqueid","dn","uid","samaccountname","memberof","uid","","mail","displayname","","jpegphoto","thumbnailphoto"]]},{"file":"\/app\/data\/apps\/user_ldap\/lib\/User_LDAP.php","line":189,"function":"getLDAPUserByLoginName","class":"OCA\\User_LDAP\\User_LDAP","type":"->","args":["*** sensitive parameter replaced ***"]},{"function":"checkPassword","class":"OCA\\User_LDAP\\User_LDAP","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/app\/data\/apps\/user_ldap\/lib\/User_Proxy.php","line":81,"function":"call_user_func_array","args":[[{"__class__":"OCA\\User_LDAP\\User_LDAP"},"checkPassword"],["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/app\/data\/apps\/user_ldap\/lib\/Proxy.php","line":152,"function":"walkBackends","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["*** sensitive parameter replaced ***","checkPassword",["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/app\/data\/apps\/user_ldap\/lib\/User_Proxy.php","line":196,"function":"handleRequest","class":"OCA\\User_LDAP\\Proxy","type":"->","args":["*** sensitive parameter replaced ***","checkPassword",["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/app\/code\/lib\/private\/User\/Manager.php","line":208,"function":"checkPassword","class":"OCA\\User_LDAP\\User_Proxy","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/app\/code\/core\/Controller\/LoginController.php","line":298,"function":"checkPasswordNoLogging","class":"OC\\User\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/app\/code\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/app\/code\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"\/app\/code\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"\/app\/code\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\LoginController","tryLogin",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.login.tryLogin"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"core.login.tryLogin"}]},{"file":"\/app\/code\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"core.login.tryLogin"}]},{"file":"\/app\/code\/lib\/base.php","line":989,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/login"]},{"file":"\/app\/code\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/app\/data\/apps\/dav\/lib\/CardDAV\/SyncService.php","Line":268,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.0.19"}

Looks like

$name = $user->getBackendClassName();
$user is null ?

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #6839 (Nextcloud got internal Server error after update APP:OnlyOFFICE, need to remove this APP completely), #2741 (Calendar app: internal server error after upgrading to Nextcloud 11), #7622 (NextCloud Server Listener ), #8326 (Internal Server Error (Template not found) when loading Calendar after upgrade to Nextcloud 13.x), and #5056 (nextcloud 12 upgrade error).

@nickdbush
Copy link

I'm pretty sure I stumbled across this issue this morning. I had added a user through the IMAP verification, and then it disappeared from the users list and when I try logging in to the account, it errors. There is no sign of the account in the users list or under occ user:info [username].

Error in log:

{"reqId":"DkL3l3LoXfmWJ9CXIBNk","level":3,"time":"2018-09-15T04:15:08+02:00","remoteAddr":"[IP]","user":"--","app":"index","method":"POST","url":"\/login","message":{"Exception":"Error","Message":"Call to a member function getUID() on null","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\LoginController","tryLogin",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.login.tryLogin"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"core.login.tryLogin"}]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"core.login.tryLogin"}]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":989,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/login"]},{"file":"\/var\/www\/nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/nextcloud\/core\/Controller\/LoginController.php","Line":304,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.0.19"}

@timm2k
Copy link
Contributor

timm2k commented Sep 18, 2018

Ok, first of all @untilbit's error report is database related:

Doctrine\DBAL\Ex

DBAL = database abstraction layer.
Unfortunatly this isn't the complete line of the error message.

@timm2k
Copy link
Contributor

timm2k commented Sep 18, 2018

@nebulade and @nickdbush are you sure you have a clean update running and apps are up-to-date? I had a similar error with an unclean manual update where files of NC13 and NC14 were mixed up. I didn't delete all NC13 files before I've put NC14 into place.

@ngmdat
Copy link

ngmdat commented Oct 19, 2018

i have the same problem as the first reportp. the nextcloud-bot set [bug] lable to this issue, then how to recover my nextcloud server ?

@ArnaudTA
Copy link

Same error here ! I use the docker image. I manually activated the ldap module for php in container, i don't know if it's helpful. The installation is fresh.
Thanks for your work !

@untilbit
Copy link
Author

untilbit commented Nov 5, 2018

I'hva finally solved this issue by addming my user to the group www-data.

No updates solved this.
The issue is that I use SQLITE as databse and a file changes owner to my user and later nextcloud could not read it.

@kesselb
Copy link
Contributor

kesselb commented Nov 5, 2018

Glad you solved it

@kesselb kesselb closed this as completed Nov 5, 2018
@untilbit
Copy link
Author

untilbit commented Nov 6, 2018

It fixed the issue only temporarily, now I get the error again.
://

@jospoortvliet
Copy link
Member

Ok, but it is a database access/ownership issue, correct? Make sure the owner of the files is the same as your webserver, or at least the web server has read/write access. Check ls -la output in the data folder, it shows you the access rights on the file.

Find further help on help.nextcloud.com, please, as github isn't meant as support platform 🤺

@danieldocumentos
Copy link

Yo lo arreglé habilitando los permisos de escritura, solo estaban habilitados los de lectura

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants