Error after upgrade from 0.32 to 1.0.1 Upload task failed to create for with image
-
So with excitement, I upgraded from 0.32 to 1.0.1 - hoping this would resolve some long-standing issues. Long time FOG user here. Upgrade went well. However trying to create a new immage, I receive "
[COLOR=#ff0000][CENTER]Upload task failed to create for with image[/CENTER][/COLOR]
[COLOR=#ff0000][CENTER]You need to assign an image to the host"[/CENTER][/COLOR]
[COLOR=#ff0000][CENTER] [/CENTER][/COLOR]
[COLOR=#ff0000][LEFT][COLOR=#333333] No matter what information I put in the boxes, nothing “keeps” and when I click the button to upload, this is the error I get. HELP! (Ubuntu 12.04 LTS Server)[/COLOR][/LEFT][/COLOR] -
So the host you’re trying to upload the image from has an image assigned to it?
-
[COLOR=#999999]Basics: Please provide:[/COLOR]
[COLOR=#999999]FOG Version (e.g. FOG 0.32, FOG 0.33, FOG 0.01) [/COLOR] FOG v1.0.1
[COLOR=#999999]OS Version (e.g. CentOS 6.5,[/COLOR] Ubuntu 12.04, [COLOR=#999999]Redhat 6.5)[/COLOR][COLOR=#999999]Have you checked your apache error logs? Can you provide information from these logs?[/COLOR]
[COLOR=#999999]Debian based Location (normally)[/COLOR]
/var/log/apache2/error.log
[COLOR=#393939][LEFT][SIZE=2][Tue May 20 18:57:55 2014] [error] [client 192.168.1.65] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/pages/HostManagementPage.class.php on line 312, referer: [url]http://192.168.1.200/fog/management/index.php?node=images&sub=edit&id=11[/url] ls: cannot access /images/EliteBook6930p: No such file or directory ls: cannot access /images/HPL24: No such file or directory ls: cannot access /images/LenovoRemote: No such file or directory [Tue May 20 19:01:31 2014] [error] [client 192.168.1.65] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/pages/HostManagementPage.class.php on line 312, referer: [url]http://192.168.1.200/fog/management/index.php?node=images&sub=edit&id=11[/url] [Tue May 20 19:02:11 2014] [error] [client 192.168.1.65] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/pages/HostManagementPage.class.php on line 312, referer: [url]http://192.168.1.200/fog/management/index.php?node=host&sub=edit&id=0[/url] [Wed May 21 14:13:51 2014] [error] [client 192.168.1.65] PHP Fatal error: Call to a member function get() on a non-object in /var/www/fog/lib/pages/DashboardPage.class.php on line 30 [Wed May 21 14:13:56 2014] [error] [client 192.168.1.65] File does not exist: /var/www/favicon.ico [Wed May 21 14:15:52 2014] [notice] caught SIGTERM, shutting down [Wed May 21 14:16:55 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.11 with Suhosin-Patch configured – resuming normal operations [Wed May 21 16:37:41 2014] [error] [client 192.168.1.65] PHP Fatal error: Call to a member function get() on a non-object in /var/www/fog/lib/pages/DashboardPage.class.php on line 30, referer: [url]http://192.168.1.200/fog/management/[/url] [Wed May 21 16:54:32 2014] [error] [client 192.168.1.65] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/pages/HostManagementPage.class.php on line 312, referer: [url]http://192.168.1.200/fog/management/index.php?node=host&sub=list[/url] [Wed May 21 16:55:20 2014] [error] [client 192.168.1.65] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/pages/HostManagementPage.class.php on line 312, referer: [url]http://192.168.1.200/fog/management/index.php?node=host&sub=edit&id=0[/url] [Wed May 21 17:41:24 2014] [error] [client 192.168.1.65] File does not exist: /var/www/management [Wed May 21 17:41:25 2014] [error] [client 192.168.1.65] File does not exist: /var/www/favicon.ico [Wed May 21 17:41:33 2014] [error] [client 192.168.1.65] PHP Fatal error: Call to a member function mainMenu() on a non-object in /var/www/fog/management/index.php on line 72, referer: [url]http://192.168.1.200/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=0[/url] [Wed May 21 17:41:35 2014] [error] [client 192.168.1.65] PHP Fatal error: Call to a member function mainMenu() on a non-object in /var/www/fog/management/index.php on line 72, referer: [url]http://192.168.1.200/fog/management/index.php?node=host&sub=deploy&sub=deploy&type=2&id=0[/url] ls: cannot access /images/EliteBook6930p: No such file or directory ls: cannot access /images/HPL24: No such file or directory ls: cannot access /images/LenovoRemote: No such file or directory[/SIZE][/LEFT][/COLOR][COLOR=#999999]Redhat based Location (normally)[/COLOR]
[COLOR=#999999]/var/log/httpd/error_log[/COLOR][COLOR=#999999]Have you searched the forums for your issue yet?[/COLOR] *Yes, cannot find anything similar
[COLOR=#999999]Have you checked the [URL=‘http://fogproject.org/wiki’][COLOR=#999999]wiki[/COLOR][/URL] yet?[/COLOR] *Yes, cannot find anything similar
[COLOR=#999999]Kernel Issues: [URL=‘http://fogproject.org/wiki/index.php/FAQ’][COLOR=#999999]http://fogproject.org/wiki/index.php/FAQ[/COLOR][/URL][/COLOR] *Don’t believe this is a kernel issue. -
So I am following the usual steps I have always done: Create new Image, then create new Host. Then upload Image using (old) Task Management. This is when I get the error.
-
What I’m asking you, is did you assign the image to the host?
-
YES! But when I go back to view the host, the Image information does not retain.
-
Also, when I try to delete a host, the GUI hangs. I log back in, host remains
-
[COLOR=#393939][LEFT][SIZE=2][error] [client 192.168.1.65] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/fog/Host.class.php on line 1159, referer: [url]http://192.168.1.200/fog/management/index.php?node=host&sub=delete&id=0[/url] [Wed May 21 18:16:14 2014] [error] [client 192.168.1.65] PHP Fatal error: Call to a member function isValid() on a non-object in /var/www/fog/lib/fog/Host.class.php on line 1159, referer: [url]http://192.168.1.200/fog/management/index.php?node=host&sub=delete&id=0[/url][/SIZE][/LEFT][/COLOR]
-
Tom, any suggestions?
-
when you ran the install script, did you use the sudo command?
also, did you have any scheduled or active tasks when you ran the installer? -
Yes I ran sudo for the installer, not aware of any scheduled tasks. Changed the MySql password in config.php file, and I can log into the GUI successfully.
-
Guys, anything? This is very frustrating! I have images now that I cannot use, and new images to create that cannot be created.
-
i’m still trying to look into what could be causing the problem. maybe make a backup of your server and try the latest svn trunk. i suspect that something has an invalid value in your mysql database, with regard to either hosts or tasks, but i can’t be certain.
-
What is a svn trunk?
-
the svn trunk is the repository of pre-release code. it is the “bleeding-edge” of the software, and is not considered final release quality, generally. however, it does contain bug-fixes, updates, and features not included in the official releases. in general, it is not recommended to use the developmental versions in production environments. however, your system isn’t working right now anyway.
updating to the svn trunk version may fix your problem, i can’t be certain. It is also vital that you backup your server’s data before you update, as the code is not officially supported, and may contain bad bugs we haven’t found yet.
[url]http://www.fogproject.org/wiki/index.php/SVN[/url] -
I’m using Webmin. Will using that backup option work ok? Have no experience with it. Just installed it two days ago.
-
i’m not familiar with webmin. but if it can make a full database backup, i don’t see why it wouldn’t work. you may also want to backup the files in the root of your web folder, just in case.