Setting up and building UDPCast...Failed!
-
Try:
[code]sudo apt-get update; sudo apt-get install mysql-server[/code] -
Thanks Tom, this works. Again the install failed on udpcast.
I run this again:
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.shInstallation is now succesfull. The only thing is to config the database.
When I start my browser and go to: [url]http://192.168.1.72/fog/management/[/url]
It says: Unable to connect to database.
What steps should I take (maybe a dump question, but I new to Linux…) next?
Thanks all for the help so far!
Gr, Jos
-
To configure the database I tried this:
mysql --user=root --password=… --host=127.0.0.1 fog
The output is:
Unknown database ‘fog’
Any idears?
-
Fog failed again on MySql:
[…]
Confirming package installation.- Checking package: apache2…OK
- Checking package: php5…OK
- Checking package: php5-gd…OK
- Checking package: php5-cli…OK
- Checking package: php5-mysql…OK
- Checking package: php5-curl…OK
- Checking package: mysql-server…OK
- Checking package: mysql-client…OK
- Checking package: tftpd-hpa…OK
- Checking package: tftp-hpa…OK
- Checking package: nfs-kernel-server…OK
- Checking package: vsftpd…OK
- Checking package: net-tools…OK
- Checking package: wget…OK
- Checking package: xinetd…OK
- Checking package: sysv-rc-conf…OK
- Checking package: tar…OK
- Checking package: gzip…OK
- Checking package: build-essential…OK
- Checking package: cpp…OK
- Checking package: gcc…OK
- Checking package: g++…OK
- Checking package: m4…OK
- Checking package: htmldoc…OK
- Checking package: perl…OK
- Checking package: libcrypt-passwdmd5-perl…OK
- Checking package: lftp…OK
- Checking package: openssh-server…OK
- Checking package: php-gettext…OK
- Checking package: clamav-freshclam…OK
- Checking package: language-pack-it…OK
- Checking package: language-pack-en…OK
- Checking package: language-pack-es…OK
- Checking package: language-pack-zh-hans…OK
Configuring services.
- Setting up fog user…Exists
- Setting up and starting MySql…Failed!
How many time do I have reinstall MySql?
-
Now I have rebooted my Ubuntu desktop and run sudo ./installfog.sh again.
Again it went well…but in Firefox I got:
Unable to connect to database.
How do I setup the database? Or should I do anything else?
Please let me know!
Gr, Jos
-
Did you setup a mysql password?
If you did, you need to enter that password in the /opt/fog/service/etc/config.php [b] AND [/b] the /var/www/fog/commons/config.php files.
The lines for 0.32 should be:
MYSQL_PASSWORD.Just enter whatever password you entered into those slots and all should work.
-
Thanks Tom! It worked.
Now I want to make an image of a Windows 7 desktop…
Gr, Jos
-
No luck this time…
I tried it according this video:
[media=youtube]fdfY7kt7oGE[/media]
Nothing appears in Task Management after I want to upload an image.
My DHCP-server is a Huawei HG655d, could that be to problem?
My client for the image is an Windows 7 Home premium desktop.
Gr, Jos
-
I don’t think the problem is due to the dhcp server. You said it fails when trying to create the task. So that tells me the TFTP Username and Passwordare not correct.
On your FOG Server, open a terminal and reset the fog user’s password with:
[code]sudo passwd fog[/code]Then change the password to whatever you feel necessary.
Once complete, go to the GUI (webpage) and go to Other (The ? icon) -> FOG Settings
Look for
FOG_TFTP_USERNAME
FOG_TFTP_PASSWORDSet the password to what every you changed it to in the previous step.
You may need to do the same thing for the storage node.
Choose Storage Management->All Storage Nodes
Select your storage node (there’ll probably be only one)
Change the Management Username and Management Password to match that of what you set as well.
-
Thanks Tom. I have tried this, but the result is the same.
When I go to -> Task Manager -> List all hosts -> choose my Win7host -> Uploadd -> The screen with “Task Management” comes up, with nothing else.
In Host Management, I see a green button left from the Win7hos, so that’s correct.
Gr, Jos
-
I guess I’m confused.
So you don’t see the task being created? Are you sure it isn’t created? I guess I don’t understand the issue.
You’re using 0.32 correct?
My understanding of 0.32 Task Page task creation, is there is no confirmation. It just creates the task and away you go. I could be wrong as I typically use the Host page to setup the task anyway.
-
Yes, it a strang thing!
I have made some screenshots…
-
Task management -> List all hosts:
[url]http://www.noordlaarderbos.nl/linux/fog_task_management1.png[/url] -
Task management -> List all host -> upload ‘ZwarteSpecht’:
[url]http://www.noordlaarderbos.nl/linux/fog_task_management2.png[/url]
The screen stays empty without any task. Your correct I’m using 0.32.
Gr, Jos
-
-
Give this a shot:
sudo gedit /var/www/fog/management/includes/tasks.confirm.include.php
Search for: &$tmp
Replace with: $tmp
Replace All (there were somewhere around twenty instances)
Save
Close
Then try to schedule your upload task again. -
Good point, I forgot about that little problem.
-
Thanks Kevin this helps a little bit further. I do see something else then a empty screen:
[URL=‘http://www.noordlaarderbos.nl/linux/fog_task_management1.png’]http://www.noordlaarderbos.nl/linux/fog_task_management3.png[/URL]But, it still won’t create a task or upload an image, when i push the button: “Upload Image”.
[url=“http://www.noordlaarderbos.nl/linux/fog_task_management4.png”]www.noordlaarderbos.nl/linux/fog_task_management4.png[/url]Gr, Jos
-
Under 'Other Information or “button ?” -> Log Viewer
I see many messages like this:
[02-09-14 6:27:52 pm] | [02-09-14 6:27:52 pm] Failed to connect to database server,
will try again in next iteration.Could that be a problem?
Gr, Jos
-
The messages you’re seeing under “Log Viewer” from the Other Information ( ? ) button is reporting that the FOG Services (FOGMulticastManager, FOGImageReplicator, FOGScheduler) can’t connect to the database. If you setup a mysql password for the database during installation this is most likely why you’re seeing those particular errors. To fix that, you need to edit the /opt/fog/service/etc/config.php and make sure the MYSQL_PASSWORD field contains your database password. That should correct the “cannot connect to database server” error you’re seeing.
The error that the deploy tasks from the task page is reporting still doesn’t make sense to me. You’re able to create tasks from the Host Management Page, but not the Task Page? Or you’re not able to create any tasks?
-
I have editted the /opt/fog/service/etc/config.php allready, so the MYSQL_PASSWORD field is correct.
No, I’m not able to create any tasks. By the Host Managemant Page or by the Task Management Page, doesn’t make any difference.
Gr, Jos
-
I need more information to work off, than it’s not working.
You’re absolutely sure that the password is correct? Can you actually connect to the database using the password you’ve entered?
-
When I change the MYSQL_PASSWORD field in /var/www/fog/commons/config.php is something else, I am Unable to connect to database, when I browse to my Fog-site. So it must be correct, right?
I also checked password with the command:
mysql -u root -p<password> fog -h localhostHere I got a mysql prompt. No errors.
The only task, that seems to do anything is the ‘wake up computer’ task, but I can’t check this. Because my bios on the client (Windows 7) computer doesn’t have the wake-up function.
If you need more information, please let me know.
Gr, Jos