Fog Upgrade Problems
-
When trying to Upgrade Fog it says
please change installation directory
Running from here will fail
you are in /opt/fog_1.3.5/bin which is a folder that will
be moved during installationHow to I change folder and what folder do I change to?
-
Hi welcome to the FOG Forums.
I think the best route to go is to follow the instructions to upgrade to trunk found here: https://wiki.fogproject.org/wiki/index.php/Upgrade_to_trunk
I’ll give you the commands in this thread too, which are slightly different than the wiki.
sudo -i git clone https://github.com/FOGProject/fogproject.git /opt/fogproject cd /opt/fogproject git checkout dev-branch cd bin ./installfog.sh
This command above will install a dev release of FOG.
I agree the warning message you posted is a bit confusing. Use the git method and it will work correctly for you.
-
That did not Work. This is what I get.
-
@garysaxon Can you move the /opt/fogproject to say /root/ and run the installer?
This shouldn’t be a problem, but fog does move files in and out of /opt so I think it’s relatively safe to have this as a “safety net” just in case something does go awry.
-
I will work on that portion of the installer too, just because I know most of the instructions in the WIKI still recommend working from /opt.
-
@Tom-Elliott That is a bogus message. I ALWAYS setup the fogproject folder under /opt and that message the OP posted has never been displayed. Granted I use RHEL, but still what is causing that error??
The OP is logged in as root, I assume that
sudo ./installfog.sh
is being used to invoke the setup.… thinking a bit more, could there be something in the .fogsettings causing this message?
-
@garysaxon How, exactly, are you running the installer?
The only time that message get’s displayed is if the webdirdest is used (/var/www/fog) or tftpdirdest locations (usually /tftpboot), but the “Answer not recognized” might be not allowing the rest of the system to even make it that far (making webdirdest and tftpdirdest blank). Essentially making the check look at ‘|’)
Please run as root, and ensure your installer is set with
./installfog.sh -y
-
I get the same error message
-
@garysaxon Then something is not right with your setup.
Can you show us exactly what you’re doing?
The “Answer not recognized” is likely a part of the problem.
How are you running the installer?
-
@Tom-Elliott would posting the .fogsettings file be of any help (of course with the passwords removed)? Maybe the sins of the OP’s past are coming back to haunt him.
-
@george1421 It’d be worth while sure. But from what I can tell, it’s not even making it that far, currently.
-
Where is that file located?
-
@garysaxon Can you PLEASE tell us exactly how you’re running the installer first?
The location of the file is
/opt/fog/.fogsettings
-
@garysaxon I know its probably much, but can we get a screen shot or image of the command line you are using before you press the enter key? We have to rule out the obvious stuff before going to dig under the hood.
-
I have tried several diffent waysbut all come back with same error: Here are the commands I tried first
cd /opt
sudo wget http://downloads.sourceforge.net/freeghost/fog_1.3.5.tar.gz
sudo tar -xvzf fog_1.3.5.tar.gz
cd fog_1.3.5/
cd bin
sudo ./installfog.sh -
I also tried :
sudo -i
git clone https://github.com/FOGProject/fogproject.git /opt/fogproject
cd /opt/fogproject
git checkout dev-branch
cd bin
./installfog.sh -
@garysaxon Please run the git form.
sudo -i cd /opt/fogproject git pull git checkout dev-branch git pull cd bin ./installfog.sh -y
-
@garysaxon Taking this a slightly different direction: What operating system is the FOG server using?
The commands you are using ARE the right ones. So the error message is not easy to understand. We need to look about for another reason.
Once you try Tom’s commands the next step is seeing what is in the .fogsettings file.
-
Same error with those commands
-
@garysaxon
What’s output of:cat /opt/fog/.fogsettings | grep 'osid='