I have now failed in another way!
I tried to create an LXC from scratch, using the debian buster instructions. I used proxmox’s debian-10-standard template. After creating the lxc, I had to enter
apt-get update --allow-releaseinfo-change
as buster is now oldstable
I then did
apt-get upgrade
apt install curl
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash
from there, nextcloudpi is running! woohoo! I can access ncp-config and so on. However, when I navigate to the IP for my instance, my browser just reports “This site can’t be reached. The connection was reset.”
I’ve added the IP to trusted_domains in config.php (localhost was already there), and tried a few other things in ncp-config to no avail.
This is the output of sudo ncp-report
, excluding the Nextcloud Logs. Is any kind person able to see any obvious issues in here and set me straight?
NextCloudPi diagnostics
NextCloudPi version v1.46.7
NextCloudPi image NextCloudPi_lxc_01-15-22
OS Debian GNU/Linux 10. 5.13.19-2-pve (x86_64)
automount no
USB devices none
datadir /var/www/nextcloud/data
data in SD yes
data filesystem ext2/ext3
data disk usage 2.2G/7.8G
rootfs usage 2.2G/7.8G
swapfile none
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 22.2.2.0
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 14min
Nextcloud configuration
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": {
"0": "localhost",
"7": "nextcloudpi",
"5": "nextcloudpi.local",
"8": "nextcloudpi.lan",
"3": "nextcloudpi",
"9": "192.168.1.244",
"1": "192.168.1.244",
"14": "NextCloudPiLXCDIY.local",
"11": "75.68.160.139"
},
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "22.2.2.0",
"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": "\/var\/www\/nextcloud\/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"
}
}
HTTPd logs
[Sat Jan 15 19:42:57.167637 2022] [ssl:error] [pid 144:tid 140447081096320] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Jan 15 19:42:57.168258 2022] [ssl:error] [pid 144:tid 140447081096320] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 754BC334BB9ED71FD78EE21D480E0CCDE3A15384 / notbefore: Dec 11 08:03:36 2020 GMT / notafter: Dec 9 08:03:36 2030 GMT]
[Sat Jan 15 19:42:57.168268 2022] [ssl:error] [pid 144:tid 140447081096320] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sat Jan 15 19:42:57.187838 2022] [ssl:error] [pid 241:tid 140447081096320] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 754BC334BB9ED71FD78EE21D480E0CCDE3A15384 / notbefore: Dec 11 08:03:36 2020 GMT / notafter: Dec 9 08:03:36 2030 GMT]
[Sat Jan 15 19:42:57.187866 2022] [ssl:error] [pid 241:tid 140447081096320] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Jan 15 19:42:57.189188 2022] [ssl:error] [pid 241:tid 140447081096320] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 754BC334BB9ED71FD78EE21D480E0CCDE3A15384 / notbefore: Dec 11 08:03:36 2020 GMT / notafter: Dec 9 08:03:36 2030 GMT]
[Sat Jan 15 19:42:57.189212 2022] [ssl:error] [pid 241:tid 140447081096320] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sat Jan 15 19:42:57.192300 2022] [mpm_event:notice] [pid 241:tid 140447081096320] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sat Jan 15 19:42:57.192339 2022] [core:notice] [pid 241:tid 140447081096320] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jan 15 19:53:34.618942 2022] [mpm_event:notice] [pid 241:tid 140447081096320] AH00491: caught SIGTERM, shutting down
[Sun Jan 16 18:51:37.904844 2022] [ssl:error] [pid 160:tid 139925875594368] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 754BC334BB9ED71FD78EE21D480E0CCDE3A15384 / notbefore: Dec 11 08:03:36 2020 GMT / notafter: Dec 9 08:03:36 2030 GMT]
[Sun Jan 16 18:51:37.905096 2022] [ssl:error] [pid 160:tid 139925875594368] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Jan 16 18:51:37.905644 2022] [ssl:error] [pid 160:tid 139925875594368] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 754BC334BB9ED71FD78EE21D480E0CCDE3A15384 / notbefore: Dec 11 08:03:36 2020 GMT / notafter: Dec 9 08:03:36 2030 GMT]
[Sun Jan 16 18:51:37.905666 2022] [ssl:error] [pid 160:tid 139925875594368] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sun Jan 16 18:51:37.940987 2022] [ssl:error] [pid 234:tid 139925875594368] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 754BC334BB9ED71FD78EE21D480E0CCDE3A15384 / notbefore: Dec 11 08:03:36 2020 GMT / notafter: Dec 9 08:03:36 2030 GMT]
[Sun Jan 16 18:51:37.941017 2022] [ssl:error] [pid 234:tid 139925875594368] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Jan 16 18:51:37.941495 2022] [ssl:error] [pid 234:tid 139925875594368] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 754BC334BB9ED71FD78EE21D480E0CCDE3A15384 / notbefore: Dec 11 08:03:36 2020 GMT / notafter: Dec 9 08:03:36 2030 GMT]
[Sun Jan 16 18:51:37.941505 2022] [ssl:error] [pid 234:tid 139925875594368] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sun Jan 16 18:51:37.945855 2022] [mpm_event:notice] [pid 234:tid 139925875594368] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Jan 16 18:51:37.945892 2022] [core:notice] [pid 234:tid 139925875594368] AH00094: Command line: '/usr/sbin/apache2'
Database logs
2022-01-16 18:51:38 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-01-16 18:51:38 0 [Note] InnoDB: Number of pools: 1
2022-01-16 18:51:38 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-01-16 18:51:38 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 1, chunk size = 128M
2022-01-16 18:51:38 0 [Note] InnoDB: Completed initialization of buffer pool
2022-01-16 18:51:38 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2022-01-16 18:51:38 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-01-16 18:51:38 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-01-16 18:51:38 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-01-16 18:51:38 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-01-16 18:51:38 0 [Note] InnoDB: Waiting for purge to start
2022-01-16 18:51:38 0 [Note] InnoDB: 10.3.31 started; log sequence number 3573277; transaction id 3901
2022-01-16 18:51:38 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-01-16 18:51:38 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-01-16 18:51:38 0 [Note] Server socket created on IP: '127.0.0.1'.
2022-01-16 18:51:38 0 [Note] Reading of all Master_info entries succeeded
2022-01-16 18:51:38 0 [Note] Added new Master_info '' to hash table
2022-01-16 18:51:38 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.31-MariaDB-0+deb10u1' socket: '/run/mysqld/mysqld.sock' port: 3306 Debian 10
2022-01-16 18:51:38 0 [Note] InnoDB: Buffer pool(s) load completed at 220116 18:51:38
Also, whoever put the code for sections and code snippets right into the log output… genius!