-
Notifications
You must be signed in to change notification settings - Fork 29
Node applications go into Crashloop #317
Comments
That's success, it did exactly what the stack template is coded to do: https://github.com/kabanero-io/collections/blob/master/incubator/nodejs/templates/simple/app.js, log a friendly greeting, and exit. Where are you seeing a crash loop? I read all your logs, and see no loop. The message is understandably disconcerting, and it appears that whoever forked the kabanero stacks from appsody is using (perhaps inadvertently?) a mixture of RedHat and appsody conventions on where the app src is. I did an
A couple things to note: npm is trying to create /opt/app-root/src/.config, but lacks perms. NPM_CONFIG_PREFIX is set to /opt/app-root/src, perhaps because HOME is set to /opt/app-root/src in the base images (not the collections), or perhaps because of #306? I'm not an expert on RH images, but I think its expected that the app be installed in $HOME, and that would be /opt/app-root/src for UBI/node, might want to consider doing that. Also, updating npm, as #306 does, probably makes the stack uncertifiable by RedHat. |
Describe the bug
Creating a template application with no changes to the source goes in to a crash loop backoff.
To Reproduce
Steps to reproduce the behavior:
Hello from Node.js 12!
┌───────────────────────────────────────────────────────────────┐$USER:$ (id -gn $USER) /opt/app-root/src/.config │
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R
└───────────────────────────────────────────────────────────────┘
As it goes in the crash loop
,
Expected behavior
A clear and concise description of what you expected to happen.
The application to run without the loop
Actual behaviour
What is the actual behaviour.
crashloop
Environment Details (please complete the following information):
fyre, OCP 4.3.0, Kabanero 0.7.0, nodejs stack 0,3,3.
If applicable please specify:
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The following zip file contains app, build log, and runtime log.
NodeProblem.zip
The text was updated successfully, but these errors were encountered: