WebFaction
Community site: login faq

I am getting a 404 Not found error on my site. I had attempted to set an htpasswd on the site, but was having trouble and removed everything I had added to my httpd.conf file and restarted apache. When I look in the apache error logs, I see the following:

[Wed Sep 24 15:00:56 2014] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/projectvote/webapps/verify/verify/verify/wsgi.pyi
[Wed Sep 24 15:00:57 2014] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/projectvote/webapps/verify/verify/verify/wsgi.pyi
[Wed Sep 24 15:01:32 2014] [notice] caught SIGTERM, shutting down
[Wed Sep 24 15:01:32 2014] [error] Exception ignored in: <module 'threading' from '/usr/local/lib/python3.4/threading.py'>
[Wed Sep 24 15:01:32 2014] [error] Traceback (most recent call last):
[Wed Sep 24 15:01:32 2014] [error]   File "/usr/local/lib/python3.4/threading.py", line 1289, in _shutdown
[Wed Sep 24 15:01:32 2014] [error] Exception ignored in: <module 'threading' from '/usr/local/lib/python3.4/threading.py'>
[Wed Sep 24 15:01:32 2014] [error] Traceback (most recent call last):
[Wed Sep 24 15:01:32 2014] [error]   File "/usr/local/lib/python3.4/threading.py", line 1289, in _shutdown
[Wed Sep 24 15:01:32 2014] [error]     assert tlock is not None
[Wed Sep 24 15:01:32 2014] [error]     assert tlock is not None
[Wed Sep 24 15:01:32 2014] [error] AssertionError: 
[Wed Sep 24 15:01:32 2014] [error] AssertionError: 
[Wed Sep 24 15:01:37 2014] [notice] Apache/2.2.25 (Unix) mod_wsgi/3.4 Python/3.4.0 configured -- resuming normal operations
[Wed Sep 24 15:01:39 2014] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/projectvote/webapps/verify/verify/verify/wsgi.pyi
[Wed Sep 24 15:13:57 2014] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/projectvote/webapps/verify/verify/verify/wsgi.pyi
[Wed Sep 24 15:14:00 2014] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/projectvote/webapps/verify/verify/verify/wsgi.pyi
[Wed Sep 24 15:30:17 2014] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/projectvote/webapps/verify/verify/verify/wsgi.pyi
[Wed Sep 24 15:36:14 2014] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/projectvote/webapps/verify/verify/verify/wsgi.pyi
[Wed Sep 24 15:36:17 2014] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/projectvote/webapps/verify/verify/verify/wsgi.pyi
[Wed Sep 24 15:36:21 2014] [error] [client 127.0.0.1] Target WSGI script not found or unable to stat: /home/projectvote/webapps/verify/verify/verify/wsgi.pyi

I have checked, and as far as I can see, everything in my httpd.conf file is as it should be and the wsgi.pyi file should be readable by the apache user.

Any ideas would be helpful. Thanks.

asked 24 Sep '14, 16:13

projectvote
1324
accept rate: 0%

edited 24 Sep '14, 16:44

seanf
12.2k41836


There's a typo in the WSGIScriptAlias directive in your httpd.conf. Change this...

WSGIScriptAlias / /home/projectvote/webapps/verify/verify/verify/wsgi.pyi

... to this ...

WSGIScriptAlias / /home/projectvote/webapps/verify/verify/verify/wsgi.py

(that is, drop the trailiing 'i' character)

Hope that helps!

permanent link

answered 24 Sep '14, 16:46

seanf
12.2k41836
accept rate: 37%

Thanks, that worked. It's always the little things.

(24 Sep '14, 16:49) projectvote

You're very welcome!

(24 Sep '14, 16:54) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×62
×22

question asked: 24 Sep '14, 16:13

question was seen: 3,632 times

last updated: 24 Sep '14, 16:54

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM