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
Request clarification before answering.
i still have the same issue, and also tried to add .npmrc file to change the url in package-lock.json, but seems the npm install is NOT modifying the url from "http://nginx-redirector.repo-cache.svc.cluster.local/repository/ to https://registry.npmjs.com/.
Does anyone now how to solve the issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Finally, i solved the issue by manually updating the all URLs (http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/) to https://registry.npmjs.com/ in package-lock.json of project root folder
then rebuild mtar file, my application is deployed to BTP successfully.
As above comments, seems the repo-cache url was not working properly, BTP is not able to download the packages against the url.
Hope the eng team can fix it.
one more hints, if rebuilding the manually update url plus rebuild the mtar file is not working.
If you building your project in Business application stuido.
Download the generated mtar file to your local machine, change the extension 'mtar' to 'rar' then update the package-lock.json file of xxxx-srv folder manually. then upload / replace the mtar file in BAS
Sometimes, rebuilding the mtar file, BAS will overwrite the url again.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.