• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    TFTP stops on reboot after install

    Scheduled Pinned Locked Moved
    General
    12
    20
    21.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Catsrules
      last edited by

      [quote=“Jacob H. Weeks, post: 2228, member: 716”]Could Someone Please Provide A Step-By-Step Guide On How To Set The Server up on an Ubuntu system including everything that needs to be done before and after running ./installfog.sh?[/quote]

      How about this
      [url]http://fogproject.org/forum/threads/how-to-install-fog-on-ubuntu.5/[/url]
      Or this
      [url]http://www.fogproject.org/wiki/index.php?title=Installation[/url]

      The Tutorials section is helpful
      [url]http://fogproject.org/forum/forums/tutorials.13/[/url]

      1 Reply Last reply Reply Quote 0
      • J
        Jacob H. Weeks
        last edited by

        Okay everyone, you guys are awesome, Thank you! I really appreciate your help.

        [I][SIZE=11px]- There is no place like 127.0.0.1 -[/SIZE][/I]

        1 Reply Last reply Reply Quote 0
        • I
          IT Support
          last edited by

          For us in Ubuntu 12.04 the problem was tftpd-hpa was not starting because fog installation modified the file /etc/default/tftpd-hpa with an IP address of 0.0.0.0

          1 Reply Last reply Reply Quote 0
          • A
            astrouga
            last edited by

            I just stopped and started tfpd-hpa:
            [code]
            sudo stop tftpd-hpa
            sudo start tftpd-hpa
            [/code]

            1 Reply Last reply Reply Quote 0
            • A
              astrouga
              last edited by

              More details:
              This is a common issue that keeps coming up in the forums. You install 12.04, install fog and reboot and then TFTP times out.

              Look in your /var/log/syslog file and you’ll see something like:
              [Code]
              May 22 14:16:22 yourServer in.tftpd[968]: cannot resolve local IPv4 bind address: 0.0
              .0.0, Name or service not known
              May 22 14:16:22 yourServer cron[1003]: (CRON) STARTUP (fork ok)
              May 22 14:16:22 yourServer kernel: [ 19.271357] init: tftpd-hpa main process (968)
              terminated with status 66
              May 22 14:16:22 yourServer kernel: [ 19.271374] init: tftpd-hpa main process ended,
              respawning
              [/code]
              Your nic doesn’t have an IP address when tftpd-hpa starts, so it isn’t going to work. Just do this from a terminal window:
              [Code]
              sudo stop tftpd-hpa
              sudo start tftpd-hpa
              [/code]
              This is a “confirmed” bug in 12.04.

              –astrouga

              1 Reply Last reply Reply Quote 0
              • U
                ullawolf1
                last edited by

                I think the reason is the Ubuntu start mechanism “Upstart”, where the daemons do not start step by step but almost simultaneously.
                So tftpd-hpa starts “to early”. You can fix this by editing the /etc/rc.local and ad the line

                (/bin/sleep 30 && /etc/init.d/htftpd-hpa restart)

                to restart the daemon after 30 seconds

                ullawolf1

                1 Reply Last reply Reply Quote 0
                • A
                  astrouga
                  last edited by

                  Thanks, that worked. Though you have a typo. It should be:

                  [CODE]/bin/sleep 30 && /etc/init.d/tftpd-hpa restart[/CODE]

                  (you had “htftpd-hpa”).

                  astrouga

                  1 Reply Last reply Reply Quote 0
                  • C
                    CmdrLucKY
                    last edited by

                    [quote=“astrouga, post: 3627, member: 907”]I just stopped and started tfpd-hpa:
                    [code]
                    sudo stop tftpd-hpa
                    sudo start tftpd-hpa
                    [/code][/quote]
                    I did the same, …actually aliased the command to “restart tftpd-hpd”

                    1 Reply Last reply Reply Quote 0
                    • Boyan BiandovB
                      Boyan Biandov
                      last edited by

                      Just curious since I have encountered this ‘bug’ with the Ubuntu releases all the time:

                      Instead of restarting with:

                      [FONT=Consolas][CODE]/bin/sleep 30 && /etc/init.d/tftpd-hpa restart[/CODE][/FONT]

                      [FONT=Consolas]Isn’t there a way to delay the original start of the tftp daemon with a simple sleep () inserted somewhere in the Ubuntu start up script for all daemons?[/FONT]

                      1 Reply Last reply Reply Quote 0
                      • L
                        Leroy Brown
                        last edited by

                        Still can’t figure out why all of the sudden I’m getting the notorious PXE-E53 and PXE-M0F errors. Anyone with a solution? I’m behind my home router that does the DHCP, has been working great. My mistake was rebooting my fog server, now I got nothing > ugg!

                        1 Reply Last reply Reply Quote 0
                        • L
                          Leroy Brown
                          last edited by

                          Circling back here folks.
                          SOLVED!
                          From spiceworks post:
                          This is kind of an old thread at this point, but I had the same issues so I wanted to put the information I found on here in the event it will help anybody else…what I found was that both DHCP, and TFTP had stopped working when I rebooted my 12.04 ubuntu LTS desktop. After doing some testing, here’s what I found that works for me to get it restarted quickly.
                          FROM THE UBUNTU Desktop

                          1. Open a command window
                          2. ENTER: sudo start isc-dhcp-server (enter your password when asked)
                          3. ENTER: sudo restart tftpd-hpa

                          BAM!

                          1 Reply Last reply Reply Quote 0
                          • Jaymes DriverJ
                            Jaymes Driver Developer
                            last edited by

                            This is a known issue with the 12.04 Ubuntu derivative, the services are started before an ip address is assigned to the machine.

                            There are a number of posts ON THIS FORUM that explain how to rectify the issue and delay the start up of the job so that you don’t have to start them manually after each reboot.

                            WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post

                            157

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project