A tale as old as time: Could not mount images folder (/bin/fog/upload or /bin/fog/download) permission denied!

  • Hello all,
    I’m at a loss on how to fix the error I’m seeing on both of my fog servers - both are VM servers.

    Server A
    OS: Ubuntu 18.04
    FOG version: 1.5.9

    Server B
    OS: Ubuntu 18.04
    FOG version: 1.5.7


    (Both servers are showing the exact same messages so I’ve only included one screenshot)

    Both servers boot just fine IF I am capturing / deploying an image from the original image directory (named Images) the problem occurs when I point to the secondary storage node (cleverly named Images2).

    Background: This error started appearing late December 2020 after our Sys Admin updated both OS to 18.04. Prior to the OS upgrade, everything was fine.

    Obviously, it is a permissions error - but I cannot for the life of me figure out where things are pooched. I’ve followed all of the instructions on the forum and still nothing. I’m certain it is something simple (which is why I’m embarrassed) but I am at my wits’ end - Linux is not my native language 🙂

    Please advise and thank you so much in advance!

  • @george1421 That did the trick!

    I had previously added the images2 *(ro etc;etc;etc;) but did not run the sudo -exportfs -a command.

    I knew it was something simple. Thanks so much for your help!

  • @george1421

    On it. Will report back shortly.

  • Senior Developer

    This post is deleted!
  • Moderator

    @tmcwl Ok the showmount command tells us what is wrong. You don’t have images2 “shared” in NFS.

    A quick fix is to edit /etc/exports

    Duplicate the existing lines
    Change the duplicated lines to match /images2
    important at the end of the duplicated lines you will see fsid=0 and fsid=1 change them to fsid=3 and fsid=4
    Save the file

    then run the commad sudo exportfs -a

    then run sudo showmount -e again Now you should see the two new shares.

    Now try to image again.

  • @george1421

    As requested:
    I see the differences between these outputs, but I don’t understand the impact they have (Linux n00b)



  • Moderator

    @tmcwl On the linux console of the fog server run these commands and provide the output here

    sudo showmount -e
    ls -la /images2