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

Passenger Apps not working #3082

Closed
btsherid opened this issue Sep 27, 2023 · 5 comments
Closed

Passenger Apps not working #3082

btsherid opened this issue Sep 27, 2023 · 5 comments
Milestone

Comments

@btsherid
Copy link

btsherid commented Sep 27, 2023

Hi,

I have two OnDemand servers, both running 3.0.1. One is CentOS 7 and one is Rocky 9.

On the CentOS 7 install, the passenger app works fine and displays a table. I copied the app to the Rocky 9 host and it does not error, but it does not display a table. It looks like maybe the loop in views/index.erb is not actually pulling data from the struct?

Working app on Centos 7:
image

What I get on Rocky 9 with the same app:

image

@osc-bot osc-bot added this to the Backlog milestone Sep 27, 2023
@treydock
Copy link
Contributor

Does that sacct command on Rocky 9 return expected and same output as CentOS 7 when run as the user you logged in as?

@btsherid
Copy link
Author

Yes, I ran a diff between the CentOS 7 and Rocky 9 outputs and they are the same.

@btsherid
Copy link
Author

btsherid commented Sep 28, 2023

So it appears that the Passenger app is running the code as the apache user. As the apache user, SLURM commands don't work which is why the table output is empty.

I have fixed this by updating command.rb in each application, but I'm wondering if it is expected behavior for the command to run as the apache user instead of the user logged into OnDemand.

Thanks,
Brendan

@johrstrom
Copy link
Contributor

I have fixed this by updating command.rb in each application, but I'm wondering if it is expected behavior for the command to run as the apache user instead of the user logged into OnDemand.

It should not be running as the apache user. How did you deploy this application?

@btsherid
Copy link
Author

I made a new app through the Developer menu and providing the Git url as explained in the documentation. I also tried just copying the folder from another host running the same version of OnDemand. Both methods worked.

I did some more debugging and it is running as my user. It does not have all the environment variables it needs. That's what I had to add to the command. This makes sense to me because I installed the version of SLURM from source. I'm planning on upgrading SLURM soon so it shouldn't be an issue going forward. I'll just need the enviornment variable in the commands for now.

Thanks,
Brendan

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

4 participants