You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgraded my PHP version today (manjaro linux), since then a few things including apparmor got messed up. My nextcloud files live in a /home folder, my data on a separate RAID1 mounted in /mnt/xxx.
After setting /etc/apparmor.d/php-fpm
# Allow read/write access to the user's home directory
/home/** rw,
/mnt/xxx/** rw,
other php apps work as expected.
Even tried to disable apparmor, does not make a difference, used a fresh install (.zip) 30.0.4 and 30.0.5, copied the nginx.conf example from the official webpage 1:1, still same error.
Steps to reproduce
Use php-fpm 8.3.15 and nginx-1.26.2
Install nextcloud
no error other than OC::$server must not be accessed before initialization in nginx.error log, HTTP ERROR 500 in browser (detailed logs following):
full nginx log:
#0 /home/***sensitive-information***/nginx/cloud/remote.php(148): handleException()
#1 {main}
thrown in /home/***sensitive-information***/nginx/cloud/remote.php on line 28" while reading response header from upstream, client: ***sensitive-information***, server: ***sensitive-information***.com, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "***sensitive-information***.com"
2025/02/04 18:31:07 [error] 75799#75799: *3325 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Typed static property OC::$server must not be accessed before initialization in /home/***sensitive-information***/nginx/cloud/lib/public/Server.php:39
Stack trace:
#0 /home/***sensitive-information***/nginx/cloud/index.php(83): OCP\Server::get()
#1 {main}
thrown in /home/***sensitive-information***/nginx/cloud/lib/public/Server.php on line 39" while reading response header from upstream, client: 178.13.234.253, server: ***sensitive-information***.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "***sensitive-information***.com"
Expected behavior
to be accessible as before
Nextcloud Server version
30
Operating system
Other
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
nonefull nginx log:#0 /home/***sensitive-information***/nginx/cloud/remote.php(148): handleException()#1 {main}thrown in /home/***sensitive-information***/nginx/cloud/remote.php on line 28" while reading response header from upstream, client: ***sensitive-information***, server: ***sensitive-information***.com, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "***sensitive-information***.com"2025/02/04 18:31:07 [error] 75799#75799: *3325 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Typed static property OC::$server must not be accessed before initialization in /home/***sensitive-information***/nginx/cloud/lib/public/Server.php:39Stack trace:#0 /home/***sensitive-information***/nginx/cloud/index.php(83): OCP\Server::get()#1 {main}thrown in /home/***sensitive-information***/nginx/cloud/lib/public/Server.php on line 39" while reading response header from upstream, client: 178.13.234.253, server: ***sensitive-information***.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "***sensitive-information***.com"
Additional info
No response
The text was updated successfully, but these errors were encountered:
Info 2: when using a freshly install I get: Could not acquire an exclusive lock on the config file in the nginx log. The generated config file is empty 0 Bytes. Reloading the website leads to the same errors as described. When deleting the config file again I get Could not acquire an exclusive lock on the config file and so on. Maybe this helps, my brain is stucked. I would highly appreciate any help.
Setting php to higher log level does not produce any useful output.
Info 3: seems to be definitely a permission issue, as I am not able to create session files with other php scripts. nginx and php are running with the same user as the directory, apparmor is stopped. Am I missing something?
Ok, found the problem. Disable apparmor by systemctl disable apparmor resolves the issue. Will have a look what is the problem with the php-fpm profile, hints are appreciated
Hi @prismplex - Sorry you ran into difficulty. However this is a development channel. If you need help troubleshooting this, please use the help forum for such queries: https://help.nextcloud.com
Bug description
Upgraded my PHP version today (manjaro linux), since then a few things including apparmor got messed up. My nextcloud files live in a /home folder, my data on a separate RAID1 mounted in /mnt/xxx.
After setting /etc/apparmor.d/php-fpm
(found here symfony-cli guthub)
other php apps work as expected.
Even tried to disable apparmor, does not make a difference, used a fresh install (.zip) 30.0.4 and 30.0.5, copied the nginx.conf example from the official webpage 1:1, still same error.
Steps to reproduce
OC::$server must not be accessed before initialization
in nginx.error log, HTTP ERROR 500 in browser (detailed logs following):full nginx log:
Expected behavior
to be accessible as before
Nextcloud Server version
30
Operating system
Other
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: