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

    Services (TFTP, MySQL) not starting after reboot on Lubuntu 13.10

    Linux Problems
    5
    10
    3293
    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.
    • M
      maples last edited by

      [b]### SOLVED ###[/b]
      The issue was with a bug that Ubuntu doesn’t properly start services.
      My issue was only with tftpd-hpa, but this probably can be applied to other services as well.

      /etc/init/tftpd-hpa.override:
      [code]
      manual
      [/code]

      /etc/rc.local:
      [code]
      sleep 30
      start tftpd-hpa
      exit 0
      [/code]

      [b]### Original post###[/b]
      Hi,
      I’m trying to install FOG on a compuer that’s running Lubuntu 13.10. This has happened twice, and I’ve gotten similar results both times.
      I did a fresh install, updated everything, then installed FOG. Everything ran fine, and soon we were able to start booting from the PXE server, registering hosts, and taking images.
      However, after we rebooted the computer, we ran into issues. Both times, the TFTP server refused to start. The first time, the MySQL service broke as well, but the second time it seems to still be working.

      Since I reinstalled the OS after the first failure, I’m unable to give any more details about it, but we haven’t done anything to the second install.

      Here’s the /etc/default/tftpd-hpa config file.
      [code]# /etc/default/tftpd-hpa

      FOG Modified version

      TFTP_USERNAME=“root”
      TFTP_DIRECTORY=“/tftpboot”
      TFTP_ADDRESS=“0.0.0.0:69”
      TFTP_OPTIONS=“-s”[/code]

      Thanks!

      1 Reply Last reply Reply Quote 0
      • Wayne Workman
        Wayne Workman last edited by

        [quote=“maples, post: 44776, member: 29215”][B]### SOLVED ###[/B]
        The issue was with a bug that Ubuntu doesn’t properly start services.
        My issue was only with tftpd-hpa, but this probably can be applied to other services as well.

        /etc/init/tftpd-hpa.override:
        [code]
        manual
        [/code]

        /etc/rc.local:
        [code]
        sleep 30
        start tftpd-hpa
        exit 0
        [/code]

        [B]### Original post###[/B]
        Hi,
        I’m trying to install FOG on a compuer that’s running Lubuntu 13.10. This has happened twice, and I’ve gotten similar results both times.
        I did a fresh install, updated everything, then installed FOG. Everything ran fine, and soon we were able to start booting from the PXE server, registering hosts, and taking images.
        However, after we rebooted the computer, we ran into issues. Both times, the TFTP server refused to start. The first time, the MySQL service broke as well, but the second time it seems to still be working.

        Since I reinstalled the OS after the first failure, I’m unable to give any more details about it, but we haven’t done anything to the second install.

        Here’s the /etc/default/tftpd-hpa config file.
        [code]# /etc/default/tftpd-hpa

        FOG Modified version

        TFTP_USERNAME=“root”
        TFTP_DIRECTORY=“/tftpboot”
        TFTP_ADDRESS=“0.0.0.0:69”
        TFTP_OPTIONS=“-s”[/code]

        Thanks![/quote]

        #letsmakescripts

        Just hash-tagging this… I’m working on something…

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • Junkhacker
          Junkhacker Developer last edited by

          [quote=“Wayne Workman, post: 44885, member: 28155”]Could you share some resources about that? I’m absolutely a total noob with doing Repos… and that other stuff you just said…[/quote]

          this will tell you most of what you need to know [url]http://git-extensions-documentation.readthedocs.org/en/latest/getting_started.html[/url]

          signature:
          Junkhacker
          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

          1 Reply Last reply Reply Quote 0
          • Wayne Workman
            Wayne Workman last edited by

            [quote=“Junkhacker, post: 44883, member: 21583”]regarding the backups of config files, i thought i would share what i’ve started doing.
            i create a local git repository on my desktop for each server
            before editing a config file, i copy the file over to the git repo for that server so that i have the original version.
            whenever i make a change, i commit the change to the config file in the git repo as well.
            this gives me a complete log of all changes i make to the server’s configuration and i make notes in the commit logs about what i did and why.[/quote]

            Could you share some resources about that? I’m absolutely a total noob with doing Repos… and that other stuff you just said…

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            1 Reply Last reply Reply Quote 0
            • Junkhacker
              Junkhacker Developer last edited by

              [quote=“Wayne Workman, post: 44821, member: 28155”]I edited my /etc/rc.d/rc.local file in Fedora to delay the startup of fog services.

              You could try it… Worst thing that happens is it won’t work, you un-do it, and go with another method. Don’t be afraid to experiment; it’s the VERY best way to learn. Make backups of files with the copy command for a safety net (I never did, I use snapshots in a VM).

              Although it doesn’t apply to tftp, you can look here to see how I delay FOG services in Fedora to get you started…

              [url]http://fogproject.org/wiki/index.php/FOG_(r2922)_Configuration_on_Fedora_21_Workstation_inside_Windows_Server_2012_Hyper-V_using_ProxyDHCP#Set_the_FOG_services_to_start_30_seconds_after_boot[/url][/quote]

              regarding the backups of config files, i thought i would share what i’ve started doing.
              i create a local git repository on my desktop for each server
              before editing a config file, i copy the file over to the git repo for that server so that i have the original version.
              whenever i make a change, i commit the change to the config file in the git repo as well.
              this gives me a complete log of all changes i make to the server’s configuration and i make notes in the commit logs about what i did and why.

              signature:
              Junkhacker
              We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

                [quote=“maples, post: 44833, member: 29215”]It’s working now. I made /etc/init/tftpd-hpa.override that contains “manual” and I changed my /etc/rc.local to
                [code]
                sleep 30
                start tftpd-hpa
                exit 0
                [/code]

                Does this forum have a “thread solved” button? I know that some others do, but I haven’t found it yet.

                Thanks![/quote]

                No not exactly (for the Solved button) but you are welcome to edit your main post, Leave a note on the solution and put a BOLD line at the top that explains the issues have been resolved, remember to put code in the code brackets so it is easier to copy and paste without the darn emojis!!!

                Like this:

                [B]SOLVED[/B]
                Thanks (list of persons that helped)

                This seems to have solved my issue of [issue goes here]:
                [code]{Actual resolution of the issue}[/code]

                I appreciate all your help and support!

                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
                • M
                  maples last edited by

                  It’s working now. I made /etc/init/tftpd-hpa.override that contains “manual” and I changed my /etc/rc.local to
                  [code]
                  sleep 30
                  start tftpd-hpa
                  exit 0
                  [/code]

                  Does this forum have a “thread solved” button? I know that some others do, but I haven’t found it yet.

                  Thanks!

                  1 Reply Last reply Reply Quote 0
                  • Wayne Workman
                    Wayne Workman last edited by

                    I edited my /etc/rc.d/rc.local file in Fedora to delay the startup of fog services.

                    You could try it… Worst thing that happens is it won’t work, you un-do it, and go with another method. Don’t be afraid to experiment; it’s the VERY best way to learn. Make backups of files with the copy command for a safety net (I never did, I use snapshots in a VM).

                    Although it doesn’t apply to tftp, you can look here to see how I delay FOG services in Fedora to get you started…

                    [url]http://fogproject.org/wiki/index.php/FOG_(r2922)_Configuration_on_Fedora_21_Workstation_inside_Windows_Server_2012_Hyper-V_using_ProxyDHCP#Set_the_FOG_services_to_start_30_seconds_after_boot[/url]

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    1 Reply Last reply Reply Quote 0
                    • M
                      maples last edited by

                      So for the tftpd service, I would create /etc/init/tftpd-hpa.override (overwrite if it already exists), and it should contain only the word “manual”

                      From what I’ve found, /etc/rc.local gets run at the end of every runlevel. We only want to start it once, so wouldn’t it be a better idea to put a startup (with delay) script into one of the /etc/rcX.d/ directories?

                      MySQL seems to be working for now, but would you suggest doing the same thing for that service as well?

                      Thanks!

                      1 Reply Last reply Reply Quote 0
                      • Tom Elliott
                        Tom Elliott last edited by

                        This is heavily known about.

                        [url]https://github.com/fogproject/fogproject/issues/1[/url]

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

                        139
                        Online

                        10.4k
                        Users

                        16.4k
                        Topics

                        150.5k
                        Posts

                        Copyright © 2012-2023 FOG Project