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

Web GUI is displaying several things incorrectly

Scheduled Pinned Locked Moved Solved
FOG Problems
2
7
664
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
    Tim Reynolds
    last edited by Jul 12, 2023, 3:40 PM

    I had an old fog server running Ubuntu 18.04 with Fog 1.5.9. I am migrating to a new fog server Hyper-V VM on a Windows 2022 server. The Hyper-V VM is a Gen 2 running Ubuntu 22.04.2 LTS with Fog 1.5.10. I followed online documentation regarding migrating from one server to another. The OS install on the new VM went fine as well as the Ubuntu install. The Fog SQL DB migrated over as well as all of the image files. I followed the steps to copy the SSL folder from one server to the other so that the snapins and current Fog client control would still function. I can access the web GUI and can see all of my images and hosts. The problem is that when I list all hosts everything looks correct but when click on a host the page displays in a sort of “text” looking layout. I have attached an image of what it looks like.d70542eb-f6a7-4078-9545-e658422b8e08-image.png
    Everything else seems to work as it is supposed to.
    When I list all images, I can click on any image definition and the subsequent page renders correctly. The only other thing I can find is regarding Snapins. When I click on the “Snapins” icon the correct page shows. I can click on New Snapin and it will allow me to create the snapin, but if I select “List all snapins” it shows me a “This page isn’t working” message with HTTP error 500. Obviously, I have done something correctly.
    Hopefully, I have given you enough info to point me in the right direction to resolve.
    Thanks in advance!

    1 Reply Last reply Reply Quote 0
    • T
      Tim Reynolds
      last edited by Jul 13, 2023, 2:42 PM

      Here is a portion of the apache2.log file showing the results of loading the Hosts Details page:
      [Thu Jul 13 09:28:29.313965 2023] [proxy_fcgi:error] [pid 107916] [client x.x.x.x:63487] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught ValueError: min(): Argument #1 ($value) must contain at least one element in /var/www/fog/lib/fog/snapin.class.php:392\nStack trace:\n#0 /var/www/fog/lib/fog/snapin.class.php(392): min()\n#1 /var/www/fog/lib/fog/snapin.class.php(344): Snapin->getPrimaryGroup()\n#2 /var/www/fog/lib/router/route.class.php(1315): Snapin->getStorageGroup()\n#3 /var/www/fog/lib/router/route.class.php(488): Route::getter()\n#4 /var/www/fog/lib/pages/hostmanagementpage.class.php(1786): Route::listem()\n#5 /var/www/fog/lib/pages/hostmanagementpage.class.php(3244): HostManagementPage->hostSnapins()\n#6 /var/www/fog/lib/fog/fogpagemanager.class.php(220): HostManagementPage->edit()\n#7 /var/www/fog/management/index.php(58): FOGPageManager->render()\n#8 {main}\n thrown in /var/www/fog/lib/fog/snapin.class.php on line 392’, referer: http://x.x.x.x/fog/management/index.php?node=host&sub=list.

      Since this was a migration from an old server to a new and Fog V1.5.9 to Fog 1.5.10 I followed the instructions located here - https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG and then completed the steps in the “If old server was FOG 1.3.0+” section.

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Jul 14, 2023, 3:50 AM

        @Tim-Reynolds On first sight this looks a lot like a PHP 8 issue. Are you absolutely sure you installed FOG 1.5.10? Not 1.5.9?

        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

        T 1 Reply Last reply Jul 17, 2023, 11:54 AM Reply Quote 0
        • T
          Tim Reynolds @Sebastian Roth
          last edited by Jul 17, 2023, 11:54 AM

          @Sebastian-Roth I am sure. When I go to the management console page, I see this login page:
          a8f903df-cb97-4032-8be5-0f948af26fd1-image.png
          When I go the Fog Version Information page, I see the following:
          ceeef7c8-f95e-44f9-b6ac-1498ca1a3a6e-image.png
          The Fog I upgraded from was 1.5.9. But all I did was copy the images and SSL info as directed in the Fog migrations instructions.
          Most everything works. I even dropped an image from the new server. The main (very important) things that don’t work is the Hosts Details page and the Snapins page.
          I’m thinking I might try using Clonezilla to clone the current server and then restore that image into a new VM then upgrade from the VM. I’ve never done something like that. Any thoughts on that?
          Thanks in advance!
          Tim

          T 2 Replies Last reply Jul 19, 2023, 8:16 PM Reply Quote 0
          • T
            Tim Reynolds @Tim Reynolds
            last edited by Jul 19, 2023, 8:16 PM

            @Tim-Reynolds @Sebastian-Roth Any other ideas? My backup plan is to use Clonezilla to clone the physical fog server into a Hyper-V VM, but I’m not having a lot of luck with that either. What are your thoughts about installing Fog 1.5.9 instead of 1.5.10 onto my Hyper-V VM and then migrating the images, SQL DB, and SSL from the old server which was 1.5.9? Then, if everything works, I could upgrade the installation in place.
            Thanks!
            Tim

            1 Reply Last reply Reply Quote 0
            • T
              Tim Reynolds @Tim Reynolds
              last edited by Jul 20, 2023, 4:08 PM

              @Tim-Reynolds @Sebastian-Roth I resolved the issue. I created a new VM with the same Ubuntu 22.04 then installed the latest dev branch of Fog (1.5.10.5) instead of the stable version. After importing images and the SSL folder and re-installing, everything now works as it should.

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Jul 26, 2023, 4:49 AM

                @Tim-Reynolds Thanks for the update and great you got this fixed.

                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
                • [[undefined-on, S Sebastian Roth, Jul 26, 2023, 4:49 AM]]
                • 1 / 1
                1 / 1
                • First post
                  6/7
                  Last post

                152

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project