Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node not included in worker container #362

Open
dampersand opened this issue Sep 16, 2024 · 0 comments
Open

Node not included in worker container #362

dampersand opened this issue Sep 16, 2024 · 0 comments

Comments

@dampersand
Copy link

Using the payroll module and trying to troubleshoot why a payroll column using advanced calculation only returns 0 (note: it's a simple payroll column with an advanced calculation that literally just says "2 + 2").

Found this in the debug logs whenever the advanced calculation runner tries to run:

sh: node: not found

exec'd into the docker container for worker and ran apk add nodejs --update which successfully installed node. Now I'm seeing:

Error: Cannot find module '/var/www/html/core/execute/execute.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:931:15)
    at Function.Module._load (internal/modules/cjs/loader.js:774:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Sure enough, after exec'ing into the container:

/var/www/html # find . -print | grep execute
/var/www/html #
/ # find . -print | grep "execute.js"
/ #

If execute.js literally is not packed into the container, is it safe to assume advanced calculations on payroll just doesn't work anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant