on 2022 Apr 22 5:55 PM
Hi all,
I'm executing CF Push command in terminal to push app into BTP CF repository, but I'm getting this error when cf push command is executed.
Both risk-management-srv and risk-management-db-deployer are to be pushed at once.
I've run cf logs risk-management --recent and the error message says: 'Unable to require require package/file.json "passport". However, I'd already installed passport module by npm i passport. furthermore, the package-lock.json had been deleted and re-run npm install.
Could anyone provide me any assistance, please?
Best regards
Bruno Franzini
Request clarification before answering.
Just found out the resolution...
I've just run the following commands in the sequence:
Problem is solved.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have published sap/cds 5.9.4, which 'fixes' the issue by only emitting a warning in case of a missing xsuaa binding. Also, it adds better error messages in case of missing dependencies like 'passport'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Again, I ran cf push in one terminal windows, while other was running cf logs risk-management-srv, again the only error is a message mentioning error to require package/file "passaport". Therefore, I've run npm install -g npm@8.7.0 and npm install passport. The issue remains existing.
Regarding quote size, I increased it, but it doesn't seem to be a issue owing to ist used amount.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you limit the memory use of the service to 256M? That might be a little low for a nodejs CAP service.
Have a look at the logs while you are pushing it. it looks like your apps are already created.
Open another command line window and use `cf logs risk-management-srv`. Leave that open. Go back to your first window and try the push again. The log output should tell you why the push crashed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi martin.stenzig3 ,
I'd executed cf login successfully just a few seconds before runnung cf push command. Neither cf login in terminal nor the menu shortcut View -> Find Command ... -> CF: Login to Cloud Foundry returned any error. Therefore, I've also tried cf push indiviually cf push risk-management-srv and cf push risk-management-db-deployer, but no success at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you actually login or did your login token expire? try cf login again and then do the push one more time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.