By: Martin Petri user 27 May 2019 at 5:41 a.m. CDT

2 Responses
Martin Petri gravatar
Hi. After being redirected from github passport.log reports: 2019-05-27T09:43:48+0000 [INFO] ::ffff:127.0.0.1 - - [27/May/2019:09:43:48 +0000] "GET /passport/token HTTP/1.1" 200 201 "-" "Apache-HttpClient/4.5.3 (Java/1.8.0_181)" 2019-05-27T09:43:48+0000 [INFO] ::ffff:127.0.0.1 - - [27/May/2019:09:43:48 +0000] "GET /passport/auth/github/eyJ... HTTP/1.1" 302 0 "https://gluu2.awi.de/oxauth/auth/passport/passportlogin.htm" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36" **2019-05-27T09:44:13+0000 [ERROR] Unknown Error: Error: getaddrinfo EAI_AGAIN github.com:443** 2019-05-27T09:44:13+0000 [DEBUG] InternalOAuthError: Failed to obtain access token at Strategy.OAuth2Strategy._createOAuthError (/opt/gluu/node/passport/node_modules/passport-oauth2/lib/strategy.js:379:17) github.js ist seems not to be triggered so far. Currently I don't have an idea what to investigate next... :-| Thx for your help! Martin

By Jose Gonzalez staff 27 May 2019 at 7:29 a.m. CDT

Jose Gonzalez gravatar
HI, It means the machine where passport is installed cannot reach `github.com:443` (more exactly the Gluu chroot container). Probably, it does not have internet access. Try `wget https://github.com`... it will fail.

By Martin Petri user 27 May 2019 at 8:02 a.m. CDT

Martin Petri gravatar
Thx, solved! :-) I renamed the symbolic link /opt/gluu-server-3.1.6/etc/resolv.conf and created a new file /opt/gluu-server-3.1.6/etc/resolv.conf containing a nameserver reachable by gluu-server.