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

[1.4.0.2] header X-Accel-Mapping missing #3221

Closed
Dryusdan opened this issue May 22, 2017 · 14 comments
Closed

[1.4.0.2] header X-Accel-Mapping missing #3221

Dryusdan opened this issue May 22, 2017 · 14 comments

Comments

@Dryusdan
Copy link
Contributor

Hi
After lot of problem for migration (forgot make persistance data for pack folder ><) I display mastodon logs and console show the same error :
X-Accel-Mapping header missing
But, how to configure this ? Because I don't use passenger for nginx (just proxy_pass)

Any idea ?

@OccultWarlock
Copy link

I have the same issue with Caddy

@beatrix-bitrot
Copy link
Contributor

I don't use nginx or docker and have this issue, would be nice to know what's going on here.

@Dryusdan Dryusdan changed the title [1.4.0.2][docker] header X-Accel-Mapping missing [1.4.0.2] header X-Accel-Mapping missing May 23, 2017
@Dryusdan
Copy link
Contributor Author

I remove docker tag to correspond with your problem :)

@dereckson
Copy link
Contributor

dereckson commented May 25, 2017

So, this issue indeed isn't dependant of Docker, but it's a feature of nginx and rails.

References:

@Gargron
Copy link
Member

Gargron commented May 26, 2017

Do you have RAILS_SERVE_STATIC_FILES set in your environment?

@OccultWarlock
Copy link

OccultWarlock commented May 26, 2017 via email

@Gargron
Copy link
Member

Gargron commented May 26, 2017

It's a thing that happens when Puma/Rails serves static files (it is recommended to serve static files directly through nginx, because it is way faster, but it may not be possible if, for example, you're running a precompiled Docker image instead of having checked out source code available). I have not used this feature, but here is documentation on it: https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/

As far as I understand this message in the logs is non-breaking. Everything still works, right? Except serving files is slower than it could be directly through nginx.

@OccultWarlock
Copy link

OccultWarlock commented May 26, 2017 via email

@Gargron
Copy link
Member

Gargron commented May 26, 2017

@OccultWarlock
Copy link

OccultWarlock commented May 26, 2017 via email

@OccultWarlock
Copy link

OccultWarlock commented May 26, 2017 via email

@Gargron
Copy link
Member

Gargron commented May 26, 2017

All I can find is this?

@OccultWarlock
Copy link

OccultWarlock commented May 26, 2017 via email

@Gargron
Copy link
Member

Gargron commented May 26, 2017

Well basically you might have to pass another header to Puma, but I have no idea. And yeah.

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

5 participants