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

    Permission Denied Capture

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    23
    4.1k
    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.
    • S
      Sebastian Roth Moderator
      last edited by

      @Detoss As the /image (no ‘s’ at the end) directory is completely empty you can simply move all your stuff into that and re-mount as /images. Run as root:

      mv /images/.mntcheck /image/
      mv /images/* /image/
      

      Now edit the file /etc/fstab and change /image to /images in there. Now reboot your whole server and run df -h after the reboot to make sure the images are now on the other volume.

      As well double check the storage node settings in the FOG web UI to point to /images (as it should by default).

      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

      D 2 Replies Last reply Reply Quote 0
      • W
        Will @Sebastian Roth
        last edited by

        @sebastian-roth said in Permission Denied Capture:

        @Detoss Please give us some more information. Let’s start with some basics like the FOG version you use?

        And Fog website has been setup as an additional and it shows Its been added and working.

        What do you mean by that?

        Please run the following commands on your FOG server and post output here:

        cat /etc/exports
        ls -alR /images
        df -h
        

        I have encountered the same issue when I want to save the image on to another folder on a RAID1 which uses soft link.
        When trying to capture the image and save it to the RAID1 folder, FOG says “Permission denied”, even its being configured as 777

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

          @Will This topic is not about a soft link like you seem to have it. Please open your own topic and post all your details there. There is no point in cross posting a different issue here.

          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
          • george1421G
            george1421 Moderator @Will
            last edited by

            @will I agree please create your own post. There are several things you can do pretty easily, its just not proper to confuse this thread.

            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!

            1 Reply Last reply Reply Quote 0
            • D
              Detoss @Sebastian Roth
              last edited by Sebastian Roth

              @sebastian-roth Okay it is now showing this!

              [root@fog ~]# df -h
              Filesystem                Size  Used Avail Use% Mounted on
              devtmpfs                  1.9G     0  1.9G   0% /dev
              tmpfs                     1.9G     0  1.9G   0% /dev/shm
              tmpfs                     1.9G  8.6M  1.9G   1% /run
              tmpfs                     1.9G     0  1.9G   0% /sys/fs/cgroup
              /dev/mapper/centos-root    50G  3.0G   48G   6% /
              /dev/mapper/centos-image  186G   44G  142G  24% /images
              /dev/sda1                1014M  182M  833M  18% /boot
              tmpfs                     379M     0  379M   0% /run/user/0
              [root@fog ~]#
              

              I will be trying it soon as I am back in the office.

              Thank you again for the help!

              1 Reply Last reply Reply Quote 1
              • D
                Detoss @Sebastian Roth
                last edited by

                @sebastian-roth I tried to image again, now getting Partclone fail which is a first for me- Is this related or another topic I need to open?

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

                  @Detoss Please Post a picture of the error screen. You might post it here as we are not sure if it’s related or not.

                  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

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Detoss @Sebastian Roth
                    last edited by

                    @sebastian-roth Is there somewhere I can grab the error log? Or do is a picture fine from my cell.

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

                      @Detoss Just take a picture and upload here or on an external server and post a link.

                      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

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Detoss @Sebastian Roth
                        last edited by

                        @sebastian-roth Here is what I got 90% into capture.

                        https://ibb.co/2vcBMyh
                        https://ibb.co/Hqk9Qcg
                        https://ibb.co/HBvMLN6

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

                          @Detoss Those errors point to FOG was not able to move the captured image from /images/dev/b07b2549fe0a to /images/CSR-2020 after it successfully uploaded.

                          You can manually move it: sudo mv /images/dev/b07b2549fe0a /images/CSR-2020

                          Possible the automatic move did not work because of a permission issue. Please run ls -alR /images now that you’ve moved things and post output here again.

                          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

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            Detoss @Sebastian Roth
                            last edited by Sebastian Roth

                            @sebastian-roth

                            [root@fog ~]# ls -alR /images
                            /images:
                            total 0
                            drwxr-xr-x.  6 root       root  89 Dec 14 08:47 .
                            dr-xr-xr-x. 21 root       root 288 Nov 16 16:57 ..
                            drwxrwxrwx.  6 fogproject root 106 Dec 15 08:36 dev
                            drwxrwxrwx.  2 root       root   6 Dec 14 11:47 INFRA
                            drwxrwxrwx.  2 root       root 206 Nov 23 15:02 INSTALL
                            -rwxrwxrwx.  1 fogproject root   0 Nov 16 16:57 .mntcheck
                            drwxrwxrwx.  2 fogproject root  30 Nov 16 16:57 postdownloadscripts
                            
                            /images/dev:
                            total 0
                            drwxrwxrwx. 6 fogproject root 106 Dec 15 08:36 .
                            drwxr-xr-x. 6 root       root  89 Dec 14 08:47 ..
                            drwxrwxrwx. 2 root       root 210 Nov 19 15:02 544810d0c6ac
                            drwxrwxrwx. 2 root       root 210 Dec 14 12:16 b07b2549fd56
                            drwxrwxrwx. 2 root       root 254 Dec 15 08:48 b07b2549fe0a
                            -rwxrwxrwx. 1 fogproject root   0 Nov 16 16:57 .mntcheck
                            drwxrwxrwx. 2 fogproject root  26 Nov 16 16:57 postinitscripts
                            
                            /images/dev/544810d0c6ac:
                            total 38676
                            drwxrwxrwx. 2 root       root      210 Nov 19 15:02 .
                            drwxrwxrwx. 6 fogproject root      106 Dec 15 08:36 ..
                            -rw-r--r--. 1 root       root       12 Nov 19 15:02 d1.fixed_size_partitions
                            -rw-r--r--. 1 root       root  1048576 Nov 19 15:02 d1.mbr
                            -rw-r--r--. 1 root       root     1191 Nov 19 15:02 d1.minimum.partitions
                            -rw-r--r--. 1 root       root       15 Nov 19 15:02 d1.original.fstypes
                            -rw-r--r--. 1 root       root        0 Nov 19 15:02 d1.original.swapuuids
                            -rw-r--r--. 1 root       root 38262788 Nov 19 15:02 d1p1.img
                            -rw-r--r--. 1 root       root   269100 Nov 19 15:02 d1p2.img
                            -rw-r--r--. 1 root       root       20 Nov 19 15:02 d1p3.img.000
                            -rw-r--r--. 1 root       root     1191 Nov 19 15:02 d1.partitions
                            
                            /images/dev/b07b2549fd56:
                            total 43776
                            drwxrwxrwx. 2 root       root      210 Dec 14 12:16 .
                            drwxrwxrwx. 6 fogproject root      106 Dec 15 08:36 ..
                            -rw-r--r--. 1 root       root       10 Dec 14 12:15 d1.fixed_size_partitions
                            -rw-r--r--. 1 root       root  1048576 Dec 14 12:15 d1.mbr
                            -rw-r--r--. 1 root       root     1225 Dec 14 12:15 d1.minimum.partitions
                            -rw-r--r--. 1 root       root       60 Dec 14 12:15 d1.original.fstypes
                            -rw-r--r--. 1 root       root        0 Dec 14 12:15 d1.original.swapuuids
                            -rw-r--r--. 1 root       root 43484674 Dec 14 12:15 d1p1.img
                            -rw-r--r--. 1 root       root   269159 Dec 14 12:16 d1p2.img
                            -rw-r--r--. 1 root       root       20 Dec 14 12:16 d1p3.img.000
                            -rw-r--r--. 1 root       root     1225 Dec 14 12:15 d1.partitions
                            
                            /images/dev/b07b2549fe0a:
                            total 38506376
                            drwxrwxrwx. 2 root       root         254 Dec 15 08:48 .
                            drwxrwxrwx. 6 fogproject root         106 Dec 15 08:36 ..
                            -rwxrwxrwx. 1 root       root           8 Dec 15 08:36 d1.fixed_size_partitions
                            -rwxrwxrwx. 1 root       root     1048576 Dec 15 08:36 d1.mbr
                            -rwxrwxrwx. 1 root       root        1225 Dec 15 08:36 d1.minimum.partitions
                            -rwxrwxrwx. 1 root       root          60 Dec 15 08:36 d1.original.fstypes
                            -rwxrwxrwx. 1 root       root           0 Dec 15 08:36 d1.original.swapuuids
                            -rwxrwxrwx. 1 root       root    43479518 Dec 15 08:36 d1p1.img
                            -rwxrwxrwx. 1 root       root      269153 Dec 15 08:36 d1p2.img
                            -rwxrwxrwx. 1 root       root 23596927308 Dec 15 08:45 d1p3.img
                            -rwxrwxrwx. 1 root       root   470632049 Dec 15 08:45 d1p4.img
                            -rwxrwxrwx. 1 root       root 14533669671 Dec 15 08:48 d1p5.img
                            -rwxrwxrwx. 1 root       root   784473335 Dec 15 08:48 d1p6.img
                            -rwxrwxrwx. 1 root       root        1225 Dec 15 08:36 d1.partitions
                            
                            /images/dev/postinitscripts:
                            total 4
                            drwxrwxrwx. 2 fogproject root  26 Nov 16 16:57 .
                            drwxrwxrwx. 6 fogproject root 106 Dec 15 08:36 ..
                            -rwxrwxrwx. 1 fogproject root 249 Nov 16 16:57 fog.postinit
                            
                            /images/INFRA:
                            total 0
                            drwxrwxrwx. 2 root root  6 Dec 14 11:47 .
                            drwxr-xr-x. 6 root root 89 Dec 14 08:47 ..
                            
                            /images/INSTALL:
                            total 12453868
                            drwxrwxrwx. 2 root root         206 Nov 23 15:02 .
                            drwxr-xr-x. 6 root root          89 Dec 14 08:47 ..
                            -rwxrwxrwx. 1 root root           4 Nov 23 14:54 d1.fixed_size_partitions
                            -rwxrwxrwx. 1 root root     1048576 Nov 23 14:55 d1.mbr
                            -rwxrwxrwx. 1 root root         266 Nov 23 14:55 d1.minimum.partitions
                            -rwxrwxrwx. 1 root root          15 Nov 23 14:54 d1.original.fstypes
                            -rwxrwxrwx. 1 root root           0 Nov 23 14:54 d1.original.swapuuids
                            -rwxrwxrwx. 1 root root    10678071 Nov 23 14:55 d1p1.img
                            -rwxrwxrwx. 1 root root 12284800232 Nov 23 15:02 d1p2.img
                            -rwxrwxrwx. 1 root root   456215178 Nov 23 15:02 d1p3.img
                            -rwxrwxrwx. 1 root root         266 Nov 23 14:54 d1.partitions
                            
                            /images/postdownloadscripts:
                            total 4
                            drwxrwxrwx. 2 fogproject root  30 Nov 16 16:57 .
                            drwxr-xr-x. 6 root       root  89 Dec 14 08:47 ..
                            -rwxrwxrwx. 1 fogproject root 235 Nov 16 16:57 fog.postdownload
                            
                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by

                              @Detoss Update the permissions like this sudo chmod 777 /images and then try another capture.

                              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

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                Detoss @Sebastian Roth
                                last edited by

                                @sebastian-roth AH! that worked, may I ask what is the purpose or how it worked? I am trying to understand Linux better.

                                Tom ElliottT 1 Reply Last reply Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott @Detoss
                                  last edited by Tom Elliott

                                  @detoss so getting very much details.

                                  -rwxrwxrwx is what you see files appear as. Similar for directory but the 1st dash will usually be a d, denoting directory.

                                  Notice there are 3 groups of rwx.

                                  r=read=4
                                  w=write=2
                                  x=execute=1

                                  First grouping rwx (left to right) = owner
                                  Second grouping rwx = group
                                  Third grouping rwx = other/everyone

                                  So to make owner group and other have max permissions

                                  777

                                  Does this make sense or at least start to help?

                                  There are other pieces to this but this is most likely what most people want to understand.

                                  The chmod command is short for change mode. Mode here basically means permissions.

                                  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

                                  D 1 Reply Last reply Reply Quote 1
                                  • D
                                    Detoss @Tom Elliott
                                    last edited by

                                    @tom-elliott Ah okay that does help me understadn it better, Thank you! I did run into another problem when trying to load an image from one of the ones I uploaded. “unable to locate image Store”

                                    https://ibb.co/bvHxrjM
                                    https://ibb.co/ZL1gmSm
                                    https://ibb.co/vXdfV8m
                                    https://ibb.co/R9ygw5m
                                    https://ibb.co/VLqmxwq

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

                                      @Detoss Does that image exist in the FOG server? Run ls -al /images/INFRA-NEW/ to see If it does. Post results here.

                                      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

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Detoss @Sebastian Roth
                                        last edited by

                                        @sebastian-roth said in Permission Denied Capture:

                                        ls -al /images/INFRA-NEW

                                        Ah I ran that and it wasnt listed, so I checked under Images, and all my other images were there- So I just decided to remove that old image from Webui and remake it.

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

                                        174

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project