Error loading files after nc-datadir move

I’ve endeavored to move my datadir from one HDD to another, and am having quite a bit of trouble. After nc-datadir ran it informed me that it could not remove the original directory (which I thought it wouldn’t do anyway).

It looks like the files moved to the next directory, but I had to go through several other troubleshooting posts on here to get where I am, such as doing a chown on the ncdata directory, touching the .ocdata file, and changing the data directory in config.php.

At this point I can see all of my files in nextcloud, but when I try to open one (e.g. opening a photo) I get an image like the one attached. If I try to download it, I get a page that says:

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

  • Remote Address: 192.168.1.113
  • Request ID: YkUMkADlGA1m9gvcMbBUYAAAVQE

Here’s my system info:

NextCloudPi version v1.46.7
NextCloudPi image NextCloudPi_11-08-21
OS Debian GNU/Linux 10. 4.19.0-20-amd64 (x86_64)
automount yes
USB devices sdd
datadir /media/wdred/ncdata
data in SD no
data filesystem btrfs
data disk usage 329G/2.0T
rootfs usage 4.8G/20G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 20.0.11.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service down
Postfix service up
internet check ok
port check 80 open
port check 443 open
IP 192.168.1.252
gateway 192.168.1.1
interface eth0
certificates none
NAT loopback no
uptime 1min

I’ve tried to copy the output of ncp-report, but at the moment I can’t copy out of my proxmox noVNC terminal, and I haven’t been able to ssh in to the server.

Can any kind person here please point me towards the appropriate resolution or troubleshooting steps?

You should follow this for more details.

After moving folders, permission issues are very common, you can check with: sudo -u www-data ls -lisa /media/wdred/ncdata

Thank you!

I’m really struggling with noVNC. I can’t copy and paste, and I can’t scroll through the logs after they are generated by ncp-report. I am only able to scroll through the report by piping the output to a file.

Here are some screenshots, hidden so that I hopefully don’t get banned for these. :smiley:

Report Screenshots

image


image

The nextcloud log is “blank” in the report. From the report I can see that the logfile location is in the old datadir, not the new one.

Here’s a screenshot of the output of sudo -u www-data ls -lisa /media/wdred/ncdata

You can just login via ssh? If you login for the terminal, it doesn’t make sense to use VNC…

With logs, I meant especially the webserver logfile. That is usually the first point to check for internal server errors…

Spurred on by you, I resolved my ssh issue. I had to modify sshd_config to allow password authentication.

My apologies… where is or what is the name of the webserver log? Thank you for all of your help!

Here’s a proper ncp-report.

NextCloudPi diagnostics

/usr/local/bin/ncp-diag: line 38: swapon: command not found
Nextcloud is in maintenance mode - no apps have been loaded

NextCloudPi version  v1.46.7
NextCloudPi image    NextCloudPi_11-08-21
OS                   Debian GNU/Linux 10. 4.19.0-20-amd64 (x86_64)
automount            yes
USB devices          sdd 
datadir              /media/wdred/ncdata
data in SD           no
data filesystem      btrfs
data disk usage      329G/2.0T
rootfs usage         4.8G/20G
swapfile             none
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    20.0.11.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
internet check       ok
port check 80        closed
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               7:08

Nextcloud configuration

Nextcloud is in maintenance mode - no apps have been loaded

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "11": "75.68.160.139",
            "1": "192.168.1.252",
            "14": "nextcloudpi",
            "3": "nextcloudpi"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "20.0.11.1",
        "overwrite.cli.url": "https:\/\/nextcloudpi\/",
        "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": "\/media\/myCloudDrive\/ncdata\/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",
        "maintenance": true,
        "logfile": "\/media\/myCloudDrive\/ncdata\/nextcloud.log",
        "loglevel": "2",
        "log_type": "file",
        "cache_path": "\/media\/USBdrive\/ncdata\/cache",
        "theme": "",
        "data-fingerprint": "2f561115379c32e4265af6fef8cb66ad"
    }
}

HTTPd logs

[Thu Mar 31 02:01:58.030529 2022] [proxy_fcgi:error] [pid 1849:tid 139918258054912] [client 192.168.1.113:49192] AH01067: Failed to read FastCGI header
[Thu Mar 31 02:01:58.030548 2022] [proxy_fcgi:error] [pid 1849:tid 139918258054912] (104)Connection reset by peer: [client 192.168.1.113:49192] AH01075: Error dispatching request to :4443: 
[Thu Mar 31 02:01:58.206379 2022] [mpm_event:notice] [pid 1846:tid 139918556755072] AH00491: caught SIGTERM, shutting down
[Thu Mar 31 02:03:22.055160 2022] [ssl:warn] [pid 1626:tid 140615158576256] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 31 02:03:22.055550 2022] [ssl:error] [pid 1626:tid 140615158576256] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=ncp-vm / issuer: CN=ncp-vm / serial: 2EDDE7C638001777BA65E8D27AD55C03A35FF967 / notbefore: Nov  8 16:39:18 2021 GMT / notafter: Nov  6 16:39:18 2031 GMT]
[Thu Mar 31 02:03:22.055563 2022] [ssl:error] [pid 1626:tid 140615158576256] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Mar 31 02:03:22.076219 2022] [ssl:warn] [pid 1627:tid 140615158576256] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 31 02:03:22.076360 2022] [ssl:error] [pid 1627:tid 140615158576256] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=ncp-vm / issuer: CN=ncp-vm / serial: 2EDDE7C638001777BA65E8D27AD55C03A35FF967 / notbefore: Nov  8 16:39:18 2021 GMT / notafter: Nov  6 16:39:18 2031 GMT]
[Thu Mar 31 02:03:22.076374 2022] [ssl:error] [pid 1627:tid 140615158576256] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Mar 31 02:03:22.079206 2022] [mpm_event:notice] [pid 1627:tid 140615158576256] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Thu Mar 31 02:03:22.079264 2022] [core:notice] [pid 1627:tid 140615158576256] AH00094: Command line: '/usr/sbin/apache2'
[Thu Mar 31 12:33:20.988541 2022] [mpm_event:notice] [pid 1627:tid 140615158576256] AH00491: caught SIGTERM, shutting down
[Thu Mar 31 12:39:15.511609 2022] [ssl:warn] [pid 1861:tid 139765770048640] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 31 12:39:15.511946 2022] [ssl:error] [pid 1861:tid 139765770048640] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=ncp-vm / issuer: CN=ncp-vm / serial: 2EDDE7C638001777BA65E8D27AD55C03A35FF967 / notbefore: Nov  8 16:39:18 2021 GMT / notafter: Nov  6 16:39:18 2031 GMT]
[Thu Mar 31 12:39:15.511959 2022] [ssl:error] [pid 1861:tid 139765770048640] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Mar 31 12:39:15.526422 2022] [ssl:warn] [pid 1862:tid 139765770048640] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 31 12:39:15.526544 2022] [ssl:error] [pid 1862:tid 139765770048640] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=ncp-vm / issuer: CN=ncp-vm / serial: 2EDDE7C638001777BA65E8D27AD55C03A35FF967 / notbefore: Nov  8 16:39:18 2021 GMT / notafter: Nov  6 16:39:18 2031 GMT]
[Thu Mar 31 12:39:15.526557 2022] [ssl:error] [pid 1862:tid 139765770048640] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Mar 31 12:39:15.528168 2022] [mpm_event:notice] [pid 1862:tid 139765770048640] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Thu Mar 31 12:39:15.528202 2022] [core:notice] [pid 1862:tid 139765770048640] AH00094: Command line: '/usr/sbin/apache2'

Database logs

2022-03-31 12:39:35 0 [Note] InnoDB: Uses event mutexes
2022-03-31 12:39:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-03-31 12:39:35 0 [Note] InnoDB: Number of pools: 1
2022-03-31 12:39:35 0 [Note] InnoDB: Using generic crc32 instructions
2022-03-31 12:39:35 0 [Note] InnoDB: Initializing buffer pool, total size = 384M, instances = 1, chunk size = 128M
2022-03-31 12:39:35 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-31 12:39:35 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2022-03-31 12:39:36 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-03-31 12:39:36 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-31 12:39:36 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-31 12:39:36 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-03-31 12:39:36 0 [Note] InnoDB: 10.3.34 started; log sequence number 2645245145; transaction id 6637109
2022-03-31 12:39:36 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-31 12:39:36 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-03-31 12:39:36 0 [Note] Server socket created on IP: '127.0.0.1'.
2022-03-31 12:39:36 0 [Note] Reading of all Master_info entries succeeded
2022-03-31 12:39:36 0 [Note] Added new Master_info '' to hash table
2022-03-31 12:39:36 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.34-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Debian 10
2022-03-31 12:39:36 0 [Note] InnoDB: Buffer pool(s) load completed at 220331 12:39:36

Nextcloud logs


nc-datadir didn’t move my datadir, so I manually modified the datadir in config.php. My issue was that I made a mistake in doing so. It should have been /media/wdred/ncdata/data, but I had entered it as /media/wdred/ncdata. Very weird (to me) that I could still see my file list in nextcloud despite that error! Thank you very much for your help.

Edit: I am unflagging this as the solution, as I am now getting an “unknown error” when attempting to upload files… delving into the log now.

Here are my latest logs. I am going to dive into them and see if I can google my way out of it… but I doubt it!

NextCloudPi diagnostics

/usr/local/bin/ncp-diag: line 38: swapon: command not found
NextCloudPi version  v1.46.7
NextCloudPi image    NextCloudPi_11-08-21
OS                   Debian GNU/Linux 10. 4.19.0-20-amd64 (x86_64)
automount            yes
USB devices          sdd 
datadir              /media/wdred/ncdata/data
data in SD           no
data filesystem      btrfs
data disk usage      329G/2.0T
rootfs usage         4.8G/20G
swapfile             none
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    20.0.11.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
internet check       ok
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               24min

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "11": "75.68.160.139",
            "1": "192.168.1.252",
            "14": "nextcloudpi",
            "3": "nextcloudpi"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "20.0.11.1",
        "overwrite.cli.url": "An unhandled exception has been thrown:\nRedisException: No such file or directory in \/var\/www\/nextcloud\/lib\/private\/RedisFactory.php:92\nStack trace:\n#0 \/var\/www\/nextcloud\/lib\/private\/RedisFactory.php(92): Redis->connect('\/var\/run\/redis\/...', 0, 0)\n#1 \/var\/www\/nextcloud\/lib\/private\/RedisFactory.php(108): OC\\RedisFactory->create()\n#2 \/var\/www\/nextcloud\/lib\/private\/Memcache\/Redis.php(43): OC\\RedisFactory->getInstance()\n#3 \/var\/www\/nextcloud\/lib\/private\/Memcache\/Factory.php(135): OC\\Memcache\\Redis->__construct('d06d1cb3b900ce4...')\n#4 \/var\/www\/nextcloud\/lib\/private\/Server.php(1018): OC\\Memcache\\Factory->createLocking('lock')\n#5 \/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php(155): OC\\Server->OC\\{closure}(Object(OC\\Server))\n#6 \/var\/www\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php(118): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}(Object(Pimple\\Container))\n#7 \/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php(122): Pimple\\Container->offsetGet('OCP\\\\Lock\\\\ILocki...')\n#8 \/var\/www\/nextcloud\/lib\/private\/ServerContainer.php(156): OC\\AppFramework\\Utility\\SimpleContainer->query('OCP\\\\Lock\\\\ILocki...', true)\n#9 \/var\/www\/nextcloud\/lib\/private\/Server.php(1977): OC\\ServerContainer->query('OCP\\\\Lock\\\\ILocki...')\n#10 \/var\/www\/nextcloud\/lib\/private\/Files\/View.php(118): OC\\Server->getLockingProvider()\n#11 \/var\/www\/nextcloud\/lib\/private\/Server.php(395): OC\\Files\\View->__construct()\n#12 \/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php(155): OC\\Server->OC\\{closure}(Object(OC\\Server))\n#13 \/var\/www\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php(118): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}(Object(Pimple\\Container))\n#14 \/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php(122): Pimple\\Container->offsetGet('OC\\\\Files\\\\Node\\\\H...')\n#15 \/var\/www\/nextcloud\/lib\/private\/ServerContainer.php(156): OC\\AppFramework\\Utility\\SimpleContainer->query('OC\\\\Files\\\\Node\\\\H...', true)\n#16 \/var\/www\/nextcloud\/lib\/private\/Server.php(1324): OC\\ServerContainer->query('OC\\\\Files\\\\Node\\\\H...')\n#17 \/var\/www\/nextcloud\/lib\/base.php(595): OC\\Server->boot()\n#18 \/var\/www\/nextcloud\/lib\/base.php(1091): OC::init()\n#19 \/var\/www\/nextcloud\/console.php(49): require_once('\/var\/www\/nextcl...')\n#20 \/var\/www\/nextcloud\/occ(11): require_once('\/var\/www\/nextcl...')\n#21 {main}:\/\/nextcloudpi\/",
        "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": "\/media\/myCloudDrive\/ncdata\/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",
        "maintenance": false,
        "logfile": "\/media\/myCloudDrive\/ncdata\/nextcloud.log",
        "loglevel": "2",
        "log_type": "file",
        "cache_path": "\/media\/USBdrive\/ncdata\/cache",
        "theme": "",
        "data-fingerprint": "2f561115379c32e4265af6fef8cb66ad"
    }
}

HTTPd logs

[Sat Apr 02 17:46:06.594000 2022] [ssl:error] [pid 1791:tid 140250844337280] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Apr 02 17:46:06.596454 2022] [mpm_event:notice] [pid 1791:tid 140250844337280] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sat Apr 02 17:46:06.596522 2022] [core:notice] [pid 1791:tid 140250844337280] AH00094: Command line: '/usr/sbin/apache2'
[Sat Apr 02 17:46:31.404788 2022] [proxy_fcgi:error] [pid 1793:tid 140250834044672] [client 192.168.1.113:48154] AH01067: Failed to read FastCGI header
[Sat Apr 02 17:46:31.404868 2022] [proxy_fcgi:error] [pid 1793:tid 140250834044672] (104)Connection reset by peer: [client 192.168.1.113:48154] AH01075: Error dispatching request to :4443: 
[Sat Apr 02 17:47:36.587857 2022] [proxy_fcgi:error] [pid 1793:tid 140250834044672] [client 192.168.1.113:48154] AH01067: Failed to read FastCGI header
[Sat Apr 02 17:47:36.587924 2022] [proxy_fcgi:error] [pid 1793:tid 140250834044672] (104)Connection reset by peer: [client 192.168.1.113:48154] AH01075: Error dispatching request to :4443: 
[Sat Apr 02 17:47:36.770215 2022] [mpm_event:notice] [pid 1791:tid 140250844337280] AH00491: caught SIGTERM, shutting down
[Sat Apr 02 17:48:45.905502 2022] [ssl:warn] [pid 1813:tid 140146698118272] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sat Apr 02 17:48:45.905909 2022] [ssl:error] [pid 1813:tid 140146698118272] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=ncp-vm / issuer: CN=ncp-vm / serial: 2EDDE7C638001777BA65E8D27AD55C03A35FF967 / notbefore: Nov  8 16:39:18 2021 GMT / notafter: Nov  6 16:39:18 2031 GMT]
[Sat Apr 02 17:48:45.905931 2022] [ssl:error] [pid 1813:tid 140146698118272] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Apr 02 17:48:45.920295 2022] [ssl:warn] [pid 1814:tid 140146698118272] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sat Apr 02 17:48:45.920410 2022] [ssl:error] [pid 1814:tid 140146698118272] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=ncp-vm / issuer: CN=ncp-vm / serial: 2EDDE7C638001777BA65E8D27AD55C03A35FF967 / notbefore: Nov  8 16:39:18 2021 GMT / notafter: Nov  6 16:39:18 2031 GMT]
[Sat Apr 02 17:48:45.920440 2022] [ssl:error] [pid 1814:tid 140146698118272] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Apr 02 17:48:45.922038 2022] [mpm_event:notice] [pid 1814:tid 140146698118272] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sat Apr 02 17:48:45.922069 2022] [core:notice] [pid 1814:tid 140146698118272] AH00094: Command line: '/usr/sbin/apache2'
[Sat Apr 02 17:49:11.160297 2022] [proxy_fcgi:error] [pid 1815:tid 140146687825664] [client 192.168.1.113:48178] AH01067: Failed to read FastCGI header
[Sat Apr 02 17:49:11.160365 2022] [proxy_fcgi:error] [pid 1815:tid 140146687825664] (104)Connection reset by peer: [client 192.168.1.113:48178] AH01075: Error dispatching request to :4443: 
[Sat Apr 02 17:49:11.161415 2022] [proxy_fcgi:error] [pid 1815:tid 140146662647552] [client 192.168.1.113:48178] AH01067: Failed to read FastCGI header
[Sat Apr 02 17:49:11.161435 2022] [proxy_fcgi:error] [pid 1815:tid 140146662647552] (104)Connection reset by peer: [client 192.168.1.113:48178] AH01075: Error dispatching request to :4443: 

Database logs

2022-04-02 17:49:07 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-04-02 17:49:07 0 [Note] InnoDB: Number of pools: 1
2022-04-02 17:49:07 0 [Note] InnoDB: Using generic crc32 instructions
2022-04-02 17:49:07 0 [Note] InnoDB: Initializing buffer pool, total size = 384M, instances = 1, chunk size = 128M
2022-04-02 17:49:07 0 [Note] InnoDB: Completed initialization of buffer pool
2022-04-02 17:49:07 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2022-04-02 17:49:07 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-04-02 17:49:07 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-04-02 17:49:07 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-04-02 17:49:07 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-04-02 17:49:07 0 [Note] InnoDB: Waiting for purge to start
2022-04-02 17:49:07 0 [Note] InnoDB: 10.3.34 started; log sequence number 2662599837; transaction id 6643565
2022-04-02 17:49:08 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-04-02 17:49:08 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-04-02 17:49:08 0 [Note] Server socket created on IP: '127.0.0.1'.
2022-04-02 17:49:08 0 [Note] Reading of all Master_info entries succeeded
2022-04-02 17:49:08 0 [Note] Added new Master_info '' to hash table
2022-04-02 17:49:08 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.34-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Debian 10
2022-04-02 17:49:08 0 [Note] InnoDB: Buffer pool(s) load completed at 220402 17:49:08

The nextcloud logs are too long to post here, so I put them in this pastebin. https://pastebin.com/gvUXJtWL

If you move it manually, there are several steps to follow:

1 Like

It says that you are in maintenance mode, you can change that:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#maintenance-commands

The maintenance mode was to make my synced devices less angry about the constant errors. :slight_smile:

I don’t think the scan was the issue as it could see my files in nextcloud, I just couldn’t download them.

In a desperate attempt to fix was ever dammed mess I made, I did a backup and then restored to a new vm. That worked! Mostly… I am now having the issue that when I try to auto-upload from my android phone, I get an error that “Server not found,” and “Folder error.”

Manual uploads from the app, and automatic uploads from an iphone work fine. My attempts to “google” this issue have born no fruit.

NextCloudPi diagnostics

/usr/local/bin/ncp-diag: line 38: swapon: command not found
NextCloudPi version  v1.46.10
NextCloudPi image    NextCloudPi_03-01-22
OS                   Debian GNU/Linux 11. 5.10.0-13-amd64 (x86_64)
automount            no
USB devices          sdd 
datadir              /media/wdred/ncdata/data
data in SD           no
data filesystem      btrfs
data disk usage      330G/1.0T
rootfs usage         4.7G/20G
swapfile             none
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    20.0.11.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
internet check       ok
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               6:56

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "11": "75.68.160.139",
            "1": "192.168.1.252",
            "14": "nextcloudpi",
            "3": "nextcloudpi"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "20.0.11.1",
        "overwrite.cli.url": "https:\/\/nextcloudpi\/",
        "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": "\/media\/wdred\/ncdata\/data\/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",
        "maintenance": false,
        "logfile": "\/media\/wdred\/ncdata\/data\/nextcloud.log",
        "loglevel": "2",
        "log_type": "file",
        "cache_path": "\/media\/wdred\/ncdata\/cache",
        "theme": "",
        "data-fingerprint": "ddadf625296cc3c702e25800e5b22c2c"
    }
}

HTTPd logs

[Tue Apr 05 10:25:43.874149 2022] [ssl:error] [pid 463:tid 140662384799040] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue Apr 05 10:25:43.992195 2022] [ssl:warn] [pid 513:tid 140662384799040] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Apr 05 10:25:43.992315 2022] [ssl:error] [pid 513:tid 140662384799040] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=ncp-vm / issuer: CN=ncp-vm / serial: 471911E306419F7C745EDCA101D4DFB11A5A9A83 / notbefore: Mar  1 21:30:57 2022 GMT / notafter: Feb 27 21:30:57 2032 GMT]
[Tue Apr 05 10:25:43.992328 2022] [ssl:error] [pid 513:tid 140662384799040] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue Apr 05 10:25:43.996860 2022] [mpm_event:notice] [pid 513:tid 140662384799040] AH00489: Apache/2.4.53 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Tue Apr 05 10:25:43.996910 2022] [core:notice] [pid 513:tid 140662384799040] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 05 10:41:44.096438 2022] [proxy_fcgi:error] [pid 520:tid 140662242178816] [client 192.168.1.113:48954] AH01067: Failed to read FastCGI header
[Tue Apr 05 10:41:44.096532 2022] [proxy_fcgi:error] [pid 520:tid 140662242178816] (104)Connection reset by peer: [client 192.168.1.113:48954] AH01075: Error dispatching request to :4443: 
[Tue Apr 05 10:41:44.329146 2022] [mpm_event:notice] [pid 513:tid 140662384799040] AH00492: caught SIGWINCH, shutting down gracefully
[Tue Apr 05 10:50:26.470901 2022] [ssl:warn] [pid 447:tid 140204033039680] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Apr 05 10:50:26.484906 2022] [ssl:error] [pid 447:tid 140204033039680] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=ncp-vm / issuer: CN=ncp-vm / serial: 471911E306419F7C745EDCA101D4DFB11A5A9A83 / notbefore: Mar  1 21:30:57 2022 GMT / notafter: Feb 27 21:30:57 2032 GMT]
[Tue Apr 05 10:50:26.484932 2022] [ssl:error] [pid 447:tid 140204033039680] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue Apr 05 10:50:26.544120 2022] [ssl:warn] [pid 465:tid 140204033039680] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Apr 05 10:50:26.544329 2022] [ssl:error] [pid 465:tid 140204033039680] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=ncp-vm / issuer: CN=ncp-vm / serial: 471911E306419F7C745EDCA101D4DFB11A5A9A83 / notbefore: Mar  1 21:30:57 2022 GMT / notafter: Feb 27 21:30:57 2032 GMT]
[Tue Apr 05 10:50:26.544344 2022] [ssl:error] [pid 465:tid 140204033039680] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue Apr 05 10:50:26.570595 2022] [mpm_event:notice] [pid 465:tid 140204033039680] AH00489: Apache/2.4.53 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Tue Apr 05 10:50:26.570665 2022] [core:notice] [pid 465:tid 140204033039680] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 05 10:50:26.921159 2022] [proxy:error] [pid 466:tid 140203823277824] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.4-fpm.sock (*) failed
[Tue Apr 05 10:50:26.921234 2022] [proxy_fcgi:error] [pid 466:tid 140203823277824] [client 192.168.1.113:48958] AH01079: failed to make connection to backend: httpd-UDS
[Tue Apr 05 16:36:39.420274 2022] [proxy_fcgi:error] [pid 466:tid 140203553380096] [client 192.168.1.247:59374] AH01071: Got error 'Primary script unknown', referer: http://jnc.duckdns.org/wp-login.php

Database logs

tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory

Full logs:
https://pastebin.com/grM04ni0