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

Environment Variable Value home Changed to hoem #2451

Closed
bantonj opened this issue Nov 2, 2022 · 2 comments
Closed

Environment Variable Value home Changed to hoem #2451

bantonj opened this issue Nov 2, 2022 · 2 comments

Comments

@bantonj
Copy link

bantonj commented Nov 2, 2022

Issue report

I recently upgraded from version 6.0.6 to 6.0.15 and noticed that one of my apps no longer started up correctly. This is when I noticed that the value for our environment variable RACK_SITE was being changed from home to hoem, which was breaking our startup logic in config.ru.

I tested different versions of passenger, and noticed that the issue began in version 6.0.7.

We have other apps that use that environment variable which are not affected, and I was able to work around this behavior by changing the value from home to public.

We are setting the environment variable in the Apache site conf like SetEnv RACK_SITE home. I can see that the environment variable is correctly set on the apache process by looking at /proc/<process id>/environ, and is incorrect in the ruby process.

@bantonj
Copy link
Author

bantonj commented Nov 4, 2022

I did a bit more digging and this only happens when I use SetEnv in the Apache config, when I export the environment variable in the shell before running apache, it works fine.

@jtomson
Copy link
Contributor

jtomson commented Dec 12, 2022

I did a bit more digging and this only happens when I use SetEnv in the Apache config, when I export the environment variable in the shell before running apache, it works fine.

This seems similar to the report "Nginx passenger_env_var falsifying values" #2419 except this is occurring for apache?

@CamJN CamJN closed this as completed in 455a793 Aug 22, 2023
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

2 participants