Closed sofGitAdmin closed 6 years ago
This is my api management gravitee.yml content : gravitee.txt
I'm trying to authentify with in memory users (admin , user ...).
Same problem here with Docker on Windows and the official docker-compose files
hi, please provide the full gravitee.log file
Hi, I attached the logfile and gravitee.yml. Nothing was changed in the yml.
Hello @Sebbl22
Please remove existing Docker images for Gravitee.io and run docker-compose up again.
Thanks for your feedback.
Hi @brasseld , I ran docker-compose rm, deleted all three graviteeio/* images and created new containers (docker-compose up). Unfortunately I recieve the same error. One change I noticed was, that I now get a notification in the bottom right corner of the management-ui login screen stating "Cannot pass null or empty values to constructor " when trying to login. This notification hasn't been there before. Note: This only happens if I try to login with a valid username/password combination like admin:admin or user:password. If I try invalid combinations I recieve the correct "wrong username or password" notiication.
Here is the new gravitee.log file. gravitee.log
Since there was a comment (which is now deleted) stating that this issue (https://golb.hplar.ch/2017/10/JCE-policy-changes-in-Java-SE-8u151-and-8u152.html) might be related, I also updated the java version inside the container to 8u172 and changed the crypto.policy to "unimited" in the java.security file. Gravitee startet just fine and reported the new HotSpot 64-Bit Server VM/25.172 version in the gravitee.log file, but the execption still remained. If relevant, I can upload the gravitee.log file for this experiment as well.
Thank you for your help.
Can you try to remove docker volume used for mongodb and restart the stack ? There is absolutely no reason for this issue so I would be sure that you are running Gravitee from scratch.
Also please check that cookies / has been clean up for the Gravitee portal.
Thanks again
I completely removed all docker container and images, pulled them again and startet them. It didn't work either. After that I deleted all cookies for localhost in Firefox and it worked. I'm not sure how this could have happened, but I can login now without problems.
Thank you for your help and advice.
Hi guys,
Any news about this issue ?
Hi, as I wrote, the issue was resolved by deleting all cookies for localhost. As far as I know cookies are only domain-specifiy (not considering ports). I tested some other docker containers (especially SonarQube) at the same time, so maybe there were some existing cookies with identical names but unexpected values.
The issue can be considered resolved / closed for me.
Ok, thanks for your feedback @Sebbl22
08:01:53.739 [gravitee-listener-27] ERROR i.g.m.rest.provider.ThrowableMapper - Internal error
java.lang.IllegalArgumentException: Cannot pass null or empty values to constructor
at org.springframework.security.core.userdetails.User.
hi @ynuosoft , what is the link between the current issue and your comment ?
fter deploying gravitee using the docker-compose example, when accessing the portal, I get this error from my browser developer console
Request URL:http://xxxxxx:8083/management/user/ Request Method:GET Status Code:500 Internal Server Error Remote Address: Referrer Policy:no-referrer-when-downgrade
and the response payload was
{ "message" : "Cannot pass null or empty values to constructor", "http_status" : 500 }
Expected Behavior No 500 error.
Current Behavior 500 error
Possible Solution Probably the portal should be GETing the /users/ resource? normally this kind of erro is generated when credentials in DB are empty ??
Steps to Reproduce (for bugs) install service using docker-compose.yml provided at gravitee site access the portal Context Trialing the solution
Your Environment Version used: official gravitee docker image:latest Browser Name and version: chrome Version 62.0.3202.75 Operating System and version: docker latest version running on Ubuntu