Additionally, while in the container, I ran mod_wsgi-express start-server
script-name on my wsgi script and it failed at a different point than any
other time I've run it (see below).
[Fri Nov 20 17:14:52.144243 2015] [mpm_event:notice] [pid 50:tid
140059736422144] AH00489: Apache/2.4.17 (Unix) mod_wsgi/4.4.21
Python/2.7.10 configured -- resuming normal operations
[Fri Nov 20 17:14:52.144302 2015] [core:notice] [pid 50:tid
140059736422144] AH00094: Command line: 'httpd (mod_wsgi-express) -f
/tmp/mod_wsgi-localhost:8000:0/httpd.conf -D
MOD_WSGI_MPM_ENABLE_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_EVENT_MODULE -D
MOD_WSGI_MPM_EXISTS_WORKER_MODULE -D MOD_WSGI_MPM_EXISTS_PREFORK_MODULE -D
FOREGROUND'
[Fri Nov 20 17:14:52.184669 2015] [wsgi:error] [pid 52:tid 140059736422144]
mod_wsgi (pid=52): Target WSGI script
'/tmp/mod_wsgi-localhost:8000:0/handler.wsgi' cannot be loaded as Python
module.
[Fri Nov 20 17:14:52.184703 2015] [wsgi:error] [pid 52:tid 140059736422144]
mod_wsgi (pid=52): Exception occurred processing WSGI script
'/tmp/mod_wsgi-localhost:8000:0/handler.wsgi'.
[Fri Nov 20 17:14:52.184717 2015] [wsgi:error] [pid 52:tid 140059736422144]
Traceback (most recent call last):
[Fri Nov 20 17:14:52.184732 2015] [wsgi:error] [pid 52:tid 140059736422144]
File "/tmp/mod_wsgi-localhost:8000:0/handler.wsgi", line 94, in <module>
[Fri Nov 20 17:14:52.184783 2015] [wsgi:error] [pid 52:tid 140059736422144]
recorder_directory=recorder_directory)
[Fri Nov 20 17:14:52.184792 2015] [wsgi:error] [pid 52:tid 140059736422144]
File
"/usr/local/python/lib/python2.7/site-packages/mod_wsgi/server/__init__.py",
line 1267, in __init__
[Fri Nov 20 17:14:52.185233 2015] [wsgi:error] [pid 52:tid 140059736422144]
exec(code, self.module.__dict__)
[Fri Nov 20 17:14:52.185246 2015] [wsgi:error] [pid 52:tid 140059736422144]
File "/app/Middleware/c3stemserver.py", line 12, in <module>
[Fri Nov 20 17:14:52.185368 2015] [wsgi:error] [pid 52:tid 140059736422144]
from auth import AuthController, require, has_role, has_privileges
[Fri Nov 20 17:14:52.185376 2015] [wsgi:error] [pid 52:tid 140059736422144]
File "/app/Middleware/auth.py", line 1, in <module>
[Fri Nov 20 17:14:52.185421 2015] [wsgi:error] [pid 52:tid 140059736422144]
import cherrypy
[Fri Nov 20 17:14:52.185435 2015] [wsgi:error] [pid 52:tid 140059736422144]
ImportError: No module named cherrypy
[Fri Nov 20 17:14:59.595570 2015] [mpm_event:notice] [pid 50:tid
140059736422144] AH00491: caught SIGTERM, shutting down
I didn't change any code or install any additional packages, but for some
reason it successfully recognized auth. Unfortunately, according to pip,
cherrypy is also installed.
On Friday, November 20, 2015 at 4:31:24 AM UTC-6, Graham Dumpleton wrote:
>
> Sorry for separate messages and not adding to discussion. Don't mean to
> confuse you. Best I can do right now.
>
> If your Dockerfile has USER line in it try commenting it out.
>
> This is not a permanent solution but will help isolate whether is
> permissions issue on writing to application code directory
>
> Graham
>
> On 20 Nov 2015, at 2:34 PM, Collin Jackson <[email protected]
> <javascript:>> wrote:
>
> I'm running mod-wsgi-docker:python-2.7-onbuild and have listed my
> requirements in requirements.txt. During build, I can see that the packages
> are installed properly, but when I try to run the image, it crashes on the
> first non-Standard Library import with an ImportError exception. I can't
> figure out what's happening and it's not exactly easy to poke around inside
> the container to see what's going on. I noticed that a virtual environment
> is created prior to installing the packages (here
> <https://github.com/GrahamDumpleton/mod_wsgi-docker/blob/master/2.7/build.sh#L87>),
>
> but I imagine that if this is the issue, other users would have the same
> issue. Any ideas?
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
>
>
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.