Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Server Error while log-in with Keyrock on APInf #3727

Open
Madhu-NEC opened this issue Mar 14, 2019 · 2 comments
Open

Internal Server Error while log-in with Keyrock on APInf #3727

Madhu-NEC opened this issue Mar 14, 2019 · 2 comments
Assignees

Comments

@Madhu-NEC
Copy link

I tried integrating Keyrock with APInf using Configue with Fiware button on APInf homepage.
The installation of APInf is done using docker-compose.

Steps followed to configure Keyrock with APInf:

  1. Sign up on Keyrock.
  2. Created an application(APInf) on Keyrock (Using account other than admin).
  3. Got the Client_ID and Client_Secret.
  4. Go to APInf click on Configure with Fiware, enter the IDM url, client_id and client_secret.
  5. Select Pop-Up based login and save configurations.
  6. Click on Sign in with Fiware, enter the email and password.
  7. On APInf it says "Internal Server Error".

I am using apinf/api-umbrella:0.15.0-apinf2 docker image for API-Umbrella and apinf/platform:0.58.0 docker image for APInf.

I am not able to login with Keyrock user except admin.

Below are the error logs for the same:

at Object.EJSON.clone (packages/ejson/ejson.js:594:18)
at cloneAttemptWithConnection (packages/accounts-base/accounts_server.js:130:29)
at packages/accounts-base/accounts_server.js:139:22
at [object Object]._.extend.each (packages/callback-hook.js:128:15)
at AccountsServer.Ap._validateLogin (packages/accounts-base/accounts_server.js:136:27)
at AccountsServer.Ap.attemptLogin (packages/accounts-base/accounts_server.js:342:8)
at [object Object].methods.login (packages/accounts-base/accounts_server.js:530:21)
at [object Object].methodMap.(anonymous function) (apinf_packages/core/capture_exception/server/wrap_meteor_methods.js:17:30)
at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1768:12)
at packages/ddp-server/livedata_server.js:719:19
at [object Object].EVp.withValue (packages/meteor.js:1135:15)
at packages/ddp-server/livedata_server.js:717:46
at [object Object].EVp.withValue (packages/meteor.js:1135:15)
at packages/ddp-server/livedata_server.js:715:46
at [object Object].
.extend.protocol_handlers.method (packages/ddp-server/livedata_server.js:689:23)
at packages/ddp-server/livedata_server.js:559:43
{"line":"431","file":"oauth.js","message":"Error in OAuth Server: getTokens error. Failed to complete OAuth handshake with FIWARE IdM. failed [500] {"error":"invalid_argument"}","time":{"$date":1552471925317},"level":"warn"}
Exception while invoking method 'login' Error: getTokens error. Failed to complete OAuth handshake with FIWARE IdM. failed [500] {"error":"invalid_argument"}
at getTokens (packages/apinf:fiware/fiware_server.js:143:20)
at Object.handleOauthRequest (packages/apinf:fiware/fiware_server.js:49:20)
at OAuth._requestHandlers.(anonymous function) (packages/oauth2.js:27:31)
at middleware (packages/oauth.js:203:5)
at packages/oauth.js:176:5
Exception while invoking method 'login' RangeError: Maximum call stack size exceeded
at isArguments (/opt/meteor/dist/bundle/programs/server/npm/node_modules/meteor/es5-shim/node_modules/es5-shim/es5-shim.js:1037:16)
at Function.keys (/opt/meteor/dist/bundle/programs/server/npm/node_modules/meteor/es5-shim/node_modules/es5-shim/es5-shim.js:1100:17)
at Object.EJSON.clone (packages/ejson/ejson.js:594:10)
at packages/ejson/ejson.js:575:33
at Array.map (native)
at Object.EJSON.clone (packages/ejson/ejson.js:575:14)
at packages/ejson/ejson.js:595:22
at Array.forEach (native)

@Madhu-NEC
Copy link
Author

I have also tried the Sign-in with Fiware on https://apinf.io/sign-in. There also i got the same Internal server error.

issue_internal_server_error_apinfio

@ilarimikkonen ilarimikkonen self-assigned this Mar 19, 2019
@ilarimikkonen
Copy link
Member

Hi,

I think this is related to this: https://github.com/apinf/platform/pull/3663/files

@madhu2910 could you please try the following:

instead 0.58.0. pull the "latest" docker image for platform

OR

  • pull latest develop (git clone https://github.com/apinf/platform.git) or 0.58.0 if you prefer
  • cd to the platform folder, run "meteor npm install"
  • run "meteor update apinf:fiware"
  • check that the .meteor/versions file is changed so that
    apinf:[email protected] is changed to apinf:[email protected]
  • run "meteor" to see that platform starts and verify with browser (localhost:3000)

if you want to work with containers, in addition to this you need to

  • kill that meteor task
  • do a local docker image: "build docker build -t apinf/platform:latest ."
  • modify docker-compose.yml so that it uses locally build image
  • do "docker-compose up" normally
  • try to login with fiware login.

There was a change in the keyrock code this should help. This is then fixed in the new release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants