By: Scott Borne user 15 May 2017 at 3:19 p.m. CDT

29 Responses
Scott Borne gravatar
Hello, Having initial install errors. Brand new install on Ubuntu 16 - browser java error. Chrome and firefox error "java.lang.IllegalStateException: Counter for nested ContextualHttpServletRequest was removed before it should be!" Same error on second install. Any help appreciated, thanks

By Mohib Zico Account Admin 15 May 2017 at 4:07 p.m. CDT

Mohib Zico gravatar
Hi Scott, Couple of points: - Are you using cloud? If yes.. which one? - Can you please paste the output of setup script? Wanna take a look at your parameters.

By Aliaksandr Samuseu staff 15 May 2017 at 4:09 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Scott. What about [this ticket](https://support.gluu.org/installation/4097/on-install-of-gluu-301-browser-java-error/)? Seems to be on the same topic. Which one do we need to attend?

By Scott Borne user 15 May 2017 at 4:15 p.m. CDT

Scott Borne gravatar
Hello, I am using Google cloud compute. I have changed my hosts file per your documentation and did have a working ubuntu 16 install at the beginning of last week. Rebuilt the VM and now getting errors. Setup Script hostname redhat7.ihousedev.com orgName IHouseweb, Inc os redhat city Sacramennto state Ca countryCode US support email it@ihouseweb.com Applications max ram 5000 Admin Pass secret Install oxAuth True Install oxTrust True Install LDAP True Install JCE 1.8 False Install Apache 2 web server True Install Shibboleth SAML IDP False Install Asimba SAML Proxy False Install CAS False Install oxAuth RP False Install Passport False Thanks for looking onto this for me - had the same error on a centos 7.2 install

By Mohib Zico Account Admin 15 May 2017 at 4:25 p.m. CDT

Mohib Zico gravatar
I think I'll give a shot with google cloud engine + CentOS7. Will inform you on status.

By Scott Borne user 15 May 2017 at 4:58 p.m. CDT

Scott Borne gravatar
So, it looks like if I do not install oxAuth-RP the java error goes away. I have 2 identical installs of Gluu 3.0.1 and redhat 7. The only difference is I went and installed oxAuth-rp on one and am now getting the JavaException error. Maybe a problem with seam?

By Michael Schwartz Account Admin 15 May 2017 at 7:15 p.m. CDT

Michael Schwartz gravatar
That's interesting. We'll try to replicate it.

By Sahil Arora user 15 May 2017 at 9:27 p.m. CDT

Sahil Arora gravatar
I tried with same setting on Ubuntu 16.04 but unable to reproduce it. PRETTY_NAME="Ubuntu 16.04.2 LTS" VERSION_ID="16.04" Both identity/oxauth-rp are working fine. Install oxAuth True Install oxTrust True Install LDAP True Install JCE 1.8 False Install Apache 2 web server True Install Shibboleth SAML IDP False Install Asimba SAML Proxy False Install CAS False Install oxAuth RP True Install Passport False

By Scott Borne user 16 May 2017 at 10:48 a.m. CDT

Scott Borne gravatar
Did you test with a Google Cloud Compute VM. I have replicated the issue with and without oxAuth-rp with the oxAuth-rp on, I am still seeing the error.

By Mohib Zico Account Admin 16 May 2017 at 4:31 p.m. CDT

Mohib Zico gravatar
Hi Scott, I couldn't try in Google Cloud engine but tested in all other platforms with Ubuntu 16.04 ( DigitalOcean, Rackspace, Amazon AWS, local VMware instance ). Would you mind to test somewhere else other than cloud engine?

By Scott Borne user 16 May 2017 at 4:45 p.m. CDT

Scott Borne gravatar
Our company runs on GCP so we kind of need to have it run there if we are going to use it at all. We have a working Gluu server but are getting the same java error on authentication with javascript. I have an open ticket for that issue also. When I have some time I'll spin one up somewhere else just to complete the ticket. Thanks for your time,

By Mohib Zico Account Admin 16 May 2017 at 4:54 p.m. CDT

Mohib Zico gravatar
Thanks.

By Markus Falgenhauer user 02 Aug 2017 at 1:04 a.m. CDT

Markus Falgenhauer gravatar
**Same Error on a virtual linux machine Ubuntu 16.04 on Azure Cloud** I receive the same error: _java.lang.IllegalStateException: Counter for nested ContextualHttpServletRequest was removed before it should be!_ on a brand new installation. My configuration is: Install oxAuth True Install oxTrust True Install LDAP True Install JCE 1.8 True Install Apache 2 web server True Install Shibboleth SAML IDP False Install Asimba SAML Proxy False Install CAS False Install oxAuth RP False Install Passport False Also tested with oxAuth RP True

By Mohib Zico Account Admin 02 Aug 2017 at 1:39 a.m. CDT

Mohib Zico gravatar
Will try to check status in azure.

By Michael Schwartz Account Admin 02 Aug 2017 at 3:58 p.m. CDT

Michael Schwartz gravatar
It's unclear to me if the servers have 4GB of RAM.

By Markus Falgenhauer user 03 Aug 2017 at 12:42 a.m. CDT

Markus Falgenhauer gravatar
The virtual machine I am using ist set up to have: - 2 Cores - 7 GB Memory - 14 GB Local SSD - I setup the gluu-server with Applications max ram 3072 as recommended. The free command for displaying RAM on the terminal shows: total | used | free | shared | buff/cache | available Mem: 7125436 | 3419996 | 2868164 | 9208 | 837276 | 3413204 Swap: 0 0 0 Still getting the Error!

By Mohib Zico Account Admin 07 Aug 2017 at 7:14 a.m. CDT

Mohib Zico gravatar
>> 14 GB Local SSD Try at least 30GB disk space. For some technical issue we are unable to test Google/Azure cloud in community support. Sorry about that.

By Martin Galda user 08 Aug 2017 at 7:58 a.m. CDT

Martin Galda gravatar
Hi, I get the exact same error on a fresh Ubuntu 16.04 VM on AWS. The VM has: 2 CPU cores, 4GB of RAM (out of which 0.8 is available), 40GB of disk space (out of which 37 is free). I have tested all kinds of configurations but they don't seem to have any effect.

By Mohib Zico Account Admin 08 Aug 2017 at 8 a.m. CDT

Mohib Zico gravatar
We will check with AWS and share info with you. Thanks for your report.

By Mohib Zico Account Admin 08 Aug 2017 at 8:39 a.m. CDT

Mohib Zico gravatar
I couldn't reproduce the issue. Gluu Server v3.0.2 in 16.04.1 LTS AWS. I tried with t2.large and made sure port inbound 443 is open.

By Martin Galda user 08 Aug 2017 at 8:53 a.m. CDT

Martin Galda gravatar
Thanks for looking into this. I'm using a t2.medium which I don't think should matter... I'll still test with a t2.large and let you know how it goes. I'm sure port 443 is open as I wouldn't be able to reach the page at all otherwise... In the meantime, out of despair, I tried setting the server up with hostname set to it's public IP and the aws-provided DNS name, both with the same result.

By Mohib Zico Account Admin 08 Aug 2017 at 9:08 a.m. CDT

Mohib Zico gravatar
>> In the meantime, out of despair, I tried setting the server up with hostname set to it's public IP and the aws-provided DNS name, both with the same result. We don't need to worry about any public/private IP thing actually; just hit enter. Gluu server script will take it's best suitable one. Regarding hostname, you can use anything like "test.something.com" during installation. After that... map this fake hostname with AWS public IP in your computer's /etc/hosts file.

By Martin Galda user 08 Aug 2017 at 9:35 a.m. CDT

Martin Galda gravatar
So, after some trial and error, I managed to get it to work. I'm just not yet sure what exactly fixed it, so I'll do some investigation and report back with my findings.

By Martin Galda user 08 Aug 2017 at 9:58 a.m. CDT

Martin Galda gravatar
I think I finally found the problem - I was setting the server's public IP in the IP address field. Then, when I "just hit enter" as suggested, it worked. Amazon's DNS as hostname also seems to work just fine. I really don't know why this is an issue, but perhaps mentioning it in the docs might help others avoid it. I also made another, somewhat strange observation: The setup script takes considerably longer to run when the error is present (after it prints "Downloading JCE 1.8 zip file..."). This made testing it quite painful, as I had to wait a long time every time I setup the server. Anyway, thanks for the help, it's greatly appreciated.

By William Lowe user 08 Aug 2017 at 10:04 a.m. CDT

William Lowe gravatar
Thanks, Martin. Do you think you can you make a merge request on the docs with the additions you think would help others avoid this issue? I would review and merge them as appropriate. The source for the installation doc is [here](https://github.com/GluuFederation/docs-ce-prod/blob/3.0.2/3.0.2/source/installation-guide/install.md). Thanks in advance! Will

By Martin Galda user 08 Aug 2017 at 10:32 a.m. CDT

Martin Galda gravatar
I certainly have no problem doing that, but it'll have to wait till tomorrow.

By Markus Falgenhauer user 08 Aug 2017 at 10:32 a.m. CDT

Markus Falgenhauer gravatar
Thanks Martin, that solved my problem! I was also entering the server's public IP in the IP address filed. Now it's working, thanks, Markus

By William Lowe user 08 Aug 2017 at 10:34 a.m. CDT

William Lowe gravatar
> I certainly have no problem doing that, but it'll have to wait till tomorrow. No problem. Thank you!

By Martin Galda user 09 Aug 2017 at 6:37 a.m. CDT

Martin Galda gravatar
So I made a very simple [PR](https://github.com/GluuFederation/docs-ce-prod/pull/29), but I hope it's enough to point this out. Also, just for completeness, I found a mention about this in the Amazon AWS section of [Preparing VM](https://gluu.org/docs/ce/3.0.1/installation-guide/#amazon-aws). I'm not sure if it's the right place for it as it seems to relate to any setup, but I'll leave that for others to decide. Cheers Martin

By William Lowe user 09 Aug 2017 at 8:44 a.m. CDT

William Lowe gravatar
Thanks for your contribution, Martin. We will leave the info in both places just in case.