Have to manually start dhcp and tftp service after each reboot.



  • New install of FOG 0.32 on Ubuntu 12.10. This is a standalone server, not part of any other network.
    Each time the server is rebooted, the DHCP and TFTP services fail to work correctly. If I try to boot a client, I get a PSC-E51: No dhcp or proxydhcp offers received. I enter sudo start isc-dhcp-server on the FOG server, enter the sudo password, and reboot the client. This time, it gets an IP, but receives a PXE-E32 TFTP open timeout. On the server, I enter sudo start tftpd-hpa and receive a “job is already running” response. I then enter sudo restart tftpd-hpa and the service starts. I reboot the client and FOG functions normally until the next reboot. My rc.local file contains the lines

    /bin/sleep30 && /etc/init.d/tftpd-hpa restart
    exit 0

    I haven’t made any other modifications that I can think of, other than experimenting with various kernels. Additionaly, my knowledge of FOG and Ubuntu can be described as beginner.


  • Developer

    Did that second recommendation ever work?
    I am experiencing this problem in Ubuntu 12.04 Desktop (package: tftpd-5.2-1ubuntu1). The tftpd daemon does not start when the computer starts up, even though the tftpd-hpa job starts. As far as I can tell, the problem is that the tftpd service is starting before the network is properly configured. The problem seemed to go away when I changed the line
    start on runlevel [2345]
    in /etc/init/tftpd-hpa.conf to
    start on (local-filesystems and net-device-up IFACE!=lo)
    ?



  • Yes, will give it a try and report back.


  • Developer

    I don’t know why this is so hard to accomplish I have found a way to restart the service via a script after the server is up and running again but I have not been successful in delaying the start of the tftpd-hpa service :(

    put a script in /etc/network/if-up.d/tftpd-hpa
    containing:

    #!/bin/sh
    restart tftpd-hpa

    And, chmod 755 the script.

    Scratch that I found this

    
    I am experiencing this problem in Ubuntu 12.04 Desktop (package: tftpd-5.2-1ubuntu1). The tftpd daemon does not start when the computer starts up, even though the tftpd-hpa job starts. As far as I can tell, the problem is that the tftpd service is starting before the network is properly configured. The problem seemed to go away when I changed the line
    start on runlevel [2345]
    in /etc/init/tftpd-hpa.conf to
    start on (local-filesystems and net-device-up IFACE!=lo)
    

    I’m not on 12.04 anymore I dropped back to 10.04, do you want to give this a shot?


Log in to reply
 

323
Online

38729
Users

10555
Topics

99937
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.