Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-21 Thread Graham Dumpleton
You maybe should read: https://modwsgi.readthedocs.io/en/develop/user-guides/reloading-source-code.html Source code is not automatically reloaded. You can also have issues if you have .pyc file which have incorr

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-20 Thread Jeremy Hawkins
not 100% sure why, but the issue is resolved. I think there is an issue with the mod_wsgi not updating when changes are made to the application. There was a change to the form to make a field optional instead of required and that change didn't seem to push through. I finally was able to get erro

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-20 Thread Jeremy Hawkins
I hope this is what you're asking for. The form is in a dialog inside of a page that is located at online/admin/faculty/ the form action is set to {{url_for('admin.update_faculty', id=faculty.facultyno)}} which converts to /online/admin/faculty/ and the method is post. The headers for the requ

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-19 Thread Graham Dumpleton
And what was the original URL the POST request was made against? How is the Flask handler defined which is meant to handle the URL for the POST request? > On 20 Aug 2019, at 1:42 am, Jeremy Hawkins wrote: > > The alias is at /online > WSGIScriptAlias /online /var/projects/janus/app.wsgi > > T

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-19 Thread Jeremy Hawkins
The alias is at /online WSGIScriptAlias /online /var/projects/janus/app.wsgi The location header is Location: https://sy-devsophia.hccs.edu/online/admin/faculty/30087 On Friday, August 16, 2019 at 4:24:33 PM UTC-5, Graham Dumpleton wrote: > > At what sub path to the site are the post requests

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-16 Thread Jay Rat
The alias in the Apache config I'll have to look at monday. Think its /online but cant recall of there is at the end or not On Fri, Aug 16, 2019, 18:40 Graham Dumpleton wrote: > You didn't answer my other questions. > > What does the Location header in responses say? > > How do you have WSGIScri

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-16 Thread Graham Dumpleton
You didn't answer my other questions. What does the Location header in responses say? How do you have WSGIScriptAlias set in the Apache config? > On 17 Aug 2019, at 8:01 am, Jay Rat wrote: > > The http response is 302. > > Using blueprints. For the posts the end point is admin/faculty/ > I

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-16 Thread Jay Rat
The http response is 302. Using blueprints. For the posts the end point is admin/faculty/ I added a logger into that method and the logger statement at the front of the method runs bit the statements in the form processing sections never run On Fri, Aug 16, 2019, 16:24 Graham Dumpleton wrote: >

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-16 Thread Graham Dumpleton
At what sub path to the site are the post requests being targeted? Sounds more like you have an issue where handler is at /subpath/, but you are using /subpath, and so trailing slash redirection is being tripped. What does the Location header in responses say? How do you have WSGIScriptAlias se

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-16 Thread Jeremy Hawkins
Thank you. Removing the app.run() and changing the app to application (using a factory so changed app = create_app() --> application = create_app()) Now when running the site via apache the post requests don't seem to be running. They all return the http code of 302 (found) instead of 200 lik

Re: [modwsgi] RHEL 7 mod_wsgi s.bind Permission denied errors

2019-08-15 Thread Graham Dumpleton
You shouldn't be invoking app.run() when hosting under mod_wsgi as that is trying to start its own server. You should use a check like: if __name__ == "__main__": around the parts of the Flask code where the Flask development server is started so that it isn't run when that fi