Image Capture Error: "Failed to open stream: Permission Denied"



  • Hello,

    I should preface by stating I have very little knowledge of Linux and FOG, but it is required of me in my new position to oversee the Imaging servers and resolve issues as necessary. With this being said, I am receiving the following error upon trying to capture some newly updated images.
    IMG_1110(1).jpg
    The laptops are able to register with the server, and I can start the image capture to a specified image name. This error occurs right at the end of the capture.

    I have tried the following:
    restarting tftpd-hpa service
    restarting nfs-kernel-server service
    restarting rpcbind service
    restarting isc-dhcp-server service
    sudo chmod 777 -R for image storage location and dev folder
    touch .mntcheck in image storage folder and dev folder
    sudo exportfs -a after touching .mntcheck

    Any assistance would be greatly appreciated! All services seem to be running fine with no obvious errors when checking the status for each of those specified previously.


  • Senior Developer

    @icescout27 Sorry for the delayed answer. Somehow I lost track of this. OK, so now we see a different error, obviosly because the password of the fogproject account is different. As well the access rights of the folder seem strange.

    Run sudo chmod -R 777 /media/fog/External and follow George’s advices and you should bei good to go: https://forums.fogproject.org/topic/11203/resyncing-fog-s-service-account-password

    Those accounts are service accounts created and used by FOG. If you mess with those you will run in trouble sooner or later.



  • @Sebastian-Roth Here is the requested output:

    root@ThinkPad-T430s:/var/lib/dhcp# ls -alR /media/fog/External/ ; mount
    /media/fog/External/:
    total 108
    d---------  24 fogproject fog   4096 Jul 23 18:21 .
    drwxr-x---+  3 root       root  4096 Aug 10 08:01 ..
    d---------   8 fogproject fog   4096 Aug  6 10:01 dev
    drwxrwxrwx   2 root       root  4096 Jun 15 14:00 FOGServer-StudentBackup6-15-2020
    drwxrwxrwx   2 root       root  4096 Jul 15 14:28 L13_V1
    drwxrwxrwx   2 root       root  4096 Jul  9 09:45 L380_V5
    drwxrwxrwx   2 fogproject root  4096 Apr 29 09:36 L380Yoga_V2
    drwxrwxrwx   2 root       root  4096 Jul  9 10:00 L390_Student_V3
    drwxrwxrwx   2 fogproject root 16384 Nov 20  2019 lost+found
    -rwxrwxrwx   1 fogproject fog      0 Aug  6 09:58 .mntcheck
    drwxrwxrwx   2 fogproject root  4096 Jun 12 15:01 postdownloadscripts
    drwxrwxrwx   2 fogproject root  4096 Dec 11  2019 T410Public
    drwxrwxrwx   2 fogproject root  4096 Dec 11  2019 T420Public
    drwxrwxrwx   2 fogproject root  4096 Jan 10  2020 T430sPublic
    drwxrwxrwx   5 fogproject fog   4096 Feb 14 09:05 .Trash-1000
    drwxrwxrwx   2 fogproject root  4096 Feb 17 09:55 Yoga12Employee2-17-2020
    drwxrwxrwx   2 root       root  4096 Jul 17 13:09 Yoga12Loaner7-17-2020
    drwxrwxrwx   2 root       root  4096 Jul 23 18:21 Yoga12PSCKiosk
    drwxrwxrwx   2 fogproject root  4096 Feb 11 14:47 Yoga12Public
    drwxrwxrwx   2 root       root  4096 Jul 23 10:17 Yoga260Employee7-23-2020
    drwxrwxrwx   2 fogproject root  4096 Feb 11 15:51 Yoga260Public
    drwxrwxrwx   2 root       root  4096 Jul 23 10:19 Yoga370Employee7-23-2020
    drwxrwxrwx   2 root       root  4096 Jul  2 09:39 Yoga370EmployeeZoomCarts-7-2-2020
    drwxrwxrwx   2 fogproject root  4096 Feb 11 09:22 Yoga370Loaner02-11-2020
    drwxrwxrwx   2 fogproject root  4096 Feb 12 16:04 Yoga370Public
    
    /media/fog/External/dev:
    total 32
    d---------  8 fogproject fog  4096 Aug  6 10:01 .
    d--------- 24 fogproject fog  4096 Jul 23 18:21 ..
    drwxrwxrwx  2 root       root 4096 Aug 10 09:26 1c394714493c
    drwxrwxrwx  2 root       root 4096 Aug  4 11:44 3c970e141087
    drwxrwxrwx  2 fogproject root 4096 Jan 29  2020 3c970ea38039
    drwxrwxrwx  2 root       root 4096 Aug  6 10:17 9829a6869f77
    drwxrwxrwx  2 fogproject root 4096 Jan 28  2020 a41f7254af44
    -rwxrwxrwx  1 fogproject root    0 Aug  6 09:58 .mntcheck
    drwxrwxrwx  2 fogproject root 4096 Jun 12 15:01 postinitscripts
    
    /media/fog/External/dev/1c394714493c:
    total 19532464
    drwxrwxrwx 2 root       root        4096 Aug 10 09:26 .
    d--------- 8 fogproject fog         4096 Aug  6 10:01 ..
    -rwxrwxrwx 1 root       root     1048576 Aug 10 09:13 d1.mbr
    -rwxrwxrwx 1 root       root      162189 Aug 10 09:13 d1p1.img
    -rwxrwxrwx 1 root       root    13311339 Aug 10 09:13 d1p2.img
    -rwxrwxrwx 1 root       root    16753026 Aug 10 09:13 d1p3.img
    -rwxrwxrwx 1 root       root 19314740157 Aug 10 09:25 d1p4.img
    -rwxrwxrwx 1 root       root   655199685 Aug 10 09:26 d1p5.img
    -rwxrwxrwx 1 root       root         950 Aug 10 09:13 d1.partitions
    
    /media/fog/External/dev/3c970e141087:
    total 2550588
    drwxrwxrwx 2 root       root       4096 Aug  4 11:44 .
    d--------- 8 fogproject fog        4096 Aug  6 10:01 ..
    -rwxrwxrwx 1 root       root          4 Aug  4 11:42 d1.fixed_size_partitions
    -rwxrwxrwx 1 root       root          0 Aug  4 11:42 d1.has_grub
    -rwxrwxrwx 1 root       root    1048576 Aug  4 11:42 d1.mbr
    -rwxrwxrwx 1 root       root        266 Aug  4 11:42 d1.minimum.partitions
    -rwxrwxrwx 1 root       root         16 Aug  4 11:42 d1.original.fstypes
    -rwxrwxrwx 1 root       root          0 Aug  4 11:42 d1.original.swapuuids
    -rwxrwxrwx 1 root       root       1730 Aug  4 11:42 d1p1.img
    -rwxrwxrwx 1 root       root        512 Aug  4 11:42 d1p2.ebr
    -rwxrwxrwx 1 root       root        118 Aug  4 11:42 d1p2.img
    -rwxrwxrwx 1 root       root        512 Aug  4 11:42 d1p5.ebr
    -rwxrwxrwx 1 root       root 2610706641 Aug  4 11:44 d1p5.img
    -rwxrwxrwx 1 root       root        266 Aug  4 11:42 d1.partitions
    
    /media/fog/External/dev/3c970ea38039:
    total 11367784
    drwxrwxrwx 2 fogproject root        4096 Jan 29  2020 .
    d--------- 8 fogproject fog         4096 Aug  6 10:01 ..
    -rwxrwxrwx 1 fogproject root     1048576 Jan 29  2020 d1.mbr
    -rwxrwxrwx 1 fogproject root    10373786 Jan 29  2020 d1p1.img
    -rwxrwxrwx 1 fogproject root 11194689158 Jan 29  2020 d1p2.img
    -rwxrwxrwx 1 fogproject root   434477320 Jan 29  2020 d1p3.img
    -rwxrwxrwx 1 fogproject root         249 Jan 29  2020 d1.partitions
    
    /media/fog/External/dev/9829a6869f77:
    total 17597656
    drwxrwxrwx 2 root       root        4096 Aug  6 10:17 .
    d--------- 8 fogproject fog         4096 Aug  6 10:01 ..
    -rwxrwxrwx 1 root       root     1048576 Aug  6 10:02 d1.mbr
    -rwxrwxrwx 1 root       root      146743 Aug  6 10:02 d1p1.img
    -rwxrwxrwx 1 root       root    13291142 Aug  6 10:02 d1p2.img
    -rwxrwxrwx 1 root       root     7398263 Aug  6 10:02 d1p3.img
    -rwxrwxrwx 1 root       root 17361994988 Aug  6 10:16 d1p4.img
    -rwxrwxrwx 1 root       root   636090572 Aug  6 10:17 d1p5.img
    -rwxrwxrwx 1 root       root        1078 Aug  6 10:02 d1.partitions
    
    /media/fog/External/dev/a41f7254af44:
    total 11182592
    drwxrwxrwx 2 fogproject root        4096 Jan 28  2020 .
    d--------- 8 fogproject fog         4096 Aug  6 10:01 ..
    -rwxrwxrwx 1 fogproject root     1048576 Jan 28  2020 d1.mbr
    -rwxrwxrwx 1 fogproject root   401658291 Jan 28  2020 d1p1.img
    -rwxrwxrwx 1 fogproject root    13563322 Jan 28  2020 d1p2.img
    -rwxrwxrwx 1 fogproject root     7204158 Jan 28  2020 d1p3.img
    -rwxrwxrwx 1 fogproject root 11027475040 Jan 28  2020 d1p4.img
    -rwxrwxrwx 1 fogproject root         861 Jan 28  2020 d1.partitions
    
    /media/fog/External/dev/postinitscripts:
    total 12
    drwxrwxrwx 2 fogproject root 4096 Jun 12 15:01 .
    d--------- 8 fogproject fog  4096 Aug  6 10:01 ..
    -rwxrwxrwx 1 fogproject root  249 Jun 12 15:01 fog.postinit
    
    /media/fog/External/FOGServer-StudentBackup6-15-2020:
    total 2541960
    drwxrwxrwx  2 root       root       4096 Jun 15 14:00 .
    d--------- 24 fogproject fog        4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 root       root          0 Jun 15 13:57 d1.has_grub
    -rwxrwxrwx  1 root       root    1048576 Jun 15 13:57 d1.mbr
    -rwxrwxrwx  1 root       root       1730 Jun 15 13:57 d1p1.img
    -rwxrwxrwx  1 root       root        512 Jun 15 13:57 d1p2.ebr
    -rwxrwxrwx  1 root       root        117 Jun 15 13:57 d1p2.img
    -rwxrwxrwx  1 root       root        512 Jun 15 13:57 d1p5.ebr
    -rwxrwxrwx  1 root       root 2601884486 Jun 15 14:00 d1p5.img
    -rwxrwxrwx  1 root       root        266 Jun 15 13:57 d1.partitions
    
    /media/fog/External/L13_V1:
    total 23470068
    drwxrwxrwx  2 root       root        4096 Jul 15 14:28 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 root       root     1048576 Jul 15 14:19 d1.mbr
    -rwxrwxrwx  1 root       root    13580917 Jul 15 14:20 d1p1.img
    -rwxrwxrwx  1 root       root     7370433 Jul 15 14:20 d1p2.img
    -rwxrwxrwx  1 root       root 23306123408 Jul 15 14:28 d1p3.img
    -rwxrwxrwx  1 root       root   705199137 Jul 15 14:28 d1p4.img
    -rwxrwxrwx  1 root       root         920 Jul 15 14:19 d1.partitions
    
    /media/fog/External/L380_V5:
    total 13935192
    drwxrwxrwx  2 root       root        4096 Jul  9 09:45 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 root       root     1048576 Jul  9 09:37 d1.mbr
    -rwxrwxrwx  1 root       root    13593640 Jul  9 09:37 d1p1.img
    -rwxrwxrwx  1 root       root     6337965 Jul  9 09:37 d1p2.img
    -rwxrwxrwx  1 root       root 13764380185 Jul  9 09:45 d1p3.img
    -rwxrwxrwx  1 root       root   484246350 Jul  9 09:45 d1p4.img
    -rwxrwxrwx  1 root       root         920 Jul  9 09:37 d1.partitions
    
    /media/fog/External/L380Yoga_V2:
    total 16190020
    drwxrwxrwx  2 fogproject root        4096 Apr 29 09:36 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root     1048576 Apr 29 09:26 d1.mbr
    -rwxrwxrwx  1 fogproject root    13929667 Apr 29 09:26 d1p1.img
    -rwxrwxrwx  1 fogproject root     6534874 Apr 29 09:26 d1p2.img
    -rwxrwxrwx  1 fogproject root 16055146116 Apr 29 09:36 d1p3.img
    -rwxrwxrwx  1 fogproject root   501897395 Apr 29 09:36 d1p4.img
    -rwxrwxrwx  1 fogproject root         903 Apr 29 09:26 d1.partitions
    
    /media/fog/External/L390_Student_V3:
    total 14448316
    drwxrwxrwx  2 root       root        4096 Jul  9 10:00 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 root       root     1048576 Jul  9 09:41 d1.mbr
    -rwxrwxrwx  1 root       root    13587521 Jul  9 09:41 d1p1.img
    -rwxrwxrwx  1 root       root     7824649 Jul  9 09:41 d1p2.img
    -rwxrwxrwx  1 root       root 14017072286 Jul  9 09:59 d1p3.img
    -rwxrwxrwx  1 root       root   755512605 Jul  9 10:00 d1p4.img
    -rwxrwxrwx  1 root       root         920 Jul  9 09:41 d1.partitions
    
    /media/fog/External/lost+found:
    total 20
    drwxrwxrwx  2 fogproject root 16384 Nov 20  2019 .
    d--------- 24 fogproject fog   4096 Jul 23 18:21 ..
    
    /media/fog/External/postdownloadscripts:
    total 12
    drwxrwxrwx  2 fogproject root 4096 Jun 12 15:01 .
    d--------- 24 fogproject fog  4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root  235 Jun 12 15:01 fog.postdownload
    
    /media/fog/External/T410Public:
    total 17167816
    drwxrwxrwx  2 fogproject root        4096 Dec 11  2019 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root     1048576 Dec 11  2019 d1.mbr
    -rwxrwxrwx  1 fogproject root    10482023 Dec 11  2019 d1p1.img
    -rwxrwxrwx  1 fogproject root 17101077694 Dec 11  2019 d1p2.img
    -rwxrwxrwx  1 fogproject root   467209620 Dec 11  2019 d1p3.img
    -rwxrwxrwx  1 fogproject root         249 Dec 11  2019 d1.partitions
    
    /media/fog/External/T420Public:
    total 16500884
    drwxrwxrwx  2 fogproject root        4096 Dec 11  2019 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root     1048576 Dec 11  2019 d1.mbr
    -rwxrwxrwx  1 fogproject root    10675009 Dec 11  2019 d1p1.img
    -rwxrwxrwx  1 fogproject root 15896492820 Dec 11  2019 d1p2.img
    -rwxrwxrwx  1 fogproject root   522388355 Dec 11  2019 d1p3.img
    -rwxrwxrwx  1 fogproject root   466271566 Dec 11  2019 d1p4.img
    -rwxrwxrwx  1 fogproject root         308 Dec 11  2019 d1.partitions
    
    /media/fog/External/T430sPublic:
    total 11688712
    drwxrwxrwx  2 fogproject root        4096 Jan 10  2020 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root     1048576 Jan 10  2020 d1.mbr
    -rwxrwxrwx  1 fogproject root   401658445 Jan 10  2020 d1p1.img
    -rwxrwxrwx  1 fogproject root    13588027 Jan 10  2020 d1p2.img
    -rwxrwxrwx  1 fogproject root     4252831 Jan 10  2020 d1p3.img
    -rwxrwxrwx  1 fogproject root 11548661605 Jan 10  2020 d1p4.img
    -rwxrwxrwx  1 fogproject root         861 Jan 10  2020 d1.partitions
    
    /media/fog/External/.Trash-1000:
    total 20
    drwxrwxrwx  5 fogproject fog 4096 Feb 14 09:05 .
    d--------- 24 fogproject fog 4096 Jul 23 18:21 ..
    drwxrwxrwx  2 fogproject fog 4096 Jun 11 09:40 expunged
    drwxrwxrwx  2 fogproject fog 4096 Jun 11 09:40 files
    drwxrwxrwx  2 fogproject fog 4096 Jun 11 09:40 info
    
    /media/fog/External/.Trash-1000/expunged:
    total 8
    drwxrwxrwx 2 fogproject fog 4096 Jun 11 09:40 .
    drwxrwxrwx 5 fogproject fog 4096 Feb 14 09:05 ..
    
    /media/fog/External/.Trash-1000/files:
    total 8
    drwxrwxrwx 2 fogproject fog 4096 Jun 11 09:40 .
    drwxrwxrwx 5 fogproject fog 4096 Feb 14 09:05 ..
    
    /media/fog/External/.Trash-1000/info:
    total 8
    drwxrwxrwx 2 fogproject fog 4096 Jun 11 09:40 .
    drwxrwxrwx 5 fogproject fog 4096 Feb 14 09:05 ..
    
    /media/fog/External/Yoga12Employee2-17-2020:
    total 13486452
    drwxrwxrwx  2 fogproject root        4096 Feb 17 09:55 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root     1048576 Feb 17 09:45 d1.mbr
    -rwxrwxrwx  1 fogproject root      175663 Feb 17 09:45 d1p1.img
    -rwxrwxrwx  1 fogproject root    13554499 Feb 17 09:46 d1p2.img
    -rwxrwxrwx  1 fogproject root    16884148 Feb 17 09:46 d1p3.img
    -rwxrwxrwx  1 fogproject root 13218126593 Feb 17 09:55 d1p4.img
    -rwxrwxrwx  1 fogproject root   560305301 Feb 17 09:55 d1p5.img
    -rwxrwxrwx  1 fogproject root         933 Feb 17 09:45 d1.partitions
    
    /media/fog/External/Yoga12Loaner7-17-2020:
    total 28210924
    drwxrwxrwx  2 root       root        4096 Jul 17 13:09 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 root       root     1048576 Jul 17 12:53 d1.mbr
    -rwxrwxrwx  1 root       root      153249 Jul 17 12:54 d1p1.img
    -rwxrwxrwx  1 root       root    13204433 Jul 17 12:54 d1p2.img
    -rwxrwxrwx  1 root       root    16753026 Jul 17 12:54 d1p3.img
    -rwxrwxrwx  1 root       root 28329599180 Jul 17 13:09 d1p4.img
    -rwxrwxrwx  1 root       root   527194881 Jul 17 13:09 d1p5.img
    -rwxrwxrwx  1 root       root         950 Jul 17 12:53 d1.partitions
    
    /media/fog/External/Yoga12PSCKiosk:
    total 13295960
    drwxrwxrwx  2 root       root        4096 Jul 23 18:21 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 root       root     1048576 Jul 23 18:11 d1.mbr
    -rwxrwxrwx  1 root       root      154048 Jul 23 18:11 d1p1.img
    -rwxrwxrwx  1 root       root    13310350 Jul 23 18:12 d1p2.img
    -rwxrwxrwx  1 root       root    16753026 Jul 23 18:12 d1p3.img
    -rwxrwxrwx  1 root       root 13001705077 Jul 23 18:20 d1p4.img
    -rwxrwxrwx  1 root       root   582061149 Jul 23 18:21 d1p5.img
    -rwxrwxrwx  1 root       root         950 Jul 23 18:11 d1.partitions
    
    /media/fog/External/Yoga12Public:
    total 11787560
    drwxrwxrwx  2 fogproject root        4096 Feb 11 14:47 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root     1048576 Feb 11 14:38 d1.mbr
    -rwxrwxrwx  1 fogproject root      175822 Feb 11 14:38 d1p1.img
    -rwxrwxrwx  1 fogproject root    13553607 Feb 11 14:39 d1p2.img
    -rwxrwxrwx  1 fogproject root    16884148 Feb 11 14:39 d1p3.img
    -rwxrwxrwx  1 fogproject root 11478465575 Feb 11 14:47 d1p4.img
    -rwxrwxrwx  1 fogproject root   560305462 Feb 11 14:47 d1p5.img
    -rwxrwxrwx  1 fogproject root         933 Feb 11 14:38 d1.partitions
    
    /media/fog/External/Yoga260Employee7-23-2020:
    total 17207268
    drwxrwxrwx  2 root       root        4096 Jul 23 10:17 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 root       root     1048576 Jul 23 10:05 d1.mbr
    -rwxrwxrwx  1 root       root      162799 Jul 23 10:05 d1p1.img
    -rwxrwxrwx  1 root       root    13313292 Jul 23 10:05 d1p2.img
    -rwxrwxrwx  1 root       root    16753026 Jul 23 10:05 d1p3.img
    -rwxrwxrwx  1 root       root 16933733426 Jul 23 10:17 d1p4.img
    -rwxrwxrwx  1 root       root   655199778 Jul 23 10:17 d1p5.img
    -rwxrwxrwx  1 root       root         950 Jul 23 10:05 d1.partitions
    
    /media/fog/External/Yoga260Public:
    total 33013012
    drwxrwxrwx  2 fogproject root        4096 Feb 11 15:51 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root     1048576 Feb 11 15:29 d1.mbr
    -rwxrwxrwx  1 fogproject root      184273 Feb 11 15:29 d1p1.img
    -rwxrwxrwx  1 fogproject root    13591086 Feb 11 15:29 d1p2.img
    -rwxrwxrwx  1 fogproject root    16884148 Feb 11 15:29 d1p3.img
    -rwxrwxrwx  1 fogproject root 33132331833 Feb 11 15:51 d1p4.img
    -rwxrwxrwx  1 fogproject root   641253159 Feb 11 15:51 d1p5.img
    -rwxrwxrwx  1 fogproject root         933 Feb 11 15:29 d1.partitions
    
    /media/fog/External/Yoga370Employee7-23-2020:
    total 15339692
    drwxrwxrwx  2 root       root        4096 Jul 23 10:19 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 root       root     1048576 Jul 23 10:04 d1.mbr
    -rwxrwxrwx  1 root       root      147139 Jul 23 10:04 d1p1.img
    -rwxrwxrwx  1 root       root    13290815 Jul 23 10:04 d1p2.img
    -rwxrwxrwx  1 root       root     7398263 Jul 23 10:04 d1p3.img
    -rwxrwxrwx  1 root       root 15049840456 Jul 23 10:18 d1p4.img
    -rwxrwxrwx  1 root       root   636090860 Jul 23 10:19 d1p5.img
    -rwxrwxrwx  1 root       root        1078 Jul 23 10:04 d1.partitions
    
    /media/fog/External/Yoga370EmployeeZoomCarts-7-2-2020:
    total 14075480
    drwxrwxrwx  2 root       root        4096 Jul  2 09:39 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 root       root     1048576 Jul  2 09:26 d1.mbr
    -rwxrwxrwx  1 root       root      146243 Jul  2 09:26 d1p1.img
    -rwxrwxrwx  1 root       root    13290922 Jul  2 09:26 d1p2.img
    -rwxrwxrwx  1 root       root     7398263 Jul  2 09:26 d1p3.img
    -rwxrwxrwx  1 root       root 13755286144 Jul  2 09:38 d1p4.img
    -rwxrwxrwx  1 root       root   636090680 Jul  2 09:39 d1p5.img
    -rwxrwxrwx  1 root       root        1078 Jul  2 09:26 d1.partitions
    
    /media/fog/External/Yoga370Loaner02-11-2020:
    total 18191040
    drwxrwxrwx  2 fogproject root        4096 Feb 11 09:22 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root     1048576 Feb 11 09:06 d1.mbr
    -rwxrwxrwx  1 fogproject root   401643178 Feb 11 09:06 d1p1.img
    -rwxrwxrwx  1 fogproject root    13566335 Feb 11 09:06 d1p2.img
    -rwxrwxrwx  1 fogproject root     7592785 Feb 11 09:06 d1p3.img
    -rwxrwxrwx  1 fogproject root 18203749037 Feb 11 09:22 d1p4.img
    -rwxrwxrwx  1 fogproject root         885 Feb 11 09:06 d1.partitions
    
    /media/fog/External/Yoga370Public:
    total 12410968
    drwxrwxrwx  2 fogproject root        4096 Feb 12 16:04 .
    d--------- 24 fogproject fog         4096 Jul 23 18:21 ..
    -rwxrwxrwx  1 fogproject root     1048576 Feb 12 15:54 d1.mbr
    -rwxrwxrwx  1 fogproject root   401642870 Feb 12 15:54 d1p1.img
    -rwxrwxrwx  1 fogproject root    13566275 Feb 12 15:54 d1p2.img
    -rwxrwxrwx  1 fogproject root     7592785 Feb 12 15:54 d1p3.img
    -rwxrwxrwx  1 fogproject root 12284954942 Feb 12 16:04 d1p4.img
    -rwxrwxrwx  1 fogproject root         885 Feb 12 15:54 d1.partitions
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=1833576k,nr_inodes=458394,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=372348k,mode=755)
    /dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
    tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
    cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
    cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
    cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
    cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13803)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
    mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
    debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
    tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
    sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
    nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
    fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
    configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
    /var/lib/snapd/snaps/gnome-3-34-1804_24.snap on /snap/gnome-3-34-1804/24 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /var/lib/snapd/snaps/core18_1705.snap on /snap/core18/1705 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /var/lib/snapd/snaps/gtk-common-themes_1506.snap on /snap/gtk-common-themes/1506 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /var/lib/snapd/snaps/snap-store_433.snap on /snap/snap-store/433 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /var/lib/snapd/snaps/snapd_7264.snap on /snap/snapd/7264 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
    tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=372344k,mode=700,uid=1000,gid=1000)
    gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
    /dev/fuse on /run/user/1000/doc type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
    /dev/sdb2 on /media/fog/External type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
    /dev/fuse on /root/.cache/doc type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
    gvfsd-fuse on /root/.cache/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
    

    Here are photos of the error, .fogsettings and Default Storage node user:
    IMG_1122.jpg IMG_1121.jpg IMG_1119.jpg


  • Senior Developer

    @icescout27 As I said, it used to be fog but now fogproject is used. You are not meant to play with this. As well you shall not use this account to login to your FOG server.

    Please run ls -alR /media/fog/External ; mount and post output here.

    After changing the username field to fogproject in both the .fogsettings file and Default Storage node I am still receiving the same error as specified in the original post.

    That is impossible. At least you should see the username changed in the error output. Saying you get the same error message is not of much help because you might overlook something important. Please take another picture of the new error screen and post here.



  • @Sebastian-Roth After changing the username field to fogproject in both the .fogsettings file and Default Storage node I am still receiving the same error as specified in the original post. Our other fog server is able to capture images fine. The default storage node username is fog, but the .fogsettings username is fogproject.



  • @Sebastian-Roth Here is the output I receive:

    root@ThinkPad-T430s:/var/lib/dhcp# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    udev            1.8G     0  1.8G   0% /dev
    tmpfs           364M  1.9M  362M   1% /run
    /dev/sda5       117G  7.6G  103G   7% /
    tmpfs           1.8G   30M  1.8G   2% /dev/shm
    tmpfs           5.0M  4.0K  5.0M   1% /run/lock
    tmpfs           1.8G     0  1.8G   0% /sys/fs/cgroup
    /dev/loop1      241M  241M     0 100% /snap/gnome-3-34-1804/24
    /dev/loop0       55M   55M     0 100% /snap/core18/1705
    /dev/loop3       63M   63M     0 100% /snap/gtk-common-themes/1506
    /dev/loop2       50M   50M     0 100% /snap/snap-store/433
    /dev/loop4       28M   28M     0 100% /snap/snapd/7264
    /dev/sda1       511M  4.0K  511M   1% /boot/efi
    tmpfs           364M   36K  364M   1% /run/user/1000
    /dev/sdb2       1.8T  339G  1.4T  20% /media/fog/External
    

    Our FOG servers are both setup with manual DHCP settings. IP 192.168.1.1, netmask 255.255.255.0, default gateway 192.168.1.1. Everything is offline, as if we turn the wireless functionality on for the laptops we use it does not want to load into the FOG dashboard. Some sort of DHCP/IP conflict I assume?

    We just imaged over 800 new laptops using this particular server, so I would have to say the last capture was maybe two or three weeks ago at most. I personally installed Ubuntu and FOG probably a couple of months ago. It wasn’t an upgrade, as there was nothing on the drive before the install. We manually changed fogproject to fog as I remember it was giving us other issues.

    Edit

    After looking into the .fogsettings file, the username was still fogproject. The default username in the “Default Storage” node was set to FOG. I am assuming this conflict could be the root of the issue. Attempting a capture session now.


  • Senior Developer

    @icescout27 said in Image Capture Error: "Failed to open stream: Permission Denied":

    When I elevate to root and run the command suggested I receive the following message

    No. Looks like this is not a SElinux enabled server. Ubuntu uses another security framework called AppArmor but I don’t think this is causing the issue.

    Run df -h as root and post output here.

    Can you please tell us more about this FOG sever? Sounds like you haven’t set it up yourself but took it over from someone. Do you know when it properly captured an image last?

    Just to check the basics: Is 192.168.1.1 the IP of your FOG server?

    … FOG version 1.5.9 RC2

    Ahhhhh, now I see. Something has gone wrong when updating from an earlier version. In the picture we see is state the username fog. This was used in earlier versions of FOG but not with the one you are using. Please login to the web UI, go to Storage settings, edit the “Default Storage” node and set the Management Username to fogproject. As well open a root command shell on your FOG server, edit file /opt/fog/.fogsettings and adjust the line starting with username=... accordingly.



  • @Sebastian-Roth Thank you for following up. We are running the FOG servers on Ubuntu 20.04 LTS and FOG version 1.5.9 RC2.

    When I elevate to root and run the command suggested I receive the following message:

    Command ‘getenforce’ not found, but can be installed with: 
    
    Apt install selinux-utils
    

    Should I install this package?



  • This post is deleted!

  • Senior Developer

    @icescout27 What Linux OS is this? Any chance SELinux is/got enabled?

    Run getenforce as root on the command shell and post output here.


Log in to reply
 

277
Online

7.4k
Users

14.5k
Topics

136.5k
Posts