Hi all,
I have install XSA runtime in SPS11, and login with xs_admin in client. I can deploy the simple Node.js application (“myapp1”) to the XSA runtime according to the SAP HANA Developer Guide For SAP HANA XS Advanced Model. but when I access the URL https://hostname:port in browser, it return a 500 error.
when I execute the xs logs myapp1-web --recent, it shows as below. how can I solve this issue?
Connected, dumping recent logs for app "myapp1-web"
4/25/16 5:43:50.928 PM [APP/0] LOG #2.0#2016 04 25 17:43:50:928#+08:00#ERROR#/
Handler###############inftgr08#PLAIN##Error, status: 500 Failed to obtain access
token: /login/callback#
4/25/16 5:43:50.930 PM [APP/0] LOG #2.0#2016 04 25 17:43:50:930#+08:00#ERROR#/
Handler###############inftgr08#PLAIN##{ [InternalOAuthError: Failed to obtain ac
cess token]
4/25/16 5:43:50.930 PM [APP/0] LOG name: 'InternalOAuthError',
4/25/16 5:43:50.930 PM [APP/0] LOG message: 'Failed to obtain access token',
4/25/16 5:43:50.930 PM [APP/0] LOG oauthError: { [Error: tunneling socket co
uld not be established, cause=Parse Error] code: 'ECONNRESET' } }#
4/25/16 5:43:51.000 PM [RTR] OUT 10.128.19.107 - - to bj50807814:39605 "GET /
favicon.ico HTTP/1.1" 302 sent 0 in 5 by 008-c5c0f898-2596-4c48-804a-2805b16d075
5
4/25/16 5:43:51.000 PM [RTR] OUT 10.128.19.107 - - to bj50807814:39605 "GET /
login/callback?code=qOPwY3 HTTP/1.1" 500 sent 21 in 474 by 008-c5c0f898-2596-4c4
8-804a-2805b16d0755
4/25/16 5:43:51.000 PM [APP/0] TRC /node_modules/approuter/lib/middleware/err
or-handler.js:10 [inftgrls] ERROR: Error, status: 500 Failed to obtain access to
ken: /login/callback
4/25/16 5:43:51.000 PM [APP/0] TRC /node_modules/approuter/lib/middleware/err
or-handler.js:11 [inftgrls] ERROR: Error: tunneling socket could not be establis
hed, cause=Parse Error
4/25/16 5:43:51.000 PM [APP/0] TRC InternalOAuthError: Failed to obtain access
token
4/25/16 5:43:51.000 PM [APP/0] TRC at OAuth2Strategy._createOAuthError (/h
ana/shared/HD5/xs/ea_data/bj50807814/executionroot/c5c0f898-2596-4c48-804a-2805b
16d0755/app/node_modules/approuter/node_modules/sap-passport-oauth2/lib/strategy
.js:348:17)
4/25/16 5:43:51.000 PM [APP/0] TRC at /hana/shared/HD5/xs/ea_data/bj508078
14/executionroot/c5c0f898-2596-4c48-804a-2805b16d0755/app/node_modules/approuter
/node_modules/sap-passport-oauth2/lib/strategy.js:171:43
4/25/16 5:43:51.000 PM [APP/0] TRC at /hana/shared/HD5/xs/ea_data/bj508078
14/executionroot/c5c0f898-2596-4c48-804a-2805b16d0755/app/node_modules/approuter
/node_modules/sap-passport-oauth2/node_modules/sap-oauth/lib/oauth2.js:108:18
4/25/16 5:43:51.000 PM [APP/0] TRC at Request._callback (/hana/shared/HD5/
xs/ea_data/bj50807814/executionroot/c5c0f898-2596-4c48-804a-2805b16d0755/app/nod
e_modules/approuter/node_modules/sap-passport-oauth2/node_modules/sap-oauth/lib/
oauth2.js:79:7)
4/25/16 5:43:51.000 PM [APP/0] TRC at self.callback (/hana/shared/HD5/xs/e
a_data/bj50807814/executionroot/c5c0f898-2596-4c48-804a-2805b16d0755/app/node_mo
dules/approuter/node_modules/request/request.js:368:22)
4/25/16 5:43:51.000 PM [APP/0] TRC at Request.emit (events.js:107:17)
4/25/16 5:43:51.000 PM [APP/0] TRC at Request.onRequestError (/hana/shared
/HD5/xs/ea_data/bj50807814/executionroot/c5c0f898-2596-4c48-804a-2805b16d0755/ap
p/node_modules/approuter/node_modules/request/request.js:1025:8)
4/25/16 5:43:51.000 PM [APP/0] TRC at ClientRequest.emit (events.js:107:17
)
4/25/16 5:43:51.000 PM [APP/0] TRC at ClientRequest.onError (/hana/shared/
HD5/xs/ea_data/bj50807814/executionroot/c5c0f898-2596-4c48-804a-2805b16d0755/app
/node_modules/approuter/node_modules/request/node_modules/tunnel-agent/index.js:
176:21)
4/25/16 5:43:51.000 PM [APP/0] TRC at ClientRequest.g (events.js:199:16)
4/25/16 5:43:51.698 PM [APP/0] LOG #2.0#2016 04 25 17:43:51:698#+08:00#ERROR#/
Handler###############inftgrls#PLAIN##Error, status: 500 Failed to obtain access
token: /login/callback#
4/25/16 5:43:51.700 PM [APP/0] LOG #2.0#2016 04 25 17:43:51:700#+08:00#ERROR#/
Handler###############inftgrls#PLAIN##{ [InternalOAuthError: Failed to obtain ac
cess token]
4/25/16 5:43:51.700 PM [APP/0] LOG name: 'InternalOAuthError',
4/25/16 5:43:51.700 PM [APP/0] LOG message: 'Failed to obtain access token',
4/25/16 5:43:51.700 PM [APP/0] LOG oauthError: { [Error: tunneling socket co
uld not be established, cause=Parse Error] code: 'ECONNRESET' } }#