8000 Shell app not working in Amazon Linux 2023 · Issue #4409 · OSC/ondemand · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Shell app not working in Amazon Linux 2023 #4409

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

Open
jaguillette opened this issue Jun 5, 2025 · 4 comments
Open

Shell app not working in Amazon Linux 2023 #4409

jaguillette opened this issue Jun 5, 2025 · 4 comments

Comments

@jaguillette
Copy link

I'm experiencing something similar to issue #3895, but in Amazon Linux 2023. Here's the output from nginx logs:

App 486034 output: innerError Error: Cannot find module '../build/Debug/pty.node'
App 486034 output: Require stack:
App 486034 output: - /var/www/ood/apps/sys/shell/node_modules/node-pty/lib/unixTerminal.js
App 486034 output: - /var/www/ood/apps/sys/shell/node_modules/node-pty/lib/index.js
App 486034 output: - /var/www/ood/apps/sys/shell/app.js
App 486034 output: - /opt/ood/ondemand/root/usr/share/passenger/helper-scripts/node-loader.js
App 486034 output:     at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
App 486034 output:     at Module._load (node:internal/modules/cjs/loader:1043:27)
App 486034 output:     at Module.require (node:internal/modules/cjs/loader:1298:19)
App 486034 output:     at Module.require (/opt/ood/ondemand/root/usr/share/passenger/helper-scripts/node-loader.js:80:25)
App 486034 output:     at require (node:internal/modules/helpers:182:18)
App 486034 output:     at Object.<anonymous> (/var/www/ood/apps/sys/shell/node_modules/node-pty/lib/unixTerminal.js:34:15)
App 486034 output:     at Module._compile (node:internal/modules/cjs/loader:1529:14)
App 486034 output:     at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
App 486034 output:     at Module.load (node:internal/modules/cjs/loader:1275:32)
App 486034 output:     at Module._load (node:internal/modules/cjs/loader:1096:12) {
App 486034 output:   code: 'MODULE_NOT_FOUND',
App 486034 output:   requireStack: [
App 486034 output:     '/var/www/ood/apps/sys/shell/node_modules/node-pty/lib/unixTerminal.js',
App 486034 output:     '/var/www/ood/apps/sys/shell/node_modules/node-pty/lib/index.js',
App 486034 output:     '/var/www/ood/apps/sys/shell/app.js',
App 486034 output:     '/opt/ood/ondemand/root/usr/share/passenger/helper-scripts/node-loader.js'
App 486034 output:   ]
App 486034 output: }
App 486034 output: /var/www/ood/apps/sys/shell/node_modules/node-pty/lib/unixTerminal.js:40
App 486034 output:         throw outerError;
App 486034 output:         ^
App 486034 output:
App 486034 output: Error: /var/www/ood/apps/sys/shell/node_modules/node-pty/build/Release/pty.node: undefined symbol: _ZN2v88internal20CanHaveInternalFieldEi
App 486034 output:     at Module._extensions..node (node:internal/modules/cjs/loader:1651:18)
App 486034 output:     at Module.load (node:internal/modules/cjs/loader:1275:32)
App 486034 output:     at Module._load (node:internal/modules/cjs/loader:1096:12)
App 486034 output:     at Module.require (node:internal/modules/cjs/loader:1298:19)
App 486034 output:     at Module.require (/opt/ood/ondemand/root/usr/share/passenger/helper-scripts/node-loader.js:80:25)
App 486034 output:     at require (node:internal/modules/helpers:182:18)
App 486034 output:     at Object.<anonymous> (/var/www/ood/apps/sys/shell/node_modules/node-pty/lib/unixTerminal.js:29:11)
App 486034 output:     at Module._compile (node:internal/modules/cjs/loader:1529:14)
App 486034 output:     at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
App 486034 output:     at Module.load (node:internal/modules/cjs/loader:1275:32) {
App 486034 output:   code: 'ERR_DLOPEN_FAILED'
App 486034 output: }
App 486034 output:
App 486034 output: Node.js v20.19.1
[ E 2025-06-04 20:21:24.7788 481707/T1f age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/ood/apps/sys/shell: The application process exited prematurely.
  Error ID: 06bb81d4
  Error details saved to: /tmp/passenger-error-J7yd2s.html

[ E 2025-06-04 20:21:24.7819 481707/Tf age/Cor/Con/CheckoutSession.cpp:282 ]: [Client 4-4] Cannot checkout session because a spawning error occurred. The identifier of the error is 06bb81d4. Please see earlier logs for details about the error.

We're installing from https://yum.osc.edu/ondemand/4.0/ondemand-release-web-4.0-1.amzn2023.noarch.rpm

I'm not seeing an obvious error in the dfn.rpm.log file, but I can provide it if need be (too long to paste in directly).

@osc-bot osc-bot added this to the Backlog milestone Jun 5, 2025
@johrstrom
Copy link
Contributor

Same issue as this discourse topic:

https://discourse.openondemand.org/t/error-launching-shell-in-4-0-3/4255/3

I believe it's because you have node 20 installed, when we built against node 18. @treydock I wonder if we need to cap the node version?

@jaguillette
Copy link
Author

Oh, okay. I'm using the AWS samples repo of OOD in AWS parallel cluster that Doug wrote, so I'll follow up with him on specifics for a fix. Thanks!

@johrstrom
Copy link
Contributor

Oh, okay. I'm using the AWS samples repo of OOD in AWS parallel cluster that Doug wrote, so I'll follow up with him on specifics for a fix. Thanks!

I think if you just install nodejs 18 instead of nodejs 20 it should start working.

@jaguillette
Copy link
Author

Yep, that did it. Specifically, in our OOD installation script, adding these lines after the OOD install should do the trick:

# Fix for node-pty module compatibility issues
dnf install gcc-c++ make nodejs-devel -y -q
cd /var/www/ood/apps/sys/shell
npm rebuild node-pty
cd -

This is from https://github.com/aws-samples/open-on-demand-on-aws/blob/main/scripts/install_ood.sh#L17-L21

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

No branches or pull requests

4 participants
0