> Peter Suter wrote: > > > > > > Hi > > > > On 23.07.2012 12:38, whatnext wrote: > >> I put /www/trac as the directory of the project > environment because that > >> directory contains > >> ... > >> so I concluded that we are working as if there is only one > project and > >> /www/trac is that project's environment. I may be wrong > about this of > >> course. > > > > That looks like a reasonable assumption to me. > > > >> ie seems like I get the same response as from the console. > Am I right in > >> thinking there should normally be some message to the right of the > >> 'Command > >> failed:' ? > > > > Yes, the admin script in Trac 0.10 used to do this: > > except Exception, e: > > print>>sys.stderr, 'Command failed: %s' % e > > So normally there would be a description of the exception. > Apparently > > some exceptions (e.g. AssertException) don't provide any > information > > that way. > > > > If you are handy with Python you could maybe check the exception's > > traceback. > > > > What about other commands? > > # trac-admin /www/trac help > > # trac-admin /www/trac about > > # trac-admin /www/trac wiki list > > # trac-admin /www/trac milestone list > > # trac-admin /www/trac version list > > > > Also, do you have write access to the files in /www/trac? > (E.g. are you > > member of group www?) > > > -----Original Message----- > From: trac-users@googlegroups.com On Behalf Of whatnext > Sent: 23 July 2012 14:54 > To: trac-users@googlegroups.com > Subject: Re: [Trac] trac-admin gives "Command failed:" with > no further explanation > > > Hi Peter > > I'm no python programmer I'm afraid. I tried adding > traceback.print_stack() at line 101 in admin.py (where it > prints the "Command failed: ..." line and I get > > Command failed: > File "/usr/bin/trac-admin", line 22, in ? > sys.exit(run(sys.argv[1:])) > File > "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 1205, > in run > return admin.onecmd(command) > File > "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 101, > in onecmd > traceback.print_stack() > > which I don't think is terribly illuminating? Perhaps there > is a better way > to get a more detailed traceback? > > Other commands: > > # trac-admin /www/trac help > # trac-admin /www/trac about > These work as (i imagine) they should.
...but do not load the environment... > # trac-admin /www/trac wiki list > # trac-admin /www/trac milestone list > # trac-admin /www/trac version list > These fall over with exactly the same "Command failed:" error (and > traceback) ...wherease all these do load the environment. Is this trac environment working at all? Can you access it through a browser? Are there any other trac environments around you can try? ~ mark c > Permissions: unfortunately it doesn't seem to make any > difference if i run this as myself, www or root. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.