Opened 7 years ago

Closed 13 months ago

#5558 closed defect (fixed)

apache config files on wiki don't work

Reported by: Andrew Owned by:
Priority: major Milestone:
Component: programming Keywords: apache
Cc: Parent Tickets:

Description

These configurations for apache either cause a 500 error, or they send the browser into a 301 loop with the requested page.

for instance, this is the error produced by the wsgi method:

mod_wsgi (pid=26876): Target WSGI script '/srv/audio-video.gnu.org/mediagoblin/wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=26876): Exception occurred processing WSGI script '/srv/audio-video.gnu.org/mediagoblin/wsgi.py'.
Traceback (most recent call last):
  File "/srv/audio-video.gnu.org/mediagoblin/wsgi.py", line 29, in <module>
    application = loadapp('config:' + CONFIG_PATH)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
    global_additions=global_additions)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 559, in _pipeline_app_context
    APP, pipeline[-1], global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 454, in get_context
    section)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 406, in get_context
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 620, in get_context
    object_type, name=name) 
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 640, in find_egg_entry_point
    pkg_resources.require(self.spec)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 834, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
[Wed Jan 31 15:49:02.681766 2018] [wsgi:error] [pid 26876:tid 139806997743360] [remote 2603:3005:71a:2ee0:1c3a:ff7c:b34d:53c9:60258] ContextualVersionConflict: (mock 1.3.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('mock==1.0.1'), set(['mediagoblin']))

I've also tried using the following config, but get a 301 redirect loop to the requested URL itself:

ProxyPass "/test" "fcgi://localhost:26543/"

A coworker managed to get the server past 500 errors with some configuration of the fcgi method, but we ended up with a redirect loop anyhow.

Change History (5)

comment:2 by Ben Sturmfels, 5 years ago

Hi Andrew,

Sorry for the delay in responding. Did you manage to resolve this issue?

Regards,
Ben

comment:3 by Andrew, 5 years ago

Hi Ben, thanks for the update. It looks like we didn't manage to get it working, so we switched to Nginx.

comment:4 by Ben Sturmfels, 5 years ago

I wonder if it would be too aggressive a move to just delete the docs link to the non-working Apache instructions on the wiki and then remove that section from the wiki?

comment:5 by Ben Sturmfels, 13 months ago

Resolution: fixed
Status: newclosed

I've removed the docs link to Apache instructions on the wiki. Closing.

Note: See TracTickets for help on using tickets.