Broken trac/svn installation after firmware upgrade on QNAP TS-219

277 views
Skip to first unread message

sunq...@yahoo.com

unread,
Jan 1, 2012, 11:25:16 AM1/1/12
to Trac Users
Hi,

I have upgraded my TS-219 to the latest firmware. After that my trac/
svn installation did not work anymore.

The problem is as follows: trac used to run with python2.5 After the
firmware upgrade the package svn-py 1.6.17-1 however required python
2.6, not 2.5 as it used to. As a consequence trac could not use svn
anymore (repositories could not be synchronized)

So I deleted py25-trac and used ipkg to install py26-trac. That fixed
the issue of trac not being able to access svn.

But a new problem occurred: the trac connection from apache is broken.
The reason is that mod-wsgi 3.3-1 still requires python2.5. However,
trac is now running with python2.6. So my trac wsgi-Modul cannot be
loaded anymore (Error message is "ImportError: No module named
trac.web.main")

A brief test with the python interpreter showed that I can load
trac.web.main with python2.6, but not with python2.5. So the issue is
that apache invokes python 2.5 instead of 2.6 as needed for my trac
installation.

I tried setting WSGIPythonHome and WSGIPythonPath in my apache.conf,
but that didn't help.

I think I need a new mod-wsgi, that is bound to python2.6. ipkg
doesn't know an other version than 3.3-1. How can I get the package?

An alternative would be to get a version of svn-py that is bound to
python25.

Summary:
For my QNAP TS-219 I either need
- mod-wsgi bound to python26
OR
- svn-py bound to python25

How can I get any of these packages?

Further, I wonder why this has not happened to anyone else. the svn-py
package and the mod-wsgi package of the current Linux distribution
used for the TS-219 obviously do not match each other.

x0backslash0x

unread,
Jan 31, 2012, 8:03:14 AM1/31/12
to trac-...@googlegroups.com
 I have recently (today) run into a similar situation.

Using device DS107+ from Synology

While installing Trac, I decided to run it on top of the apache server already installed on my Synology Diskstation via mod_wsgi, so I just downloaded the package and extracted
the module to the appropriate modules directory.

Since I have Python 2.6.x installed, when apache tries to load the module i get
httpd: Syntax error on line 464 of /usr/syno/apache/conf/httpd.conf: Syntax error on line 77 of /usr/syno/apache/conf/extra/httpd-default.conf-user: Cannot load /usr/syno/apache/modules/mod_wsgi.so into server: libpython2.5.so.1.0: cannot open shared object file: No such file or directory

Version info:
Linux 2.6.15 #1613 armv5tejl GNU/Linux synology_88f5281_107+

Related Opware packages installed:
python26 (Python 2.6.7-1)
py26-genshi (v0.6-1)
py26-trac (v0.12.1-1)
py26-setuptools (v0.6c11-2)
svn-py (v1.6.17-1)

The situation, as Suntracker already indicated, is that svn-py is currently dependent on Python 2.6, while mod-wsgi depends on Python 2.5.
Versions of the genshi, trac and setuptools packages exist for Python 2.5, yet svn-py is excluded here.
Reply all
Reply to author
Forward
0 new messages