• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Could not mount images folder (/bin/fog.download)

    Scheduled Pinned Locked Moved
    General Problems
    2
    6
    573
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      geardog
      last edited by geardog

      Reason: mount: mounting 172.17.17.82:/media/Images/ on /images failed: Permission denied

      I have migrated fog from a physical server to a VM and have moved image storage from said physical server to a NAS folder which is mounted at /Images on the fog VM. The storage location is entered in the default storage node attributes. The node comes up as expected in the dashboard, and old captured images are seen in dashboard as well. Based on the message and having read some of the similar error messages, I suspect permission issues, but I’m not sure how to address them.

      I’m running fog 1.5.9

      netadmin@V-Ubu-Fog:/media/Images$ df -h
      Filesystem                          Size  Used Avail Use% Mounted on
      udev                                395M     0  395M   0% /dev
      tmpfs                                88M  972K   87M   2% /run
      /dev/mapper/ubuntu--vg-ubuntu--lv    20G  7.5G   12G  41% /
      tmpfs                               439M     0  439M   0% /dev/shm
      tmpfs                               5.0M     0  5.0M   0% /run/lock
      tmpfs                               439M     0  439M   0% /sys/fs/cgroup
      /dev/sda2                           976M  390M  520M  43% /boot
      /dev/loop0                           56M   56M     0 100% /snap/core18/1988
      /dev/loop1                           56M   56M     0 100% /snap/core18/1997
      /dev/loop3                           71M   71M     0 100% /snap/lxd/19647
      /dev/loop2                           70M   70M     0 100% /snap/lxd/19188
      /dev/loop4                           33M   33M     0 100% /snap/snapd/11402
      /dev/loop5                           33M   33M     0 100% /snap/snapd/11588
      /dev/sda1                           511M  7.9M  504M   2% /boot/efi
      //172.17.17.201/Backup__Desk-1      3.7T  2.9T  844G  78% /media/4TBusb
      //172.17.17.201/Images              7.3T  4.4T  3.0T  60% /media/Images
      //172.17.17.201/Data                7.3T  4.4T  3.0T  60% /media/Data
      //172.17.17.201/VMs                 7.3T  4.4T  3.0T  60% /media/VMs
      tmpfs                                88M     0   88M   0% /run/user/1000
      netadmin@V-Ubu-Fog:/media/Images$
      
      
      netadmin@V-Ubu-Fog:/media/Images$ lsblk
      NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
      loop0                       7:0    0 55.5M  1 loop /snap/core18/1988
      loop1                       7:1    0 55.5M  1 loop /snap/core18/1997
      loop2                       7:2    0 69.9M  1 loop /snap/lxd/19188
      loop3                       7:3    0 70.4M  1 loop /snap/lxd/19647
      loop4                       7:4    0 32.3M  1 loop /snap/snapd/11402
      loop5                       7:5    0 32.3M  1 loop /snap/snapd/11588
      sda                         8:0    0   35G  0 disk
      ├─sda1                      8:1    0  512M  0 part /boot/efi
      ├─sda2                      8:2    0    1G  0 part /boot
      └─sda3                      8:3    0 33.5G  0 part
        └─ubuntu--vg-ubuntu--lv 253:0    0   20G  0 lvm  /
      netadmin@V-Ubu-Fog:/media/Images$
      
      
      netadmin@V-Ubu-Fog:/media/Images$ sudo touch /images/{,dev/}.mntcheck && sudo chmod -R 777 /media/Images
      netadmin@V-Ubu-Fog:/media/Images$
      

      image storage from fog

      netadmin@V-Ubu-Fog:/media/Images$ ls -l
      total 0
      drwxr-xr-x   2 root root 0 Apr  5 15:28 1old-images1
      drwxr-xr-x   2 root root 0 Mar 21  2019 aero0-
      drwxr-xr-x   2 root root 0 Mar 21  2019 Alpha0-
      drwxr-xr-x   2 root root 0 Mar 21  2019 Alpha1-
      drwxr-xr-x   2 root root 0 Apr  4  2019 conf-desk---
      drwxr-xr-x   2 root root 0 Jan 28 18:09 dev
      drwxr-xr-x   2 root root 0 Mar 21  2019 Engineering1
      drwxr-xr-x   2 root root 0 Mar 21  2019 Engineering3
      drwxr-xr-x   2 root root 0 May 23  2019 inspection1---
      drwxr-xr-x   2 root root 0 Mar 22  2019 inspection2-
      drwxr-xr-x   2 root root 0 Mar 22  2019 inspection-CMM--
      drwxr-xr-x   2 root root 0 Mar 22  2019 inspection-OGP-
      drwxr-xr-x   2 root root 0 Mar 22  2019 postdownloadscripts
      drwxr-xr-x   2 root root 0 Mar 22  2019 sales-04--
      drwxr-xr-x   2 root root 0 Jun 25  2019 sales-acc
      drwxr-xr-x   2 root root 0 Mar 22  2019 scot-pc--
      drwxr-xr-x   2 root root 0 Apr  4  2019 ship-main-
      drwxr-xr-x   2 root root 0 Mar 22  2019 shipping-
      drwxr-xr-x   2 root root 0 Mar 22  2019 tc-
      drwxr-xr-x   2 root root 0 Mar 22  2019 ubu1
      netadmin@V-Ubu-Fog:/media/Images$
      

      image storage from NAS

      root@NAS Images # ls -l
      drwxrwxrwx    2 fog      share         4096 Apr  5 10:28 1old-images1
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 Alpha0-
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 Alpha1-
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 Engineering1
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 Engineering3
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 aero0-
      drwxrwxrwx    2 fog      share         4096 Apr  4  2019 conf-desk---
      drwxrwxrwx    4 fog      share         4096 Jan 28 12:09 dev
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 inspection-CMM--
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 inspection-OGP-
      drwxrwxrwx    2 fog      share         4096 May 23  2019 inspection1---
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 inspection2-
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 postdownloadscripts
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 sales-04--
      drwxrwxrwx    2 fog      share         4096 Jun 25  2019 sales-acc
      drwxrwxrwx    2 fog      share         4096 Mar 21  2019 scot-pc--
      drwxrwxrwx    2 fog      share         4096 Apr  4  2019 ship-main-
      drwxrwxrwx    2 fog      share         4096 Mar 22  2019 shipping-
      drwxrwxrwx    2 fog      share         4096 Mar 22  2019 tc-
      drwxrwxrwx    2 fog      share         4096 Mar 22  2019 ubu1
      root@NAS Images #
      
      
      netadmin@V-Ubu-Fog:/media/Images$ sudo chown fog 1old-images1
      [sudo] password for netadmin:
      chown: invalid user: ‘fog’
      
      

      The image folder is mounted using smb credentials of a user “fog” created on the NAS, and I can create files on the mount from fog based on those credentials. I’ll happily change this to clear any ambiguity, but I’m chasing my tail I think.
      Where am I?

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth

        @geardog said in Could not mount images folder (/bin/fog.download):

        //172.17.17.201/Images 7.3T 4.4T 3.0T 60% /media/Images

        I am not sure if it’s possible to export a SMB mounted share via NFS.

        chown: invalid user: ‘fog’

        FOG used this username for a while but we switched to fogproject some time ago.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        G 2 Replies Last reply Reply Quote 0
        • G
          geardog @Sebastian Roth
          last edited by

          @sebastian-roth
          I made the image folder public, and it didn’t change anything.
          It’s actually mounted in fstab using cifs utils, and the NAS shows it has NFS support. I’ll look into a different way to mount it.

          1 Reply Last reply Reply Quote 0
          • G
            geardog @Sebastian Roth
            last edited by geardog

            @sebastian-roth
            So I’ve edited fstab to mount the images folder (on the NAS) with NFS, it shows up in dashboard, and I can write to it from fog terminal. I’m still, however, getting the same error upon trying to deploy an image to the box. Thoughts?

            netadmin@V-Ubu-Fog:/media/Images$ df -h
            Filesystem                          Size  Used Avail Use% Mounted on
            udev                                395M     0  395M   0% /dev
            tmpfs                                88M  952K   87M   2% /run
            /dev/mapper/ubuntu--vg-ubuntu--lv    20G  7.5G   12G  41% /
            tmpfs                               439M     0  439M   0% /dev/shm
            tmpfs                               5.0M     0  5.0M   0% /run/lock
            tmpfs                               439M     0  439M   0% /sys/fs/cgroup
            /dev/sda2                           976M  390M  520M  43% /boot
            /dev/loop0                           56M   56M     0 100% /snap/core18/1988
            /dev/loop1                           56M   56M     0 100% /snap/core18/1997
            /dev/loop2                           70M   70M     0 100% /snap/lxd/19188
            /dev/loop3                           71M   71M     0 100% /snap/lxd/19647
            /dev/loop4                           33M   33M     0 100% /snap/snapd/11402
            /dev/loop5                           33M   33M     0 100% /snap/snapd/11588
            /dev/sda1                           511M  7.9M  504M   2% /boot/efi
            //172.17.17.201/Backup__Desk-1      3.7T  2.9T  844G  78% /media/4TBusb
            //172.17.17.201/Data                7.3T  4.4T  3.0T  60% /media/Data
            //172.17.17.201/VMs                 7.3T  4.4T  3.0T  60% /media/VMs
            tmpfs                                88M     0   88M   0% /run/user/1000
            172.17.17.201:/shares/Images        7.3T  4.3T  3.0T  60% /media/Images
            netadmin@V-Ubu-Fog:/media/Images$
            
            netadmin@V-Ubu-Fog:/media$ ls -l
            total 8
            drwxr-xr-x  2 root root    0 Apr 14 17:15 4TBusb
            drwxr-xr-x  2 root root    0 Mar 11 01:30 Data
            drwxrwxrwx 22 1003 root 4096 Apr 14 19:25 Images
            drwxr-xr-x  2 root root    0 Feb  7 05:50 namespace
            drwxr-xr-x  4 root root 4096 Apr  9 13:40 test
            drwxr-xr-x  2 root root    0 Dec 15 15:43 VMs
            netadmin@V-Ubu-Fog:/media$ cd Images
            netadmin@V-Ubu-Fog:/media/Images$ ls -l
            total 84
            drwxrwxrwx 2 501 netadmin 4096 Apr  5 15:28 1old-images1
            drwxrwxrwx 2 501 netadmin 4096 Mar 21  2019 aero0-
            drwxrwxrwx 2 501 netadmin 4096 Mar 21  2019 Alpha0-
            drwxrwxrwx 2 501 netadmin 4096 Mar 21  2019 Alpha1-
            drwxrwxrwx 2 501 netadmin 4096 Apr  4  2019 conf-desk---
            drwxrwxrwx 4 501 netadmin 4096 Jan 28 18:09 dev
            drwxrwxrwx 2 501 netadmin 4096 Mar 21  2019 Engineering1
            drwxrwxrwx 2 501 netadmin 4096 Mar 21  2019 Engineering3
            drwxrwxrwx 2 501 netadmin 4096 May 23  2019 inspection1---
            drwxrwxrwx 2 501 netadmin 4096 Mar 22  2019 inspection2-
            drwxrwxrwx 2 501 netadmin 4096 Mar 22  2019 inspection-CMM--
            drwxrwxrwx 2 501 netadmin 4096 Mar 22  2019 inspection-OGP-
            drwxrwxrwx 2 501 netadmin 4096 Mar 22  2019 postdownloadscripts
            drwxrwxrwx 2 501 netadmin 4096 Mar 22  2019 sales-04--
            drwxrwxrwx 2 501 netadmin 4096 Jun 25  2019 sales-acc
            drwxrwxrwx 2 501 netadmin 4096 Mar 22  2019 scot-pc--
            drwxrwxrwx 2 501 netadmin 4096 Apr  4  2019 ship-main-
            drwxrwxrwx 2 501 netadmin 4096 Mar 22  2019 shipping-
            drwxrwxrwx 2 501 netadmin 4096 Mar 22  2019 tc-
            -rw-r--r-- 1 501 netadmin    3 Apr 14 19:25 text
            drwxrwxrwx 2 501 netadmin 4096 Mar 22  2019 ubu1
            netadmin@V-Ubu-Fog:/media/Images$
            
            
            
            root@NAS Images # ls -l
            drwxrwxrwx    2 nobody   share         4096 Apr  5 10:28 1old-images1
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 Alpha0-
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 Alpha1-
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 Engineering1
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 Engineering3
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 aero0-
            drwxrwxrwx    2 nobody   share         4096 Apr  4  2019 conf-desk---
            drwxrwxrwx    4 nobody   share         4096 Jan 28 12:09 dev
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 inspection-CMM--
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 inspection-OGP-
            drwxrwxrwx    2 nobody   share         4096 May 23  2019 inspection1---
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 inspection2-
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 postdownloadscripts
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 sales-04--
            drwxrwxrwx    2 nobody   share         4096 Jun 25  2019 sales-acc
            drwxrwxrwx    2 nobody   share         4096 Mar 21  2019 scot-pc--
            drwxrwxrwx    2 nobody   share         4096 Apr  4  2019 ship-main-
            drwxrwxrwx    2 nobody   share         4096 Mar 22  2019 shipping-
            drwxrwxrwx    2 nobody   share         4096 Mar 22  2019 tc-
            -rw-r--r--    1 nobody   share            3 Apr 14 14:25 text
            drwxrwxrwx    2 nobody   share         4096 Mar 22  2019 ubu1
            root@NAS Images #
            
            

            I’m stumped again.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              @geardog said in Could not mount images folder (/bin/fog.download):

              So I’ve edited fstab to mount the images folder (on the NAS) with NFS,

              Sorry, should have said that earlier but you definitely can’t re-export an NFS mounted share via NFS again. While I am not exactly sure NFS on top of SMB/CIFS works (probably not) I am sure NFS on top of NFS does not work.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              G 1 Reply Last reply Reply Quote 0
              • G
                geardog @Sebastian Roth
                last edited by geardog

                @sebastian-roth
                Wow, so is my only known option for external storage making the NAS behave as a storage node? It has a flaky proprietary OS/GUI that has warning everywhere. “You will brick me if…”

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                219

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project