Slow login page loading

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

cdambrosio
Posts: 35
Joined: Thu Oct 08, 2020 5:40 pm

Slow login page loading

Post by cdambrosio » Thu Oct 08, 2020 5:57 pm

Good evening,
I'm using OpenEMM 20.10.000.049 and I have very slow login page loading (in minutes, often the call ends with a timeout).

In the log files, I found the error:

2020-10-08 09:31:03,422: ERROR [http-nio-8080-exec-2] com.agnitas.emm.core.logon.beans.LogonStateBundle - Unexpected logon state: PENDING. Expected: COMPLETE. (hostId: `null`, admin: `?`)

How can I solve this problem?

Thank you.

Regards,

Carlo

maschoff
Site Admin
Posts: 2511
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Slow login page loading

Post by maschoff » Thu Oct 08, 2020 7:53 pm

Remove (or replace) the values for name "iframe.url.en" and "iframe.url.de" in table config_tbl to remove or replace the HTML content shown to the left of the login form.
OpenEMM Maintainer

cdambrosio
Posts: 35
Joined: Thu Oct 08, 2020 5:40 pm

Re: Slow login page loading

Post by cdambrosio » Fri Oct 09, 2020 10:38 am

Hi Mashoff,
thank you for the fast reply.

I checked right now and I cannot find the parameters "iframe.url.en" and "iframe.url.de" in table config_tbl.

Also the OpenEMMInstaller.sh doesn't show me those parameters in "Configuration"/"Change basic configuration".

Should I add those parameters to the table manually?

Thank you.

Regards,

Carlo

maschoff
Site Admin
Posts: 2511
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Slow login page loading

Post by maschoff » Fri Oct 09, 2020 10:53 am

Yes, and you have to use string "logon" für column "class". Leave field "value" empty or enter a URL of your choice.
OpenEMM Maintainer

cdambrosio
Posts: 35
Joined: Thu Oct 08, 2020 5:40 pm

Re: Slow login page loading

Post by cdambrosio » Fri Oct 09, 2020 2:38 pm

Hi Martin,
I've created the two records and now I have this configuration:

logon.iframe.url.de =
logon.iframe.url.en =

Unfortunately I continue to have a very slow login loading time and the error message in the log file.

Can I try to do something else?

Thank you.

Regards,

Carlo

maschoff
Site Admin
Posts: 2511
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Slow login page loading

Post by maschoff » Fri Oct 09, 2020 4:03 pm

The error message does not have anything to do with the delayed loading. It is shown each time you request the login page without login data. Looks like a network problem to me.
OpenEMM Maintainer

cdambrosio
Posts: 35
Joined: Thu Oct 08, 2020 5:40 pm

Re: Slow login page loading

Post by cdambrosio » Fri Oct 09, 2020 5:46 pm

Hi Martin,
I don't think it's a network problem (it's a 10 Gbps LAN), maybe some configuration parameter of Tomcat. I'll check and let you know.

Thank you.

Regards,

Carlo

cdambrosio
Posts: 35
Joined: Thu Oct 08, 2020 5:40 pm

Re: Slow login page loading

Post by cdambrosio » Fri Oct 09, 2020 8:06 pm

Hi Martin,
I found the problem, I forgot to set the proxy server in the Java options, so the page was loaded after the timeout of the request to the Agnitas web site.

Now all is working fine except the logon.iframe.url.de and logon.iframe.url.en options: despite I set the values to blank or to another website, it always loads the Agnitas website.

Am I doing something wrong?

Thank you.

Regards,

Carlo

maschoff
Site Admin
Posts: 2511
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Slow login page loading

Post by maschoff » Fri Oct 09, 2020 8:34 pm

Since you set class="logon", value is only "iframe.url.de"/"iframe.url.en".
OpenEMM Maintainer

cdambrosio
Posts: 35
Joined: Thu Oct 08, 2020 5:40 pm

Re: Slow login page loading

Post by cdambrosio » Fri Oct 09, 2020 9:31 pm

I've set two parameters:

class='logon', name='iframe.url.en',value=''
class='logon', name='iframe.url.de',value=''

Is it wrong?

Thank you.

Regards,

Carlo

maschoff
Site Admin
Posts: 2511
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Slow login page loading

Post by maschoff » Fri Oct 09, 2020 10:37 pm

Correct. Maybe you also have to set creation_date to current_timestamp.
OpenEMM Maintainer

cdambrosio
Posts: 35
Joined: Thu Oct 08, 2020 5:40 pm

Re: Slow login page loading

Post by cdambrosio » Sat Oct 10, 2020 9:27 am

Done, but the iframe is still there.

These are the two records:

"logon" "iframe.url.en" "" \N \N "2020-10-09 13:50:43" "2020-10-09 13:50:43"
"logon" "iframe.url.de" "" \N \N "2020-10-09 22:38:35" "2020-10-09 22:38:35"

Everything seems to be ok...

maschoff
Site Admin
Posts: 2511
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Slow login page loading

Post by maschoff » Wed Oct 14, 2020 6:01 pm

Does it work if you set any other value for name?
OpenEMM Maintainer

cdambrosio
Posts: 35
Joined: Thu Oct 08, 2020 5:40 pm

Re: Slow login page loading

Post by cdambrosio » Thu Nov 12, 2020 12:23 am

No Martin, it continues to show the Agnitas web page...

Thank you.

iwolf
Posts: 3
Joined: Mon Feb 22, 2021 9:51 am

Re: Slow login page loading

Post by iwolf » Fri Mar 12, 2021 1:53 pm

I thought I add up here. As www.agnitas.de is currently down / not available I am unable to login to OpenEMM.
After extending the timeout on the webserver to a value far beyond reasonable the login fields appear. Login still does not work. Is there a workaround/solution to get OpenEmm running? Is it possible to run OpenEmm without dependencies to www.agnitas.de?

Or is it just a misconfiguration on my side. Everything worked fine, until today.

Any help would be very appreciated.

Post Reply