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
Note that I don't know PHP well, so my analysis may be wrong. I will nevertheless try:
AdminSettings.getForm requests the current settings via SettingsService.getConfig with argument ncp.
SettingsService.getConfig calls the runCommand that is failing with command bash -c \"sudo /home/www/ncp-app-bridge.sh config ncp.
I checked and the file /home/www/ncp-app-bridge.sh exists. I did not execute it, but reading the source code it just echos /usr/local/etc/ncp.cfg (which I also included below, but think it is not relevant; also note that the php_version field has the wrong PHP version, but I also don't think this is an issue).
The file has permission -rwx------ 1 root root 964 Jan 21 06:26 /home/www/ncp-app-bridge.sh which I think means it can only be executed by root. As the command is called with sudo, I don't think this is the problem.
The folder /home/www has drwx------ 2 www-data www-data 4.0K May 11 12:24 which I also don't think should be the problem.
SettingsService.runCommand uses an argument $pipes, which I would guess is null for some reason looking at the logs.
I have recently updated my PHP to 8.3, so maybe something changed in that regard. Also, maybe the file permissions are wrong somehow.
I am unsure if this issue just affects myself or if others are also affected. As I think this is more of a bug instead of a support request, I opened the issue here instead of asking on the forum, feel free to move it to the forum if I am wrong in this regard.
grep: /etc/apache2/sites-available/nextcloud.conf: No such file or directory
NextcloudPi version v1.54.2
NextcloudPi image NextCloudPi_07-21-19
OS Raspbian GNU/Linux 11. 6.1.21-v8+ (aarch64)
automount yes
USB devices sda
datadir /media/myCloudDrive/ncdata/data
data in SD no
data filesystem btrfs
data disk usage 223G/466G
rootfs usage 6.9G/29G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 28.0.5.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service up
Postfix service up
Internet check ok
Public IPv4 ***REMOVED SENSITIVE VALUE***
Public IPv6 ***REMOVED SENSITIVE VALUE***
Port 80 open
Port 443 open
IP ***REMOVED SENSITIVE VALUE***
Gateway ***REMOVED SENSITIVE VALUE***
Interface eth0
Certificates ***REMOVED SENSITIVE VALUE***
NAT loopback no
Uptime 30min
[Sat May 11 11:44:40.228200 2024] [mpm_prefork:notice] [pid 1009] AH00163: Apache/2.4.59 (Raspbian) OpenSSL/1.1.1w configured -- resuming normal operations
[Sat May 11 11:44:40.228370 2024] [core:notice] [pid 1009] AH00094: Command line: '/usr/sbin/apache2'
[Sat May 11 11:44:57.009577 2024] [authz_host:error] [pid 1022] [client 192.168.2.196:40168] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sat May 11 11:44:57.173424 2024] [authz_host:error] [pid 1022] [client 192.168.2.196:40168] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sat May 11 11:44:57.180761 2024] [authz_host:error] [pid 1022] [client 192.168.2.196:40168] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Sat May 11 11:44:57.245276 2024] [authz_host:error] [pid 1022] [client 192.168.2.196:40168] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Sat May 11 11:45:10.735933 2024] [authz_host:error] [pid 1022] [client 192.168.2.196:40168] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sat May 11 11:45:10.780529 2024] [authz_host:error] [pid 1027] [client 192.168.2.196:52632] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sat May 11 11:45:10.796393 2024] [authz_host:error] [pid 1027] [client 192.168.2.196:52632] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Database logs
2023-04-11 9:15:48 0 [Note] Crash recovery finished.
2023-04-11 9:15:48 0 [Note] Server socket created on IP: '127.0.0.1'.
2023-04-11 9:15:49 0 [Note] Reading of all Master_info entries succeeded
2023-04-11 9:15:49 0 [Note] Added new Master_info '' to hash table
2023-04-11 9:15:49 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.38-MariaDB-0+deb10u1' socket: '/run/mysqld/mysqld.sock' port: 3306 Raspbian 10
2023-04-11 9:16:44 0 [Note] InnoDB: Buffer pool(s) load completed at 230411 9:16:44
2023-04-11 9:16:44 9 [Warning] Aborted connection 9 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
2023-04-11 12:05:07 913 [Warning] Aborted connection 913 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
2023-04-11 14:36:14 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2023-04-11 14:36:14 0 [Note] Event Scheduler: Purging the queue. 0 events
2023-04-11 14:36:14 0 [Note] InnoDB: FTS optimize thread exiting.
2023-04-11 14:36:15 0 [Note] InnoDB: Starting shutdown...
2023-04-11 14:36:15 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2023-04-11 14:36:15 0 [Note] InnoDB: Instance 0, restricted to 16382 pages due to innodb_buf_pool_dump_pct=25
2023-04-11 14:36:15 0 [Note] InnoDB: Buffer pool(s) dump completed at 230411 14:36:15
2023-04-11 14:36:20 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2023-04-11 14:36:20 0 [Note] InnoDB: Shutdown completed; log sequence number 65919224396; transaction id 83449856
2023-04-11 14:36:20 0 [Note] /usr/sbin/mysqld: Shutdown complete
Nextcloud logs
{"reqId":"abJRi0OvmtKTwVtKhpB5","level":1,"time":"2024-05-11T09:50:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"28.0.5.1","data":{"app":"updater"}}
{"reqId":"abJRi0OvmtKTwVtKhpB5","level":1,"time":"2024-05-11T09:50:56+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"28.0.5.1","data":{"app":"updater"}}
{"reqId":"Zj9LCmW8dg24evQNEU1TPAAAAAo","level":3,"time":"2024-05-11T10:40:11+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"proc_open(): posix_spawn() failed: No such file or directory at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#135","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9LCmW8dg24evQNEU1TPAAAAAo","level":3,"time":"2024-05-11T10:40:11+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"Trying to access array offset on null at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9LCmW8dg24evQNEU1TPAAAAAo","level":3,"time":"2024-05-11T10:40:11+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"index","method":"GET","url":"/settings/admin","message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","exception":{"Exception":"Exception","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","Code":0,"Trace":[{"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/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":136,"function":"stream_get_contents"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":30,"function":"runCommand","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Settings/AdminSettings.php","line":27,"function":"getConfig","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":129,"function":"getForm","class":"OCA\\NextcloudPi\\Settings\\AdminSettings","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":86,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":149,"function":"getSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":71,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","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/nextcloudpi/lib/Service/SettingsService.php","Line":136},"message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","exception":{},"CustomMessage":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136"}}
{"reqId":"Zj9LLwN4_UvQcv8Jl38kRgAAAAQ","level":3,"time":"2024-05-11T10:40:47+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"proc_open(): posix_spawn() failed: No such file or directory at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#135","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9LLwN4_UvQcv8Jl38kRgAAAAQ","level":3,"time":"2024-05-11T10:40:47+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"Trying to access array offset on null at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9LLwN4_UvQcv8Jl38kRgAAAAQ","level":3,"time":"2024-05-11T10:40:47+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"index","method":"GET","url":"/settings/admin","message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","exception":{"Exception":"Exception","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","Code":0,"Trace":[{"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/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":136,"function":"stream_get_contents"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":30,"function":"runCommand","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Settings/AdminSettings.php","line":27,"function":"getConfig","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":129,"function":"getForm","class":"OCA\\NextcloudPi\\Settings\\AdminSettings","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":86,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":149,"function":"getSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":71,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","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/nextcloudpi/lib/Service/SettingsService.php","Line":136},"message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","exception":{},"CustomMessage":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136"}}
{"reqId":"Zj9LeTg2JYY2gX5I61qmtgAAAAI","level":3,"time":"2024-05-11T10:42:01+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"proc_open(): posix_spawn() failed: No such file or directory at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#135","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9LeTg2JYY2gX5I61qmtgAAAAI","level":3,"time":"2024-05-11T10:42:01+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"Trying to access array offset on null at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9LeTg2JYY2gX5I61qmtgAAAAI","level":3,"time":"2024-05-11T10:42:01+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"index","method":"GET","url":"/settings/admin","message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","exception":{"Exception":"Exception","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","Code":0,"Trace":[{"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/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":136,"function":"stream_get_contents"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":30,"function":"runCommand","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Settings/AdminSettings.php","line":27,"function":"getConfig","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":129,"function":"getForm","class":"OCA\\NextcloudPi\\Settings\\AdminSettings","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":86,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":149,"function":"getSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":71,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","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/nextcloudpi/lib/Service/SettingsService.php","Line":136},"message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","exception":{},"CustomMessage":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136"}}
{"reqId":"Zj9MPgFZGpDRMe2Ts4mwqgAAAAE","level":3,"time":"2024-05-11T10:45:48+00:00","remoteAddr":"192.168.2.196","user":"--","app":"index","method":"GET","url":"/settings/admin/admindelegation","message":"No such file or directory","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","exception":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":117,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":158,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":70,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":76,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/InfoParser.php","line":58,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":724,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":72,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":154,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":119,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":37,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/RedisFactory.php","Line":117,"Previous":{"Exception":"RedisException","Message":"read error on connection to /var/run/redis/redis.sock:0","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":117,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":158,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":70,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":76,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/InfoParser.php","line":58,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":724,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":72,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":154,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":119,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":37,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/RedisFactory.php","Line":117},"message":"No such file or directory","exception":{},"CustomMessage":"No such file or directory"}}
{"reqId":"Zj9MPgFZGpDRMe2Ts4mwqgAAAAE","level":3,"time":"2024-05-11T10:45:49+00:00","remoteAddr":"192.168.2.196","user":"--","app":"core","method":"GET","url":"/settings/admin/admindelegation","message":"Exception thrown: RedisException","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","exception":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":117,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":158,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":70,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":76,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/InfoParser.php","line":58,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":724,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":72,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":154,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":119,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":37,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/RedisFactory.php","Line":117,"Previous":{"Exception":"RedisException","Message":"read error on connection to /var/run/redis/redis.sock:0","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":117,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":158,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":70,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":76,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/InfoParser.php","line":58,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":724,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":72,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":154,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":119,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":700,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":37,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/RedisFactory.php","Line":117},"CustomMessage":"Exception thrown: RedisException"}}
{"reqId":"Zj9MPgFZGpDRMe2Ts4mwqgAAAAE","level":3,"time":"2024-05-11T10:45:49+00:00","remoteAddr":"192.168.2.196","user":"--","app":"core","method":"GET","url":"/settings/admin/admindelegation","message":"Exception thrown: RedisException","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","exception":{"Exception":"RedisException","Message":"Redis server went away","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":76,"function":"get","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/autoloader.php","line":154,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/var/www/nextcloud/lib/private/Server.php","line":1170,"function":"class_exists"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":175,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":173,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":64,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Server.php","line":2113,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Server.php","line":1361,"function":"getThemingDefaults","class":"OC\\Server","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":175,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":173,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":64,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/var/www/nextcloud/lib/public/Server.php","line":55,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":80,"function":"get","class":"OCP\\Server","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":281,"function":"__construct","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/index.php","line":104,"function":"printExceptionErrorPage","class":"OC_Template","type":"::"}],"File":"/var/www/nextcloud/lib/private/Memcache/Redis.php","Line":76,"CustomMessage":"Exception thrown: RedisException"}}
{"reqId":"Zj9NGC39kQGqBi3WVlGCVwAAAAM","level":3,"time":"2024-05-11T10:48:56+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"proc_open(): posix_spawn() failed: No such file or directory at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#135","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9NGC39kQGqBi3WVlGCVwAAAAM","level":3,"time":"2024-05-11T10:48:56+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"Trying to access array offset on null at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9NGC39kQGqBi3WVlGCVwAAAAM","level":3,"time":"2024-05-11T10:48:56+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"index","method":"GET","url":"/settings/admin","message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","exception":{"Exception":"Exception","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","Code":0,"Trace":[{"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/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":136,"function":"stream_get_contents"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":30,"function":"runCommand","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Settings/AdminSettings.php","line":27,"function":"getConfig","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":129,"function":"getForm","class":"OCA\\NextcloudPi\\Settings\\AdminSettings","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":86,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":149,"function":"getSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":71,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","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/nextcloudpi/lib/Service/SettingsService.php","Line":136},"message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","exception":{},"CustomMessage":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136"}}
{"reqId":"Zj9SrsbIRLnSggWRmUhrXgAAAAU","level":3,"time":"2024-05-11T11:12:46+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"proc_open(): posix_spawn() failed: No such file or directory at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#135","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9SrsbIRLnSggWRmUhrXgAAAAU","level":3,"time":"2024-05-11T11:12:46+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"PHP","method":"GET","url":"/settings/admin","message":"Trying to access array offset on null at /var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php#136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","data":{"app":"PHP"}}
{"reqId":"Zj9SrsbIRLnSggWRmUhrXgAAAAU","level":3,"time":"2024-05-11T11:12:46+00:00","remoteAddr":"192.168.2.196","user":"censored-user","app":"index","method":"GET","url":"/settings/admin","message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.7.0 Chrome/118.0.5993.220 Safari/537.36","version":"28.0.5.1","exception":{"Exception":"Exception","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","Code":0,"Trace":[{"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/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":136,"function":"stream_get_contents"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php","line":30,"function":"runCommand","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/nextcloudpi/lib/Settings/AdminSettings.php","line":27,"function":"getConfig","class":"OCA\\NextcloudPi\\Service\\SettingsService","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":129,"function":"getForm","class":"OCA\\NextcloudPi\\Settings\\AdminSettings","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":86,"function":"formatSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":149,"function":"getSettings","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php","line":71,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\AdminSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Settings\\Controller\\AdminSettingsController","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/nextcloudpi/lib/Service/SettingsService.php","Line":136},"message":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136","exception":{},"CustomMessage":"stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in file '/var/www/nextcloud/apps/nextcloudpi/lib/Service/SettingsService.php' line 136"}}
The text was updated successfully, but these errors were encountered:
That's what's causing your issue. PHP 8.3 is not yet supported by NCP and you should never manually update PHP versions unless you are prepared to break and restore your system.
Opening the admin settings
/settings/admin
results in an internal server error for me. All other settings pages seem to work.Looking at the NextCloud logs provided below, the error seems to be in SettingsService.runCommand.
Note that I don't know PHP well, so my analysis may be wrong. I will nevertheless try:
AdminSettings.getForm
requests the current settings viaSettingsService.getConfig
with argumentncp
.SettingsService.getConfig
calls therunCommand
that is failing with commandbash -c \"sudo /home/www/ncp-app-bridge.sh config ncp
./home/www/ncp-app-bridge.sh
exists. I did not execute it, but reading the source code it just echos/usr/local/etc/ncp.cfg
(which I also included below, but think it is not relevant; also note that thephp_version
field has the wrong PHP version, but I also don't think this is an issue).-rwx------ 1 root root 964 Jan 21 06:26 /home/www/ncp-app-bridge.sh
which I think means it can only be executed by root. As the command is called withsudo
, I don't think this is the problem./home/www
hasdrwx------ 2 www-data www-data 4.0K May 11 12:24
which I also don't think should be the problem.SettingsService.runCommand
uses an argument$pipes
, which I would guess isnull
for some reason looking at the logs.I have recently updated my PHP to 8.3, so maybe something changed in that regard. Also, maybe the file permissions are wrong somehow.
I am unsure if this issue just affects myself or if others are also affected. As I think this is more of a bug instead of a support request, I opened the issue here instead of asking on the forum, feel free to move it to the forum if I am wrong in this regard.
System information
`ncp.cfg`
{"nextcloud_version": "28.0.5",
"php_version": "8.1",
"release": "bullseye"
}
NextcloudPi diagnostics
Nextcloud configuration
HTTPd logs
Database logs
Nextcloud logs
The text was updated successfully, but these errors were encountered: