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

Permission denied on socket with 5.0.8 #1520

Closed
JasonBarnabe opened this issue May 24, 2015 · 3 comments
Closed

Permission denied on socket with 5.0.8 #1520

JasonBarnabe opened this issue May 24, 2015 · 3 comments
Assignees
Milestone

Comments

@JasonBarnabe
Copy link

Upon upgrading my Rails site from Passenger 4.0.53 to 5.0.8, I'm greeted with a 502 error. Error log says:

2015/05/24 02:36:43 [crit] 20408#0: *179 connect() to unix:/tmp/passenger.FD57G8h/agents.s/server failed (13: Permission denied) while connecting to upstream, client: 1.2.3.4, server: userstyles.org, request: "GET / HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.FD57G8h/agents.s/server:", host: "userstyles.org"

I have the following settings which may be relevant.

    passenger_user_switching off;
    passenger_default_user www;
    passenger_default_group www;

www is the user that started nginx (with sudo). www does not own all the files of the Rails app, but can r and x them.

Downgrading to 4.0.53, reinstalling the nginx module, and restarting brings things back to life.

@FooBarWidget
Copy link
Member

Which OS are you on?

@JasonBarnabe
Copy link
Author

CentOS 6.6.

@FooBarWidget FooBarWidget added this to the 5.0.9 milestone May 26, 2015
FooBarWidget added a commit that referenced this issue Jun 3, 2015
…r switching is off and the web server is running as root

Closes GH-1520.
@FooBarWidget
Copy link
Member

This bug has been confirmed and fixed. The fix will be part of 5.0.9. Thank you for reporting this.

@FooBarWidget FooBarWidget self-assigned this Jun 3, 2015
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

2 participants