Ubuntu 14.04.3
SVN 4380 Cloud 5419
On a fresh install, an upgrade to newer trunk version, or a reinstall of the existing fog_trunk contents, FOG clients will begin to throw 404 errors for everything;
11/18/2015 12:50 PM Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=clientupdater&mac=90:B1:1C:7D:6B:FF||00:00:00:00:00:00:00:E0&newService=1
11/18/2015 12:50 PM Middleware::Communication ERROR: Could not contact FOG server
11/18/2015 12:50 PM Middleware::Communication ERROR: The remote server returned an error: (404) Not Found.
Going off of constant refreshing the folder view while running a couple installs, I’m guessing the symbolic link (which I had to manually create in the first place) gets wiped out right around this area here:
* Backing up old data.........................................OK
* Copying back old web folder as is...........................OK
* Copying new files to web folder.............................OK
Here’s the fix, just needs to be run once install.sh has finished completely:
Make a symbolic link at /var/www/html for fog, and point it at /var/www/fog
ln -s /var/www/fog /var/www/html/fog
Ta-da, no more 404s!