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

Can't "create new image"

Scheduled Pinned Locked Moved Unsolved
FOG Problems
4
7
777
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
    TanguyPSV
    last edited by Dec 11, 2023, 7:51 AM

    I recently upgrade both my OS (Debian 10 -> 11 --> 12) and FOG (1.5.9 => 1.5.10). At each step I tested “Deploy” and “Capture” task but forgot to test “Image creation”. Now, if I click on “Create New Image”, it give a blank screen.

    Apache2 log:

    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/storagegroup.class.php:228\nStack trace:\n#0 /var/www/fog/lib/fog/storagegroup.class.php(228): min()\n#1 /var/www/fog/lib/pages/imagemanagementpage.class.php(481): StorageGroup->getMasterStorageNode()\n#2 /var/www/fog/lib/fog/fogpagemanager.class.php(220): ImageManagementPage->add()\n#3 /var/www/fog/management/index.php(58): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/fog/lib/fog/storagegroup.class.php on line 228’, referer: http://172.29.10.9/fog/management/index.php?node=image&sub=list

    All other menu worked. I can list all my current image with “List All Images”

    1 Reply Last reply Reply Quote 0
    • T
      TanguyPSV
      last edited by Dec 19, 2023, 7:40 AM

      No idea?

      Well, is there is a way to properly remove/reinstall fog on the same vm without loosing my image/host db?

      J 1 Reply Last reply Jan 5, 2024, 3:02 PM Reply Quote 0
      • S
        steven34
        last edited by Jan 4, 2024, 1:35 PM

        I had the exact same issue, but with RHELE 9.3. The “Image Creation” stopped working randomly. Every other button/tab worked though. I wasn’t able to figure out what was going on and I ended up wiping my server and starting over. Now it works fine. I wasn’t able to figure out why it happened. I thought it was just me until I saw this. I think there is some kind of relation on the server to that page that somehow breaks. I wasn’t able to figure that part out. I wish you luck though.

        1 Reply Last reply Reply Quote 0
        • J
          JJ Fullmer Testers @TanguyPSV
          last edited by Jan 5, 2024, 3:02 PM

          @TanguyPSV I would suggest giving the dev-branch a try. See the “choosing a fog version” of this page.
          https://docs.fogproject.org/en/latest/install-fog-server

          Running the installer on the current server will upgrade your instance without losing the db. This will get you to the latest and greatest version.

          Have you tried the FogApi powershell module? It's pretty cool IMHO
          https://github.com/darksidemilk/FogApi
          https://fogapi.readthedocs.io/en/latest/
          https://www.powershellgallery.com/packages/FogApi
          https://forums.fogproject.org/topic/12026/powershell-api-module

          T 1 Reply Last reply Jan 8, 2024, 9:04 AM Reply Quote 0
          • T
            TanguyPSV @JJ Fullmer
            last edited by Jan 8, 2024, 9:04 AM

            @JJ-Fullmer said in Can't "create new image":

            @TanguyPSV I would suggest giving the dev-branch a try. See the “choosing a fog version” of this page.
            https://docs.fogproject.org/en/latest/install-fog-server

            Running the installer on the current server will upgrade your instance without losing the db. This will get you to the latest and greatest version.

            I did as you suggest and upgraded to latest git dev-branch but the issue is still there.

            I will try to do a fresh install elsewhere and migrate the database…

            1 Reply Last reply Reply Quote 0
            • T
              TanguyPSV
              last edited by Jan 23, 2024, 8:48 AM

              I’m at loss.

              As a reinstall won’t work (even the last git version), I creates another VM and reinstall fog from scratch. I migrate the db and images with this guide (https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG).

              And I still can’t create image…

              So I suspect my db have been corrupted by a update.

              If there is no other solution, I will have to do a another fresh install and import export image one by one…

              1 Reply Last reply Reply Quote 0
              • S
                slmadre
                last edited by Mar 25, 2024, 6:15 PM

                I was able to resolve this by recreating the Storage Management Node on the master server. My master node does not host any images but it was required to have a node present for the Create New Image page to be displayed.

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

                282

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project