Can't "create new image"
-
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”
-
No idea?
Well, is there is a way to properly remove/reinstall fog on the same vm without loosing my image/host db?
-
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.
-
@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-serverRunning the installer on the current server will upgrade your instance without losing the db. This will get you to the latest and greatest version.
-
@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-serverRunning 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…
-
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…
-
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.