#9390 closed defect (worksforme)
trac-admin supports only initenv command
Reported by: | miezuit | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | admin/console | Version: | 0.12dev |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hello,
I'm currently running trunk on r9807 and having problems with the trac-admin tool.
Running
trac-admin help
leads to the following output:
trac-admin - The Trac Administration Console 0.12dev-r9807 Usage: trac-admin </path/to/projenv> [command [subcommand] [option ...]] Invoking trac-admin without command starts interactive mode. help Show documentation initenv Create and initialize a new environment
Then, trying to run any another command except help
and initenv
gives a command error. For example:
trac-admin tracproject permission list
gets:
Error: Command not found
I'm using Ubuntu 10.04 and Python 2.6.5.
Attachments (0)
Change History (9)
comment:1 by , 15 years ago
Component: | general → admin/console |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
follow-up: 8 comment:2 by , 15 years ago
Yes, thank you, it was an InstallationIssue. The trac environment I was using was broken.
I recreated the environment and all works ok now.
comment:3 by , 13 years ago
For me, this problem only went away after I disabled logging. I set 'log_type = none' in the [logging] section of my trac.ini file and "Error: Command not found" went away. I discovered this problem while trying to use hotcopy.
comment:4 by , 13 years ago
Same for me.
With logging enabled: trac-admin %ENV hotcopy dest_dir resulted in "Error: Command not found."
With logging to "None" in /admin/general/logging: trac-admin %ENV hotcopy dest_dir resulted in "Hotcopy done."
No other changes.
comment:6 by , 13 years ago
You have an InstallationIssue, which is the permission issue of $TRACNEV/log/trac.log
. Make sure that the log file is writable.
In Trac 0.12.3+, shows the following if the log file isn't writable.
Error: IOError: [Errno 13] Permission denied: u'/home/jun66j5/var/trac/0.12-stable/log/trac.log'
comment:8 by , 11 years ago
Replying to miezuit: Hi miezuit, Could you please share the information? Where/what file did you change to rectify this. ?
Thanks in advance.
comment:9 by , 10 years ago
Another InstallationIssue: (broken) plug-ins in the plugin dir of one project caused the project to only show 'help' and 'initenv'.
After removing the plugins, the full command list returned.
This works fine here with [9807] as well, so it must be an InstallationIssue. Are you sure that the directory from which you run the command contains a Trac environment in the directory "tracproject"? Try to specify the absolute path to the environment.
If you want the complete help text, you must specify the environment, like so: