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

    Unable to update Kernel and Captures not going to /images

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    14
    583
    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.
    • S
      Sebastian Roth Moderator
      last edited by

      @doogxela Please run md5sum /var/www/html/fog/service/ipxe/bzImage_5.6.18 /var/www/html/fog/service/ipxe/bzImage32_5.6.18 and post output here!

      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

      D 1 Reply Last reply Reply Quote 0
      • D
        doogxela @Sebastian Roth
        last edited by doogxela

        @Sebastian-Roth I don’t have /html/ in the path to those files. Here is the output of that command to the files where they live for me.

        b5cdcde24a1cf892c69e5fdbc4677643  /var/www/fog/service/ipxe/bzImage_5.6.18
        3edcc87a0982149ca1e89bbfbccf4315  /var/www/fog/service/ipxe/bzImage32_5.6.18
        
        :~$ ls /var/www/html/fog/service/ipxe
        advanced.php  bzImage    init_32.xz   refind_aa64.efi  refind_x64.efi
        bgdark.png    bzImage32  init.xz      refind.conf
        bg.png        grub.exe   memdisk      refind.efi
        boot.php      index.php  memtest.bin  refind_ia32.efi
        
        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @doogxela Please run ls -al /var/www /var/www/fog /var/www/html ()note the spaces in between!) and post output here.

          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

          D 1 Reply Last reply Reply Quote 0
          • D
            doogxela @Sebastian Roth
            last edited by

            @Sebastian-Roth

            :~$ ls -al /var/www /var/www/fog /var/www/html
            /var/www:
            total 20
            drwxr-xr-x  4 root     root     4096 Sep 19 19:11 .
            drwxr-xr-x 15 root     root     4096 Sep 19 19:06 ..
            drwxr-xr-x 10 www-data www-data 4096 Sep 19 19:14 fog
            drwxr-xr-x  3 root     root     4096 Sep 24 12:18 html
            -rw-r--r--  1 www-data www-data   52 Sep 19 19:11 index.php
            
            /var/www/fog:
            total 408
            drwxr-xr-x 10 www-data www-data   4096 Sep 19 19:14 .
            drwxr-xr-x  4 root     root       4096 Sep 19 19:11 ..
            drwxr-xr-x  2 www-data www-data   4096 Sep 19 19:11 api
            drwxr-xr-x  2 www-data www-data   4096 Sep 19 19:11 client
            drwxr-xr-x  2 www-data www-data   4096 Sep 19 19:11 commons
            -rw-r--r--  1 www-data www-data 370070 Sep 19 19:11 favicon.ico
            lrwxrwxrwx  1 www-data www-data     13 Sep 19 19:11 fog -> /var/www/fog/
            drwxr-xr-x  2 www-data www-data   4096 Sep 19 19:11 fogdoc
            -rw-r--r--  1 www-data www-data    572 Sep 19 19:11 index.php
            drwxr-xr-x 13 www-data www-data   4096 Sep 19 19:11 lib
            drwxr-xr-x 10 www-data www-data   4096 Sep 19 19:11 management
            drwxr-xr-x  3 www-data www-data   4096 Sep 19 19:11 service
            drwxr-xr-x  2 www-data www-data   4096 Sep 19 19:11 status
            
            /var/www/html:
            total 28
            drwxr-xr-x  3 root     root      4096 Sep 24 12:18 .
            drwxr-xr-x  4 root     root      4096 Sep 19 19:11 ..
            drwxr-xr-x 10 www-data www-data  4096 Sep 24 12:20 fog
            -rw-r--r--  1 root     root     10918 Sep 19 19:06 index.html
            -rw-r--r--  1 www-data www-data    52 Sep 20 14:26 index.php
            
            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth

              @doogxela Do you remember what you did on 19th of September? On a normal install /var/www/fog is not a directory but just a link to /var/www/html/fog/. See here:

              ls -al /var/www/
              total 16
              drwxr-xr-x.  4 root root 4096 Sep 11 13:58 .
              drwxr-xr-x. 22 root root 4096 Sep 11 13:50 ..
              drwxr-xr-x.  2 root root 4096 Jun  8 22:16 cgi-bin
              lrwxrwxrwx.  1 root root   18 Sep 11 13:58 fog -> /var/www/html/fog/
              drwxr-xr-x.  3 root root 4096 Sep 13 14:00 html
              

              So you have two different FOG web UI installs now. Please run the following command and post output here: grep FOG_VERSION /var/www/fog/lib/fog/system.class.php /var/www/html/fog/lib/fog/system.class.php

              As a quick fix you can copy those new kernels from /var/www/fog/service/ipxe/ to /var/www/html/fog/service/ipxe/ and I am sure it will boot with those bzImage_5.6.18 kernels.

              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

              D 1 Reply Last reply Reply Quote 0
              • D
                doogxela @Sebastian Roth
                last edited by

                @Sebastian-Roth

                :~$ grep FOG_VERSION /var/www/fog/lib/fog/system.class.php /var/www/html/fog/lib/fog/system.class.php
                /var/www/fog/lib/fog/system.class.php:        define('FOG_VERSION', '1.5.9');
                /var/www/html/fog/lib/fog/system.class.php:        define('FOG_VERSION', '1.5.9');
                

                The 19th is when I initially installed FOG on this machine. I know that I ran the installation multiple times, due to some difficulty with getting the network configuration to make sense. Do you have any idea what would have caused the installation to use /var/www/fog to store information rather than /var/www/html/fog?

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by

                  @doogxela We see this happen from time to time but I simply cannot replicate how this happens. Just to make sure it’s not just the folders having that date I may ask you to run the following two commands and post output here as well:

                  ls -al /var/www/fog/lib/fog/system.class.php /var/www/html/fog/lib/fog/system.class.php
                  ls -al /var/www/fog/lib/fog/config.class.php /var/www/html/fog/lib/fog/config.class.php
                  

                  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

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    doogxela @Sebastian Roth
                    last edited by

                    @Sebastian-Roth

                    :~$ ls -al /var/www/fog/lib/fog/system.class.php /var/www/html/fog/lib/fog/system.class.php
                    -rw-r--r-- 1 www-data www-data 1524 Sep 19 19:11 /var/www/fog/lib/fog/system.class.php
                    -rw-r--r-- 1 www-data www-data 1524 Sep 24 12:18 /var/www/html/fog/lib/fog/system.class.php
                    
                    :~$ ls -al /var/www/fog/lib/fog/config.class.php /var/www/html/fog/lib/fog/config.class.php
                    -rw-r--r-- 1 www-data www-data 3752 Sep 19 19:11 /var/www/fog/lib/fog/config.class.php
                    -rw-r--r-- 1 www-data www-data 3753 Sep 24 12:18 /var/www/html/fog/lib/fog/config.class.php
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by

                      @doogxela Ok, seems all good to move that stuff in /var/www/fog out of the way.

                      sudo mv /var/www/fog /var/www/fog_delete_after_14_days
                      sudo ln -s /var/www/html/fog/ /var/www/fog
                      

                      Not sure if Lubuntu is doing something special here that would cause this?!

                      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

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        doogxela @Sebastian Roth
                        last edited by

                        @Sebastian-Roth After moving the files and creating the link, it all seems to be working correctly now. I have updated the kernels using the web interface, and it successfully updated and is using them. My test computer now successfully boots to ipxe.

                        I wish I could tell you what I did during the installation process that might have broken the link, but since this was my first time setting up a DHCP server and my first time installing FOG from scratch, it could be any number of things.

                        I appreciate the assistance here.

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by

                          @doogxela Good to hear this solved all the issues. Please keep in mind that when you re-run the installer to upgrade to the next version this might happen again. Though I am not sure. I don’t have Lubuntu to test here.

                          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

                          175

                          Online

                          12.1k

                          Users

                          17.3k

                          Topics

                          155.4k

                          Posts
                          Copyright © 2012-2024 FOG Project