Incredibly slow logins to web interface



  • Building a mobile FOG solution for a colleague. I have some experience with fog, and use it in my own computer lab to great success.

    The new installation works fine … but I’ve noticed that logins to the web interface are terribly slow (>60seconds). This isn’t true on my lab’s FOG unit running similar hardware.

    After futzing with it for awhile, it seems to be related to internet connectivity. When I connect the FOG server to an internet-connected switch, logins are quite zippy. As soon as I disconnect it… boom. Slow again.

    I presume during the login something is trying to access the net and timing out. Anything I can do to disable it?



  • @Tom-Elliott said:

    @Mats-Nilsson said:

    Problem solved. I installed a complementary Java Based Offline Proxy Server… http://www.proxy-offline-browser.com/
    (Java was bundled in Ubuntu) proxy ip 127.0.0.1 and port 8080 in Fog configuration and Firefox settings
    I consider Fog to complex to be modified according to my wishes. It is clearly built to be online. To much work

    Problem solved as stated.

    However, your information is correct. I just wanted to know why the revival, are you having the issue?

    I was having the issue, hence the reason I ended up on this page. I prefer the original method mentioned earlier in the page for an earlier version of fog without needing to download additional software. A question was raised regarding the newer version of fog, one to which an answer would have saved me some time. Upon finding the solution, I posted the results for anyone that comes upon this page to save time of their own. I honestly didn’t want to bring up a discussion, rather, just an FYI note for future viewers. The information I provided is valid and would be quite useless in a new thread.


  • Senior Developer

    @Mats-Nilsson said:

    Problem solved. I installed a complementary Java Based Offline Proxy Server… http://www.proxy-offline-browser.com/
    (Java was bundled in Ubuntu) proxy ip 127.0.0.1 and port 8080 in Fog configuration and Firefox settings
    I consider Fog to complex to be modified according to my wishes. It is clearly built to be online. To much work

    Problem solved as stated.

    However, your information is correct. I just wanted to know why the revival, are you having the issue?



  • @Tom-Elliott said:

    @kek Reviving an old thread?

    Old thread or not, it is the first google search result with no valid solutions or otherwise help for version 1.20. Just thought I’d update it.


  • Senior Developer

    @kek Reviving an old thread?



  • @SNP said:

    I have the same problem in 1.20, can some one help me where i find where this javascrip are in 1.20.
    (From a big fan of fog, fog has saved us a lot of time.)

    For fog 1.20, files are located at:
    fog/management/ajax/login.info.php <- Comment out entire page after <?php
    fog/lib/fog/ProcessLogin.class.php <- Comment out lines 230-233 and 244



  • Problem solved. I installed a complementary Java Based Offline Proxy Server… http://www.proxy-offline-browser.com/
    (Java was bundled in Ubuntu) proxy ip 127.0.0.1 and port 8080 in Fog configuration and Firefox settings
    I consider Fog to complex to be modified according to my wishes. It is clearly built to be online. To much work



  • @Tom Elliott, post: 39545, member: 7271 said:

    You could specify false proxy
    Thank you for your reply. Sorry i didnt provide information enough. Fog version 1.2.0 Ubuntu 14.04.1 server (i.e last versions)
    I installed according to Wiki: “install on isolated network” ==>only DHCP service activated.
    I have searched google, forums and wiki. This thread is all i found.
    I have tried to comment out in /var/www/fog/management/index.php but it is restored at restart.
    (My attempts there was the only contributions to error.log)
    I do have considered a Proxy Server. But i havent done that before. Is the proxy supposed to be connected to the internet?
    (I am not allowed to interfere with our intranet) Or can I use cached data?
    The problem is obviously Fog polling info to administrator page. Instant access to login etc as soon as i connect to inet
    This info cant be crucial. Apart from time out issue Fog functions without inet.
    There must be some way to comment out proper parts of code… if i can find the right document… I think… I hope… I beg


  • Senior Developer

    You could specify false proxy



  • where is that file located? i would like to comment that on my server :)



  • Im also running fog in an isolated environment to avoid interfering with with our severely restricted intranet.
    Fog is polling expendable? internet info on login, configuration… plus pinging hosts for name resolution.
    This times out eventually. But annoying and time consuming. I have solved pinging nameserver issue but internet polling issues remains. Which text (page) is to edit. Is there any easy solution. Or is it line by line editing. Please help



  • I have the same problem in 1.20, can some one help me where i find where this javascrip are in 1.20.

    (From a big fan of fog, fog has saved us a lot of time.)



  • That worked! Commenting out the two javascript includes at the bottom of login.include.php as well as the DIV that displays the statistics seems to have resolved the problem. Logins happen instantly now.



  • Thanks for the advice – I’ll try it tomorrow AM and report back!



  • I’m pretty sure the javascript at the bottom of loginform.include.php is the script that actually pulls the stats. Try commenting that out and see if that helps.



  • Hmmm, just the DIV that displays the stats. Where would I find the javascript? If I recall there are a couple of scripts at the bottom of the login form in “includes” (the name escapes me, I’m not at work now).



  • Did you comment out the div that displays the stats or the javascript that obtains the stats or the whole thing?


  • Developer

    Hmm, damn.

    Well I’m interested in figuring this out too, so lets not give up on it. Maybe someone who knows more about how the web GUI works can shed some light on the situation.



  • Yeah, I actually already went in and commented out that DIV entirely. No dice.

    It has to be somewhere in the login process - because once I’m in everything proceeds snappily. Extremely frustrating.


  • Developer

    I experienced this too when setting up my first fog server, I noticed when I would disconnect form the wall jack and lost internet connectivity that it took quite a while to log in.

    It may have something to do with the stats that it displays on the log in page.


Log in to reply
 

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.