Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB external drive write permissions denied #451

Open
qubolino opened this issue Sep 17, 2019 · 0 comments

Comments

@qubolino
Copy link

commented Sep 17, 2019

i installed OMV (Release: 4.1.22-1 Codename: Arrakis) on raspi 3 and added an external drive.
i then installed the excellent nextcloud docker image with proper mapping.

CONTAINER ID        IMAGE                           COMMAND                  CREATED             STATUS              PORTS                                                              NAMES
42833652fa8c        ownyourbits/nextcloudpi-armhf   "/run-parts.sh 0.0.0…"   7 weeks ago         Up 29 hours         0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:4443->4443/tcp   ncp2​

however every time it reboots nextcloud doesn't start properly, it gets errors such as:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused")

​or

2019-09-05 13:15:17 1995553584 [Warning] Can't create test file /data/database/42833652fa8c.lower-test
sed: couldn't open temporary file /data/nextcloud/config/sedFenrAQ: Read-only file system

i already changed OMV config such that i get:

/etc/fstab
# >>> [openmediavault]
/dev/disk/by-label/storage2 /srv/dev-disk-by-label-storage2 ext4 defaults,nofail,user_xattr,exec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl,acl 0 2
# <<< [openmediavault]


however for some reasons it looks like permissions errors. I can fix it if I do the following (each time):

  398  sudo docker stop ncp2
  399  sudo umount /srv/dev-disk-by-label-storage2
  400  sudo mount -a
  401  sudo docker start ncp2
  402  sudo docker logs ncp2
  403  sudo docker restart ncp2 # sometimes needed
  404  sudo docker logs ncp2


I am looking for a way to understand the root cause and fix it properly...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.