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

Mounting /images/dev on /images failed - permissions denied

Scheduled Pinned Locked Moved Unsolved
FOG Problems
3
22
1.5k
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.
  • E
    El-Fogito
    last edited by Jul 23, 2024, 10:19 AM

    Hello,

    I’m reviving the topic, my problem is still not resolved (I am deploying on 180 computers this week)…

    I captured an image this morning, my PC restarts as if the image had been captured successfully

    I also see the size of the image in the management console:

    85748c57-ca67-4150-b301-25180647751b-image.png

    But here’s the problem:
    In active tasks, a second loading (I imagine moving from images\dev to \images) is blocked. This is the crux of my problem. Database problem? what to do ? Here is a screen

    158d31dc-3b6e-4be7-ad1b-021eed27333a-image.png

    E T 2 Replies Last reply Jul 23, 2024, 10:41 AM Reply Quote 0
    • E
      El-Fogito @El-Fogito
      last edited by El-Fogito Jul 23, 2024, 4:52 AM Jul 23, 2024, 10:41 AM

      @El-Fogito 3e53b74e-0cdc-4555-8215-4a78ad0fe319-image.png

      always same error when trying to deploy

      my image is stored in image\dev with another name (mac address of the PC captured)

      T 1 Reply Last reply Jul 23, 2024, 10:46 AM Reply Quote 0
      • T
        Tom Elliott @El-Fogito
        last edited by Jul 23, 2024, 10:43 AM

        @El-Fogito I suspect the fogproject user that is supposed to be handling the FTP connection which does the FTP move from /images/dev/<macofhostcaptured> -> /images/<nameofimagepathcaptured> is out of sync or simply non-functional.

        Can i make a bold request and as you to install the working-1.6 version of FOG?

        It shifts the mechanisms of file transfer and moves to SSH instead of relying on FTP. This may have it’s own issues of note but we can work on fixing those. As well, it will help fix the NFS security flaws you seem to have running currently so you will have slightly more security conscious FOG install to boot.

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        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

        E 1 Reply Last reply Jul 23, 2024, 10:56 AM Reply Quote 0
        • T
          Tom Elliott @El-Fogito
          last edited by Jul 23, 2024, 10:46 AM

          @El-Fogito In the mean time you can manually move the image to the proper spot:

          Since I don’t know the mac of the original capture machine you’ll have to get that yourself unfortunately.

          From the FOG Server terminal:

          sudo mv /images/dev/<macofhostyoucaptured> /images/Nuc7i5BNKSDC-AC001-C000-win11
          sudo chown fogproject:root /images/Nuc7i5BNKSDC-AC001-C000-win11
          sudo chmod 777 -R  /images/Nuc7i5BNKSDC-AC001-C000-win11
          

          This should get you to a point of being able to deploy the image.

          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          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

          E 1 Reply Last reply Jul 23, 2024, 11:03 AM Reply Quote 0
          • E
            El-Fogito @Tom Elliott
            last edited by Jul 23, 2024, 10:56 AM

            @Tom-Elliott at the point where I am, no problem starting over with a new installation.

            Could you give me a link to install this version? that I am sure to do what you asked me

            E T 2 Replies Last reply Jul 23, 2024, 12:04 PM Reply Quote 0
            • E
              El-Fogito @Tom Elliott
              last edited by Jul 23, 2024, 11:03 AM

              @Tom-Elliott said in Mounting /images/dev on /images failed - permissions denied:

              sudo chmod 777 -R /images/Nuc7i5BNKSDC-AC001-C000-win11

              I moved it manually, gave rights etc. The problem continues 🙂

              1 Reply Last reply Reply Quote 0
              • E
                El-Fogito @El-Fogito
                last edited by Jul 23, 2024, 12:04 PM

                @Tom-Elliott I can’t find the installation of FOG working-1.6

                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott @El-Fogito
                  last edited by Jul 23, 2024, 12:26 PM

                  @El-Fogito

                  You can get fog from github:

                  git clone https://github.com/fogproject/fogproject.git --branch=working-1.6
                  

                  Normally you’d be in the users root directory (typically /home/<username> or /root if you’re the root user)

                  After it’s cloned cd to the newly downloaded fogproject folder:

                  cd fogproject
                  git pull
                  cd bin
                  sudo ./installfog.sh -y
                  

                  That should do all the work. If you already have a branch of github fogproject on your machine run:

                  cd /path/to/fogproject/installer
                  git pull
                  git fetch --all
                  git checkout working-1.6
                  git pull
                  cd bin
                  sudo ./installfog.sh -y
                  

                  it’s basically the same thing.

                  as for “Same issue after moving folder” can you describe what you mean? Unless I got a typo of the location for the image path an error may be there, but it should definitely be a different error.

                  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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  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

                  E 1 Reply Last reply Jul 23, 2024, 12:53 PM Reply Quote 0
                  • E
                    El-Fogito @Tom Elliott
                    last edited by El-Fogito Jul 23, 2024, 7:08 AM Jul 23, 2024, 12:53 PM

                    @Tom-Elliott Here is…

                    I typed these commands:

                    apt-get -y install git -y
                    apt install wget

                    cd/root
                    git clone https://github.com/fogproject/fogproject.git --branch=working-1.6

                    fog project cd
                    git pull
                    CD bin
                    ./installfog.sh -y

                    I got this error when loading packages:

                    error: Installing package: php-mysql…………Failed! (Will try later)

                    The interface changes a little but I get the hang of it.
                    I’ll capture an image and get back to you

                    757b9428-3128-47a5-867d-75ac94b0c4fa-image.png

                    T E 2 Replies Last reply Jul 23, 2024, 1:45 PM Reply Quote 0
                    • T
                      Tom Elliott @El-Fogito
                      last edited by Jul 23, 2024, 1:45 PM

                      @El-Fogito Interesting that you got the error for php-mysql, though I suppose if it completed the “will try again later” actually worked.

                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      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

                      E 1 Reply Last reply Jul 23, 2024, 2:10 PM Reply Quote 0
                      • E
                        El-Fogito @El-Fogito
                        last edited by El-Fogito Jul 23, 2024, 7:58 AM Jul 23, 2024, 1:56 PM

                        @Tom-Elliott

                        So I launched a task to capture my image and it was in principle a success, here is the screen:

                        302bb8f4-8b3e-4d26-9ee6-c1918a03e23c-image.png

                        BUT… once the download is complete, this is the error I receive:

                        fe195fa1-83a4-43ff-aeca-0f8349c92b4f-image.png

                        Here again, the “second task” remains stuck at 1%

                        41789822-cf49-4888-9bfc-4b5dc3589b33-image.png

                        My capture is still stuck in \images\dev with my computer’s macadress

                        I’m helpless 😄 (I’m in production at the moment)

                        T 1 Reply Last reply Jul 23, 2024, 2:13 PM Reply Quote 0
                        • E
                          El-Fogito @Tom Elliott
                          last edited by Jul 23, 2024, 2:10 PM

                          @Tom-Elliott d903e098-ecd4-4d5f-8232-37ccc85dd622-image.png

                          FYI

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott @El-Fogito
                            last edited by Jul 23, 2024, 2:13 PM

                            @El-Fogito So, can you please manually edit the “failed” image from the /images/dev location and manually move it where it needed to go? (as well adjust the permissions again.

                            Also, can you please look at your /etc/ssh/sshd_config file and look for the line that has “Subsystem” and “sftp”

                            I am just guessing, but it likely looks like:
                            Subsystem sftp /usr/libexec/openssh/sftp-server

                            If you can change it to:
                            Subsystem sftp internal-sftp and restart ssh services on the server, this should address the “Unable to start SFTP” error you were seeing.

                            To restart ssh service you would run:

                            sudo systemctl restart sshd
                            

                            We’re getting closer I think, but it’s just a guess at this point. I apologize for it seeming kind of hit and miss, but thus is the approach we must take on forums.

                            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            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

                            E 1 Reply Last reply Jul 23, 2024, 2:29 PM Reply Quote 0
                            • E
                              El-Fogito @Tom Elliott
                              last edited by Jul 23, 2024, 2:29 PM

                              @Tom-Elliott no problem, thank you for helping me ! We hope this will be useful to users reading this post.

                              I edited the line in /etc/ssh/sshd_config
                              I restarted the capture, here is the error, directly when I boot on IPV4:

                              3897e5c6-fba7-4503-81d4-488e29e98fa2-image.png

                              T 1 Reply Last reply Jul 23, 2024, 3:40 PM Reply Quote 0
                              • T
                                Tom Elliott @El-Fogito
                                last edited by Jul 23, 2024, 3:40 PM

                                @El-Fogito So with that can you reboot the machine (outside of the task) and perform a chkdisk /f on it, then disable the hibernation:
                                powercfg.exe /h off

                                Then attempt again? I apologize in advance

                                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                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

                                1 Reply Last reply Reply Quote 0
                                • 1
                                • 2
                                • 1 / 2
                                1 / 2
                                • First post
                                  17/22
                                  Last post

                                206

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project