Open bolegmailru opened 11 months ago
Having the same issue. Here's what happens before it errors out. Let me know if you need the entire log file.
I'm going to need a lot more information to have any idea what's going on. To name a few:
script nextcloud.log ./nextcloud-jail.sh
as recommended, this would be saved in nextcloud.log
; otherwise check your scrollback buffer). My suspicion is that mysql failed to install, and if that happened, you should see errors not too long after these lines:
Not sure why you never got a response, but I just hit the same error. I don't see any signs of anything failing before then - the pkg install seems to have gone just fine.
nextcloud-config
JAIL_IP="192.168.1.203"
DEFAULT_GW_IP="192.168.1.1"
POOL_PATH="/mnt/chanzelia/documents"
TIME_ZONE="Europe/London"
HOST_NAME="nextcloud.mydomain.com"
STANDALONE_CERT=1
CERT_EMAIL="<myemail>"
COUNTRY_CODE="GBR
Here's what I'm seeing in the log
+ Starting services OK
+ Executing poststart OK
+ iocage exec nextcloud pw usermod www -G redis
+ iocage exec nextcloud chmod 777 /var/run/redis/redis.sock.
+ [ '' '==' true ]
+ [ mariadb '=' mariadb ]
+ iocage exec nextcloud mysql -u root -e 'CREATE DATABASE nextcloud;'
ERROR 2002 (HY000): Can't connect to local server through socket '/var/run/mysq>
Command: mysql -e CREATE DATABASE nextcloud; failed!
+ echo 'Failed to create MariaDB database, aborting'
Failed to create MariaDB database, aborting
+ exit 1
There does not appear to be a file/dir called /var/run/mysq (or mysql)
My mistake - I messed up the capitalisation of my pool name. Installation went fine now.
Failed to create MariaDb database aborting(