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

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

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    7
    963
    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.
    • T
      tmcwl
      last edited by

      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

      serverB-error.jpg

      (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!

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @tmcwl
        last edited by

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

        sudo showmount -e 127.0.0.1
        ls -la /images2

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        T 1 Reply Last reply Reply Quote 0
        • T
          tmcwl @george1421
          last edited by

          @george1421

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

          SERVER A:
          d7858621-68bd-4ce0-9f87-be4dd4ffcf83-image.png

          SERVER B:
          706c8023-2a1d-430f-a62d-940898d3f86c-image.png

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @tmcwl
            last edited by george1421

            @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 127.0.0.1 again Now you should see the two new shares.

            Now try to image again.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            T 2 Replies Last reply Reply Quote 1
            • S
              Sebastian Roth Moderator
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • T
                tmcwl @george1421
                last edited by

                @george1421

                On it. Will report back shortly.

                1 Reply Last reply Reply Quote 0
                • T
                  tmcwl @george1421
                  last edited by

                  @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!

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

                  173

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.4k

                  Posts
                  Copyright © 2012-2024 FOG Project