Tftp stops working a few minutes after starting
-
[quote=“elijahkan14, post: 31489, member: 24797”]It has a static IP yes, not on wireless, I’m unsure about the firewalls as I’m not in charge of the physical network in these buildings. The server worked flawlessly before we upgraded to 1.1.1 (we were on 0.32) and still works most of the time, just randomly stops doing tftp until I restart the service. I won’t be able to connect to the same switch because the fog server is on a vsphere server in the other building (buildings connected by fiber).[/quote]
How do you identify your buildings? we use a scheme similar to 10.x.y.z where x indicates the building, y indicates device and z could be room.
-
In this district everything is 10.35.X.Y
X being the buildingWe also have a separate scope for phones, wireless, guest wireless, etc
-
By chance do you have Cisco switches or PowerData switches?
You may need to “enable Portfast (fast link)” and “disable STP” on the swithes as the opposite settings will cause issues wth iPXE(fog v1.x.x) where PXE(fog v0.32) will work without issues.
-
We do have Cisco switches, I’ve never had to telnet into them before and will have to figure out the password though. Do you know the commands by any chance?
-
Usually you use the Http interface to change these but I’m sure someone here can help you out with telnet or a administrative software.
POKE (Jaymes)
-
I recommend Cisco CNA is a program that will allow you to make back ups of your current configuration. You will need to know the passwords to access the switches.
-
I contacted the director of the district and apparently our ISP manages our switches now that our networking guy resigned. He said we can enable portfast no problem but disabling STP is not an option. Does this mean we will not be able to use the new version of fog? How come the process gives errors on the FOG server if it could be a switch issue?
-
This post is deleted! -
[quote=“elijahkan14, post: 31521, member: 24797”]I contacted the director of the district and apparently our ISP manages our switches now that our networking guy resigned. He said we can enable portfast no problem but disabling STP is not an option. Does this mean we will not be able to use the new version of fog? How come the process gives errors on the FOG server if it could be a switch issue?[/quote]
Normally I would say to disable STP and enable port fast if you were having issues getting your file to your hosts, However that is not the issue here, there is something killing the process, or the process is erroring out.
I’ve seen times where re-installing the service will fix the issue try this:
[code]
sudo apt-get purge tftpd-hpa
sudp apt-get install tftpd-hpa[/code] -
[S]I successfully uninstalled tftpd-hpa but I’m getting a 404 on reinstall.[/S]
Had to update my apt-get lists first.[url=“/_imported_xf_attachments/1/1079_Untitled2.png?:”]Untitled2.png[/url]
-
[code]
sudo apt-get update
sudo apt-get install tftpd-hpa[/code]404 errors are due to connectivity, are you certain your fog server has access to the internet?
-
How do I get rid of:
“Errors were encountered while processing:
tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)” -
This post is deleted! -
“Should port-fast be enabled on the port to which the server is connected, the port to which the workstation is connected, or both?”
-
You’re removal never completed, run the purge command again now that you ran the update.
and I enabled portfast on every port I had
-
"sudo apt-get purge tftpd-hpa
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
tftpd-hpa
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 193 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database … 154651 files and directories currently installed.)
Removing tftpd-hpa …
dpkg: error processing tftpd-hpa (–remove):
subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Processing triggers for ureadahead …
Errors were encountered while processing:
tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)
" -
[code]
sudo apt-get -f install tftpd-hpa
sudo apt-get update
sudo apt-get purge tftpd-hpa
sudo apt-get -f tftpd-hpa[/code]if a command fails then stop and report.
-
[CODE]sudo apt-get -f install tftpd-hpa
Reading package lists… Done
Building dependency tree
Reading state information… Done
tftpd-hpa is already the newest version.
The following packages will be REMOVED:
tftpd-hpa
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 193 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database … 154651 files and directories currently installed.)
Removing tftpd-hpa …
dpkg: error processing tftpd-hpa (–remove):
subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Processing triggers for ureadahead …
Errors were encountered while processing:
tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)[/CODE] -
see the issue here? it’s not FOG, it’s your Linux Installation, its unhappy for some reason.
[code]
sudo dpkg --configure -a[/code] -
Ran that command and then [code]sudo apt-get purge tftpd-hpa[/code] and got the same error.