Latest Development FOG
-
I tried downgrading to 3109 and I had the same issue, but when I downgraded further to 3102 the FOG GUI comes up fine. I’ll try each new iteration and let you know when the issue started on which revision.
-
FOG works fine for until SVN 3109. Then I can’t load the web page anymore. All the previous revisions do not have this issue.
-
Can you do me a favor?
Run this command:
[code]wget -O /var/www/fog/lib/fog/FOGURLRequests.class.php http://sourceforge.net/p/freeghost/code/3108/tree/trunk/packages/web/lib/fog/FOGURLRequests.class.php?format=raw[/code]
Does the interface now load?
-
Also, that might break it worse, but it’s worth a shot.
Can you also see what’s in the apache error logs?
-
Should I run that command from certain folder, such as /trunk or /trunk/bin?
-
It doesn’t matter,
The command is implicitly telling it which file to use and copy over.
-
That didn’t seem to help. My apache error log has multiple lines of:
PHP Fatal error: Call to a member function isValid() on a non-object in /var/www/fog/service/servicemodule-active.php on line 11 -
That’s okay.
3111 should fix the issues and still maintain access to the interface.
-
Yep, 3111 fixed it. Thank you Tom.
-
This post is deleted! -
Current SVN - 3121 installed today. I did get a SQL error but all seems to be intact.
This is for informational purpose only. I can live with current error, just showing there is still bug in settings options.
If you require the full log please let me know. ill provide what ever data you need to help nail down outstanding issues.
Thanks Tom!
and development team! Awesome job.[Tue Mar 17 09:58:28.008706 2015] [mpm_prefork:notice] [pid 4206] AH00169: caught SIGTERM, shutting down
[Tue Mar 17 10:01:43.050081 2015] [mpm_prefork:notice] [pid 4193] AH00163: Apache/2.4.10 (Ubuntu) PHP/5.5.12-2ubuntu4.2 configured – resuming normal operations
[Tue Mar 17 10:01:43.080004 2015] [core:notice] [pid 4193] AH00094: Command line: ‘/usr/sbin/apache2’
[Tue Mar 17 10:10:08.641183 2015] [:error] [pid 4248] [client 172.31.176.207:3642] PHP Fatal error: Call to undefined function mcrypt_get_iv_size() in /var/www/fog/lib/fog/FOGBase.class.php on line 290, referer: [url]http://roxmintfog/fog/management/index.php?node=about&sub=settings[/url]
[Tue Mar 17 10:24:17.830533 2015] [:error] [pid 5718] [client 127.0.0.1:34866] PHP Fatal error: Call to undefined function mcrypt_get_iv_size() in /var/www/fog/lib/fog/FOGBase.class.php on line 290, referer: [url]http://roxmintfog/fog/management/index.php?node=about&sub=settings[/url]
[Tue Mar 17 10:24:40.882685 2015] [:error] [pid 5728] [client 127.0.0.1:34872] PHP Fatal error: Call to undefined function mcrypt_get_iv_size() in /var/www/fog/lib/fog/FOGBase.class.php on line 290, referer: [url]http://roxmintfog/fog/management/index.php?node=about&sub=settings[/url]
[Tue Mar 17 10:54:19.409926 2015] [core:notice] [pid 4193] AH00051: child pid 10367 exit signal Segmentation fault (11), possible coredump in /etc/apache2 -
Tom, Is there an issue with the latest Dev that effects the SQL as well as the settings page, most features do not reflect the updated status when you make a change to any setting , either in the host tables or in fog settings.
What information would you require to see the errors im getting , this may assist in troubleshooting this -
For your errors, I believe you need to have:
php-mcrypt or php5-mcrypt.
-
[quote=“Tom Elliott, post: 44060, member: 7271”]For your errors, I believe you need to have:
php-mcrypt or php5-mcrypt.[/quote]
I have verified I do infact already have that installed and updated. I have php5-mcrypt installed.
any other suggestions?
I’m back at the point where I may have to back up the revision again. is there a log that will offer up more detail info? should i send you a copy of the apachelog? would this help? I still have the ability to image systems and register them so I’m not broken, just cant make changes to the host in the fog server or modify the settinings from the web pages. i may have to go in and change them manually
I am getting mysql errors when trying to access the mysql database for fog. -
Bill, in case you just installed php5-mcrypt, make sure apache is restarted.
Second thing to check is if mcrypt is actually loaded so for example in php5/apache2/conf.d does it mention to load mcrypt? Else load explicitly in your php.ini with extension=mcrypt.so or so, just to be sure.
-
You could also, if on ubuntu/debian, just run:
[code]sudo a2enmod mcrypt[/code]
-
Running that command Tom
Returns this --> sudo a2enmod mcrypt
ERROR: Module mcrypt does not exist!Modifying the php file adding extension=mcrypt.so appears to have given me the ability to save settings again.
[COLOR=#3366ff]Line 278 in file --> return $this->link->real_escape_string(strip_tags($data));[/COLOR]
[COLOR=#993300]I still see this error in the SQL line 278. this is a paste from the apache log file.[/COLOR]
[Thu Mar 19 07:02:32.262527 2015] [:error] [pid 4247] [client 172.31.178.79:56675] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 278
[Thu Mar 19 07:02:32.262538 2015] [:error] [pid 4247] [client 172.31.178.79:56675] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 278
[Thu Mar 19 07:02:32.262741 2015] [:error] [pid 4247] [client 172.31.178.79:56675] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 278
[Thu Mar 19 07:02:32.262751 2015] [:error] [pid 4247] [client 172.31.178.79:56675] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 278
[Thu Mar 19 07:02:32.262958 2015] [:error] [pid 4247] [client 172.31.178.79:56675] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 278
[Thu Mar 19 07:02:32.262969 2015] [:error] [pid 4247] [client 172.31.178.79:56675] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 278 -
I’m sory about that.
a2enmod is for Apache modules.
php5enmod is for php (mcrypt is a php function)
[code]sudo php5enmod mcrypt[/code]
-
ok updated to latest svn, 3123 lost all screens- im trying that command, rebooting and will update as it restarts.
If this still breaks the screens (can log in to fog but then all other screens dont display) I’ll back to svn 3122
Rebooted and no screens display other then the inital log on screen but i can click on log out and it will go back to initial log on screen.
no biggie. just an fyi. -
Ok current update - After adding the extension=mcrypt.so to the php file and also running the php5 command tom provided i am able to see all options and make needed changes.
I then did the SVN update and that when I lost all the option screens it allowed me to log in but then no other screen except for main screen would show up. I rebooted the system still no joy. I did run the command --> Sudo svn up -r 3122
allowed to update, and then run the installer. this has brought me back top 3122 and all is functional again.If you would like my log file for apache then let me know, I’ll post a little of the log in my next post for review.