<–! Paste this in GitHub report →
NextcloudPi diagnostics
{"reqId":"EorNQo29n8hhSdyH57U9","level":2,"time":"2023-04-17T19:41:18+00:00","re moteAddr":"","user":"--","app":"no app in context","method":"","url":"--","messa ge":"Temporary directory /media/myCloudDrive/ncdata/data/tmp is not present or w ritable","userAgent":"--","version":"25.0.4.1","data":[]}
{"reqId":"EorNQo29n8hhSdyH57U9","level":3,"time":"2023-04-17T19:41:19+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/media/myCloudDrive/ncdata/data/data_dir_writability_test_643da0df3b958.tmp): failed to open stream: Permission denied at /var/www/nextcloud/lib/private/legacy/OC_Util.php#580","userAgent":"--","version":"25.0.4.1","exception":{"Exception":"Error","Message":"fopen(/media/myCloudDrive/ncdata/data/data_dir_writability_test_643da0df3b958.tmp): failed to open stream: Permission denied at /var/www/nextcloud/lib/private/legacy/OC_Util.php#580","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":580,"function":"fopen"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":159,"function":"checkServer","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"EorNQo29n8hhSdyH57U9","level":3,"time":"2023-04-17T19:41:19+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/media/myCloudDrive/ncdata/data/nextcloud.log): failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Log/File.php#84","userAgent":"--","version":"25.0.4.1","data":{"app":"PHP"}}
NextcloudPi version v1.51.2
NextcloudPi image NextCloudPi_03-02-22
OS Debian GNU/Linux 11. 5.15.76-v8+ (aarch64)
automount yes
USB devices sda sdb
datadir /media/myCloudDrive/ncdata/data
data in SD no
data filesystem btrfs
data disk usage 28G/467G
rootfs usage 4.6G/15G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check error
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service down
Postfix service up
Internet check ok
Public IPv4 ***REMOVED SENSITIVE VALUE***
Public IPv6 ***REMOVED SENSITIVE VALUE***
Port 80 [N/A]
Port 443 [N/A]
IP ***REMOVED SENSITIVE VALUE***
Gateway ***REMOVED SENSITIVE VALUE***
Interface eth0
Certificates ***REMOVED SENSITIVE VALUE***
NAT loopback no
Uptime 2min
Nextcloud configuration
{"reqId":"2Ju0JCtJ0wOVJNnaw5MC","level":2,"time":"2023-04-17T19:41:21+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory /media/myCloudDrive/ncdata/data/tmp is not present or writable","userAgent":"--","version":"25.0.4.1","data":[]}
{"reqId":"2Ju0JCtJ0wOVJNnaw5MC","level":3,"time":"2023-04-17T19:41:22+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/media/myCloudDrive/ncdata/data/data_dir_writability_test_643da0e2bc9af.tmp): failed to open stream: Permission denied at /var/www/nextcloud/lib/private/legacy/OC_Util.php#580","userAgent":"--","version":"25.0.4.1","exception":{"Exception":"Error","Message":"fopen(/media/myCloudDrive/ncdata/data/data_dir_writability_test_643da0e2bc9af.tmp): failed to open stream: Permission denied at /var/www/nextcloud/lib/private/legacy/OC_Util.php#580","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":580,"function":"fopen"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":159,"function":"checkServer","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
Your data directory is invalid.
Ensure there is a file called ".ocdata" in the root of the data directory.
Your data directory is not writable.
Permissions can usually be fixed by giving the web server write access to the root directory. See https://docs.nextcloud.com/server/25/go.php?to=admin-dir_permissions.
An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:166
Stack trace:
#0 /var/www/nextcloud/console.php(99): OC\Console\Application->loadCommands()
#1 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#2 {main}{"reqId":"2Ju0JCtJ0wOVJNnaw5MC","level":3,"time":"2023-04-17T19:41:22+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/media/myCloudDrive/ncdata/data/nextcloud.log): failed to open stream: Permission denied at /var/www/nextcloud/lib/private/Log/File.php#84","userAgent":"--","version":"25.0.4.1","data":{"app":"PHP"}}
HTTPd logs
[Mon Apr 17 21:39:40.200747 2023] [ssl:warn] [pid 740:tid 547924071488] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Apr 17 21:39:40.201026 2023] [ssl:error] [pid 740:tid 547924071488] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 1D4B3911E4F5D439D3BC5B3E9D548B4EE153A50A / notbefore: Mar 2 22:03:35 2022 GMT / notafter: Feb 28 22:03:35 2032 GMT]
[Mon Apr 17 21:39:40.201045 2023] [ssl:error] [pid 740:tid 547924071488] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Mon Apr 17 21:39:40.206478 2023] [mpm_event:notice] [pid 740:tid 547924071488] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Mon Apr 17 21:39:40.206576 2023] [core:notice] [pid 740:tid 547924071488] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 17 21:40:10.748281 2023] [mpm_event:notice] [pid 740:tid 547924071488] AH00493: SIGUSR1 received. Doing graceful restart
[Mon Apr 17 21:40:10.786502 2023] [ssl:warn] [pid 740:tid 547924071488] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Apr 17 21:40:10.788885 2023] [ssl:warn] [pid 740:tid 547924071488] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Apr 17 21:40:10.789199 2023] [ssl:error] [pid 740:tid 547924071488] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 1D4B3911E4F5D439D3BC5B3E9D548B4EE153A50A / notbefore: Mar 2 22:03:35 2022 GMT / notafter: Feb 28 22:03:35 2032 GMT]
[Mon Apr 17 21:40:10.789249 2023] [ssl:error] [pid 740:tid 547924071488] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Mon Apr 17 21:40:10.791306 2023] [mpm_event:notice] [pid 740:tid 547924071488] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Mon Apr 17 21:40:10.791363 2023] [core:notice] [pid 740:tid 547924071488] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 17 21:40:16.103030 2023] [authz_host:error] [pid 3639:tid 547712913792] [client 10.14.1.122:1248] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Mon Apr 17 21:40:16.360933 2023] [authz_host:error] [pid 3639:tid 547712913792] [client 10.14.1.122:1248] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Mon Apr 17 21:40:16.367253 2023] [authz_host:error] [pid 3639:tid 547712913792] [client 10.14.1.122:1248] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Mon Apr 17 21:40:16.623931 2023] [authz_host:error] [pid 3639:tid 547712913792] [client 10.14.1.122:1248] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Mon Apr 17 21:40:19.540382 2023] [authz_host:error] [pid 3639:tid 547712913792] [client 10.14.1.122:1248] AH01753: access check of 'localhost' to /decrypt failed, reason: unable to get the remote host name
[Mon Apr 17 21:40:19.552863 2023] [authz_host:error] [pid 3639:tid 547712913792] [client 10.14.1.122:1248] AH01753: access check of 'localhost' to /decrypt/ failed, reason: unable to get the remote host name
[Mon Apr 17 21:40:19.553076 2023] [authz_host:error] [pid 3639:tid 547712913792] [client 10.14.1.122:1248] AH01753: access check of 'localhost' to /decrypt/index.php failed, reason: unable to get the remote host name
[Mon Apr 17 21:40:31.331873 2023] [authz_host:error] [pid 3638:tid 547712913792] [client 10.14.1.122:1252] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
Database logs
tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory
Nextcloud logs
tail: cannot open '/media/myCloudDrive/ncdata/data/nextcloud.log' for reading: No such file or directory