Can't save master password or update PXE menu (Ubuntu 13.10 x64)
I’m just working on a proof-of-concept install of a FOG server for work and I’m having some issues.
The first problem is I can’t save the master password in the PXE menu screen. I get an error saying the encrypted password is null. The most common explanation I’ve seen for this is the md5 bindings being missing. I’ve checked and libcrypt-passwdmd5-perl is installed.
I’m not sure if part of the problem is that I’m running 64-bit Ubuntu 13.10 but there doesn’t seem to be a 32-bit version of the passwdmd5-perl package. To make the server take image uploads I had to remove the & references from &$tmp in tasks.confirm.include.php so I appear to be running a newer version of PERL than the one FOG was written against.
I would be grateful of any suggestions you might have.
Thanks for posting back what ended up fixing it.
I have seen that sometimes some things don’t install properly.
Over the last few days, it seems people who are having problems simply re-run the installer and they’re good to go after that. I don’t know why.
I haven’t seen it so much in 0.33b but that’s not to say it won’t happen once we release.
For some reason, I can’t edit the above post…
Just wanted to add that it appears that the installer may not complete successfully unless all the runtime prerequisites are already installed.
I fixed it
Note: I’d previously done an [B][I]apt-get install udpcast[/I][/B] to fix a complaint while debugging about the program udp-sender being missing. Don’t know if I should have done this or not because I thought UDPCast was installed by the FOG installer.
I put a full screen terminal on the server, ran [B][I]tail -f /var/log/apache2/error.log[/I][/B] so I could see the errors in real time. Almost hidden in the deluge of index and undefined variable errors, I found a couple of errors.[B][I] [/I][/B]
[B][I]PHP Fatal error: Call to undefined function json_encode()[/I][/B]
[INDENT=1]A bit of Googling revealed the same error in a different program being caused by the package php5-json not being installed. This was fixed by the command [B][I]apt-get install php5-json[/I][/B][/INDENT]
[INDENT=1]This fixed a number of performance issues including sluggish responses and the version number checker on the login screen being broken.[/INDENT]
[B][I]sh: 1: /opt/fog/utils/md5pass: not found[/I][/B].
[INDENT=1]I looked with the file manager and /opt/fog/utils/md5pass was indeed missing. In fact the whole /opt/fog/utils folder wasn’t there. Since it appeared the installer hadn’t correctly done its job, I re-ran [B][I]installfog.sh[/I][/B] and the contents of /opt/fog appeared correctly.[/INDENT]
I’ve still got various complaints in the Apache error log about undefined variables and indices but FOG now seems to work.