cannot upload more than 8-9KB in production

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

cannot upload more than 8-9KB in production

Walther Diechmann
I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Sampson Crowley
Can't help without your Nginx config. Nginx is just a reverse proxy. There's nothing you can do in rails that you can't do with Nginx in front of it. There's a problem with how you have Nginx set up, not with rails

On Thu, Jun 13, 2019, 02:25 Walther Diechmann <[hidden email]> wrote:
I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qN3pH0P8%3D%3D0K2QrYzN%2BE4riL%3Di3i%2B53_j%3DO%2Bpk4opYVNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Sampson Crowley
Have you tested your app in production mode without Nginx in front of it?

On Thu, Jun 13, 2019, 09:46 Sampson Crowley <[hidden email]> wrote:
Can't help without your Nginx config. Nginx is just a reverse proxy. There's nothing you can do in rails that you can't do with Nginx in front of it. There's a problem with how you have Nginx set up, not with rails

On Thu, Jun 13, 2019, 02:25 Walther Diechmann <[hidden email]> wrote:
I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Walther Diechmann
Hi Sampson Crowley,

Good of you to answer :)

Entire project on github and nginx confit in config/sucker.nginx.conf (gets linked on deploys)

Med venlig hilsen
Walther

Den 13. jun. 2019 kl. 17.51 skrev Sampson Crowley <[hidden email]>:

Have you tested your app in production mode without Nginx in front of it?

On Thu, Jun 13, 2019, 09:46 Sampson Crowley <[hidden email]> wrote:
Can't help without your Nginx config. Nginx is just a reverse proxy. There's nothing you can do in rails that you can't do with Nginx in front of it. There's a problem with how you have Nginx set up, not with rails

On Thu, Jun 13, 2019, 02:25 Walther Diechmann <[hidden email]> wrote:
I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5C04D328-906E-4ADF-8598-020F0328416A%40diechmann.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Walther Diechmann
In reply to this post by Sampson Crowley
No?!

But in dev all is good - and I am not sure I can run it in production without (lots of other sites bound to 80/443 :(

Med venlig hilsen
Walther

Den 13. jun. 2019 kl. 17.51 skrev Sampson Crowley <[hidden email]>:

Have you tested your app in production mode without Nginx in front of it?

On Thu, Jun 13, 2019, 09:46 Sampson Crowley <[hidden email]> wrote:
Can't help without your Nginx config. Nginx is just a reverse proxy. There's nothing you can do in rails that you can't do with Nginx in front of it. There's a problem with how you have Nginx set up, not with rails

On Thu, Jun 13, 2019, 02:25 Walther Diechmann <[hidden email]> wrote:
I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5CA10B7B-E6DC-4E5C-91FA-109598E5298F%40diechmann.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Walther Diechmann
- and it’s behind a firewall exclusively offering 80/443 for this CentOS VM :(

Med venlig hilsen
Walther

Den 13. jun. 2019 kl. 18.48 skrev Walther Privat <[hidden email]>:

No?!

But in dev all is good - and I am not sure I can run it in production without (lots of other sites bound to 80/443 :(

Med venlig hilsen
Walther

Den 13. jun. 2019 kl. 17.51 skrev Sampson Crowley <[hidden email]>:

Have you tested your app in production mode without Nginx in front of it?

On Thu, Jun 13, 2019, 09:46 Sampson Crowley <[hidden email]> wrote:
Can't help without your Nginx config. Nginx is just a reverse proxy. There's nothing you can do in rails that you can't do with Nginx in front of it. There's a problem with how you have Nginx set up, not with rails

On Thu, Jun 13, 2019, 02:25 Walther Diechmann <[hidden email]> wrote:
I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5CA10B7B-E6DC-4E5C-91FA-109598E5298F%40diechmann.net.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/E057224B-5F37-4AC5-849B-DB7E3E28C318%40diechmann.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Walther Diechmann
but I suspect that somehow I cannot POST more than 8-10KB to this config - so I am totally with you on the "rails is innoncent" trail :)

torsdag den 13. juni 2019 kl. 18.51.22 UTC+2 skrev Walther Diechmann:
- and it’s behind a firewall exclusively offering 80/443 for this CentOS VM :(

Med venlig hilsen
Walther

Den 13. jun. 2019 kl. 18.48 skrev Walther Privat <[hidden email]>:

No?!

But in dev all is good - and I am not sure I can run it in production without (lots of other sites bound to 80/443 :(

Med venlig hilsen
Walther

Den 13. jun. 2019 kl. 17.51 skrev Sampson Crowley <[hidden email]>:

Have you tested your app in production mode without Nginx in front of it?

On Thu, Jun 13, 2019, 09:46 Sampson Crowley <[hidden email]> wrote:
Can't help without your Nginx config. Nginx is just a reverse proxy. There's nothing you can do in rails that you can't do with Nginx in front of it. There's a problem with how you have Nginx set up, not with rails

On Thu, Jun 13, 2019, 02:25 Walther Diechmann <[hidden email]> wrote:
I've added this issue on rails/rails <a href="https://github.com/rails/rails/issues/36464" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Frails%2Fissues%2F36464\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXe2cSetNdxRKWtaVEqUq7UZ3gZQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Frails%2Fissues%2F36464\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXe2cSetNdxRKWtaVEqUq7UZ3gZQ&#39;;return true;">https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: <a href="https://github.com/wdiechmann/sucker.git" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fwdiechmann%2Fsucker.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF9d4MIDogq6THf0yWpkE78O_Apqw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fwdiechmann%2Fsucker.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF9d4MIDogq6THf0yWpkE78O_Apqw&#39;;return true;">https://github.com/wdiechmann/sucker.git and a demo here: <a href="https://sucker.alco.dk/messages" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsucker.alco.dk%2Fmessages\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGYgyd1C_9sy4OMHN0pSxzCMAioEQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsucker.alco.dk%2Fmessages\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGYgyd1C_9sy4OMHN0pSxzCMAioEQ&#39;;return true;">https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/5CA10B7B-E6DC-4E5C-91FA-109598E5298F%40diechmann.net?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/5CA10B7B-E6DC-4E5C-91FA-109598E5298F%40diechmann.net?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/5CA10B7B-E6DC-4E5C-91FA-109598E5298F%40diechmann.net?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/5CA10B7B-E6DC-4E5C-91FA-109598E5298F%40diechmann.net.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/685c3c91-43ae-43df-a2de-85773f92fcb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Walther Diechmann
I looked in /var/log/nginx/sucker.error.log and see this:

 /var/lib/nginx/tmp/client_body/0000000004" failed (13: Permission denied)

hmmm

This is how those folders are 'permissioned' (running my NGINX as user oxenserver)

[root@ruby2019 current]# ls -la /var/lib/nginx/tmp
totalt 0
drwx------. 7 oxenserver nginx 78 24 maj 20:23 .
drwx------. 3 nginx      nginx 17 24 maj 20:22 ..
drwx------. 2 oxenserver root   6 24 maj 20:23 client_body
drwx------. 2 oxenserver root   6 24 maj 20:23 fastcgi
drwx------. 2 oxenserver root   6 24 maj 20:23 proxy
drwx------. 2 oxenserver root   6 24 maj 20:23 scgi
drwx------. 2 oxenserver root   6 24 maj 20:23 uwsgi

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/afb447fd-d77a-4da0-b6ee-285ef61e9896%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Walther Diechmann
further I should mention probably, that SELinux is disabled -

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4c041668-f0f8-42b7-9cdf-2e4baeab9d95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Hassan Schroeder-2
In reply to this post by Walther Diechmann
On Thu, Jun 13, 2019 at 9:48 AM Walther Privat <[hidden email]> wrote:

> But in dev all is good - and I am not sure I can run it in production without (lots of other sites bound to 80/443 :(

You can test in production *mode* locally, or on another system,
and try with and without Nginx in front. Or compare using another
proxy entirely, e.g. Squid or an AWS ELB.

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCvVEJ9NYpvqjtW0iwgpJ_TkSR3oTW-D-xkCor9QWaSNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Walther Diechmann
In reply to this post by Walther Diechmann


torsdag den 13. juni 2019 kl. 10.24.57 UTC+2 skrev Walther Diechmann:
I've added this issue on rails/rails <a href="https://github.com/rails/rails/issues/36464" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Frails%2Fissues%2F36464\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXe2cSetNdxRKWtaVEqUq7UZ3gZQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Frails%2Fissues%2F36464\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXe2cSetNdxRKWtaVEqUq7UZ3gZQ&#39;;return true;">https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: <a href="https://github.com/wdiechmann/sucker.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fwdiechmann%2Fsucker.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF9d4MIDogq6THf0yWpkE78O_Apqw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fwdiechmann%2Fsucker.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF9d4MIDogq6THf0yWpkE78O_Apqw&#39;;return true;">https://github.com/wdiechmann/sucker.git and a demo here: <a href="https://sucker.alco.dk/messages" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsucker.alco.dk%2Fmessages\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGYgyd1C_9sy4OMHN0pSxzCMAioEQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsucker.alco.dk%2Fmessages\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGYgyd1C_9sy4OMHN0pSxzCMAioEQ&#39;;return true;">https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e658b7e4-4a82-4072-ab57-5ffe26e3ad03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Paul Makepeace
In reply to this post by Walther Diechmann
One thing to check in these situations is whether there's an MTU
(https://en.wikipedia.org/wiki/Maximum_transmission_unit) mismatch
with the don't-fragment bit set. This is lower level than your app
stack but often just mentioning those words can be enough to get other
folks to fix the issue :-)


On Thu, Jun 13, 2019 at 1:24 AM Walther Diechmann <[hidden email]> wrote:

>
> I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)
>
> Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?
>
> My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?
>
> I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAMEJyit8dZo2HyJLyu83OPVeyZjRvZEP556kMXxLnjRERZTHRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Walther Diechmann
In reply to this post by Walther Diechmann
So, finally -- enjoying all the positive suggestions and wishful thinking, like a caring push by the wind on my bike -- I cracked it! 

:D

The giveaways were 

-  /var/lib/nginx/tmp/client_body/0000000004" failed (13: Permission denied) in /var/log/nginx/sucker.error.log
- the 'dot' after the files!

I knew I had disabled SELinux already but little did I know that files are protected even with SELinux disabled (makes a lot of sense)

So I had to do this

# yum install attr
# find /var/lib/nginx -exec sudo setfattr -h -x security.selinux {} \;
# cd /var/lib/nginx
# chown -R oxenserver.nginx tmp
# chmod 766 -R tmp
# service nginx reload

(on my CentOS box with the /etc/nginx.conf user set to oxenserver)

Thank you for your attention and interest!
Walther

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/341cc0a5-d386-4ae9-937e-e3eab5622fe2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Sampson Crowley
In reply to this post by Walther Diechmann
https://stackoverflow.com/a/35794955/9196467

you only have max body size set on https, but it in both blocks. also where is you main http block config? you can set the max body size there as well

On Thu, Jun 13, 2019 at 10:45 AM Walther Privat <[hidden email]> wrote:
Hi Sampson Crowley,

Good of you to answer :)

Entire project on github and nginx confit in config/sucker.nginx.conf (gets linked on deploys)

Med venlig hilsen
Walther

Den 13. jun. 2019 kl. 17.51 skrev Sampson Crowley <[hidden email]>:

Have you tested your app in production mode without Nginx in front of it?

On Thu, Jun 13, 2019, 09:46 Sampson Crowley <[hidden email]> wrote:
Can't help without your Nginx config. Nginx is just a reverse proxy. There's nothing you can do in rails that you can't do with Nginx in front of it. There's a problem with how you have Nginx set up, not with rails

On Thu, Jun 13, 2019, 02:25 Walther Diechmann <[hidden email]> wrote:
I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5C04D328-906E-4ADF-8598-020F0328416A%40diechmann.net.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qN9Sdmu89gVJBvL5Bfq7Aw08PUC_ysaxXQ-P62YCqvEdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Sampson Crowley
*put it in both blocks

On Thu, Jun 13, 2019 at 12:28 PM Sampson Crowley <[hidden email]> wrote:
https://stackoverflow.com/a/35794955/9196467

you only have max body size set on https, but it in both blocks. also where is you main http block config? you can set the max body size there as well

On Thu, Jun 13, 2019 at 10:45 AM Walther Privat <[hidden email]> wrote:
Hi Sampson Crowley,

Good of you to answer :)

Entire project on github and nginx confit in config/sucker.nginx.conf (gets linked on deploys)

Med venlig hilsen
Walther

Den 13. jun. 2019 kl. 17.51 skrev Sampson Crowley <[hidden email]>:

Have you tested your app in production mode without Nginx in front of it?

On Thu, Jun 13, 2019, 09:46 Sampson Crowley <[hidden email]> wrote:
Can't help without your Nginx config. Nginx is just a reverse proxy. There's nothing you can do in rails that you can't do with Nginx in front of it. There's a problem with how you have Nginx set up, not with rails

On Thu, Jun 13, 2019, 02:25 Walther Diechmann <[hidden email]> wrote:
I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5C04D328-906E-4ADF-8598-020F0328416A%40diechmann.net.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qOwy6G332C4672pCBwFO_wouA5tu36RjmYtQ9ETufX8NQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cannot upload more than 8-9KB in production

Walther Diechmann
Thx Sampson - as it turned out it was SELinux and extended file attributes playing me :/

Added an update and how to to the repo and the thread in this group

Thx,
Walther

Den 13. jun. 2019 kl. 20.30 skrev Sampson Crowley <[hidden email]>:

*put it in both blocks

On Thu, Jun 13, 2019 at 12:28 PM Sampson Crowley <[hidden email]> wrote:
https://stackoverflow.com/a/35794955/9196467

you only have max body size set on https, but it in both blocks. also where is you main http block config? you can set the max body size there as well

On Thu, Jun 13, 2019 at 10:45 AM Walther Privat <[hidden email]> wrote:
Hi Sampson Crowley,

Good of you to answer :)

Entire project on github and nginx confit in config/sucker.nginx.conf (gets linked on deploys)

Med venlig hilsen
Walther

Den 13. jun. 2019 kl. 17.51 skrev Sampson Crowley <[hidden email]>:

Have you tested your app in production mode without Nginx in front of it?

On Thu, Jun 13, 2019, 09:46 Sampson Crowley <[hidden email]> wrote:
Can't help without your Nginx config. Nginx is just a reverse proxy. There's nothing you can do in rails that you can't do with Nginx in front of it. There's a problem with how you have Nginx set up, not with rails

On Thu, Jun 13, 2019, 02:25 Walther Diechmann <[hidden email]> wrote:
I've added this issue on rails/rails https://github.com/rails/rails/issues/36464 but was redirected here - fair enough (as I was not able to point to any malfunc)

Does anyone know of issues with NGINX in front of PUMA serving ActionCable and ActiveStorage?

My experience is that either I can have ActiveStorage working perfectly or I can have ActiveStorage working perfectly?!?

I have the code in this repo: https://github.com/wdiechmann/sucker.git and a demo here: https://sucker.alco.dk/messages

-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab5964f5-1e40-495c-8399-a7d1c72c0be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qP%3DC5vkhcLRRVFyJ0ZLxgzww1HH7aSKqK0wqWSeQea%3Dsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5C04D328-906E-4ADF-8598-020F0328416A%40diechmann.net.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5L8qOwy6G332C4672pCBwFO_wouA5tu36RjmYtQ9ETufX8NQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/33A5C7CF-3DAE-4713-A538-BD4C942E932C%40diechmann.net.
For more options, visit https://groups.google.com/d/optout.