FOGProject / fogproject

An open source computer cloning & management system
https://fogproject.org
GNU General Public License v3.0
1.08k stars 216 forks source link

[1.5.10] Can't "Create New Image" #578

Open TanguyPSV opened 7 months ago

TanguyPSV commented 7 months ago

Describe the bug 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.

To Reproduce Steps to reproduce the behavior:

  1. Go to "Images"
  2. Click on "Create New Image"

Expected behavior The image creation page to display.

Software (please complete the following information):

Additional context Apache2 log when I click on "Create New Image"

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"