WARNING: Discarding duplicate repository ''

61 views
Skip to first unread message

Brettschneider Falk

unread,
May 14, 2013, 3:36:20 AM5/14/13
to trac-...@googlegroups.com
Hi,
my trac.log is full of this warning:
[2013-05-13 12:20:25,832 p4408:t3128] api.py:599 WARNING: Discarding duplicate repository ''

How can I fix that?

I have several repos:
Name Type Directory Revision
(Standard) Alias of Foo
Foo svn X:/svn/Foo [12345]
Foo2 svn X:/svn/Foo2 [67890]
Foo3 svn X:/svn/Foo3 [23456]
...


CU, F@lk

----
R&D Software
Baumer Optronic GmbH
www.baumer.com




Gesch?ftsf?hrer: Dr. Albert Schmidt* Dr. Oliver Vietze
Sitz der Gesellschaft: Radeberg
Amtsgericht Dresden: HRB 15379
Ust. ID: DE 189714583


RjOllos

unread,
May 14, 2013, 10:39:00 PM5/14/13
to trac-...@googlegroups.com
On Tuesday, May 14, 2013 12:36:20 AM UTC-7, F@lk wrote:
Hi,
my trac.log is full of this warning:
[2013-05-13 12:20:25,832 p4408:t3128] api.py:599 WARNING: Discarding duplicate repository ''

How can I fix that?

I have several repos:
Name            Type            Directory               Revision
(Standard)                      Alias of Foo
Foo             svn             X:/svn/Foo              [12345]
Foo2            svn             X:/svn/Foo2             [67890]
Foo3            svn             X:/svn/Foo3             [23456]
...


CU, F@lk

There is a ticket for 0.12dev with the warning message you report (1), but it seems unlikely that is your issue.

I was able to reproduce when the entry for the "(default)" repository existed both trac.ini and the database.

For example, define an entry in trac.ini:
[trac]
repository_dir = /home/user/Workspace/t11185/repos/tracdev
repository_sync_per_request = (default)
repository_type = svn

and then add this same entry to the database through the WebAdmin UI by leaving the "Name" field blank.

A possible solution is to remove the repository entry from trac.ini. More info in #11186 (2).


RjOllos

unread,
May 14, 2013, 10:48:41 PM5/14/13
to trac-...@googlegroups.com
On Tuesday, May 14, 2013 7:39:00 PM UTC-7, RjOllos wrote:
[...]
A possible solution is to remove the repository entry from trac.ini. More info in #11186 (2).

Actually, #11186 is an unrelated issue, so please ignore that statement.

If you can remove the entry from trac.ini and the warning goes away, meaning we've discovered the cause of your problem, then I think that Trac is doing the right thing and there is no defect. Trac is just detecting that there are duplicate entries across the `IRepositoryProvider`s, which seems like the right thing.

Brettschneider Falk

unread,
May 16, 2013, 11:25:45 AM5/16/13
to trac-...@googlegroups.com
RjOllos wrote:
> I was able to reproduce when the entry for the "(default)" repository existed both trac.ini and the database.
>
> For example, define an entry in trac.ini:
> [trac]
> repository_dir = /home/user/Workspace/t11185/repos/tracdev
> repository_sync_per_request = (default)
> repository_type = svn
>
> and then add this same entry to the database through the WebAdmin UI by leaving the "Name" field blank.
>
> A possible solution is to remove the repository entry from trac.ini.

Which one of the 3 do you mean?

RjOllos

unread,
May 16, 2013, 8:00:37 PM5/16/13
to trac-...@googlegroups.com

On Thursday, May 16, 2013 8:25:45 AM UTC-7, F@lk wrote:
RjOllos wrote:
> I was able to reproduce when the entry for the "(default)" repository existed both trac.ini and the database.
>
> For example, define an entry in trac.ini:
> [trac]
> repository_dir = /home/user/Workspace/t11185/repos/tracdev
> repository_sync_per_request = (default)
> repository_type = svn
>
> and then add this same entry to the database through the WebAdmin UI by leaving the "Name" field blank.
>
> A possible solution is to remove the repository entry from trac.ini.

Which one of the 3 do you mean?

I'd suggest commenting out all three repository_* entries. 

Brettschneider Falk

unread,
May 17, 2013, 9:20:43 AM5/17/13
to trac-...@googlegroups.com
RjOllos wrote:
> If you can remove the entry from trac.ini and the warning goes away, meaning we've discovered the cause of your problem, then I think that Trac is doing the right thing and there is no defect.

I removed and it went away. Thanks a lot!
Reply all
Reply to author
Forward
0 new messages