Hi,
El 3/9/19 a las 5:10, RjOllos escribió:
On Thursday, August 29, 2019 at 10:57:06 AM UTC-7, elacunza wrote:
Hi all,
We just updated a Debian 9 trac server to Debian 10, and are
having this issue.
I've seen a previous report about this, but the server has no
SELinux nor logs any git error.
Debian package reports
trac 1.2.3+dfsg-1
trac-git 0.12.0.5+722342e-1
We have multiple trac instances, mostly with git repos but some
with subversion repos.
- Browsing subversion repos works right.
- Browsing git repos, shows repos list (if configured more than
one), branches and tags in "Visit" combo, "View changes..." button
shows changeset info (but no files info, says "No files") )and can
navigate throught changesets, timeline is also shown; no files nor
directories are shown ("No files found").
Git repos are local and bare. No caching was used but I tried
enabling caching and resyncing manually.
Sample log when entering main page of a repository (click on
repository name in Browse Source->repo list).
2019-08-29 09:40:12,779 Trac[main] DEBUG: Dispatching
<RequestWithSession "GET '/browser/default'">
2019-08-29 09:40:12,780 Trac[main] DEBUG: Chosen handler is
<Component trac.versioncontrol.web_ui.browser.BrowserModule>
2019-08-29 09:40:12,781 Trac[PyGIT] DEBUG: PyGIT.Storage instance
140490301300240 constructed
2019-08-29 09:40:12,781 Trac[PyGIT] DEBUG: requested weak
PyGIT.Storage instance 140490301300240 for '/srv/git/odoo'
2019-08-29 09:40:12,781 Trac[git_fs] DEBUG: enabled
CachedRepository for '/srv/git/odoo'
2019-08-29 09:40:12,836 Trac[PyGIT] DEBUG: triggered rebuild of
commit tree db for 140490301300240
2019-08-29 09:40:12,959 Trac[PyGIT] DEBUG: rebuilt commit tree db
for 140490301300240 with 5180 entries (took 122.5 ms)
2019-08-29 09:40:12,959 Trac[cache] INFO: repos rev
[4e55ab0d0313918702a20cd4c43dd2bfa6ee795f] != cached rev
[f636bf562f64d92ca89aa9a5b45bef68737bb132] in 'default'
2019-08-29 09:40:13,013 Trac[api] INFO: Synchronized 'default'
repository in 0.23 seconds
2019-08-29 09:40:13,013 Trac[PyGIT] DEBUG: requested weak
PyGIT.Storage instance 140490301300240 for '/srv/git/odoo'
2019-08-29 09:40:13,013 Trac[git_fs] DEBUG: enabled
CachedRepository for '/srv/git/odoo'
2019-08-29 09:40:13,066 Trac[cache] INFO: repos rev
[4e55ab0d0313918702a20cd4c43dd2bfa6ee795f] != cached rev
[f636bf562f64d92ca89aa9a5b45bef68737bb132] in 'prueba'
2019-08-29 09:40:13,120 Trac[api] INFO: Synchronized 'prueba'
repository in 0.11 seconds
2019-08-29 09:40:13,121 Trac[session] DEBUG: Retrieving session
for ID u'elacunza'
2019-08-29 09:40:13,122 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing BROWSER_VIEW on <Resource
u'repository:default,
source:/@f636bf562f64d92ca89aa9a5b45bef68737bb132'>
2019-08-29 09:40:13,151 Trac[chrome] DEBUG: Prepare chrome data
for request
2019-08-29 09:40:13,153 Trac[main] DEBUG: Negotiated locale: None
-> en_US
2019-08-29 09:40:13,154 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing BROWSER_VIEW on <Resource
u'repository:default, source:/'>
[varius perm logs removed - all allows]
2019-08-29 09:40:13,161 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing VERSIONCONTROL_ADMIN on <Resource
u'admin:versioncontrol/repository'>
2019-08-29 09:40:13,162 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing SEARCH_VIEW on None
2019-08-29 09:40:13,162 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing ROADMAP_VIEW on None
2019-08-29 09:40:13,163 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing TIMELINE_VIEW on <Resource 'timeline'>
2019-08-29 09:40:13,164 Trac[main] DEBUG: Rendering response from
handler
2019-08-29 09:40:13,341 Trac[main] DEBUG: Dispatching
<RequestWithSession "GET '/chrome/site/your_project_logo.png'">
2019-08-29 09:40:13,342 Trac[main] DEBUG: Chosen handler is
<Component trac.web.chrome.Chrome>
2019-08-29 09:40:13,342 Trac[chrome] WARNING: File
your_project_logo.png not found in any of ['/srv/trac/odoo/htdocs']
2019-08-29 09:40:13,343 Trac[main] WARNING: [172.29.37.105]
HTTPNotFound: 404 Not Found (File your_project_logo.png not
found), <RequestWithSession "GET
'/chrome/site/your_project_logo.png'">, referrer
'https://intranet.binovo.es/odoo/browser/default
<https://intranet.binovo.es/odoo/browser/default>'
2019-08-29 09:40:13,343 Trac[session] DEBUG: Retrieving session
for ID u'elacunza'
2019-08-29 09:40:13,344 Trac[main] DEBUG: Negotiated locale: None
-> en_US
2019-08-29 09:40:13,348 Trac[chrome] DEBUG: Prepare chrome data
for request
2019-08-29 09:40:13,349 Trac[PyGIT] DEBUG: PyGIT.Storage instance
140490335568656 constructed
2019-08-29 09:40:13,349 Trac[PyGIT] DEBUG: requested weak
PyGIT.Storage instance 140490335568656 for '/srv/git/odoo'
2019-08-29 09:40:13,350 Trac[git_fs] DEBUG: enabled
CachedRepository for '/srv/git/odoo'
2019-08-29 09:40:13,350 Trac[PyGIT] DEBUG: requested weak
PyGIT.Storage instance 140490335568656 for '/srv/git/odoo'
2019-08-29 09:40:13,350 Trac[git_fs] DEBUG: enabled
CachedRepository for '/srv/git/odoo'
[varius perm logs removed - all allows]
2019-08-29 09:40:13,350 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing BROWSER_VIEW on <Resource
u'repository:default, source:/'>
2019-08-29 09:40:13,353 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing VERSIONCONTROL_ADMIN on <Resource
u'admin:versioncontrol/repository'>
2019-08-29 09:40:13,354 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing SEARCH_VIEW on None
2019-08-29 09:40:13,354 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing ROADMAP_VIEW on None
2019-08-29 09:40:13,355 Trac[perm] DEBUG: DefaultPermissionPolicy
allows elacunza performing TIMELINE_VIEW on <Resource 'timeline'>
Any ideas?
Thanks a lot
Eneko
Please share your [git] section from trac.ini, and your [repositories]
section, if applicable.
trac instance "odoo" (the same as the logs above):
[git]
git_bin = /usr/bin/git
cached_repository = true
[repositories]
default.dir = /srv/git/odoo
default.sync_per_request = true
.alias = default
[trac]
...
repository_sync_per_request = default
...
Do you have sync_per_request enabled?
I guess yes?
I have been trying different configurations with the above instance.
Originally instances were as follows (instance binovo):
[git]
git_bin = /usr/bin/git
[repositories]
.dir = /srv/git/idi
.sync_per_request = true
No "repository_sync_per_request" in [trac]
But the result in browsing is the same.
Thanks
Eneko
--
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943569206
Astigarraga bidea 2, 2º izq. oficina 11; 20180 Oiartzun (Gipuzkoa)
www.binovo.es
--
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 trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/trac-users/d734cbfc-e172-6d0a-19f6-08dd6f167a1a%40binovo.es.