Jun Omae wrote on 05.02.2019 at 15:27:
On Mon, Feb 4, 2019 at 8:47 PM Clemens Feige <[email protected]> wrote:Hello I am enthusiastic about the "TracBackLinkPlugin". However, I am unable to get it listening to SVN commits. If I do a SVN commit which mentions the ticket number, then I would expect that for the corresponding ticket this SVN changeset appears in the "Back Links" Section. But it does not (unless I do an explicit sync) Details: I believe my SVN-to-TRAC post-commit hook is correct, because right after the commit the changeset appears in TRAC. No errors or anything about TracBackLinkPlugin appears in the TRAC logging. Manual SVN resync does not help: trac-admin <repo> repository resync "*" I am aware about manual synchronisation with: trac-admin <repo> backlink sync This works i.e. the missing back-link appears. This may be a possible workaround. However, I know that TracBackLinkPlugin should have a SVN listener [1]. Ticket to ticket back-links work well. Obviously the ticket listeners work fine.The TracBackLinkPlugin works fine with explicit synchronization [1] on Trac 1.0.x in production environment. I believe your configuration is broken and explicit synchronization doesn't work. Please post your trac.ini and trac.log after enabling logging with DEBUG level and reproducing the issue. [1] https://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync
Hello Jun OmaePlease find attached the log-file and conf-files, plus my SVN hook-scripts. In the log the SVN submit was at line 141 (time stamp 2019-02-05 16:05).
Concerning explicit synchronization, please note that it basically works on my site (except the TracBackLinkPlugin sync). I mean that right after the SVN commit I can see the SVN change-set in the TRAC timeline. This is why I am assuming that the explicit synchronization is OK.
I investigated that after the SVN commit the TRAC SQLite-DB has a corresponding line added in the "revision" table. But nothing is added to the "backlink" table.
It might be worth to note that we run our SVN over SSH tunnels. This means that "trac-admin" will be called (via SVN hook) as the normal user (not the "www-data" user for the Apache webserver).
In an experiment running the following command did the sync for TracBackLinkPlugin, but running as ordinary user did not:
trac-admin /data/trac/repos/test/ changeset added "(default)" 157 Might be a permission problem ... but I cannot find the problem. Thanks for your help Clemens -- You received this message because you are subscribed to the Google Groups "Trac Users" 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 https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
<<attachment: trac_osypka.zip>>
