I have a Rails 5 app that contains a lot of basic scaffold-like code. A bunch of models with associated controllers and views for basic CRUD operations. It runs under passenger and with nginx as a front end.
I have this app running on a production server, where everything is fine. But I also have it on a testing server, where one model (let's call it "Foo")'s new function fails. If I try to create a new model object, when I hit save (submit the form), I was getting a 404 from nginx. The URL shown in the location bar is what is expected (https://host.domain/foos). I have since fixed that nginx error, and now I get We're sorry, but something went wrong from Rails (or is it Passenger?)
The thing about Foo is that it contains 3 file uploads. Same thing is happening in another part of the app that tries to take a file upload from the user (all using the file_field
method on the form in the view). I feel sure this is the critical factor.
But when I check the Passenger log file, and Rails log file, there's nothing there. I also checked the output of journalctl -u passenger
(this is RHEL7), and nothing. How can I find where an error message is reported? Recall that everything works on my prod server that has almost identical configuration. Thanks.