Mailing List Archive

1 2 3  View All
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Changes (by anonymous):

* cc: blaufalke@yahoo.de (added)

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Changes (by cboos):

* keywords: => svn130

Comment:

In order to get some progress on this topic,
I'd like that the people who are still seeing the issue
report here if they are using multiple virtual hosts,
as #2965 suggests that this might trigger the problem.

Also mention if you're using:
1. svn 1.3.1
2. svn 1.3.0 + [attachment:application_pool_race_condition_fix.txt
patch],
built following those
[http://projects.edgewall.com/trac/ticket/2611#change_15 instructions]
3. something else (hm... you should have tried one of the above!)

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by blaufalke@yahoo.de):

* SVN 1.3.0 (no patching so far).
* Several virtual hosts on Apache 2.2.0 (SuSE Linux 9.3).
* Only one virtual host used for trac (via name based subdomains)

* Subdomains configured like that:
{{{
<Directory /path/to/httpsdocs>
Satisfy Any
Require valid-user
AuthType Basic
AuthName "Subversion@mydomain.com"
AuthUserFile /path/to/.htpasswd
</Directory>

RedirectMatch permanent ^/(projects)$ https://repos.mydomain.com/$1/
RedirectMatch permanent ^/(projects)/([^/]+)$
https://repos.mydomain.com/$1/$2/

<Location /svn/>
DAV svn
SVNParentPath /path/to/repositories
AuthzSVNAccessFile /path/to/.policy
</Location>

<Location /projects/>
SSLRequireSSL
setHandler mod_python
PythonPath "sys.path + ['/usr/share/trac']"
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /path/to/projects/
PythonOption TracUriRoot /projects/
SetEnv PYTHON_EGG_CACHE /usr/lib/python2.4/site-packages
SVNParentPath /path/to/repositories
AuthzSVNAccessFile /path/to/.policy
</Location>
}}}

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by mark@openmailadmin.org):

Common settings:
* Several virtual hosts.[[br]]Every configured as described in
TracModPython.
* Trac 0.9.[2-5]
* Python 2.4.2
* SQLite 3
* Apache: mpm_worker, PHP 5.1.x

Tested configurations at which the errors occurs:
* Subversion 1.3.0 (with and without patch, no relief)
* Apache 2.0.55, SWIG 1.3.21, APR 0.9.7
* Apache 2.0.55, SWIG 1.3.21, APR 0.9.12
* Apache 2.0.58, SWIG 1.3.25, APR 0.9.12
* Apache 2.2.0, SWIG 1.3.21, APR 1.2.2
* Apache 2.2.2, SWIG 1.3.25, APR 1.2.7
* Subversion 1.3.1 (with/without)
* Apache 2.0.58, SWIG 1.3.25, APR 0.9.12
* Apache 2.2.0, SWIG 1.3.21, APR 1.2.2
* Apache 2.2.0, SWIG 1.3.25, APR 1.2.2
* Apache 2.2.0, SWIG 1.3.25, APR 1.2.7

Drop me a line if I got the "tester's award".

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by mark@openmailadmin.org):

That's what I've forgotten to mention:
* Apache 2.0.x: mod_python 3.1.4
* Apache 2.2.x: mod_python 3.2.8

Everything compiled under [http://www.gentoo.org/ Gentoo] with GCC 3.4.x,
{{{-fomit-frame-pointer -pipe}}} and either:
* {{{-Os -march=athlon-mp -ffast-math}}}
* {{{-O2 -mtune=pentium-m -fforce-addr -frename-registers -falign-
functions=64}}}

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by mark@openmailadmin.org):

SVN 1.3.1 has always been without patch - It didn't even apply.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by cboos):

Actually, that patch was merged in Subversion 1.3.1,
see TracSubversion for details.

Mark, just in order to verify the hypothesis that using
multiple virtual hosts could trigger the problem, would it be
possible for you to setup a test environment with one/no virtual
hosts?

(of course, that will earn you even more points for the
tester-of-the-year contest :) )

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by mark@openmailadmin.org):

I've had only the time for one test, so here it is:

== Environment ==
* Apache 2.0.58, APR 0.9.12, mod_python 3.1.4 (r1)
* Subversion 1.3.1, SWIG 1.3.21

== one vhost: ==
Fire up Apache, click every of the items in mainnav (wiki, timeline...).
No error, no matter how much items you invoke.

== second vhost: ==
=== preparations ===
Stop Apache, copy {{{10_trac.conf}}} to {{{10_something.conf}}} and adjust
path and hostname.[[br]]
Create a new subversion repo, import something into it and run {{{trac-
admin /var/lib/trac/something initenv}}}.

Add another line to {{{/etc/hosts}}} to match your new vhost:
{{{
127.0.0.1 something.localhost
}}}
=== invocation ===
Fire up Apache, click through the first installed vhost. No errors will
appear, believe me.

And now has the time come to open up the second vhost. Type
{{{something.localhost}}} in your browser, get the first page displayed
and change into "timeline" or "browse source"! Voila, '''''fatal
error''''' appears.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by cboos):

Ok, thanks for the confirmation and for the steps to reproduce the issue.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by Manuzhai):

There's something to the vhost diagnosis, but it's not everything.

On my old server, I had a single vhost containing different Location
sections, for different projects, replicating the full setup for each
config (e.g. SetHandler, several PythonOption directives, and
authentication). I encountered the errors there, which is why I opened
this ticket. On my new server, however, I have set it up differently, just
using the multiple env support from Trac within a vhost, and I get no more
errors.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by anonymous):

with subversion 1.3.2,this problem still exists.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by athomas):

I upgraded TracHacks to SVN 1.3.1 and was not able to get Apache to serve
any Trac requests at all. Quite aggravating. Downgraded to 1.2.4 until fix
is merged.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Changes (by Manuzhai):

* milestone: 0.10 => 0.11

Comment:

This is really a Subversion problem. We should still gather more
information here, but let's set the milestone to 0.11; it really doesn't
block 0.10.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by maxb1@ukf.net):

I have what seems to be a reliable reproduction recipe:
You must have an apache setup which contains Trac instances in *multiple*
mod_python subinterpreters. Restart apache. The first request to a svn-
using page (i.e. "Browse Source") within the first subinterpreter to be
accessed will SUCCEED. The first request to a svn-using page within a
second subinterpreter will fail with the error.

Additionally, just as an interesting data point: I actually got this error
running a totally non-Trac-related command line script, once (it was
ViewVC's svndbadmin). Sadly, this was not reproducable.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by maxb1@ukf.net):

== If anyone has seen this error with SWIG 1.3.28 or 1.3.29, please
comment! ==

The reliable reproduction I mentioned in the previous comment was using
the pregenerated SWIG files shipped with subversion 1.3.2 (i.e. SWIG
1.3.25 IIRC). I retested with SWIG 1.3.28, and the problem seems to have
disappeared!



Further, I have isolated the source of the !TypeError to the following
code segment in `_wrap_svn_pool_create`:

{{{
if (_global_svn_swig_py_pool != NULL &&
!PyObject_HasAttrString(_global_svn_swig_py_pool,
(char *)"_mark_valid"))
{
int argnum = PyTuple_GET_SIZE(args);
SWIG_Python_TypeError(SWIG_TypePrettyName(SWIGTYPE_p_apr_pool_t),
_global_svn_swig_py_pool);
SWIG_arg_fail(argnum);
SWIG_fail;
}
}}}

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Changes (by marc@guidance.nl):

* cc: marc@guidance.nl (added)

Comment:

I have the same problem, and I'm running

- apache 2.0.54
- mod_python 3.1.4
- subversion 1.3.2
- python 2.4.1
- trac 0.9.4

I have about 15 tracs running under a virtualhost each (on port 81), and
get intermittent errors. I have an RSS reader configured to request the
Timeline page for each trac and it always gets an error for at least one
of the tracs.

When I tried the setup with a single virtualhost I got no errors, but I
have not tested that extensively.

If there's anything else that I could do or provide just let me know and I
will try.

--
Ticket URL: <http://trac.edgewall.org/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by anonymous):

Replying to [comment:65 marc@guidance.nl]:
> I have the same problem, and I'm running
>
> - apache 2.0.54
> - mod_python 3.1.4
> - subversion 1.3.2
> - python 2.4.1
> - trac 0.9.4
>
> I have about 15 tracs running under a virtualhost each (on port 81), and
get intermittent errors. I have an RSS reader configured to request the
Timeline page for each trac and it always gets an error for at least one
of the tracs.
>
> When I tried the setup with a single virtualhost I got no errors, but I
have not tested that extensively.
>
> If there's anything else that I could do or provide just let me know and
I will try.


Instead of using virtual hosts, you can use another apache "instance" with
another config file and on another TCP port or IP address.
Something like this: /usr/sbin/apachectl -f
/etc/httpd/conf/httpd.trac.conf

For Trac I have one apache (default) instance for intranet running on port
80,
and another apache instance for internet running on port 81, and it works
fine.

Before this I had only one apache instance running on ports 80 and 81,
and it give this error.

--
Ticket URL: <http://trac.edgewall.org/ticket/2611#comment:66>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by cboos):

In light of [http://trac.edgewall.org/ticket/3455#comment:6 #3455], it
seems clear that the fix in
attachment:application_pool_race_condition_fix.txt is not working in case
of multiple Python subinterpreters (as this is the case by default with
virtual hosts).

The `svn_swig_py_set_application_pool(self, self)` will be called for each
sub-interpreter and therefore at the C level one pool object coming from
one subinterpreter will be used by all the other subinterpreters. This
probably leads to an invalid GC, which destroys that object prematurely,
and that deletes the "_is_valid" string which triggers the message we're
seeing, see comment:64).

So... the workaround for #3455 should most probably also work here.

It remains to be confirmed if the 1.3.2 bindings generated with SWIG >=
1.3.28 are handling the multiple sub-interpreter scenario correctly.

--
Ticket URL: <http://trac.edgewall.org/ticket/2611#comment:67>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-tickets
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by anonymous):

We have mod_python-3.1.4, apache-2.0.58, swig-1.3.29, subversion-1.3.2,
python-2.4.3, trac-0.10rc1. (gcc 4.1.1)


I have been working on converting a bunch of trac sites from 0.8 to
0.10rc1 (we will be moving to 0.10). We have hitting this since
converting to gcc-4.1.1. That was a one-way change, but this is crazy. I
have no idea what to do =(.

Apache is in mpm-prefork. We have disactivated about everything that we
can, and I just implented the

{{{ PythonInterpreter "trac"}}}

in my config. We have 5 sites.

--
Ticket URL: <http://trac.edgewall.org/ticket/2611#comment:68>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Changes (by anonymous):

* cc: joshland@gmail.com (added)

Comment:

BTW: I guess I should mention - we are hitting this bug.

{{{
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: Traceback (most recent call last):
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/mod_python/apache.py", line 299, in HandlerDispatch\n result =
object(req)
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/trac/web/modpython_frontend.py", line 87, in handler\n
gateway.run(dispatch_request)
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/trac/web/wsgi.py", line 87, in run\n response =
application(self.environ, self._start_response)
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/trac/web/main.py", line 304, in dispatch_request\n env =
_open_environment(env_path, run_once=environ['wsgi.run_once'])
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/trac/web/main.py", line 57, in _open_environment\n
env_cache[env_path] = open_environment(env_path)
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/trac/env.py", line 431, in open_environment\n env =
Environment(env_path)
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/trac/env.py", line 121, in __init__\n load_components(self)
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/trac/loader.py", line 140, in load_components\n
__import__(module)
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/trac/versioncontrol/svn_fs.py", line 56, in ?\n from svn
import fs, repos, core, delta
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/svn/fs.py", line 19, in ?\n from libsvn.fs import *
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/libsvn/fs.py", line 29, in ?\n import core
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/libsvn/core.py", line 3057, in ?\n svn_pool_create()
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: File "/usr/lib/python2.4/site-
packages/libsvn/core.py", line 1098, in svn_pool_create\n return
apply(_core.svn_pool_create, args)
[Fri Sep 29 22:05:12 2006] [error] [client 127.0.0.1] PythonHandler
trac.web.modpython_frontend: TypeError: argument number 0: a 'apr_pool_t
*' is expected, 'instance(<libsvn.core.GenericSWIGWrapper instance at
0xb6924c8c>)' is received
}}}

--
Ticket URL: <http://trac.edgewall.org/ticket/2611#comment:69>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by cboos):

Replying to [comment:68 anonymous]:
> We have mod_python-3.1.4, apache-2.0.58, swig-1.3.29, subversion-1.3.2,
python-2.4.3, trac-0.10rc1. (gcc 4.1.1)

In case you regenerated the wrapping code yourself, i.e. really made use
of swig-1.3.29, this could explain the problem. Subversion 1.3.x is only
compatible with 1.3.24 and 1.3.25.


> {{{ PythonInterpreter "trac"}}}
>

Try "main_interpreter", as suggested in [comment:ticket:3455:9 #3455].

--
Ticket URL: <http://trac.edgewall.org/ticket/2611#comment:70>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by joshland@gmail.com):

Replying to [comment:70 cboos]:
> In case you regenerated the wrapping code yourself, i.e. really made use
of swig-1.3.29, this could explain the problem. Subversion 1.3.x is only
compatible with 1.3.24 and 1.3.25.
>

I think this worked. We are returning to mpm-worker mode. Our current
software loadout is:

swig-1.3.25, subversion-1.3.2-r3, apache-2.0.58 (mpm-worker) and
mod_python-3.1.4


> Try "main_interpreter", as suggested in [comment:ticket:3455:9 #3455].

my mod_python config is now
{{{
SetHandler mod_python
PythonInterpreter main_interpreter
PythonPath "['/var/trac/lib/python2.4/site-packages'] + sys.path"
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir "/var/live/trac"
PythonOption TracUriRoot /
SetEnv PYTHON_EGG_CACHE "/var/live/egg_cache"
}}}

--
Ticket URL: <http://trac.edgewall.org/ticket/2611#comment:71>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by anonymous):

Replying to [comment:71 joshland@gmail.com]:
> Replying to [comment:70 cboos]:
> > In case you regenerated the wrapping code yourself, i.e. really made
use of swig-1.3.29, this could explain the problem. Subversion 1.3.x is
only compatible with 1.3.24 and 1.3.25.
> >
>
> I think this worked. We are returning to mpm-worker mode. Our current
software loadout is:
>
> swig-1.3.25, subversion-1.3.2-r3, apache-2.0.58 (mpm-worker) and
mod_python-3.1.4
>
>
> > Try "main_interpreter", as suggested in [comment:ticket:3455:9 #3455].
>
> my mod_python config is now
> {{{
> SetHandler mod_python
> PythonInterpreter main_interpreter
> PythonPath "['/var/trac/lib/python2.4/site-packages'] + sys.path"
> PythonHandler trac.web.modpython_frontend
> PythonOption TracEnvParentDir "/var/live/trac"
> PythonOption TracUriRoot /
> SetEnv PYTHON_EGG_CACHE "/var/live/egg_cache"
> }}}

Because this person is using mod_python 3.1.4 and not mod_python 3.2.8 or
later, using 'main_interpreter' will be no different to having used 'trac'
as the interpreter name.

There are really two parts to trying to reduce these sorts of problems,
that is even if this is a valid workaround for the original problem this
person is having.

1. Force all use of Trac/subversion to run under the same Python
interpreter instance under mod_python. This would be necessary where for
some reason one or more Trac instances were being accessed through
different VirtualHost configurations within the Apache setup. This avoids
issue where internal Python objects associated with the subversion
bindings are somehow bound to a specific Python interpreter instance and
therefore cannot be used across multiple Python interpreter instances.
This is only going to be effective where access was through multiple
contexts, such as VirtualHost, where mod_python would have executed the
request within a different interpreter instance context. Doing this would
otherwise make no difference.

2. If using mod_python 3.2.8 or later, you can further increase your
chances of things working by avoiding possible GIL issues caused by use of
simplified Python locking API for the GIL by Python extensions, by forcing
the very first Python interpreter instance created by mod_python to be
used. This particular interpreter instance is called 'main_interpreter'.
If using mod_python prior to 3.2.8, there is no means of specifically
indicating the first interpreter created should be used, using
'main_interpreter' doesn't indicate that for those older versions. This
change may have benefit even if access isn't through multiple interpreters
in the first place, but it will only make a difference if you have
mod_python 3.2.8 or later.

--
Ticket URL: <http://trac.edgewall.org/ticket/2611#comment:72>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by kkkkoaa01102006aaaa):

Keep a good job up!

--
Ticket URL: <http://trac.edgewall.org/ticket/2611#comment:>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
Re: [The Trac Project] #2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771) [ In reply to ]
#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
Reporter: Manuzhai | Owner: cboos
Type: defect | Status: new
Priority: high | Milestone: 0.11
Component: version control | Version: devel
Severity: major | Resolution:
Keywords: svn130 |
-----------------------------+----------------------------------------------
Comment (by joshland@gmail.com):

BTW: It didn't work, it just lasted for about 30 minutes. It is definatly
still failing. I am looking at the last post, and I will attempt to fix
this problem following your guidelines.

--
Ticket URL: <http://trac.edgewall.org/ticket/2611#comment:73>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---

1 2 3  View All