Setting up and starting MySql...failed! FOG_0.32 on Ubuntu 13.10 32bit
-
I had no issues building and installing fog 0.33 on ubuntu 13.10. Please forgive as I forgot in the midst of operating, that you were using 0.32.
That said,
To fix udpcast. go to the location on the extracted fog folder:
[code]
cd packages
[/code]I think you need to change the udpcastout variable with:
[code]
wget https://svn.code.sf.net/p/freeghost/code/trunk/packages/udpcast-20120424.tar.gz
rm -f udpcast-20071228.tar.gz
sed -i ‘s/udpcastout=“udpcast-20071228”/udpcastout=“udpcast-20120424”/’ …/lib/common/config.sh
sed -i ‘s/udpcastsrc=“…/packages/udpcast-20071228.tar.gz”/udpcastsrc=“…/packages/udpcast-20120424.tar.gz”/’ …/lib/common/config.sh
cd …/bin
./installfog.sh
[/code]It should build
-
I believe you are correct about UDPCast… Its close…
sed can’t read /lib/config.sh: No such file or directory should be /lib/common/config.sh
-
DId you copy the commands exactly?
I’m not trying to go to /lib, I’m trying (from the packages folder) to go …/lib/config.sh
-
I see what you mean now. Updated the code.
-
something is still referencing the wrong file.
Can not stat '…/packages/udpcast-20071228.tar.gz I’m heading home for the afternoon I can try more tomorrow.
-
Updated the code from above, it now sed’s the udpcastsrc line. Sorry about that.
-
That’s the ticket! Installed without a hitch.
Err… had to manually restart the mysql service to get it to work even after a fresh installation.
Also had to edit the settings in /opt/fog/service/etc/config.php to reflect the proper mysql user, and host.[code]
sudo gedit /opt/fog/service/etc/config.php
[/code]
Make sure that
Define (“MYSQL_HOST”, “localhost”),
Define (“MYSQL_DATABASE”, “fog”),
Define (“MYSQL_USERNAME”, “root”),
Define (“MYSQL_PASSWORD”, “”),are all set correctly, save and close.
then run [code]sudo mysql service restart [/code]
navigate to the fog web page localhost/fog/management and complete the set up.
-
Thx Jaymes and Tom (sorry been on holidays)
I downloaded U12.10 and Fog0.32 for now and installed ok but trying to upload the hosts automatically (??).
When updating the [SIZE=12px][FONT=Arial][COLOR=#000000]var/www/fog/commons/config.php[/COLOR][/FONT][/SIZE][SIZE=12px][FONT=Arial][COLOR=#000000] I noticed that one of my characters in the password was not in the allowed characters list so I added it in. [/COLOR][/FONT][/SIZE][SIZE=12px][FONT=Arial][COLOR=#000000]I also found that in [/COLOR][/FONT][/SIZE][SIZE=12px][FONT=Arial][COLOR=#000000]/opt/fog/service/etc/config.php the mysql username was left blank so I entered “root” in too.[/COLOR][/FONT][/SIZE]FYI back on 13.10 I did change the mysql password and updated the config.php files ([SIZE=12px][FONT=Arial][COLOR=#000000]/var/www/fog/commons/config.php and [/COLOR][/FONT][/SIZE][SIZE=12px][FONT=Arial][COLOR=#000000]/opt/fog/service/etc/config.php files with the password ONLY, but yes there were prior installation attempts so I must say that the remove mysql commands would have 99% been the trick.[/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#000000]I will create a new vm for 13.10 when time permits - thanks guys[/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#000000][/COLOR][/FONT][/SIZE]
-
12.10
Explain what you mean by “trying to upload the hosts automatically”. They should NOT do anything with the fog server automatically, other than load the pxe boot IF you have enabled the options in the BIOS. If you have sent commands to the Host after registering it and telling it to upload/image and it continues to try to image after completion, the job did not delete the file when the job was done. This can be done manually and I will explain if you would like, there are some posts on the forum if you would like to research yourself though.I noticed the issues with the /opt/fog/service/etc/config.php too. I had to add the database user, host, and database manually. Not sure why.
13.10
Good luck on 13.10, I got it working and running after the hurdles, but I have found that if you have older hardware, 13.10 doesn’t tend to to enjoy it. You should be fine operating a VM though. -
It’s because the /opt/fog/service/etc/config.php file is generated, from what I can tell, before the actual information is stored in place.
-
Thanks for the insight Tom!
-
I found a rogue dhcp server on the network stuffing everything up so I disabled it (it wasnt the fog dhcp service either ). So after that I restarted everything and successfully got to the fog pxeboot menu only on PC-1 (dell 760 with old bios v.2 with Intel Boot Agent GEv1.3.22). However after trying to do a quick host registration, errors on items such as below appeared before the screen went funky… (sorry I wrote down what i could see in the time given):
[INDENT=1]tps65010: no chip?[/INDENT]
[INDENT=1]acpiphp_ibm[/INDENT]
[INDENT=1]Carillo Ranch MCH[/INDENT]
[INDENT=1]failed excute /sbin/v86d[/INDENT]
[INDENT=1]vbe_init() failed with -22[/INDENT]I thought it maybe the bios so on another pc, PC-2 (Dell 760 with latest bios v.16 with Intel Boot Agent GE v1.3.81) I tried but then the had a massive DHCP error:
[INDENT=1]PXE-E51 No DHCP or proxyDHCP offers were received[/INDENT]I recall something about Kernels about this years ago. Are they auto updated these days?
Time to hit the search bar (unless you can post a link if its a known issue)
-
This post is deleted! -
If you are getting those errors it’s probably your kernel. You can swap out kernels using the Other Information -> Kernel Updates page or by downloading and replacing your bzImage in your /tftpboot/fog/kernel folder. Tom has some kernels available on his site also.
-
I just wanted to add my findings to this thread. Ubuntu 14.10 fresh install, fully updated, downloaded Fog .33b via svn. I got this error repeatedly until I installed it from my user account and not the root account. So if you have enabled and are using the root user via being logged in, it can give this error. Took me WAY to long to figure it out. I don’t know why as I’m not a Linux user but that was my solution.