danb35 / freenas-iocage-nextcloud

Script to create an iocage jail on FreeNAS for the latest Nextcloud 28 release, including Caddy, MariaDB or PostgreSQL, and Let's Encrypt
GNU General Public License v3.0
250 stars 71 forks source link

Failed to create MariaDb database aborting #204

Open bolegmailru opened 11 months ago

bolegmailru commented 11 months ago

Failed to create MariaDb database aborting(

raffskid commented 4 months ago

Having the same issue. Here's what happens before it errors out. Let me know if you need the entire log file.

danb35 commented 4 months ago

I'm going to need a lot more information to have any idea what's going on. To name a few:

MoritzSchrenk commented 1 month ago

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)

MoritzSchrenk commented 1 month ago

My mistake - I messed up the capitalisation of my pool name. Installation went fine now.