Images won't show up
-
Goodday all,
So yesterday I’ve updated my FOG server to the DEV branch to check some things out. However, when I wanted to list all my images I got a blank screen as return.When looking into /var/log/apache2/error.log I’m greeted with the following error message:
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/image.class.php:496\nStack trace:\n#0 /var/www/fog/lib/fog/image.class.php(496): min()\n#1 /var/www/fog/lib/fog/image.class.php(389): Image->getPrimaryGroup()\n#2 /var/www/fog/lib/router/route.class.php(1319): Image->getStorageGroup()\n#3 /var/www/fog/lib/router/route.class.php(488): Route::getter()\n#4 / var/www/fog/lib/fog/fogpage.class.php(491): Route::listem() \n#5 /var/www/fog/lib/fog/fogpagemanager.class.php(220): FOGPage->index()\n#6 /var/www/fog/management/index.php(58): FOGPageManager->render()\n#7 {main}\n thrown in /var/www/fog/lib/fog/image.class.php on line 496'
I did some checks to see if all the data was valid. But couldn’t find anything. Does anyone knows what’s happening here?
Thanks!
-
@TimBr Did you migrate this from an older server?
The getPrimaryGroup/getStorageGroup’s are the indicator of the problem here.
Basically, you would likely see the same type of problem if you were to goto snapins:
Effectively the issue is the Image (in this instance) is associated to a StorageGroup that simply doesn’t exist or that storage group has no storage nodes associated to it.