Seems that TFTP was not prepared by installer
-
Hi there,
first of all a short hello to everybody. I am new to fog and trying to make it work since yesterday, but I still have many issues. Some are solved and with others I have no idea anymore.
I have set up a physical machine with 2 NICs, one with the ip 10.203.8.31/24 (Internet-access) and the other one with 192.168.100.1/24 (the network for imaging).
DHCP on 192.168.100.1 works fine but TFPT does not.# cat /etc/default/tftpd-hpa # /etc/default/tftpd-hpa TFTP_USERNAME="tftp" TFTP_DIRECTORY="/srv/tftp" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="--secure"
I read somewhere, that there should be a line which says “Modified by FOG” or something like that.
Directory /srv/tftp is empty, and copying images from the install-Directory does not help much. daemon.log says:Jul 11 12:52:34 debian-linux in.tftpd[12113]: RRQ from 192.168.100.11 filename undionly.kkpxe Jul 11 12:52:34 debian-linux in.tftpd[12113]: tftp: client does not accept options Jul 11 12:52:34 debian-linux in.tftpd[12114]: RRQ from 192.168.100.11 filename undionly.kkpxe [...] Jul 11 12:52:37 debian-linux in.tftpd[12115]: RRQ from 192.168.100.10 filename default.ipxe Jul 11 12:52:37 debian-linux in.tftpd[12115]: sending NAK (1, File not found) to 192.168.100.10
In the management console I can see, that for the TFTP-Server the correct IP is set.
Any help is appreciated!
Thanx
Rainer -
Welcome to the FOG Project forums.
Lets start with the following command keyed into the FOG server linux console.
netstat -an|grep 69
and post the output here.Also please provide the output of the following 2 commands.
[you already answered this question]ls -la /srv/tftp
ls -la /tftpboot
-
# netstat -an|grep 69 udp 0 0 0.0.0.0:69 0.0.0.0:*
# ls -la /tftpboot ls: Zugriff auf '/tftpboot' nicht möglich: Datei oder Verzeichnis nicht gefunden
(Does not exist)
-
@Tywyn Well that is interesting. We can see the tftp server is running and listening on all interfaces (that’s good), but tftpboot should contain the ipxe boot kernels.
How did you install fog? What steps?
Did you use git to download the installer files and then run the ./bin/installfog.sh script?
-
@george1421 Thanx for helping!
I downloaded the tarball from fogproject.org (Download-Button), untared it and then did a$ cd Downloads/fog_1.4.4/bin $ sudo ./installfog.sh
-
@Tywyn What OS (and version) are you running exactly?
Also, notably, the TFTP config file is not pointing to the expected directory.
Is there anything in /srv/tftp?
-
Where are you expecting it to say “Modified by FOG”?
-
# uname -a Linux debian-linux 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux
@Tom-Elliott:
Found it here: Some forum (Posting at Jun 19, 2014 at 9:21 PM) -
@Tywyn OK those steps are standard (the preferred way is to use git instead of the tarball, but either way will work. the git method makes it easier to install upgrades as they are released).
There are 2 files we need to inspect (I’m guessing that the installer didn’t complete correctly since the /tftpboot directory is empty).
In the same directory as the installfog.sh script is a directory called error_logs. In that directory there are installer files (i.e. fog_error_1.4.4.log). Please review this file to ensure the installer didn’t throw an error.
The second one is a hidden file in /opt/fog called .fogsettings If the installer didn’t finish for some reason this file will be blank or missing.
We may need to run through the installer one more time to address things that didn’t get installed correctly.
-
@Quazz
/srv/tftp was empty.
Tried to copy the files from ~/Downloads/fog_1.4.4/packages/tftp there, but then I ran into the missing default.ipxe (see inital posting) -
@Tywyn Quazz was asking for the version of Debian you are using.
-
@Tywyn said in Seems that TFTP was not prepared by installer:
but then I ran into the missing default.ipxe
This kind of tells me that your installer didn’t finish correctly, the default.ipxe file is built by the installer.
-
@george1421
Sorry, you are right. Using debian 9.0.0 amd 64 -
@george1421 said in Seems that TFTP was not prepared by installer:
This kind of tells me that your installer didn’t finish correctly, the default.ipxe file is built by the installer.
Strange, did not see any errormessages…
-
The “FOG Modified Version” string appears, to me, to be related to debian/ubuntu. This, however, does not mean it is a requirement as using rpcbind variants might work better for the server in which case IT would be used. You stated /tftpboot/default.ipxe wasn’t created?
-
@Tom-Elliott
Was not created, no. Don’t even have a /tftpboot-directory -
Then, as @george1421 state, it would seem your installer didn’t finish.
When it asked you to open the browser and goto update the schema, did you go back to the console and press enter to continue on?
-
@Tom-Elliott
You mean after updating/installing the database scheme? Yes, I did.But, it was the second attempt of installation.
First time I did something wrong with the 2 NICs, because I did not understand the questions in the installer about the router-adress for DHCP-Server (and still don’t understand it completely :)) so the first installation endet up with an error-message (something about the DHCP-Server).
The second install went well, and as mentioned I did not see any error-messages. -
@Tywyn Did you install as server or storage node?
-
@Tywyn There’s an error_logs folder in the fogproject/bin folder (where you extracted the download). There will be a log file of the most recent installation, there’s probably some more detailed information in there.