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

2019-06-13 Thread 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 > : > > *put it in both blocks > > On Thu, Jun 13, 2019 at 12:28 PM Sa

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

2019-06-13 Thread Sampson Crowley
*put it in both blocks On Thu, Jun 13, 2019 at 12:28 PM Sampson Crowley 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,

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

2019-06-13 Thread Sampson Crowley
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 wrote: > Hi Sampson Crowley, > > Good of you to ans

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

2019-06-13 Thread 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/04" failed (13: Permission denied) in /var/log/nginx/sucker.error.log - the 'dot' after the

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

2019-06-13 Thread Paul Makepeace
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 :-)

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

2019-06-13 Thread Walther Diechmann
torsdag den 13. juni 2019 kl. 10.24.57 UTC+2 skrev 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

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

2019-06-13 Thread Hassan Schroeder
On Thu, Jun 13, 2019 at 9:48 AM Walther Privat 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 us

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

2019-06-13 Thread 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 rubyonrails-talk+unsubscr...@googlegroups.co

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

2019-06-13 Thread Walther Diechmann
I looked in /var/log/nginx/sucker.error.log and see this: /var/lib/nginx/tmp/client_body/04" 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

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

2019-06-13 Thread 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 :( > >

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

2019-06-13 Thread Walther Privat
- 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 : > > 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 :( >

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

2019-06-13 Thread Walther Privat
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 > : > > Have you tested your app in production mode without Nginx in front of it? > >> On T

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

2019-06-13 Thread Walther Privat
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 > : > > Have you tested your app in production mode without Nginx in front

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

2019-06-13 Thread 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 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 probl

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

2019-06-13 Thread 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 wrote: > I've added this issue on r

Re: [Rails] Query Bind values with string keys

2019-06-13 Thread Sampson Crowley
Nope, you can't always just do that SomeModel.where("my_column = :named", {"named" => "value"}) Doesn't work. You get a arg not found error -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receivin

[Rails] cannot upload more than 8-9KB in production

2019-06-13 Thread 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