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

Fog was working fine until a power outage

Scheduled Pinned Locked Moved
FOG Problems
2
42
14.2k
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.
  • T
    Tom Elliott
    last edited by Oct 14, 2013, 8:18 PM

    Well,

    One way to be ensure it’s a permissions issue is to make sure all permissions are out of the question. Most Directories follow a 755 rule, and many of the files follow that as well. It sounds like it can’t write any request data to the filesystem, which means when you’re accessing it, it can’t modify the last access time. One way to verify if it’s permissions is to put the whole directory as rwx all the way through with:[code]chmod -R 777 /tftpboot[/code]

    Then try your ftp command. if that allows it to work, then try [code]chmod -R 755 /tftpboot[/code]

    It should still work. I can’t fully remember, though, if you have to specify the full path either, in reference to the command you’re writing in windows…

    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
    • T
      To_Tha_Cloud
      last edited by Oct 14, 2013, 8:27 PM

      [quote=“Tom Elliott, post: 18110, member: 7271”]Well,

      One way to be ensure it’s a permissions issue is to make sure all permissions are out of the question. Most Directories follow a 755 rule, and many of the files follow that as well. It sounds like it can’t write any request data to the filesystem, which means when you’re accessing it, it can’t modify the last access time. One way to verify if it’s permissions is to put the whole directory as rwx all the way through with:[code]chmod -R 777 /tftpboot[/code]

      Then try your ftp command. if that allows it to work, then try [code]chmod -R 755 /tftpboot[/code]

      It should still work. I can’t fully remember, though, if you have to specify the full path either, in reference to the command you’re writing in windows…[/quote]

      Changed the permissions to 777 and tried to rerun the command. I still get the same error. I even made up a filename to make sure I didnt have to enter the full path and it came back with a file not found. So I know my command should work. Scratches head

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott
        last edited by Oct 14, 2013, 8:31 PM

        This is starting to make some sense.

        The files that you’re working with are all currently 666, or rw-rw-rw- try chmoding all folders as 755 with:
        [code]chmod -R 755[/code]

        Then perform:
        [code]find /tftpboot -type f -exec chmod 744 {} ;[/code]

        This should put all files as rwxr–r-- which is what my system looks like. It will also place all the directories as their natural state of rwxr-xr-x

        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
        • T
          Tom Elliott
          last edited by Oct 14, 2013, 8:34 PM

          This may sound really odd, but can you try tftp from your fogserver with:

          [code]cd
          yum -y install tftp
          tftp -4 localhost
          get
          pxelinux.0
          exit[/code]

          Does this work?

          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
          • T
            Tom Elliott
            last edited by Oct 14, 2013, 8:42 PM

            This is also going to sound a bit odd, I think, but is there a firewall running on the FOG Server? Is iptables disabled?

            To find out run:
            [code]iptables -L -n[/code]

            If you get the text such as:
            [code]Chain INPUT (policy ACCEPT)
            target prot opt source destination

            Chain FORWARD (policy ACCEPT)
            target prot opt source destination

            Chain OUTPUT (policy ACCEPT)
            target prot opt source destination[/code]

            Then chances are it’s already disabled. If you get anything more than that run:

            [code]chkconfig iptables off; service iptables stop[/code]

            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
            • T
              To_Tha_Cloud
              last edited by Oct 14, 2013, 8:53 PM

              [quote=“Tom Elliott, post: 18113, member: 7271”]This is starting to make some sense.

              The files that you’re working with are all currently 666, or rw-rw-rw- try chmoding all folders as 755 with:
              [code]chmod -R 755[/code]

              Then perform:
              [code]find /tftpboot -type f -exec chmod 744 {} ;[/code]

              This should put all files as rwxr–r-- which is what my system looks like. It will also place all the directories as their natural state of rwxr-xr-x[/quote]

              Do I need to restart any services?

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Oct 14, 2013, 8:55 PM

                No, you shouldn’t have to restart any services that I’m aware of, is there a reason you ask?

                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
                • T
                  To_Tha_Cloud
                  last edited by Oct 14, 2013, 8:55 PM

                  [quote=“Tom Elliott, post: 18114, member: 7271”]This may sound really odd, but can you try tftp from your fogserver with:

                  [code]cd
                  yum -y install tftp
                  tftp -4 localhost
                  get
                  pxelinux.0
                  exit[/code]

                  Does this work?[/quote]
                  I get the following:

                  ]# tftp -4 localhost
                  tftp> get
                  (files) pxelinux.0
                  Error code 0: Permission denied

                  I am running as root.

                  1 Reply Last reply Reply Quote 0
                  • T
                    To_Tha_Cloud
                    last edited by Oct 14, 2013, 8:57 PM

                    [quote=“Tom Elliott, post: 18116, member: 7271”]This is also going to sound a bit odd, I think, but is there a firewall running on the FOG Server? Is iptables disabled?

                    To find out run:
                    [code]iptables -L -n[/code]

                    If you get the text such as:
                    [code]Chain INPUT (policy ACCEPT)
                    target prot opt source destination

                    Chain FORWARD (policy ACCEPT)
                    target prot opt source destination

                    Chain OUTPUT (policy ACCEPT)
                    target prot opt source destination[/code]

                    Then chances are it’s already disabled. If you get anything more than that run:

                    [code]chkconfig iptables off; service iptables stop[/code][/quote]

                    The firewall is off.

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tom Elliott
                      last edited by Oct 14, 2013, 8:57 PM

                      what is the output of the command:
                      [code]umask[/code]

                      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
                      • T
                        To_Tha_Cloud
                        last edited by Oct 14, 2013, 8:59 PM

                        [quote=“Tom Elliott, post: 18122, member: 7271”]what is the output of the command:
                        [code]umask[/code][/quote]

                        0022

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tom Elliott
                          last edited by Oct 14, 2013, 9:03 PM

                          Okay,

                          When you performed the install, did you have any special parameters involved. Such as:

                          [LIST]
                          []Is your tftpboot folder in a location other than /tftpboot?
                          [
                          ]Is your tftpboot folder hosted on another filesystem?
                          [/LIST]
                          Has your system performed a filesystem check and/or is your filesystem on a RAID setup? Is it possible one of the drives has failed?

                          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
                          • T
                            To_Tha_Cloud
                            last edited by Oct 14, 2013, 9:10 PM

                            [quote=“Tom Elliott, post: 18124, member: 7271”]Okay,

                            When you performed the install, did you have any special parameters involved. Such as:

                            [LIST]
                            []Is your tftpboot folder in a location other than /tftpboot?
                            [
                            ]Is your tftpboot folder hosted on another filesystem?
                            [/LIST]
                            Has your system performed a filesystem check and/or is your filesystem on a RAID setup? Is it possible one of the drives has failed?[/quote]

                            The only special perameter was /images is mounted on a seperate drive. I just checked it and it appears to be mounted properly and I can navigate to it.
                            The system as far as I know has not performed a filesystem check and I am not on a RAID setup.

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tom Elliott
                              last edited by Oct 14, 2013, 9:13 PM

                              I’m going to ask that you reboot the server, if that’s okay with you?

                              But before you reboot type:

                              [code]touch /forcefsck
                              shutdown -rF now[/code]

                              The shutdown -rF now command will force the system to shutdown and ensure that, if for some other reason, forcefsck will work on next reboot.

                              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
                              • T
                                To_Tha_Cloud
                                last edited by Oct 14, 2013, 9:18 PM

                                [quote=“Tom Elliott, post: 18126, member: 7271”]I’m going to ask that you reboot the server, if that’s okay with you?

                                But before you reboot type:

                                [code]touch /forcefsck
                                shutdown -rF now[/code]

                                The shutdown -rF now command will force the system to shutdown and ensure that, if for some other reason, forcefsck will work on next reboot.[/quote]

                                Rebooting now.

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Tom Elliott
                                  last edited by Oct 14, 2013, 9:20 PM

                                  okay, thanks.

                                  Maybe this fixes it fingers crossed lol.

                                  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
                                  • T
                                    To_Tha_Cloud
                                    last edited by Oct 14, 2013, 9:21 PM

                                    [quote=“Tom Elliott, post: 18128, member: 7271”]okay, thanks.

                                    Maybe this fixes it fingers crossed lol.[/quote]

                                    had fingers and toes crossed but no luck.

                                    When running tftp on the server I am still getting Error code 0: Permission denied
                                    😞

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      Tom Elliott
                                      last edited by Oct 14, 2013, 9:26 PM

                                      Can you show me the contents of:

                                      [code]/etc/xinetd.d/tftp[/code]

                                      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
                                      • T
                                        To_Tha_Cloud
                                        last edited by Oct 14, 2013, 9:29 PM

                                        [quote=“Tom Elliott, post: 18131, member: 7271”]Can you show me the contents of:

                                        [code]/etc/xinetd.d/tftp[/code][/quote]

                                        default: off

                                        description: The tftp server serves files using the trivial file transfer # protocol. The tftp protocol is often used to boot diskless # workstations, download configuration files to network-aware printers, # and to start the installation process for some operating systems.

                                        service tftp
                                        {
                                        socket_type = dgram
                                        protocol = udp
                                        wait = yes
                                        user = root
                                        server = /usr/sbin/in.tftpd
                                        server_args = -s /tftpboot
                                        disable = no
                                        per_source = 11
                                        cps = 100 2
                                        flags = IPv4
                                        }

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          Tom Elliott
                                          last edited by Oct 14, 2013, 9:33 PM

                                          can you perform
                                          [code] tail -f /var/log/messages[/code]

                                          Then, in another terminal or tty (CTRL+ALT+[1-6]) try your tftp command.

                                          NOTE: [1-6] is a representation of a number, so type the individual tty you want access to. 1 is the one you usually first see.

                                          You should see the access hopefully.

                                          Display the output of that here for clarity.

                                          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
                                          • 2
                                          • 3
                                          • 1 / 3
                                          1 / 3
                                          • First post
                                            17/42
                                            Last post

                                          171

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project