Ubuntu 18.04.2 LTS 64bit
Installing Nextcloudpi with docker x86
Disk made with Disks
Formated Btrfs with luks
Mounted with defaults nosuid,nodev,nofail,x-gvfs-show 0 0
I have two dedicated drives, one for the documents and one for the documents backup
Docker command
IP=192.168.1.12
server@server:~$ docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /mnt/UID Name Here :/data --name nextcloudpi ownyourbits/nextcloudpi-x86 $IP
Making /usr/local/etc/ncp-config.d persistent …
Making /etc/services-enabled.d persistent …
Making /etc/letsencrypt persistent …
Making /etc/shadow persistent …
Making /etc/cron.d persistent …
Making /etc/cron.daily persistent …
Making /etc/cron.hourly persistent …
Making /etc/cron.weekly persistent …
Making /usr/local/bin persistent …
Making /etc/apache2 persistent …
Starting PHP-fpm
Starting Apache
Starting mariaDB
2019-04-09 22:27:51 140560280132992 [Note] mysqld (mysqld 10.1.37-MariaDB-0+deb9u1) starting as process 89 …
2019-04-09 22:27:51 140560280132992 [Warning] Can’t create test file /data/database/4080c23b7c0e.lower-test
mysqld: Can’t change dir to ‘/data/database/’ (Errcode: 2 “No such file or directory”)
2019-04-09 22:27:51 140560280132992 [ERROR] Aborting
From my google search I think the issue is with permissions and I would guess nosuid,nodev,nofail,x-gvfs-show 0 0 is the the problem
What should the correct Fstab mounting permissions be for my drives?
With the docker command how do I insert the mount for my backup drive so the nextcloud pi drive can see them?