USB external drive permissions denied

  • 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.


    Code
    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




    Code
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused")
    
    
    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:


    Code
    # >>> [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):


    Bash
    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...

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!