Prevent the nodejs applications restarting on every Chef run #5
Closed
opened 2019-01-02 22:16:42 +00:00 by greg
·
7 comments
No Branch/Tag Specified
Labels
Clear labels
monitoring
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
service
discourse
Kosmos Community Forums
Infrastructure metrics, alerts, notifications, etc.
service
accounts
Kosmos Accounts
service
drone-ci
Kosmos Drone CI
service
email
mail.kosmos.org
service
garage
S3-compatible object storage
service
gitea
Kosmos Gitea
service
ipfs
Kosmos IPFS
service
mastodon
kosmos.social
service
nostr
Relays, Blossom server, etc.
service
postgres
Database cluster
service
remotestorage
Portable data storage for the Web
service
wiki
Kosmos Wiki
service
xmpp
Kosmos Chat
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
release
major
release
minor
release
patch
All your base are belong to us
User interface, process design, etc.
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/chef#5
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
It is the
application_npm_installresources that are causing the nodejs services to be restarted on every Chef runI have reported the issue upstream: https://github.com/poise/poise-javascript/issues/9 but no response. We need to find a way to use this unreleased version that fixes it (it's distributed as a gem that's a dependency in the application_javascript cookbook)
It would seem that
poise-javascriptis dead now.All the application/poise projects are dead, the maintainer isn't working on them anymore. I'm currently taking a look at Chef's new app build/deployment/management system, Habitat, that looks very interesting: https://www.habitat.sh
I have started from the unreleased master branch of poise-javascript (
rake chef:build). That includes a change that supports the new behavior ofnpm install, writing "up to date" to stdout when no changes have been performed.However,
npm installnow runs security auditing by default, even with the--productionswitch, so even the newer version of poise-javascript still causes the service to restartI have then added the
--no-auditswitch to prevent the service from restart at every run, caused by the output of thenpm installcommand missing the "up to date" string, and pushed that to a new repo: https://github.com/67P/poise-javascript/commit/d85078fe59bd4f16d05a9ffe6e0fc449015e4440.I'm going to do a PR to use that repo in our Berksfile, that works great in a VM
This happened again just now. I changed an env var for hal8000, but botka still restarted.
It can be any of the resources inside of the application resource, I'm checking what's causing it
I can't reproduce the issue in a VM, but I can confirm it still happens on barnard. Subresources of the application resource aren't updating, but still the service restarts. Logs:
Not high priority, to investigate more later
This is not an issue anymore, confirmed after working on #104 and running Chef multiple times