I’m trying to set up Open OnDemand using Kubernetes and Helm. We have a working OnDemand setup using Virtual Machines at our location but we want to make a version that’s packaged in a Helm Chart. Everything seems to be working right but we’ve run into a lot of issues trying to use the Shell application. I can SSH into a node that I want to use just fine with the same user credentials that are in Keycloak using our LDAP server. Yet whenever I try to use the Shell app in the OnDemand portal it redirects me to a page saying “We’re sorry, but something went wrong.”
Error ID: 9d77dcd9
Web application could not be started by the Phusion Passenger application server.
Here’s the output from the /var/log/ondemand-nginx/user/error.log file:
App 5459 output: [2020-11-20 21:51:24 +0000 ] INFO "method=GET path=/pun/sys/dashboard/ format=html controller=DashboardController action=index status=200 duration=17.37 view=6.25" [ N 2020-11-20 21:56:24.9023 5091/T4 age/Cor/CoreMain.cpp:1147 ]: Checking whether to disconnect long-running connections for process 5459, application /var/www/ood/apps/sys/dashboard (production) App 5704 output: internal/modules/cjs/loader.js:638 App 5704 output: throw err; App 5704 output: ^ App 5704 output: App 5704 output: Error: Cannot find module 'pty.js' App 5704 output: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) App 5704 output: at Function.Module._load (internal/modules/cjs/loader.js:562:25) App 5704 output: at Module.require (internal/modules/cjs/loader.js:692:17) App 5704 output: at Module.require (/opt/ood/ondemand/root/usr/share/passenger/helper-scripts/node-loader.js:80:25) App 5704 output: at require (internal/modules/cjs/helpers.js:25:18) App 5704 output: at Object.<anonymous> (/var/www/ood/apps/sys/shell/app.js:6:17) App 5704 output: at Module._compile (internal/modules/cjs/loader.js:778:30) App 5704 output: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) App 5704 output: at Module.load (internal/modules/cjs/loader.js:653:32) App 5704 output: at tryModuleLoad (internal/modules/cjs/loader.js:593:12) [ E 2020-11-20 22:44:27.0440 5091/T1a 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: 3489b4ce Error details saved to: /tmp/passenger-error-t3sWF9.html
Any ideas on how to fix this? We’ve been stuck on this for a long time now. In our VM setup we never hit this error page when using the Shell application. Do you think it could be an issue with using Kubernetes or something to do with passenger?
I really appreciate the help, thanks.