Please help! Just installed nextcloud but I am getting an error

Hello! I am new to nextcloud. I managed to install the nextcloud server on first boot it looked ok i tested it and it worked fine, then i rebooted my linux ubuntu 22.04 server and now I am getting this error: Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the webserver log.

Can someone please help me fix it?
I got the log here:

{"reqId":"qklNaMV48c475QBvaWsj","level":3,"time":"2024-02-28T17:59:47+00:00","remoteAddr":"192.168.8.249","user":"admin","app":"no app in context","method":"POST","url":"/ocs/v2.php/apps/notifications/api/v2/push","message":"Exception thrown: OCP\\Files\\NotFoundException","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/5.1.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"/appdata_ocmmi743cyd3/identityproof/user-admin","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":161,"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/AppData/AppData.php","line":132,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Security/IdentityProof/Manager.php","line":115,"function":"getFolder","class":"OC\\Files\\AppData\\AppData","type":"->"},{"file":"/var/www/nextcloud/lib/private/Security/IdentityProof/Manager.php","line":133,"function":"retrieveKey","class":"OC\\Security\\IdentityProof\\Manager","type":"->"},{"file":"/var/www/nextcloud/apps/notifications/lib/Controller/PushController.php","line":130,"function":"getKey","class":"OC\\Security\\IdentityProof\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"registerDevice","class":"OCA\\Notifications\\Controller\\PushController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Root.php","Line":207,"CustomMessage":"Exception thrown: OCP\\Files\\NotFoundException"}}
{"reqId":"ug63vetDvYre6Fs9152r","level":3,"time":"2024-02-28T18:20:49+00:00","remoteAddr":"192.168.8.248","user":"admin","app":"index","method":"POST","url":"/index.php/apps/text/session/4/save","message":"No proper share data","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36","version":"28.0.2.5","exception":{"Exception":"InvalidArgumentException","Message":"No proper share data","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/text/lib/Service/ApiService.php","line":253,"function":"getFileForSession","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Controller/SessionController.php","line":100,"function":"save","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"save","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/text/lib/Service/DocumentService.php","Line":449,"message":"No proper share data","exception":{},"CustomMessage":"No proper share data"}}
{"reqId":"uAg8wC4j76QuW8VxnRf3","level":3,"time":"2024-02-28T18:20:49+00:00","remoteAddr":"192.168.8.248","user":"admin","app":"index","method":"POST","url":"/index.php/apps/text/session/4/sync","message":"No proper share data","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36","version":"28.0.2.5","exception":{"Exception":"InvalidArgumentException","Message":"No proper share data","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/text/lib/Service/ApiService.php","line":227,"function":"getFileForSession","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Controller/SessionController.php","line":88,"function":"sync","class":"OCA\\Text\\Service\\ApiService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"sync","class":"OCA\\Text\\Controller\\SessionController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/text/lib/Service/DocumentService.php","Line":449,"message":"No proper share data","exception":{},"CustomMessage":"No proper share data"}}
{"reqId":"FmAomXlOHDED2LMBiDIm","level":2,"time":"2024-02-28T18:26:48+00:00","remoteAddr":"192.168.8.248","user":"admin","app":"core","method":"POST","url":"/index.php/login/confirm","message":"Login failed: 'admin' (Remote IP: '192.168.8.248')","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36","version":"28.0.2.5","data":{"app":"core"}}
{"reqId":"7TLhY2i9pnN0S1XFAnpj","level":3,"time":"2024-02-28T18:26:55+00:00","remoteAddr":"192.168.8.248","user":"admin","app":"ocs_api","method":"POST","url":"/ocs/v2.php/cloud/users","message":"Failed addUser attempt: User already exists.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36","version":"28.0.2.5","data":{"app":"ocs_api"}}
{"reqId":"zCGONCx5m5xjqzkivXjB","level":3,"time":"2024-02-28T18:27:53+00:00","remoteAddr":"192.168.8.249","user":"eduards","app":"no app in context","method":"POST","url":"/ocs/v2.php/apps/notifications/api/v2/push","message":"Exception thrown: OCP\\Files\\NotFoundException","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/5.1.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"/appdata_ocmmi743cyd3/identityproof/user-eduards","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":161,"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/AppData/AppData.php","line":132,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Security/IdentityProof/Manager.php","line":115,"function":"getFolder","class":"OC\\Files\\AppData\\AppData","type":"->"},{"file":"/var/www/nextcloud/lib/private/Security/IdentityProof/Manager.php","line":133,"function":"retrieveKey","class":"OC\\Security\\IdentityProof\\Manager","type":"->"},{"file":"/var/www/nextcloud/apps/notifications/lib/Controller/PushController.php","line":130,"function":"getKey","class":"OC\\Security\\IdentityProof\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"registerDevice","class":"OCA\\Notifications\\Controller\\PushController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Root.php","Line":207,"CustomMessage":"Exception thrown: OCP\\Files\\NotFoundException"}}

Best Regards,
Eduards

Could you please provide the webserver (apache2 or nginx) error log.
The logfile you provided is the nextcloud log.
Those errors are not responible for the internal server error.


ernolf

Where can the webserver log be found?

/var/log/apache2/error.log

You defined it in the installation in your Webserver config file

Hello!

Webserver log:

[Wed Feb 28 17:34:34.409488 2024] [mpm_prefork:notice] [pid 14577] AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Wed Feb 28 17:34:34.409560 2024] [core:notice] [pid 14577] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 28 17:36:04.491251 2024] [mpm_prefork:notice] [pid 14577] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Feb 28 17:36:04.538957 2024] [mpm_prefork:notice] [pid 14577] AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Wed Feb 28 17:36:04.538976 2024] [core:notice] [pid 14577] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 28 17:37:52.753266 2024] [mpm_prefork:notice] [pid 14577] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 28 17:37:52.856752 2024] [mpm_prefork:notice] [pid 15544] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Feb 28 17:37:52.856785 2024] [core:notice] [pid 15544] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 28 18:35:25.220337 2024] [mpm_prefork:notice] [pid 15544] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 28 18:35:59.311495 2024] [mpm_prefork:notice] [pid 782] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Feb 28 18:35:59.313490 2024] [core:notice] [pid 782] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 28 18:36:51.861427 2024] [mpm_prefork:notice] [pid 782] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 28 18:37:26.606949 2024] [mpm_prefork:notice] [pid 785] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Feb 28 18:37:26.607211 2024] [core:notice] [pid 785] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 28 18:40:32.818218 2024] [mpm_prefork:notice] [pid 785] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 28 18:41:06.493454 2024] [mpm_prefork:notice] [pid 783] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Feb 28 18:41:06.493770 2024] [core:notice] [pid 783] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 28 18:52:39.920022 2024] [mpm_prefork:notice] [pid 783] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Feb 28 18:53:13.701818 2024] [mpm_prefork:notice] [pid 788] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Wed Feb 28 18:53:13.702076 2024] [core:notice] [pid 788] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 28 18:55:16.120609 2024] [mpm_prefork:notice] [pid 788] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Feb 29 06:20:11.745246 2024] [mpm_prefork:notice] [pid 752] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Thu Feb 29 06:20:11.751524 2024] [core:notice] [pid 752] AH00094: Command line: '/usr/sbin/apache2'

And now i don’t have an server internal error but some nextcloud error:

this would seem to be a config.php file problem and from the first pic I would ‘guess’ something to do with the way you have your POST setup for nextcloud admin notifications.
remark out the entries for this and see how that goes
again a simple reinstall would probably fix it.

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