Setting up and building UDPCast...Failed!
-
[quote=“Tom Elliott, post: 22731, member: 7271”]While the fog FTP user is setup during install time I don’t think the password is correct which is why you’re seeing problems. You need to set the fog users password yourself with[code]sudo passwd fog[/code]. Then set the password in the GUI under both storage management and fog settings. Also, for future reference, port 22 is for ssh. Ports 20 and 21 are for FTP.[/quote]
I remember it did this allready some days ago. Still the same result… (Unable to start task / Unable to upload file)
Do I set the password with this code to FTP, TFTP en MYSQL at the same time?
[code]sudo passwd fog[/code]
I wonder if it ever will start a task. I’m now several days working on it with the passwords and I do not get much further.
-
No just the storage node user and password and you fog settings tftpboot user and password. Nothing with either of the configuration files needs to be touched for this.
-
Just information here:
[code]sudo passwd fog[/code]
The code above changes the user fog on the FOG server. You’re setting the password. This is the user and password FTP uses when sending the PXE File and the Images to the /images folder.
The other “fog” user you’re referring to, if I’m understanding the information correctly, is the one you use to login to the FOG Web GUI with. This “fog” user is stored with the MYSQL Database. This is not your MYSQL_USERNAME or PASSWORD either. This is only for the FOG Web GUI login.
The last “user/password” I had you set earlier in the /opt/fog/service/etc/config.php and /var/www/fog/commons/config.php files is the MYSQL Database username and password. MYSQL has it’s own authentication mechanisms as well. This should be the root user and password, though you could assign any name and password.
-
Yes, I know. I don’t think you understand me or what is going wrong on my FOG server.
Ok. But what password I change. Nothing had changed in Fog. The only difference I see in FOG is this, after I set an upload task, is this:
- With a wrong password:
Unable to start task
Unable to connect to tftp server.- With a correct password:
Unable to start task
Unable to upload file.So thhe FOG server is not able to start the task either if the FTP password is wrong or correct.
Can you explain this?
-
Can you try setting up the task, and getting me some error logs directly after the task is created?
-
Where can I find these logs?
-
/var/log/apache2/error.log
-
Here is a part of the logfile. I don’t know where it actually starts setting the task:
[Tue Feb 11 14:33:03.633616 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.in$
[Tue Feb 11 14:33:03.633734 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined index: noconfirm in /var/www/fog/management/includes/tasks.confi$
[Tue Feb 11 14:33:03.633775 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined index: shutdown in /var/www/fog/management/includes/tasks.confir$
[Tue Feb 11 14:33:03.634702 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined index: singlesched in /var/www/fog/management/includes/tasks.con$
[Tue Feb 11 14:33:03.634745 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined index: cronsched in /var/www/fog/management/includes/tasks.confi$
[Tue Feb 11 14:33:03.752033 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Warning: ftp_put(): OOPS: priv_sock_get_cmd in /var/www/fog/commons/functions.incl$
[Tue Feb 11 14:33:03.757663 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined variable: id in /var/www/fog/management/includes/submenu.include$
[Tue Feb 11 14:33:03.757710 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined variable: host in /var/www/fog/management/includes/submenu.inclu$
[Tue Feb 11 14:33:03.757787 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined index: tasks in /var/www/fog/management/includes/submenu.include$
[Tue Feb 11 14:33:03.757892 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined variable: output in /var/www/fog/management/includes/submenu.inc$
[Tue Feb 11 14:33:03.757966 2014] [:error] [pid 2142] [client 192.168.1.72:55646] PHP Notice: Undefined property: FOGSubMenu::$notes in /var/www/fog/management/includes$ -
Do you, by chance, have a firewall still turned on?
-
[quote=“Tom Elliott, post: 22776, member: 7271”]Do you, by chance, have a firewall still turned on?[/quote]
I don’t know. I have installed Ubuntu by default. Or do you mean on the Windows 7 machine?
-
No, from the ubuntu machine.
Can you run the command:
[code]sudo ufw disable[/code]Then restart the FOG server?
-
[quote=“Tom Elliott, post: 22782, member: 7271”]No, from the ubuntu machine.
Can you run the command:
[code]sudo ufw disable[/code]Then restart the FOG server?[/quote]
Done! After restart the result is the same:
Unable to start task
Unable to upload file.I send with this post an attachement of the error.log from reboot until the upload task. About 15:52 I started the upload task. Maybe you see more in this file. I wonder if you can find a solutionf for this problem, so I can finally make an image with FOG.
[url=“/_imported_xf_attachments/0/541_error.log.txt?:”]error.log.txt[/url]
-
You could try :
[code]
chown -R fog:root /tftpboot[/code]Could be a possibility that the rights aren’t correct on the folder.
-
Man, I always forget that one part
-
[quote=“Jaymes Driver, post: 22829, member: 3582”]You could try :
[code]
chown -R fog:root /tftpboot[/code]Could be a possibility that the rights aren’t correct on the folder.[/quote]
I have tried it, but still I have got the same answer:
Unable to start task
Unable to upload file.If you want the errorlog, please let me know.
-
can you try ftping using the fog user and password you set with passwd fog before?
[code]ftp <IP OF FOG SERVER>[/code]
Login with the Fog Username and password.
See that it successfully connects.
Then try to cd to /tftpboot/pxelinux.cfg
[code]cd /tftpboot/pxelinux.cfg[/code]Then Try to create a file there, if it even lets you get that far.
[code]mkdir test[/code]Does it allow you to create the folder?
-
[quote=“Tom Elliott, post: 22850, member: 7271”]can you try ftping using the fog user and password you set with passwd fog before?
[code]ftp <IP OF FOG SERVER>[/code]
Login with the Fog Username and password.
See that it successfully connects.
[/quote]
Yes, no problem. Connection is made succesfully.
[quote]
Then try to cd to /tftpboot/pxelinux.cfg
[code]cd /tftpboot/pxelinux.cfg[/code]Then Try to create a file there, if it even lets you get that far.
[/quote]
Yes, I can cd to /tftpboot/pxelinux.cfg and make a subdir:
[code]sudo mkdir test[/code]
and a file with:
[code] sudo pico jostest.txt [/code]
Does it allow you to create the folder?[/quote]
Yes, with:
[code] sudo mkdir test [/code]
-
What strikes me is that the wake-up function of the Advance Actions actually doing something.I see here the message “Wake up packet sent to 1 computer(s).”
If I shutdown the Windows 7 PC (not reboot). The Windows 7 PC will reboot instead of shutdown.
Does this say something?
-
The wake up function will work because it doesn’t actually ftp any data to the fog server. It just sends a packet.
When you’re running the command list I gave you above, I was hoping it would be done from the FTP system.
Stay in FTP shell and cd to /tftpboot/pxelinux.cfg
WHile in the FTP shell type
mkdir testThen report results. I’m starting to think something is permissions based with the issues here.
-
Ok.
In the FTP shell, I can cd to /tftpboot/pxelinux.cfg
mkdir test, failed in the FTP shell.