Errors installing

Installation on an AWS micro instance showed that some things in the installation manual could be improved. The errors unfortunately led me to uninstall the software for now at least. I would file a bug report, but that’s difficult when problems occur during installation.

I think the memory requirements are higher than 1GB of RAM, it became unresponsively slow on the third party reqs. at least.

I found it surprising that certbot is automatically started. Doesn’t that assume NGINX is already preoperly configured and the files are properly located?

It also starts nextcloud.redis-server.
nextcloud.php-fpm.
nextcloud.mysql.
nextcloud.nextcloud-cron.
nextcloud.renew-certs.
nextcloud.mdns-publisher.
nextcloud.apache.
automatically, which I also didn’t expect. If you have mysql or fpm or redis or the others already running, will they play together nicely? Are they secured out of the box?

At least initially, a new password-less user is created. My log says there was no root user but I had already installed MySQL for Wordpress two days ago.

Then, later on the service has a problem but keeps trying. I think that also made my AWS VM unreachable and I had to reboot.

I didn’t get as far as configuring NGINX, that example looks good, but I run multiple websites from the same VM. That’s a specific issue. But before getting there I already ran into trouble with MySql, which was preinstalled for other applications (that use mysqli and not pod perhaps).

Would a wizard be an idea (port, web server, database config.)?

I don’t think it should start listening at port 80 if that’s what causing infinite errors here:
:
nextcloud.mysql[26078]: mysql.time_zone_transition_type OK
nextcloud.mysql[26078]: mysql.user OK
nextcloud.mysql[26078]: The sys schema is already up to date (version 1.5.1).
nextcloud.mysql[26078]: Checking databases.
nextcloud.mysql[26078]: sys.sys_config OK
nextcloud.mysql[26078]: Upgrade process completed successfully.
nextcloud.mysql[26078]: Checking if update is needed.
nextcloud.mysql[26078]: Restarting mysql server after upgrade…
kernel: [467480.589995] audit: type=1400 audit(1546924736.911:109): apparmor=“DENIED” operation=“exec” profile=“snap.nextcloud.mysql” name="/bin/systemctl" pid=26785 comm=“mysql.server” requested_mask=“x” denied_mask=“x” fsuid=0 ouid=0
kernel: [467480.605778] audit: type=1400 audit(1546924736.927:110): apparmor=“DENIED” operation=“exec” profile=“snap.nextcloud.mysql” name="/bin/systemctl" pid=26799 comm=“mysql.server” requested_mask=“x” denied_mask=“x” fsuid=0 ouid=0
nextcloud.mysql[26078]: Shutting down MySQL
nextcloud.mysql[26078]: … *
nextcloud.mysql[26078]: Starting MySQL
kernel: [467482.633213] audit: type=1400 audit(1546924738.955:111): apparmor=“DENIED” operation=“exec” profile=“snap.nextcloud.mysql” name="/bin/systemctl" pid=26829 comm=“mysql.server” requested_mask=“x” denied_mask=“x” fsuid=0 ouid=0
kernel: [467482.702205] audit: type=1400 audit(1546924739.023:112): apparmor=“DENIED” operation=“open” profile=“snap.nextcloud.mysql” name="/etc/mysql/mysql.cnf" pid=26851 comm=“my_print_defaul” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0
kernel: [467482.737395] audit: type=1400 audit(1546924739.059:113): apparmor=“DENIED” operation=“open” profile=“snap.nextcloud.mysql” name="/etc/mysql/mysql.cnf" pid=26902 comm=“my_print_defaul” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0
kernel: [467482.821363] audit: type=1400 audit(1546924739.143:114): apparmor=“DENIED” operation=“open” profile=“snap.nextcloud.mysql” name="/etc/mysql/mysql.cnf" pid=27016 comm=“mysqld” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0
nextcloud.mysql[26078]: . *
nextcloud.php-fpm[26076]: Obtaining nextcloud mysql credentials… done
kernel: [467484.934214] audit: type=1400 audit(1546924741.255:115): apparmor=“DENIED” operation=“file_mmap” profile=“snap.nextcloud.php-fpm” name="/" pid=27063 comm=“php-fpm” requested_mask=“w” denied_mask=“w” fsuid=0 ouid=0
nextcloud.apache[26096]: Waiting for PHP… done
nextcloud.apache[26096]: Configuring nextcloud…
nextcloud.apache[26096]: Making sure nextcloud is fully upgraded…
nextcloud.nextcloud-cron[26080]: Waiting for Nextcloud config dir… done
kernel: [467487.121895] audit: type=1400 audit(1546924743.443:116): apparmor=“DENIED” operation=“file_mmap” profile=“snap.nextcloud.apache” name="/" pid=27116 comm=“php” requested_mask=“w” denied_mask=“w” fsuid=0 ouid=0
kernel: [467487.225653] audit: type=1400 audit(1546924743.547:117): apparmor=“DENIED” operation=“file_mmap” profile=“snap.nextcloud.nextcloud-cron” name="/" pid=27141 comm=“php” requested_mask=“w” denied_mask=“w” fsuid=0 ouid=0
snapd[1189]: udevmon.go:184: udev monitor observed remove event for unknown device “/sys/kernel/slab/:aA-0000192/cgroup/dentry(808:systemd-hostnamed.service)”
snapd[1189]: udevmon.go:184: udev monitor observed remove event for unknown device “/sys/kernel/slab/ext4_inode_cache/cgroup/ext4_inode_cache(808:systemd-hostnamed.service)”
snapd[1189]: udevmon.go:184: udev monitor observed remove event for unknown device “/sys/kernel/slab/radix_tree_node/cgroup/radix_tree_node(808:systemd-hostnamed.service)”
nextcloud.apache[26096]: Nextcloud is not installed - only a limited number of commands are available
nextcloud.apache[26096]:
nextcloud.apache[26096]: [Symfony\Component\Console\Exception\CommandNotFoundException]
nextcloud.apache[26096]: Command “upgrade” is not defined.
nextcloud.apache[26096]:
nextcloud.apache[26096]: All set! Running httpd…
nextcloud.apache[26096]: No certificates are active: using HTTP only
nextcloud.apache[26096]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
nextcloud.apache[26096]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
nextcloud.apache[26096]: no listening sockets available, shutting down
nextcloud.apache[26096]: AH00015: Unable to open logs
systemd[1]: snap.nextcloud.apache.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: snap.nextcloud.apache.service: Failed with result ‘exit-code’.
systemd[1]: snap.nextcloud.apache.service: Service hold-off time over, scheduling restart.
systemd[1]: snap.nextcloud.apache.service: Scheduled restart job, restart counter is at 1.
systemd[1]: Stopped Service for snap application nextcloud.apache.
systemd[1]: Started Service for snap application nextcloud.apache.
nextcloud.apache[27213]: Making sure nextcloud is setup…
kernel: [467492.703926] audit: type=1400 audit(1546924749.023:118): apparmor=“DENIED” operation=“file_mmap” profile=“snap.nextcloud.apache” name="/" pid=27333 comm=“php” requested_mask=“w” denied_mask=“w” fsuid=0 ouid=0
nextcloud.apache[27213]: Nextcloud is not installed - only a limited number of commands are available
nextcloud.apache[27213]:
nextcloud.apache[27213]: [Symfony\Component\Console\Exception\CommandNotFoundException]
nextcloud.apache[27213]: There are no commands defined in the “config:system” namespace.
nextcloud.apache[27213]:
kernel: [467494.851075] audit: type=1400 audit(1546924751.171:119): apparmor=“DENIED” operation=“file_mmap” profile=“snap.nextcloud.apache” name="/" pid=27392 comm=“php” requested_mask=“w” denied_mask=“w” fsuid=0 ouid=0
nextcloud.apache[27213]: Nextcloud is not installed - only a limited number of commands are available
nextcloud.apache[27213]:
nextcloud.apache[27213]: [Symfony\Component\Console\Exception\CommandNotFoundException]
nextcloud.apache[27213]: There are no commands defined in the “config:system” namespace.
nextcloud.apache[27213]:
kernel: [467497.039100] audit: type=1400 audit(1546924753.359:120): apparmor=“DENIED” operation=“file_mmap” profile=“snap.nextcloud.apache” name="/" pid=27447 comm=“php” requested_mask=“w” denied_mask=“w” fsuid=0 ouid=0
nextcloud.apache[27213]: Nextcloud is not installed - only a limited number of commands are available
:
repeat