Skip to content

fix: source nvm in chemuxer postStart to find node binary - #2180

Merged
akurinnoy merged 1 commit into
mainfrom
fix/chemuxer-node-path
Aug 11, 2026
Merged

akurinnoy merged 1 commit into
mainfrom
fix/chemuxer-node-path

Conversation

@akurinnoy

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes chemuxer editor failing to start when selected from the dashboard. The start-chemuxer-command postStart runs node to launch the server, but node is not in PATH inside UDI's contributed container. Wrapping the command in bash -c 'source $HOME/.nvm/nvm.sh && ...' makes the node binary available.

Root cause

  • The chemuxer editor definition uses a postStart exec command to start node /chemuxer-vol/dist/server/server.js
  • When the chemuxer-runtime component is merged into UDI via container contribution, the exec runs inside UDI's shell environment
  • UDI installs node via nvm, which requires sourcing $HOME/.nvm/nvm.sh to add node to PATH
  • Without sourcing nvm, the command fails silently: nohup: failed to run command 'node': No such file or directory

How to test this PR

  1. Deploy the operator with this change
  2. Create a workspace from the dashboard selecting "Chemuxer" as editor
  3. Verify the workspace reaches Running and chemuxer UI loads on port 7681

Validated on

  • Dogfooding cluster (che-dev.x6e0.p1.openshiftapps.com)
  • Patched the DevWorkspaceTemplate directly, workspace started successfully with chemuxer listening on 7681

PR Checklist

  • The Eclipse Contributor Agreement is valid
  • Code produced is complete
  • Code builds without errors

The chemuxer editor's postStart command runs `node` to start the
server, but `node` is not in PATH when the command executes inside
UDI's contributed container. Source nvm first so the node binary
is available.

Assisted-by: Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Oleksii Kurinnyi <[email protected]>
@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: akurinnoy, tolusha

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@akurinnoy
akurinnoy merged commit 47ff1e5 into main Aug 11, 2026
21 checks passed
@akurinnoy
akurinnoy deleted the fix/chemuxer-node-path branch August 11, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants