Hi!
First of all, thanks for replying! Any kind of help is welcome.
I’ll go over everything you said:
- share output of ncp-report (I removed everything I considered was sensitive, in addition to what the tool already hides):
NextCloudPi diagnostics
NextCloudPi version v1.44.4
OS Debian GNU/Linux 10. 4.19.0-18-amd64 (x86_64)
automount yes
USB devices sda
datadir /media/55913678-bb92-45e3-b176-6fbaae768158/ncdata
data in SD yes
data filesystem ext2/ext3
data disk usage 249G/454G
rootfs usage 249G/454G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 21.0.4.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service up
Postfix service down
internet check ok
port check 80 closed
port check 443 open
IP ***REMOVED SENSITIVE VALUE***
gateway ***REMOVED SENSITIVE VALUE***
interface enp3s0f0
certificates ***REMOVED SENSITIVE VALUE***
NAT loopback no
uptime 1min
Nextcloud configuration
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": {
"0": "192.168.100.14",
"1": "192.168.100.14",
"11": "***REMOVED SENSITIVE VALUE***",
"20": "***REMOVED SENSITIVE VALUE***",
"12": "***REMOVED SENSITIVE VALUE***",
"14": "***REMOVED SENSITIVE VALUE***",
"": "***REMOVED SENSITIVE VALUE***"
},
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "21.0.4.1",
"overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***\/",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"timeout": 0,
"password": "***REMOVED SENSITIVE VALUE***"
},
"tempdirectory": "\/var\/www\/tmp",
"mail_smtpmode": "sendmail",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"preview_max_x": "2048",
"preview_max_y": "2048",
"jpeg_quality": "60",
"overwriteprotocol": "https",
"htaccess.RewriteBase": "\/",
"maintenance": false,
"logfile": "\/media\/55913678-bb92-45e3-b176-6fbaae768158\/ncdata\/nextcloud.log",
"data-fingerprint": "***REMOVED SENSITIVE VALUE***",
"theme": "",
"loglevel": 2,
"trusted_proxies": "***REMOVED SENSITIVE VALUE***"
}
}
HTTPd logs
[Fri Nov 26 00:00:03.766156 2021] [ssl:warn] [pid 1050] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Nov 26 00:00:03.766296 2021] [ssl:error] [pid 1050] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=***REMOVED SENSITIVE VALUE*** / issuer: CN=***REMOVED SENSITIVE VALUE*** / serial: ***REMOVED SENSITIVE VALUE*** / notbefore: Apr 20 18:58:39 2020 GMT / notafter: Apr 18 18:58:39 2030 GMT]
[Fri Nov 26 00:00:03.766306 2021] [ssl:error] [pid 1050] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Fri Nov 26 00:00:03.766355 2021] [http2:warn] [pid 1050] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Fri Nov 26 00:00:03.786718 2021] [mpm_prefork:notice] [pid 1050] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1j configured -- resuming normal operations
[Fri Nov 26 00:00:03.786735 2021] [core:notice] [pid 1050] AH00094: Command line: '/usr/sbin/apache2'
[Fri Nov 26 11:22:27.753795 2021] [ssl:warn] [pid 841] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Nov 26 11:22:27.941270 2021] [ssl:error] [pid 841] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=***REMOVED SENSITIVE VALUE*** / issuer: CN=***REMOVED SENSITIVE VALUE*** / serial: ***REMOVED SENSITIVE VALUE*** / notbefore: Apr 20 18:58:39 2020 GMT / notafter: Apr 18 18:58:39 2030 GMT]
[Fri Nov 26 11:22:27.941298 2021] [ssl:error] [pid 841] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Fri Nov 26 11:22:28.563829 2021] [ssl:warn] [pid 1059] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Nov 26 11:22:28.563907 2021] [ssl:error] [pid 1059] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=***REMOVED SENSITIVE VALUE*** / issuer: CN=***REMOVED SENSITIVE VALUE*** / serial: ***REMOVED SENSITIVE VALUE*** / notbefore: Apr 20 18:58:39 2020 GMT / notafter: Apr 18 18:58:39 2030 GMT]
[Fri Nov 26 11:22:28.563913 2021] [ssl:error] [pid 1059] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Fri Nov 26 11:22:28.563947 2021] [http2:warn] [pid 1059] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Fri Nov 26 11:22:31.291196 2021] [mpm_prefork:notice] [pid 1059] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1j configured -- resuming normal operations
[Fri Nov 26 11:22:31.291266 2021] [core:notice] [pid 1059] AH00094: Command line: '/usr/sbin/apache2'
Database logs
2021-11-26 11:22:35 0 [Note] InnoDB: Uses event mutexes
2021-11-26 11:22:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-11-26 11:22:35 0 [Note] InnoDB: Number of pools: 1
2021-11-26 11:22:35 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-11-26 11:22:35 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 1, chunk size = 128M
2021-11-26 11:22:35 0 [Note] InnoDB: Completed initialization of buffer pool
2021-11-26 11:22:35 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-11-26 11:22:35 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-11-26 11:22:35 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-11-26 11:22:35 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-11-26 11:22:35 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-11-26 11:22:35 0 [Note] InnoDB: 10.3.31 started; log sequence number 11595106116; transaction id 37912304
2021-11-26 11:22:35 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2021-11-26 11:22:35 0 [Note] InnoDB: Buffer pool(s) load completed at 211126 11:22:35 (/var/lib/mysql/ib_buffer_pool was empty)
2021-11-26 11:22:35 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-11-26 11:22:36 0 [Note] Server socket created on IP: '127.0.0.1'.
2021-11-26 11:22:36 0 [Note] Reading of all Master_info entries succeeded
2021-11-26 11:22:36 0 [Note] Added new Master_info '' to hash table
2021-11-26 11:22:36 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.31-MariaDB-0+deb10u1' socket: '/run/mysqld/mysqld.sock' port: 3306 Debian 10
- manually edit datadir path in config.php
and check permissions inside ncdata and/or run ncp-config>tools>nc-fix-permisions.
I changed it manually from config.php and tried running nc-fix-permissions and I get this:
Running nc-fix-permissions
data directory not found
Done. Press any key...
I changed it back to what it was before (the datadir that’s on my machine, not on my external hdd) and tried running nc-fix-permissions again, just to see if anything is different:
Running nc-fix-permissions
fixing permissions in /media/55913678-bb92-45e3-b176-6fbaae768158/ncdata... chown: cannot access '/media/55913678-bb92-45e3-b176-6fbaae768158/ncdata/*/files': No such file or directory
chmod: cannot access '/media/55913678-bb92-45e3-b176-6fbaae768158/ncdata/*/files': No such file or directory
done
Done. Press any key...
Something is fishy…
- Do you have a backup? if so use ncp-config>backups>nc-restore to restore previous config.
I do have a backup, thankfully. That’s actually my last hope
I tried running nc-restore and I get this:
Running nc-restore
check free space...
It just stays like this. I left it for about 10 minutes, but nothing seems to happen.
I’m not sure if it’s actually doing anything.
I think it might be trying to restore my backup using the current datadir. But that won’t work, because my server machine only has about 500 GB of space and the data I had before things got messed up had well over 1TB.
I think I have to manage to set the new datadir location first, then try and restore.
But I haven’t managed to do that, yet.
I think it’s a permission issue, but I just can’t figure it out…
Anyway, let me know if you have any other ideas that could help.
Thanks!