Unable to connect to Web Interface. Git trunk(8245)
-
Hi Tom
First of all, thank you for your time.
When I access the web interface from server (firefox) to update database schema, I get…
When I try to access the web interface from client machines(chrome), i get…
Lastly, I have tried looking at the Apache log but it doesn’t seem right to me because of the timestamp. If this log is not the one, please tell me where to find the correct one.
[Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Fatal error: Call to a member function query() on a non-object in /var/www/fog/lib/db/MySQL.class.php on line 89 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning: Unknown: open(/var/lib/php5/sess_9hf0lmul0f53sfblcoeqpf5486, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Fatal error: Call to a member function query() on a non-object in /var/www/fog/lib/db/MySQL.class.php on line 89 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning: Unknown: open(/var/lib/php5/sess_nt2jq0pgilceskr3mjgr57m266, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Fatal error: Call to a member function query() on a non-object in /var/www/fog/lib/db/MySQL.class.php on line 89 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning: Unknown: open(/var/lib/php5/sess_ohmbj4sed09ejtnquk10pdle34, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Fatal error: Call to a member function query() on a non-object in /var/www/fog/lib/db/MySQL.class.php on line 89 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning: Unknown: open(/var/lib/php5/sess_s7ip113c7c6j166kkm4glkndt0, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Jun 06 17:32:42 2016] [error] [client 172.16.1.122] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0 [Mon Jun 06 17:32:44 2016] [notice] caught SIGTERM, shutting down```
-
This appears to be indicating it can’t write session data. Maybe your root filesystem is full?
What’s the output of
df -b /
? -
Filesystem 1K-blocks Used Available Use% Mounted on udev 2055700 4 2055696 1% /dev tmpfs 413064 1072 411992 1% /run /dev/sda1 119594212 6673176 106822964 6% / none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 2065316 76 2065240 1% /run/shm none 102400 72 102328 1% /run/user
I know that Apache is the main component for accessing web interface, correct me if I’m wrong. I also have a feeling that log I posted is wrong because of the timestamp dated back to June 6th. I’m trying to find a log for today but could not find it anywhere… -
@foggee What if you uninstall apache, then delete that file, then reinstall?
apt-get remove apache2 -y;rm -f /etc/apache2/apache2.conf;apt-get install apache2 -y
I feel you are wanting to fix it rather than rebuild it, but keep in mind that you could probably have already rebuilt the server with the time you’ve spent on this.
-
Have tried removing Apache2, uninstalled FOG as a whole, then retrying the installations but I’m still back to the “Unable to Connect” page.
Does this mean anything to you? Could this be the reason why I cannot access web interface?
root@FogServer:~/git/fogproject/bin# sudo service apache2 stop * Stopping web server apache2 * root@FogServer:~/git/fogproject/bin# sudo service apache2 start * Starting web server apache2 * * The apache2 configtest failed. Output of config test was: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/authz_default.load: No such file or directory Action 'configtest' failed. The Apache error log may have more information.
-
@foggee But did you delete that file?
-
I did delete the .conf file.
As of right now, the fog installer is asking me to update database schema by entering fog management. And I cannot access the web interface to do so.
Any other ideas? I’d be more the willing to try anything you throw at me…
I wish I know which are the main components that allow me to access the web interface to the fogserver so I can dig in there and dissect each component.
-
@foggee You can try to tell the installer to update the DB, instead of using the web interface. idk if it will work or not.
just add the -y argument.
./installfog.sh -y
-
But the database isn’t the reason why I cannot see the web interface, right?
-
@foggee Right, but it needs updated one way or another.
-
Gotcha.
I just ran ./installfog.sh -y
Updating Database...................................Failed!
How can I verify that Apache2 is running correctly and that it’s doing what its suppose to do?
-
@foggee type the IP of the server into a browser, you should get an Apache test page if it’s working.
-
Hmm…yeah
I’m getting the “unable to connect” page, same as below.Can I ask for your expertise to help me troubleshoot Apache2? I feel like this is where should start but I have no idea how to, as I already uninstalled, deleted .conf file.
-
@foggee If you have time at 4:00 Central Standard, I can try to help via Team Viewer with you.
-
Unfortunately being at work will not allow me to do so, even when this is work related. I sent you an email for the FOG session tomorrow, hoping that it will get me out of this hole…
-
@foggee If it were me, and I couldn’t figure it out, I’d have just rebuilt the server.
-
Some quick questions regarding that.
If I rebuild the VM session, which is the best version of Ubuntu to be on? And when I start installing FOG, do I go straight to trunk or should I install 1.2.0 first then trunk it.
-
@foggee There are mixed thoughts about the best version of Ubuntu. IMO, I’d go with 16. There are special steps that need included (search the forums for “Ubuntu 16”), but after that it’s good to go. Ubuntu 14 will work without modification.
You do not need to install 1.2.0. You can go straight to trunk.