Re: [Trac] Can 'browse' git repo but can't see files

2020-05-26 Thread RjOllos


On Monday, May 11, 2020 at 9:40:33 AM UTC-7, Abdelrahman Shouman wrote:
>
> Yea, it took me a while to figure out what you meant there.
>
> It seems the package on Ubuntu is actually an old one. 
> Installing Trac using pip will get the latest version which have the fix.
>
> In my case I had to add it to the path as well, "export 
> PATH=$PATH:~/.local/bin"
> Just leaving this here in case someone faces this issue as well.
>

I'm guessing you installed as a standard user rather than using sudo, and 
probably used the "--user" flag for pip:

  --user  Install to the Python user install directory 
for your
  platform. Typically ~/.local/, or 
%APPDATA%\Python on
  Windows. (See the Python documentation for 
site.USER_BASE
  for full details.)

-- 
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/0544046d-127a-41e9-9b74-20da1859b5d9%40googlegroups.com.


Re: [Trac] Can 'browse' git repo but can't see files

2020-05-11 Thread Abdelrahman Shouman
Yea, it took me a while to figure out what you meant there.

It seems the package on Ubuntu is actually an old one. 
Installing Trac using pip will get the latest version which have the fix.

In my case I had to add it to the path as well, "export 
PATH=$PATH:~/.local/bin"
Just leaving this here in case someone faces this issue as well.

Thanks @RjOllos  

On Sunday, May 10, 2020 at 8:54:07 PM UTC+1, RjOllos wrote:
>
>
>
> On Sunday, May 10, 2020 at 9:12:17 AM UTC-7, Abdelrahman Shouman wrote:
>>
>> Hi Edward,
>>
>> May I know what was the issue in your case?
>>
>
> Upgrade to Trac 1.2.1 or later. 
>

-- 
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/8ab1c645-39f9-46ef-a4f6-5ad562862dab%40googlegroups.com.


Re: [Trac] Can 'browse' git repo but can't see files

2020-05-10 Thread RjOllos


On Sunday, May 10, 2020 at 9:12:17 AM UTC-7, Abdelrahman Shouman wrote:
>
> Hi Edward,
>
> May I know what was the issue in your case?
>

Upgrade to Trac 1.2.1 or later. 

-- 
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/664dfef9-b961-471d-ba28-01200d57f623%40googlegroups.com.


Re: [Trac] Can 'browse' git repo but can't see files

2020-05-10 Thread Abdelrahman Shouman
Hi Edward,

May I know what was the issue in your case?

On Wednesday, June 26, 2019 at 6:14:22 PM UTC+1, Edward Sandberg wrote:
>
> > I found that other people have seen this problem: 
> > 
> > https://trac.edgewall.org/ticket/12992 
> > 
> > but I don't know what I need to do to resolve it. 
> > 
>
> I fixed it. I assumed the package on Ubuntu 18.04 would have the fix 
> they talked about since it is over a year old but it did not. I applied 
> the fix and all is well. Thanks for your help! 
>
> -- 
> Edward Sandberg 
> Adventium Labs 
> 111 3rd Avenue S. Suite #100 
> Minneapolis, MN 55401 
> ed.sa...@adventiumlabs.com  
>

-- 
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/fc43146f-fc35-431f-871b-9970aa9c11b2%40googlegroups.com.


Re: [Trac] Can 'browse' git repo but can't see files

2019-06-26 Thread Ryan Ollos
On Wed, Jun 26, 2019 at 10:14 AM Edward Sandberg <
ed.sandb...@adventiumlabs.com> wrote:

> > I found that other people have seen this problem:
> >
> > https://trac.edgewall.org/ticket/12992
> >
> > but I don't know what I need to do to resolve it.
> >
>
> I fixed it. I assumed the package on Ubuntu 18.04 would have the fix
> they talked about since it is over a year old but it did not. I applied
> the fix and all is well. Thanks for your help!
>

Great. I recommend using Trac 1.2.3, since Trac 1.2 was released so long
ago and there have been many fixes.

- Ryan

-- 
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 post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CA%2BBGpn8iibLkgBMgb9VoqmMCFZiNCUAaggOPJPDan6ouO0cgMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Can 'browse' git repo but can't see files

2019-06-26 Thread Edward Sandberg
> I found that other people have seen this problem:
> 
> https://trac.edgewall.org/ticket/12992
> 
> but I don't know what I need to do to resolve it.
> 

I fixed it. I assumed the package on Ubuntu 18.04 would have the fix
they talked about since it is over a year old but it did not. I applied
the fix and all is well. Thanks for your help!

-- 
Edward Sandberg
Adventium Labs
111 3rd Avenue S. Suite #100
Minneapolis, MN 55401
ed.sandb...@adventiumlabs.com

-- 
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 post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/337b74e2-6e18-5c4a-9aea-7883c565732b%40adventiumlabs.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Can 'browse' git repo but can't see files

2019-06-26 Thread Edward Sandberg
> Please set log level to DEBUG, delete or rename the log file (so that we
> get only the relevant stuff in the log), navigate to the page that shows
> "No files found" and attach the log file in a reply.
> 
> https://trac.edgewall.org/wiki/TracTroubleshooting#ChecktheLogs

Log is attached. This line looks suspicious:

2019-06-26 15:56:09,668 Trac[PyGIT] DEBUG: git exits with 128, dir:
u'/var/lib/gitolite3/repositories/anml.git', args: ls-tree ('-z', '-l',
'72175f6f15c666c1d011da05abd36d349e8fc4fb', '--', ''), stderr: 'fatal:
empty string is not a valid pathspec. please use . instead if you meant
to match all paths\n'

I found that other people have seen this problem:

https://trac.edgewall.org/ticket/12992

but I don't know what I need to do to resolve it.

> 
> - Ryan
> 
> -- 
> 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 post to this group, send email to trac-users@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/trac-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/3c06297d-bcfd-4061-9e07-eec0851930c6%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
Edward Sandberg
Adventium Labs
111 3rd Avenue S. Suite #100
Minneapolis, MN 55401
ed.sandb...@adventiumlabs.com

-- 
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 post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/f2a79a22-d241-00b2-fc63-bc6c6ed7367a%40adventiumlabs.com.
For more options, visit https://groups.google.com/d/optout.
2019-06-26 15:56:03,267 Trac[env] INFO:  environment startup [Trac 1.2] 
2019-06-26 15:56:03,286 Trac[loader] DEBUG: Loading acct_mgr.admin from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,287 Trac[loader] DEBUG: Loading acct_mgr.api from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,287 Trac[loader] DEBUG: Loading acct_mgr.db from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,287 Trac[loader] DEBUG: Loading acct_mgr.htfile from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,287 Trac[loader] DEBUG: Loading acct_mgr.http from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,288 Trac[loader] DEBUG: Loading acct_mgr.macros from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,288 Trac[loader] DEBUG: Loading acct_mgr.notification from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,288 Trac[loader] DEBUG: Loading acct_mgr.opt.announcer.uid_chg from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,302 Trac[loader] DEBUG: Skipping "acct_mgr.opt.announcer.uid_chg = acct_mgr.opt.announcer.uid_chg [announcer]": ("DistributionNotFound: The 'TracAnnouncer' distribution was not found and is required by the application" not found)
2019-06-26 15:56:03,302 Trac[loader] DEBUG: Loading acct_mgr.opt.radius from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,317 Trac[loader] DEBUG: Skipping "acct_mgr.opt.radius = acct_mgr.opt.radius [pyrad]": ("DistributionNotFound: The 'Pyrad' distribution was not found and is required by the application" not found)
2019-06-26 15:56:03,317 Trac[loader] DEBUG: Loading acct_mgr.opt.tracforms.uid_chg from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,331 Trac[loader] DEBUG: Skipping "acct_mgr.opt.tracforms.uid_chg = acct_mgr.opt.tracforms.uid_chg [forms]": ("DistributionNotFound: The 'TracForms' distribution was not found and is required by the application" not found)
2019-06-26 15:56:03,331 Trac[loader] DEBUG: Loading acct_mgr.opt.tracscreenshots.uid_chg from /var/local/trac/site/plugins/TracAccountManager-0.5.0-py2.7.egg
2019-06-26 15:56:03,345 Trac[loader] DEBUG: Skipping "acct_mgr.opt.tracscreenshots.uid_chg = acct_mgr.opt.tracscreenshots.uid_chg [screenshots]": ("DistributionNotFound: The 'TracScreenshots' distribution was not found and is required by the application" not found)
2019-06-26 15:56:03,346 Trac[loader] DEBUG: Loading 

Re: [Trac] Can 'browse' git repo but can't see files

2019-06-25 Thread 'J Cornily' via Trac Users
Hi
I end up with the same issue,
Ryan told me to disable selinux
and this fixed the problem
I was using trac 1.2.3

Le dim. 23 juin 2019 à 21:36, Ed Sandberg  a
écrit :

> I added a git repo to my trac page and then ran trac-admin
> /var/local/trac/site repository resync "myreponame". I can see the "Browse
> Source" button and when I look at the page the branches are listed but the
> list of files is just "No files found". There are files in the repo and I
> can clone the repo without problems. I ran chmod -R a+rx /path/to/repo so I
> think it should have all the permissions it needs.
>
> --
> 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 post to this group, send email to trac-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/trac-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/77d2aedb-2347-483f-9d62-cf2ba683bb4a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAKaKgG_og4V-mra7xCYBsUJgruVoyt%2B_VvvGoM7yNUG-msVzAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Can 'browse' git repo but can't see files

2019-06-25 Thread RjOllos


On Sunday, June 23, 2019 at 12:57:51 PM UTC-7, Edward Sandberg wrote:
>
>
> > Which Trac version? 
>
> Trac version 1.2 
>
> > 
> > You only need to resync if you are using a Cached repository. What is in 
> > your [git] section? 
>
> In the trac.ini file? I don't have that section. This page seems to 
> indicate that it is only needed for nonstandard git executable location: 
>
> https://trac.edgewall.org/wiki/TracGit 
>
> and mine is at /usr/bin/git. 
>

You are referring to the [git] git_bin option, but there are many 
configuration options in the [git] section.
 

>
> I do have: 
>
> tracopt.versioncontrol.git.* = enabled 
>
> under [components] 
>
> and 
>
> [versioncontrol] 
> allowed_repository_dir_prefixes = 
> default_repository_type = git 
>
> and 
>
> safe_schemes = 
> cvs,file,ftp,git,irc,http,https,news,sftp,smb,ssh,svn,svn+ssh 
>
> under [wiki] 
>
> > https://trac.edgewall.org/wiki/TracIni#git-section 
> > 
> > - Ryan  
>
>
Do you have SELinux enabled on the server. There were recent problems 
reported using SELinux:


Please set log level to DEBUG, delete or rename the log file (so that we 
get only the relevant stuff in the log), navigate to the page that shows 
"No files found" and attach the log file in a reply.

https://trac.edgewall.org/wiki/TracTroubleshooting#ChecktheLogs

- Ryan

-- 
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 post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/3c06297d-bcfd-4061-9e07-eec0851930c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Can 'browse' git repo but can't see files

2019-06-23 Thread Edward Sandberg


> Which Trac version?

Trac version 1.2

> 
> You only need to resync if you are using a Cached repository. What is in
> your [git] section?

In the trac.ini file? I don't have that section. This page seems to
indicate that it is only needed for nonstandard git executable location:

https://trac.edgewall.org/wiki/TracGit

and mine is at /usr/bin/git.

I do have:

tracopt.versioncontrol.git.* = enabled

under [components]

and

[versioncontrol]
allowed_repository_dir_prefixes =
default_repository_type = git

and

safe_schemes = cvs,file,ftp,git,irc,http,https,news,sftp,smb,ssh,svn,svn+ssh

under [wiki]

> https://trac.edgewall.org/wiki/TracIni#git-section
> 
> - Ryan 
> 
> -- 
> 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 post to this group, send email to trac-users@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/trac-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/CA%2BBGpn-5agQHZydF3Mr_n6MKHiNLXve1%3DzNroowPWJx3OMT6Fw%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
Edward Sandberg
Adventium Labs
111 3rd Avenue S. Suite #100
Minneapolis, MN 55401
ed.sandb...@adventiumlabs.com

-- 
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 post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/914f07c3-bf31-2ef3-c438-87b77e996e18%40adventiumlabs.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Can 'browse' git repo but can't see files

2019-06-23 Thread Ryan Ollos
On Sun, Jun 23, 2019 at 12:36 PM Ed Sandberg 
wrote:

> I added a git repo to my trac page and then ran trac-admin
> /var/local/trac/site repository resync "myreponame". I can see the "Browse
> Source" button and when I look at the page the branches are listed but the
> list of files is just "No files found". There are files in the repo and I
> can clone the repo without problems. I ran chmod -R a+rx /path/to/repo so I
> think it should have all the permissions it needs.
>

Which Trac version?

You only need to resync if you are using a Cached repository. What is in
your [git] section?
https://trac.edgewall.org/wiki/TracIni#git-section

- Ryan

-- 
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 post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CA%2BBGpn-5agQHZydF3Mr_n6MKHiNLXve1%3DzNroowPWJx3OMT6Fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Trac] Can 'browse' git repo but can't see files

2019-06-23 Thread Ed Sandberg
I added a git repo to my trac page and then ran trac-admin 
/var/local/trac/site repository resync "myreponame". I can see the "Browse 
Source" button and when I look at the page the branches are listed but the 
list of files is just "No files found". There are files in the repo and I 
can clone the repo without problems. I ran chmod -R a+rx /path/to/repo so I 
think it should have all the permissions it needs.

-- 
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 post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/77d2aedb-2347-483f-9d62-cf2ba683bb4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.