db_root: cannot open: /etc/target
-
@kboutelle said in db_root: cannot open: /etc/target:
/bin/fog.download
This files is with in the FOG Linux system (we call it FOS) that is booted via PXE and runs on the client. I am sure the file exists! Don’t worry about it. Please take a picture of the error you see on the client now and post here.
-
This is what I saw on the client.
-
@kboutelle Well we are definitely a couple of steps bejond the error you posted in the first picture! So fixing /etc/exports definitely seemed to help. Now I see the image is called
Win7-3020-Gold
and from the directory listings you posted it seems like this image folder does exist as well. Please runls -al /images2/Win7-3020-Gold
and post output here. -
root@STF-IMGSVR01:/# ls -al /images2/Win7-3020-Gold total 8312928 drwxrwxrwx 2 root root 4096 Dec 4 13:45 . drwxrwxr-x 9 fog root 4096 Dec 4 13:45 .. -rwxrwxrwx 1 root root 3 Dec 4 13:35 d1.fixed_size_partitions -rwxrwxrwx 1 root root 1048576 Dec 4 13:40 d1.mbr -rwxrwxrwx 1 root root 190 Dec 4 13:40 d1.minimum.partitions -rwxrwxrwx 1 root root 15 Dec 4 13:38 d1.original.fstypes -rwxrwxrwx 1 root root 0 Dec 4 13:38 d1.original.swapuuids -rwxrwxrwx 1 root root 8551038 Dec 4 13:40 d1p1.img -rwxrwxrwx 1 root root 8502808087 Dec 4 13:45 d1p2.img -rwxrwxrwx 1 root root 190 Dec 4 13:38 d1.partitions
-
@kboutelle From the information we have so far I cannot see why it fails this way. Can you please cancel the task in the web UI and schedule a new deploy job but this time tick the checkbox for debug. Boot up the client machine again and when you get to the shell (after hitting ENTER) you type
fog
to start the process. Now step through the steps till you hit the error. It will bring you back to the shell. Then runmount ; ls -al /images
, take a picture and post here. This time it really is/images
without2
at the end because this is the directory used on the client to mount the NFS share from the server. -
OK, the error was that same in the last image I posted. This is the result of the debug process as you’ve instructed:
-
@kboutelle Well the first thing I noticed is that you don’t have any files in the /images2 directory (on the fog server across the nfs mount) according to the pxe booting client. Its also interesting to see that it IS a fog images directory because it has the FOG expected structure.
Is 10.0.0.138 your FOG server?
On your fog server you did a
ls -la /images2
command that surely showed files.What is the output of the following commands
showmount -e 127.0.0.1
and
cat /etc/exports
-
Yes, 10.0.0.138 is my FOG server.
root@STF-IMGSVR01:/# showmount -e 127.0.0.1 Export list for 127.0.0.1: /images2/dev * /images2 * /images/dev * /images * root@STF-IMGSVR01:/# cat /etc/exports /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0) /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1) /images2 *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0) /images2/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
Could I have an issue with the database? I’ve been reading as much as I can while you’ve been trying to help me. Some others have had issues with databases after updates. Sorry I didn’t save the links.
-
@kboutelle There’s the problem.
You have /images and /images2 mounting to the same File system ID. I believe nfs will use the 1st instance (in your case it’s mounting /images rather than your new share /images2.
Edit the /etc/exports file.
For your /images and /images/dev lines, prepend them with a
#
symbol. This will comment those lines.That, or change the fsid of the /images2 and /images2/dev to have 2 and 3 respectively.
Then restart the nfs service,
systemctl restart nfsd
-
@Tom-Elliott said in db_root: cannot open: /etc/target:
@kboutelle There’s the problem.
You have /images and /images2 mounting to the same File system ID. I believe nfs will use the 1st instance (in your case it’s mounting /images rather than your new share /images2.
Edit the /etc/exports file.
For your /images and /images/dev lines, prepend them with a
#
symbol. This will comment those lines.That, or change the fsid of the /images2 and /images2/dev to have 2 and 3 respectively.
Then restart the nfs service,
systemctl restart nfsd
I can’t believe I missed that. Edited, going to try again.
Deployment is proceeding as it should.
Thank you all for taking the time to help.