cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot deploy app to SAP Cloud Platform from WebIDE

Richie
Product and Topic Expert
Product and Topic Expert

Hi,

I'm following the learning plan here: https://learning.sap.com/learning-journey/developing-with-sap-extension-suite/deploy-manually and I am facing issues.

When running cf push to push the app to my trial account. I'm getting the following errors.

npm ERR! code ENOTFOUND

npm ERR! syscall getaddrinfo

npm ERR! errno ENOTFOUND

npm ERR! network request to http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/yallist/-/yallis... failed, reason: getaddrinfo ENOTFOUND nginx-redirector.repo-cache.svc.cluster.local

npm ERR! network This is a problem related to network connectivity.

npm ERR! network In most cases you are behind a proxy or have bad network settings.

npm ERR! network

npm ERR! network If you are behind a proxy, please make sure that the

npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:

npm ERR! /tmp/cache/final/.npm/_logs/2021-12-16T10_59_15_309Z-debug.log

**ERROR** Unable to build dependencies: exit status 1

Failed to compile droplet: Failed to run all supply scripts: exit status 14

Exit status 223

Cell cfeb172d-f2c7-42d1-a157-58148983025c stopping instance 6a8d2f73-d181-4569-b51b-03b4c12a79b6

Cell cfeb172d-f2c7-42d1-a157-58148983025c destroying container for instance 6a8d2f73-d181-4569-b51b-03b4c12a79b6

BuildpackCompileFailed - App staging failed in the buildpack compile phase

FAILED

I am sure that I have no network issues as the errors suggests. Can anyone shed some light on this?

Richie

VVancalbergh
Contributor

You are using the wrong tag, this question is not related to SAP Cloud Applications Studio. Maybe SAP Cloud Studio? (not the same thing)

Dino
Explorer
0 Kudos

Hi Richie,

I have a similar problem with my project since last week when pushing my service to CF.

network request to http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/node-bin-setup/-... failed, reason: getaddrinfo ENOTFOUND nginx-redirector.repo-cache.svc.cluster.local

I can still build the MTA and deploy this. So I have a workaround. But it is much faster to just deploy the changes of a part (e.g. the service)


Did you find any solution?

Best Regards,
Dino

Richie
Product and Topic Expert
Product and Topic Expert

Hi Dino,

No I still have not found a resolution. I have raised the issue here: https://groups.community.sap.com/t5/sap-btp-learning/code-snippets-for-the-quot-developing-with-sap-...

Maybe you could also comment on that blog as I did get an initial response.

Thanks,

Richie

minjie_lao
Product and Topic Expert
Product and Topic Expert
0 Kudos

i also facing the same issue when deploying my MTA file from Business application studio.

View Entire Topic
tomjohn_br
Explorer

Hi everyone,

I was facing the same issue and I solved it by changing the address from http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/ to https://registry.npmjs.org/ in the package-lock.json file.

I.e.

from: http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/passport/-/passp...

to: https://registry.npmjs.org/passport/-/passport-0.6.0.tgz

I have executed the command cds build --production and cf push after that and it worked.

I hope it helps.

SumiKang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @tomjohn.br, Thanks for your comment.

I have one question. I changed all code in the package-lock.json file like under.


After that, I built my MTA file and deployed it, but I was still stuck in the same error. Can you help me?

Staging application "btpdms-fiori-approuter"...<br>Error staging application "btpdms-fiori-approuter": BuildpackCompileFailed - App staging failed in the buildpack compile phase<br>Download the application logs via the dmol command and check them for more information.<br>A step of the process has failed. Retrying it may solve the issue.<br>Process failed.