Getting 'did not connect: potential security issue'

Recently moved my router, and my rasberrypi is plugged into the router, giving it a different IP. I pointed my domains A name to the new IP and regenerated the SSL certificate via certbot -q renew & through ncp-config’s let’s encrypt to no avail.

I can’t get into it via a local network either, it’s issuing:
‘’’

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
‘’’

I’m running an SSD as my data/database via usb 3.

Running NextCloudPi
NextCloud version: 17.0.2.1
Operating system: Debian
Apache

Is this the first time you’ve seen this error? (Y/N): Yes

Error.log:
‘’’

Summary
[Sun Feb 02 00:00:02.680902 2020] [ssl:warn] [pid 778:tid 3069174288] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 00:00:02.682354 2020] [mpm_event:notice] [pid 778:tid 3069174288] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Feb 02 00:00:02.682383 2020] [core:notice] [pid 778:tid 3069174288] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 19:17:07.279119 2020] [ssl:warn] [pid 657:tid 3069600272] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 19:17:07.324660 2020] [ssl:warn] [pid 765:tid 3069600272] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 19:17:07.330694 2020] [mpm_event:notice] [pid 765:tid 3069600272] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Feb 02 19:17:07.330794 2020] [core:notice] [pid 765:tid 3069600272] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 19:17:06.858076 2020] [ssl:warn] [pid 645:tid 3070013968] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 19:17:06.895166 2020] [ssl:warn] [pid 762:tid 3070013968] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 19:17:06.900636 2020] [mpm_event:notice] [pid 762:tid 3070013968] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Feb 02 19:17:06.900732 2020] [core:notice] [pid 762:tid 3070013968] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 19:17:37.822461 2020] [ssl:warn] [pid 614:tid 3070149136] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 19:17:37.891167 2020] [ssl:warn] [pid 757:tid 3070149136] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 19:17:37.896638 2020] [mpm_event:notice] [pid 757:tid 3070149136] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Feb 02 19:17:37.896740 2020] [core:notice] [pid 757:tid 3070149136] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 21:41:15.075062 2020] [mpm_event:notice] [pid 757:tid 3070149136] AH00493: SIGUSR1 received.  Doing graceful restart
[Sun Feb 02 21:41:15.107561 2020] [ssl:warn] [pid 757:tid 3070149136] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 21:41:15.108985 2020] [mpm_event:notice] [pid 757:tid 3070149136] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Feb 02 21:41:15.109020 2020] [core:notice] [pid 757:tid 3070149136] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 21:43:21.447140 2020] [mpm_event:notice] [pid 757:tid 3070149136] AH00491: caught SIGTERM, shutting down
[Sun Feb 02 21:44:00.736245 2020] [ssl:warn] [pid 609:tid 3069215248] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 21:44:01.806756 2020] [ssl:warn] [pid 773:tid 3069215248] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 21:44:01.811755 2020] [mpm_event:notice] [pid 773:tid 3069215248] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Feb 02 21:44:01.811870 2020] [core:notice] [pid 773:tid 3069215248] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 02 21:55:18.786268 2020] [mpm_event:notice] [pid 773:tid 3069215248] AH00491: caught SIGTERM, shutting down
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$
[Sun Feb 02 21:55:25.932702 2020] [ssl:warn] [pid 756:tid 3069551120] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 02 21:55:25.937917 2020] [mpm_event:notice] [pid 756:tid 3069551120] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Feb 02 21:55:25.938021 2020] [core:notice] [pid 756:tid 3069551120] AH00094: Command line: '/usr/sbin/apache2'

‘’’

nc-error.log

Summary

‘’’
[Sun Feb 02 09:23:57.648181 2020] [authz_core:error] [pid 25203:tid 2763351072] [client 50.65.78.229:65372] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 10:27:23.109591 2020] [authz_core:error] [pid 25202:tid 2838885408] [client 50.65.78.229:54253] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 16:27:59.353550 2020] [authz_core:error] [pid 25203:tid 2763351072] [client 50.65.78.229:58951] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 16:57:50.537097 2020] [authz_core:error] [pid 25203:tid 2771743776] [client 50.65.78.229:59254] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 16:59:10.072083 2020] [authz_core:error] [pid 25203:tid 2763351072] [client 50.65.78.229:49783] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 17:02:24.302360 2020] [authz_core:error] [pid 25203:tid 2771743776] [client 50.65.78.229:49729] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 17:06:36.184970 2020] [authz_core:error] [pid 25203:tid 2763351072] [client 50.65.78.229:50295] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 17:22:36.214315 2020] [authz_core:error] [pid 25203:tid 2763351072] [client 50.65.78.229:50668] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 17:38:36.289708 2020] [authz_core:error] [pid 25203:tid 2763351072] [client 50.65.78.229:51083] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 17:46:36.247210 2020] [authz_core:error] [pid 25203:tid 2771743776] [client 50.65.78.229:51391] AH01630: client denied by server configuration: /var/www/nextcloud/config
[Sun Feb 02 18:02:36.284321 2020] [authz_core:error] [pid 25203:tid 2771743776] [client 50.65.78.229:52004] AH01630: client denied by server configuration: /var/www/nextcloud/config
‘’’

It now seems that when I try to access my USB, it freezes up for some time before opening…
I try:
cd /media/myCloudDrive/
ls
freezes for about 1 minute

Sometimes it won’t even go to the path /media/myCloudDrive/, saying there’s no such directory.

Any idea what’s happening? It detects the drive… but doesn’t seem to want to read it or something now?

It looks like there’s some kind of USB error… any way of fixing this without having to redo my entire nextcloud install? :frowning:

Here’s my dmesg…
https://pastebin.com/CripVMBp

So, I’m guessing a power outage I had corrupted my harddrive.

My NextCloud data was stored on my SSD, and now I can’t even force a clean install on the SD as it says
Nextcloud is not installed - only a limited number of commands are available

I’ve tried running:
pi@raspberrypi:/var/www/nextcloud $ sudo -u www-data php occ maintenance:install --database “mysql” --database-name “nextcloud” --database-user “root” --database-pass “pw” --admin-user “admin” --admin-pass “pw”
with this error
Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory

Anyone able to assist getting Nextcloud back onto my SD card?

I can access localhost:4443, but nothing works in it (because my datadir was on my usb)
I can run ncp-config, same as above

I used this installer originally, so I’m not sure exactly what I’m missing.
https://docs.nextcloudpi.com/en/curl-installer/