Re: [Trac] Can anyone tell me what I've done? Trac is now broken...

2014-11-22 Thread RjOllos


On Saturday, November 22, 2014 9:06:33 AM UTC-8, RjOllos wrote:
>
>
>
> On Saturday, November 22, 2014 5:10:53 AM UTC-8, hasienda wrote:
>>
>> -BEGIN PGP SIGNED MESSAGE- 
>> Hash: SHA1 
>>
>> On 22.11.2014 11:46, Ron Kyle wrote: 
>> > Can anyone tell me what the heck is wrong, or really just how to go 
>> about fixing it? 
>>
>> You did not provide much to us yet, and I really hope you know more than 
>> you told us by now. 
>>
>> To "fix the project" you'll need to go to the place, where most project 
>> content lives by default: the Trac environment directory. It is right, 
>> if you see folders like /config, /db, /log, /files (or /attachments for 
>> older Trac versions) /plugins and /templates inside it. 
>>
>> Go to /plugins and try to delete anything not looking like a Python egg 
>> or simple Python skript file (*.py). Something like 'setup.cfg' or 
>> 'setup.cfg' certainly doesn't belong there. Restart you web server, and 
>> you should be already back in the comfort zone. 
>>
>
> Even more specifically, it sounds like he uploaded a "setup.py", so that 
> file needs to be removed from the "plugins" dir.
>
> Same issue was recently reported here:
> https://groups.google.com/d/msg/trac-users/cXiWmefH7Tg/1tDa6uV0VXUJ 
>


Opened a ticket for this frequently occurring issue:
http://trac.edgewall.org/ticket/11846 

-- 
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 http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Can anyone tell me what I've done? Trac is now broken...

2014-11-22 Thread RjOllos


On Saturday, November 22, 2014 5:10:53 AM UTC-8, hasienda wrote:
>
> -BEGIN PGP SIGNED MESSAGE- 
> Hash: SHA1 
>
> On 22.11.2014 11:46, Ron Kyle wrote: 
> > Can anyone tell me what the heck is wrong, or really just how to go 
> about fixing it? 
>
> You did not provide much to us yet, and I really hope you know more than 
> you told us by now. 
>
> To "fix the project" you'll need to go to the place, where most project 
> content lives by default: the Trac environment directory. It is right, 
> if you see folders like /config, /db, /log, /files (or /attachments for 
> older Trac versions) /plugins and /templates inside it. 
>
> Go to /plugins and try to delete anything not looking like a Python egg 
> or simple Python skript file (*.py). Something like 'setup.cfg' or 
> 'setup.cfg' certainly doesn't belong there. Restart you web server, and 
> you should be already back in the comfort zone. 
>

Even more specifically, it sounds like he uploaded a "setup.py", so that 
file needs to be removed from the "plugins" dir.

Same issue was recently reported here:
https://groups.google.com/d/msg/trac-users/cXiWmefH7Tg/1tDa6uV0VXUJ 

-- 
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 http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Can anyone tell me what I've done? Trac is now broken...

2014-11-22 Thread Steffen Hoffmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 22.11.2014 11:46, Ron Kyle wrote:
> Can anyone tell me what the heck is wrong, or really just how to go about 
> fixing it?

You did not provide much to us yet, and I really hope you know more than
you told us by now.

To "fix the project" you'll need to go to the place, where most project
content lives by default: the Trac environment directory. It is right,
if you see folders like /config, /db, /log, /files (or /attachments for
older Trac versions) /plugins and /templates inside it.

Go to /plugins and try to delete anything not looking like a Python egg
or simple Python skript file (*.py). Something like 'setup.cfg' or
'setup.cfg' certainly doesn't belong there. Restart you web server, and
you should be already back in the comfort zone.

And never try "installing" Trac plugins without a clue on the underlying
system layout again but read more on TracPlugins ASAP.

Steffen Hoffmann


[1] http://trac.edgewall.org/wiki/TracPlugins
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlRwi1IACgkQ31DJeiZFuHfATACguqz+km9bkHEd4Y0KWvYVV1bF
bJcAoJPBi95zHKJw0CH7/J+NwmGdx/xA
=AVmj
-END PGP SIGNATURE-

-- 
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 http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Can anyone tell me what I've done? Trac is now broken...

2014-11-22 Thread Ron Kyle
Hello. I'm new to this group and to Trac, so please bear with me if this is 
a really stupid question or I don't seem to make sense.

Basically, I was trying to install a plugin, TracAccountManager 0.4.4. Our 
Trac web interface had a nice little button for installing plugins, so I 
tried it. Unfortunately, (at least I think this is where I went wrong) I 
then pointed this plugin installed to the setup.py in the directory I 
unzipped the .tar.gz to. I never built an .egg out of it.
BTW, I've got Trac running with Apache on an Ubuntu Virtual Machine.

Now anytime I go to any of the project addresses, such as 
192.168.1.X/projects/myproject or 192.168.1.X/projects/myproject/login, I 
get this python error:

MOD_PYTHON ERROR

ProcessId:  2389
Interpreter:'main_interpreter'

ServerName: 'localhost'
DocumentRoot:   '/var/www/'

URI:'/projects'
Location:   '/projects'
Directory:  None
Filename:   '/var/www/projects'
PathInfo:   ''

Phase:  'PythonHandler'
Handler:'trac.web.modpython_frontend'

Traceback (most recent call last):

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in 
HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in 
_process_target
result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in 
_execute_target
result = object(arg)

  File "build/bdist.linux-i686/egg/trac/web/modpython_frontend.py", line 149, 
in handler
gateway.run(dispatch_request)

  File "build/bdist.linux-i686/egg/trac/web/wsgi.py", line 89, in run
response = application(self.environ, self._start_response)

  File "build/bdist.linux-i686/egg/trac/web/main.py", line 411, in 
dispatch_request
env_paths)

  File "build/bdist.linux-i686/egg/trac/web/main.py", line 682, in 
send_project_index
use_cache=not environ['wsgi.run_once'])

  File "build/bdist.linux-i686/egg/trac/env.py", line 655, in open_environment
env = env_cache.setdefault(env_path, open_environment(env_path))

  File "build/bdist.linux-i686/egg/trac/env.py", line 661, in open_environment
env = Environment(env_path)

  File "build/bdist.linux-i686/egg/trac/env.py", line 216, in __init__
self.setup_config()

  File "build/bdist.linux-i686/egg/trac/env.py", line 429, in setup_config
load_components(self, plugins_dir and (plugins_dir,))

  File "build/bdist.linux-i686/egg/trac/loader.py", line 116, in load_components
loadfunc(env, search_path, auto_enable=plugins_dir)

  File "build/bdist.linux-i686/egg/trac/loader.py", line 92, in _load_py_files
module = imp.load_source(plugin_name, plugin_file)

  File "/usr/local/trac/projects/myproject/plugins/setup.py", line 66, in 

**extra

  File "/usr/lib/python2.6/distutils/core.py", line 140, in setup
raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg

SystemExit: usage: mod_python [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] 
...]
   or: mod_python --help [cmd1 cmd2 ...]
   or: mod_python --help-commands
   or: mod_python cmd --help

error: no commands supplied



Can anyone tell me what the heck is wrong, or really just how to go about 
fixing it? I think I somehow broke the project, but I really have no idea. I've 
been searching and I've learned a bit, but I still can't seem to figure it out 
yet.


Also, don't know if it's important, but my trac-admin only offers me two 
commands. Somewhere I saw that this was caused by the project being "broken", 
but I don't really know if the example would even apply to me. That's where I 
got the notion that I "broke the project", BTW.


Any help or explanation would be most appreciated. Thanks.



-- 
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 http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] multiple ticket templates in one environment?

2014-11-22 Thread Steffen Hoffmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21.11.2014 21:19, Kevin Crilley wrote:
> Does anyone know how to create multiple ticket formats in one environment?

I think it is just ticket type, probably enhanced by DynamicFieldsPlugin
[1] and/or  TracTicketTemplatePlugin [2]

If not, we will need more details about your requirements to help.

Steffen Hoffmann



[1] http://trac-hacks.org/wiki/DynamicFieldsPlugin
[2] http://trac-hacks.org/wiki/TracTicketTemplatePlugin

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlRwR+UACgkQ31DJeiZFuHdGCQCgzXft9fSOD5TywP0n/nlrnaLT
Be0An3wZ61hvuDnGArPl2lIgZdrhzElV
=o9Aj
-END PGP SIGNATURE-

-- 
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 http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.