Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#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 Remy Blank, 14 years ago

Component: generaladmin/console
Resolution: worksforme
Status: newclosed

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:

trac-admin /path/to/env help

comment:2 by miezuit, 14 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 robertson@…, 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 anonymous, 12 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:5 by anonymous, 12 years ago

Running trac 0.12.2 on Ubuntu Server 12.04

comment:6 by Jun Omae, 12 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:7 by anonymous, 12 years ago

In my case, I just needed to sudo.

in reply to:  2 comment:8 by net.gini@…, 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 kitgerrits@…, 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.