cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HANA 2.0 - di-local-npm-registry: "syntax error: unexpecte d end of file"

draschke
Active Contributor
0 Kudos

Hi,

we have installed SAP HANA 2.0 and had to set our proxy values again. We did it, but if we try build an js-modul, than we get this error.

sh: mc: line 1: syntax error: unexpected end of file
sh: error importing function definition for `mc'


If I check for the log, we get this message:

T:\>xs logs di-local-npm-registry --recent Connected, dumping recent logs for app "di-local-npm-registry" 28.12.16 21:53:15.036 [STG/2] ERR /bin/sh: error importing function definition for `mc' 28.12.16 21:53:15.041 [STG/2] OUT Omitting npm install: node_modules directory is already present 28.12.16 21:53:15.042 [STG/2] OUT Copying SSL CA certificates... 28.12.16 21:53:15.047 [STG/2] ERR /bin/sh: mc: line 1: syntax error: unexpecte d end of file 28.12.16 21:53:15.047 [STG/2] ERR /bin/sh: error importing function definition for `mc' 28.12.16 21:53:15.747 [STG/2] ERR bash: mc: line 1: syntax error: unexpected e nd of file 28.12.16 21:53:15.747 [STG/2] ERR bash: error importing function definition fo r `mc' 28.12.16 21:53:15.751 [STG/2] ERR bash: mc: line 1: syntax error: unexpected e nd of file 28.12.16 21:53:15.751 [STG/2] ERR bash: error importing function definition fo r `mc' 28.12.16 21:53:27.196 [API] OUT Staged application "di-local-npm-registry" usi ng buildpack "sap_nodejs_buildpack" creating droplet 'cb93ddf6-bc0d-4199-9d14-92 016ac0f4a2' (duration 20s). 28.12.16 21:54:07.614 [API] OUT Updated application "di-local-npm-registry" (s tate: STARTED -> STOPPED). 28.12.16 21:54:07.622 [API] OUT Stopping 1 instance(s) of application "di-loca l-npm-registry". 28.12.16 21:54:07.964 [API] OUT Stopped all 1 instance(s) of application "di-l ocal-npm-registry" on Execution Agent hostxxxxx. 28.12.16 21:54:17.068 [API] OUT Updated application "di-local-npm-registry" (s tate: STOPPED -> STARTED). 28.12.16 21:54:17.076 [API] OUT Starting 1 instance(s) of application "di-loca l-npm-registry". 28.12.16 21:54:20.356 [API] OUT Starting new instance '90f69942-dcc4-41e8-94f2 -dc18c14198ca' of application "di-local-npm-registry" (port xxxxxx, index 0). 28.12.16 21:54:24.060 [APP/2-0] ERR bash: mc: line 1: syntax error: unexpecte d end of file 28.12.16 21:54:24.061 [APP/2-0] ERR bash: error importing function definition for `mc' 28.12.16 21:54:24.061 [APP/2-0] ERR /bin/sh: mc: line 1: syntax error: unexpe cted end of file 28.12.16 21:54:24.064 [APP/2-0] ERR /bin/sh: error importing function definit ion for `mc' 28.12.16 21:54:25.774 [APP/2-0] OUT warn --- config file - ........ /executionroot/90f69942-dcc4-41e8-94f2-dc18c14198ca/app/si nopia/config.yaml 28.12.16 21:54:26.250 [APP/2-0] OUT warn --- http address - http://0.0.0.0: 50062/ 28.12.16 21:56:36.000 [RTR] OUT 127.0.0.1 - - to host:44444 "G ET /node-xstest HTTP/1.1" 404 sent 43 in 716 by 00H-90f69942-dcc4-41e8-94f2-dc18 c14198ca 28.12.16 21:56:36.673 [APP/2-0] OUT http --> 404, req: 'GET http://registry .npmjs.org/node-xstest', bytes: 0/2 28.12.16 21:56:36.688 [APP/2-0] OUT http <-- 404, user: undefined, req: 'GE T /node-xstest', error: no such package available

Any ideas?

draschke
Active Contributor
0 Kudos

Staging:

Staging app "di-local-npm-registry"...
   ERR   bash: mc: line 1: syntax error: unexpected end of file
   ERR   bash: error importing function definition for `mc'
   ERR   /bin/sh: mc: line 1: syntax error: unexpected end of file
   ERR   /bin/sh: error importing function definition for `mc'
   ERR   bash: mc: line 1: syntax error: unexpected end of file
   ERR   bash: error importing function definition for `mc'
   ERR   bash: mc: line 1: syntax error: unexpected end of file
   ERR   bash: error importing function definition for `mc'
   ERR   bash: mc: line 1: syntax error: unexpected end of file
   ERR   bash: error importing function definition for `mc'
   OUT   Node.js
   ERR   bash: mc: line 1: syntax error: unexpected end of file
   ERR   bash: error importing function definition for `mc'
   ERR   bash: mc: line 1: syntax error: unexpected end of file
   ERR   bash: error importing function definition for `mc'
   OUT   Node.js buildpack version 3.2.3
   OUT   Avoid using semver ranges like '*' in engines.node
   OUT   Available Node.js runtimes: node6.9,node4.6
   OUT   Npm install not needed - attempting partial runtime download
   OUT   Downloading Node.js...
   OUT   Unpacking Node.js archive...
   ERR   /bin/sh: mc: line 1: syntax error: unexpected end of file
   ERR   /bin/sh: error importing function definition for `mc'
   OUT   Omitting npm install: node_modules directory is already present
   OUT   Copying SSL CA certificates...
   ERR   /bin/sh: mc: line 1: syntax error: unexpected end of file
   ERR   /bin/sh: error importing function definition for `mc'
   ERR   bash: mc: line 1: syntax error: unexpected end of file
   ERR   bash: error importing function definition for `mc'
   ERR   bash: mc: line 1: syntax error: unexpected end of file
   ERR   bash: error importing function definition for `mc'
Showing status and information about "di-local-npm-registry"
  name:              di-local-npm-registry
  requested state:   STARTED
  instances:         1
  memory:            1,00 GB
  disk:              <unlimited>
  buildpack:         <default>

Accepted Solutions (0)

Answers (1)

Answers (1)

draschke
Active Contributor
0 Kudos

Problem is solved.

On the hana machine were a lot of files, inclusive a mc file, which caused this error. After an restart of the hana db were all files cleared and the problem was fixed.

Thanks!

0 Kudos

Hi Dirk,

I got error to build my MTA application due to Nodejs module dependency on npm registry, I just realize we need to configure proxy. Can you share the details how to proceed this?

Thanks,

Daniel