Locked out of Fog...
-
Yep! Thanks for your help!
-
I’ve captured my first image and it doesn’t seem to be replicating to my storage nodes… Could this be becasue I moved the /images to a new drive?
-
@msnyder no if the /images reconnected to /dev/sdb1 then the mount is good. Do the replicator logs in /opt/fog/log give you any idea?
-
It appears that even though the capture completed on the machine, the image is staying in /images/dev/<macaddress>…
-
@msnyder Make sure your permissions are set correctly for /images
They should be owned by user fog:root right or wrong the file permissions are 777
-
Correct?
root@PDC-FOG:/# ls -l total 104 drwxr-xr-x 2 root root 4096 Jun 21 08:29 bin drwxr-xr-x 3 root root 4096 Jun 21 08:25 boot drwxr-xr-x 19 root root 3980 Jun 21 09:09 dev drwxr-xr-x 98 root root 4096 Jun 21 15:25 etc drwxr-xr-x 5 root root 4096 Jun 21 08:31 home drwxr-xr-x 5 root root 4096 Jun 21 08:37 images lrwxrwxrwx 1 root root 32 Jun 21 08:24 initrd.img -> boot/initrd.img-4.4.0-81-generic lrwxrwxrwx 1 root root 32 May 9 14:37 initrd.img.old -> boot/initrd.img-4.4.0-77-generic drwxr-xr-x 23 root root 4096 Jun 21 08:28 lib drwxr-xr-x 3 root root 4096 May 9 14:50 lib32 drwxr-xr-x 2 root root 4096 Jun 21 08:22 lib64 drwx------ 2 root root 16384 May 9 14:18 lost+found drwxr-xr-x 3 root root 4096 May 9 14:18 media drwxr-xr-x 3 root root 4096 May 22 09:22 mnt drwxr-xr-x 4 root root 4096 Jun 21 08:32 opt dr-xr-xr-x 239 root root 0 Jun 21 04:09 proc drwx------ 8 root root 4096 Jun 21 09:19 root drwxr-xr-x 31 root root 1100 Jun 22 08:04 run drwxr-xr-x 2 root root 12288 Jun 21 08:29 sbin drwxr-xr-x 2 root root 4096 Jan 14 09:06 snap drwxr-xr-x 3 root root 4096 Jun 21 08:31 srv dr-xr-xr-x 13 root root 0 Jun 21 04:09 sys drwxr-xr-x 6 fog root 4096 Jun 21 08:33 tftpboot drwxr-xr-x 2 root root 4096 Jun 21 08:33 tftpboot.prev drwxrwxrwt 17 root root 4096 Jun 22 08:40 tmp drwxr-xr-x 10 root root 4096 May 9 14:18 usr drwxr-xr-x 14 root root 4096 Jun 21 08:28 var lrwxrwxrwx 1 root root 29 Jun 21 08:24 vmlinuz -> boot/vmlinuz-4.4.0-81-generic lrwxrwxrwx 1 root root 29 May 9 14:37 vmlinuz.old -> boot/vmlinuz-4.4.0-77-generic
root@PDC-FOG:/# cd /images/ root@PDC-FOG:/images# ls -l total 24 drwxrwxrwx 5 fog root 4096 Jun 21 14:01 dev drwx------ 2 root root 16384 Jun 21 08:36 lost+found drwxrwxrwx 2 fog root 4096 Jun 21 08:33 postdownloadscripts
-
@msnyder This should do the trick:
chmod 777 /images
-
@Sebastian-Roth said in Locked out of Fog...:
chmod 777 /images
Will I need to recapture my image now?
-
@msnyder You will need to capture the images again (or be sneeky and move the /images/dev/<mac_name> to /images/<image_name> as the <image_name> is exactly defined in the image configuration.
mv /images/dev/<mac_name> /images/<image_name>
The capture is complete it just needs to be parked in the right location. -
Seems to be replicating now! Thanks!