Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread Mingxing Tian


在 2016年12月7日星期三 UTC+8下午2:37:57,RjOllos写道:
>
>
>
> On Tuesday, December 6, 2016 at 10:22:26 PM UTC-8, Mingxing Tian wrote:
>>
>>
>>
>> 在 2016年12月7日星期三 UTC+8下午1:03:58,RjOllos写道:
>>>
>>>
>>>
>>> On Tuesday, December 6, 2016 at 6:03:47 PM UTC-8, Mingxing Tian wrote:

 I found a few problems:
 1. the first page is being given, please refer to Annex.

>>>
>>> Before reporting these problems and asking us to tell you the solution, 
>>> please try exploring yourself. Go to the project wiki page, see if there is 
>>> an updated version of the plugin available.
>>>
>>> You can see the problem is with TracWysiwygPlugin, right? So you should 
>>> looks here:
>>> https://trac-hacks.org/wiki/TracWysiwygPlugin
>>>
>>> All I have to do is look at the change log and see that an issue with 
>>> addEvent was fixed in r15940, which is the most recent change, seen at the 
>>> bottom of the project wiki page.
>>>  
>>>
 2. view tags page log error output
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, 
 in _dispatch_request
 dispatcher.dispatch(req)
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 273, 
 in dispatch
 iterable=chrome.use_chunked_encoding)
   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 
 1119, in render_template
 stream = template.generate(**data)
   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 
 545, in generate
 stream = self.stream
   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 
 455, in stream
 self._stream = list(self._prepare(self._stream))
   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 
 491, in _prepare
 yield kind, (directives, list(substream)), pos
   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 
 505, in _prepare
 cls=cls or self.__class__)
   File "build/bdist.linux-x86_64/egg/genshi/template/loader.py", line 
 246, in load
 raise TemplateNotFound(filename, search_path)
 TemplateNotFound: Template "macros.html" not found


>>> Thanks for reporting. Fixed in r16059.
>>> https://trac-hacks.org/changeset/16059 
>>> 
>>>  
>>>
 3. Cannot find an implementation of the IPasswordHashMethod interface 
 named HtDigestHashMethod. Please check that the Component is enabled 
 or update the option [account-manager] hash_method in trac.ini.

>>>
>>> What steps have you taken to explore the problem? That error message 
>>> must give you some hints. Please tell us what steps you've taken to try to 
>>> solve it on your own, and I will gladly provide hints. If you don't find 
>>> the error message clear, please explain since I'd like to improve it.
>>>  
>>>
 4. In addition, I also found a strange phenomenon, when I visit a task 
 list, the default modification of the work order of the DIV area is open, 
 which in the previous version is hidden.

>>>
>>> I suppose this is an issue related to some plugin, but you've given no 
>>> hints as to which plugin.
>>>  
>>>


 


  

>>>
>> Thank you very much for your suggestion, I really should be good to check 
>> their own and exclude some ridiculous questions. Here's my reply to your 
>> suggestion:
>> 1. By updating the "TracWysiwygPlugin" plug-in, so that part of the JS 
>> problem is resolved, but there is still a problem:
>> jquery.js:2 Uncaught Error: Syntax error, unrecognized expression: *[@id
>> ](…)
>> Which I can not confirm in the end is which plug-in problems, well, I 
>> really tried to check.
>>
>
> Thank you for the info. Hint - take a unique part of that expression, such 
> as "*[@id]", put it in the search box on trac-hacks.org. That leads me to:
> https://trac-hacks.org/ticket/12721
>
> Okay, now you can check. Does error go away if disabling 
> SectionEditPlugin? Make sure to do a hard refresh of the page when enabling 
> / disabling, before testing. If the error goes away, then we can confirm 
> SectionEdit is the issue, in which case I'll look at fixing #12721.
>  
>
>> 2. By updating the trunk code, I fixed the problem Thank you.
>> 3. I am in the management module configuration account error, when I 
>> click "next" when I appeared above the problem mentioned. According to the 
>> error, I think it is necessary to manually "trac.ini" in the distribution 
>> of what? ?? ??
>>
>>
>> 
>>
>> [account-manager]

Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread RjOllos


On Tuesday, December 6, 2016 at 10:22:26 PM UTC-8, Mingxing Tian wrote:
>
>
>
> 在 2016年12月7日星期三 UTC+8下午1:03:58,RjOllos写道:
>>
>>
>>
>> On Tuesday, December 6, 2016 at 6:03:47 PM UTC-8, Mingxing Tian wrote:
>>>
>>> I found a few problems:
>>> 1. the first page is being given, please refer to Annex.
>>>
>>
>> Before reporting these problems and asking us to tell you the solution, 
>> please try exploring yourself. Go to the project wiki page, see if there is 
>> an updated version of the plugin available.
>>
>> You can see the problem is with TracWysiwygPlugin, right? So you should 
>> looks here:
>> https://trac-hacks.org/wiki/TracWysiwygPlugin
>>
>> All I have to do is look at the change log and see that an issue with 
>> addEvent was fixed in r15940, which is the most recent change, seen at the 
>> bottom of the project wiki page.
>>  
>>
>>> 2. view tags page log error output
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
>>> _dispatch_request
>>> dispatcher.dispatch(req)
>>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 273, in 
>>> dispatch
>>> iterable=chrome.use_chunked_encoding)
>>>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1119, 
>>> in render_template
>>> stream = template.generate(**data)
>>>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 545, 
>>> in generate
>>> stream = self.stream
>>>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 455, 
>>> in stream
>>> self._stream = list(self._prepare(self._stream))
>>>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 491, 
>>> in _prepare
>>> yield kind, (directives, list(substream)), pos
>>>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 505, 
>>> in _prepare
>>> cls=cls or self.__class__)
>>>   File "build/bdist.linux-x86_64/egg/genshi/template/loader.py", line 
>>> 246, in load
>>> raise TemplateNotFound(filename, search_path)
>>> TemplateNotFound: Template "macros.html" not found
>>>
>>>
>> Thanks for reporting. Fixed in r16059.
>> https://trac-hacks.org/changeset/16059 
>> 
>>  
>>
>>> 3. Cannot find an implementation of the IPasswordHashMethod interface 
>>> named HtDigestHashMethod. Please check that the Component is enabled or 
>>> update the option [account-manager] hash_method in trac.ini.
>>>
>>
>> What steps have you taken to explore the problem? That error message must 
>> give you some hints. Please tell us what steps you've taken to try to solve 
>> it on your own, and I will gladly provide hints. If you don't find the 
>> error message clear, please explain since I'd like to improve it.
>>  
>>
>>> 4. In addition, I also found a strange phenomenon, when I visit a task 
>>> list, the default modification of the work order of the DIV area is open, 
>>> which in the previous version is hidden.
>>>
>>
>> I suppose this is an issue related to some plugin, but you've given no 
>> hints as to which plugin.
>>  
>>
>>>
>>>
>>> 
>>>
>>>
>>>  
>>>
>>
> Thank you very much for your suggestion, I really should be good to check 
> their own and exclude some ridiculous questions. Here's my reply to your 
> suggestion:
> 1. By updating the "TracWysiwygPlugin" plug-in, so that part of the JS 
> problem is resolved, but there is still a problem:
> jquery.js:2 Uncaught Error: Syntax error, unrecognized expression: *[@id
> ](…)
> Which I can not confirm in the end is which plug-in problems, well, I 
> really tried to check.
>

Thank you for the info. Hint - take a unique part of that expression, such 
as "*[@id]", put it in the search box on trac-hacks.org. That leads me to:
https://trac-hacks.org/ticket/12721

Okay, now you can check. Does error go away if disabling SectionEditPlugin? 
Make sure to do a hard refresh of the page when enabling / disabling, 
before testing. If the error goes away, then we can confirm SectionEdit is 
the issue, in which case I'll look at fixing #12721.
 

> 2. By updating the trunk code, I fixed the problem Thank you.
> 3. I am in the management module configuration account error, when I click 
> "next" when I appeared above the problem mentioned. According to the error, 
> I think it is necessary to manually "trac.ini" in the distribution of what? 
> ?? ??
>
>
> 
>
> [account-manager]
> account_changes_notify_addresses =
> htpasswd_file = /home/svndata/svnconf/passwd
> htpasswd_hash_type = md5
> notify_actions = new,change,delete
> password_store = 

Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread Mingxing Tian


在 2016年12月7日星期三 UTC+8下午1:03:58,RjOllos写道:
>
>
>
> On Tuesday, December 6, 2016 at 6:03:47 PM UTC-8, Mingxing Tian wrote:
>>
>> I found a few problems:
>> 1. the first page is being given, please refer to Annex.
>>
>
> Before reporting these problems and asking us to tell you the solution, 
> please try exploring yourself. Go to the project wiki page, see if there is 
> an updated version of the plugin available.
>
> You can see the problem is with TracWysiwygPlugin, right? So you should 
> looks here:
> https://trac-hacks.org/wiki/TracWysiwygPlugin
>
> All I have to do is look at the change log and see that an issue with 
> addEvent was fixed in r15940, which is the most recent change, seen at the 
> bottom of the project wiki page.
>  
>
>> 2. view tags page log error output
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
>> _dispatch_request
>> dispatcher.dispatch(req)
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 273, in 
>> dispatch
>> iterable=chrome.use_chunked_encoding)
>>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1119, 
>> in render_template
>> stream = template.generate(**data)
>>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 545, 
>> in generate
>> stream = self.stream
>>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 455, 
>> in stream
>> self._stream = list(self._prepare(self._stream))
>>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 491, 
>> in _prepare
>> yield kind, (directives, list(substream)), pos
>>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 505, 
>> in _prepare
>> cls=cls or self.__class__)
>>   File "build/bdist.linux-x86_64/egg/genshi/template/loader.py", line 
>> 246, in load
>> raise TemplateNotFound(filename, search_path)
>> TemplateNotFound: Template "macros.html" not found
>>
>>
> Thanks for reporting. Fixed in r16059.
> https://trac-hacks.org/changeset/16059 
> 
>  
>
>> 3. Cannot find an implementation of the IPasswordHashMethod interface 
>> named HtDigestHashMethod. Please check that the Component is enabled or 
>> update the option [account-manager] hash_method in trac.ini.
>>
>
> What steps have you taken to explore the problem? That error message must 
> give you some hints. Please tell us what steps you've taken to try to solve 
> it on your own, and I will gladly provide hints. If you don't find the 
> error message clear, please explain since I'd like to improve it.
>  
>
>> 4. In addition, I also found a strange phenomenon, when I visit a task 
>> list, the default modification of the work order of the DIV area is open, 
>> which in the previous version is hidden.
>>
>
> I suppose this is an issue related to some plugin, but you've given no 
> hints as to which plugin.
>  
>
>>
>>
>> 
>>
>>
>>  
>>
>
Thank you very much for your suggestion, I really should be good to check 
their own and exclude some ridiculous questions. Here's my reply to your 
suggestion:
1. By updating the "TracWysiwygPlugin" plug-in, so that part of the JS 
problem is resolved, but there is still a problem:
jquery.js:2 Uncaught Error: Syntax error, unrecognized expression: *[@id](…)
Which I can not confirm in the end is which plug-in problems, well, I 
really tried to check.
2. By updating the trunk code, I fixed the problem Thank you.
3. I am in the management module configuration account error, when I click 
"next" when I appeared above the problem mentioned. According to the error, 
I think it is necessary to manually "trac.ini" in the distribution of what? 
?? ??



[account-manager]
account_changes_notify_addresses =
htpasswd_file = /home/svndata/svnconf/passwd
htpasswd_hash_type = md5
notify_actions = new,change,delete
password_store = HtPasswdStore
reset_password = disabled


4. I mean in any visit to a task, modify the output of the task domain name 
are displayed, this is normal? Because of language problems, I may not say, 
see my attached pictures.




5. Add a new question, why can't the comment on the task list now. Even if 
it is my own content.
 

-- 
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 

[Trac] Re: Trac and containers

2016-12-06 Thread RjOllos


On Tuesday, December 6, 2016 at 8:43:41 AM UTC-8, RjOllos wrote:
>
>
>
> On Tuesday, December 6, 2016 at 5:27:23 AM UTC-8, Chris Nelson wrote:
>>
>> Has anyone here done any work to get Trac running in a container?  I'm 
>> interested in getting familiar with Kubernetes and getting back into 
>> Trac, and I wonder if I might do both at once.  If I could get my Trac 
>> in a container, it might be more resilient across system updates, etc. 
>>
>>Chris 
>>
>
> Possibly relevant, there's some discussion about Docker in:
> https://groups.google.com/d/msg/trac-dev/oNspLHc1In0/W2Skn5uvCgAJ
>
> - Ryan
>

Are you looking at setting up a production Trac, development environment, 
or both? Given the complexity of setting up a webserver such as Apache or 
Nginx, I've wondered if a container might be useful for providing a variety 
of configs to end users. I haven't look closely at the Bitnami installers 
to see if what they already provide might be sufficient, or if there is 
more that could be done.
https://bitnami.com/stack/trac

Regarding development environment, have you had issues getting a "good" 
development environment for Trac setup? Over the years I've seen hints of 
how some users setup for Trac development and much of it seems less than 
optimal. I struggled with it a lot early on. If you (or anyone else) would 
like to jump on Google hangouts some weekend I'd be happy to share tips.

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


Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread RjOllos


On Tuesday, December 6, 2016 at 6:03:47 PM UTC-8, Mingxing Tian wrote:
>
> I found a few problems:
> 1. the first page is being given, please refer to Annex.
>

Before reporting these problems and asking us to tell you the solution, 
please try exploring yourself. Go to the project wiki page, see if there is 
an updated version of the plugin available.

You can see the problem is with TracWysiwygPlugin, right? So you should 
looks here:
https://trac-hacks.org/wiki/TracWysiwygPlugin

All I have to do is look at the change log and see that an issue with 
addEvent was fixed in r15940, which is the most recent change, seen at the 
bottom of the project wiki page.
 

> 2. view tags page log error output
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
> _dispatch_request
> dispatcher.dispatch(req)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 273, in 
> dispatch
> iterable=chrome.use_chunked_encoding)
>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1119, 
> in render_template
> stream = template.generate(**data)
>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 545, 
> in generate
> stream = self.stream
>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 455, 
> in stream
> self._stream = list(self._prepare(self._stream))
>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 491, 
> in _prepare
> yield kind, (directives, list(substream)), pos
>   File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 505, 
> in _prepare
> cls=cls or self.__class__)
>   File "build/bdist.linux-x86_64/egg/genshi/template/loader.py", line 246, 
> in load
> raise TemplateNotFound(filename, search_path)
> TemplateNotFound: Template "macros.html" not found
>
>
Thanks for reporting. Fixed in r16059.
https://trac-hacks.org/changeset/16059
 

> 3. Cannot find an implementation of the IPasswordHashMethod interface 
> named HtDigestHashMethod. Please check that the Component is enabled or 
> update the option [account-manager] hash_method in trac.ini.
>

What steps have you taken to explore the problem? That error message must 
give you some hints. Please tell us what steps you've taken to try to solve 
it on your own, and I will gladly provide hints. If you don't find the 
error message clear, please explain since I'd like to improve it.
 

> 4. In addition, I also found a strange phenomenon, when I visit a task 
> list, the default modification of the work order of the DIV area is open, 
> which in the previous version is hidden.
>

I suppose this is an issue related to some plugin, but you've given no 
hints as to which plugin.
 

>
>
> 
>
>
>  
>

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


Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread Mingxing Tian


在 2016年12月6日星期二 UTC+8下午5:50:17,RjOllos写道:
>
>
>
> On Tuesday, December 6, 2016 at 1:36:45 AM UTC-8, Mingxing Tian wrote:
>>
>>
>>
>> 在 2016年12月6日星期二 UTC+8下午5:17:16,RjOllos写道:
>>>
>>>
>>>
>>> On Tuesday, December 6, 2016 at 1:14:44 AM UTC-8, Mingxing Tian wrote:



 在 2016年12月6日星期二 UTC+8下午4:56:16,RjOllos写道:
>
>
>
> On Tue, Dec 6, 2016 at 12:43 AM Mingxing Tian  wrote:
>
>> Fortunately, the page can be accessed, but can not normally show, I 
>> screenshot to you.
>>
>
> How did you resolve the previous issue with authz_policy? I want to 
> determine if there is a problem with the upgrade step, so please provide 
> the requested information.
>  
>
>> TypeError: inline_overwrite_get_known_users() got an unexpected keyword 
>> argument 'as_dict'
>>
>>
>>
>>
>>
>> 
>>
>
> To discover which plugin is causing that error you'll need to find the 
> associated traceback in the logs.
>
> It's probably due to UserManagerPlugin:
> https://trac-hacks.org/wiki/UserManagerPlugin
>
> I'm not surprised the plugin is not compatible with Trac 1.2. You'll 
> have to disable it. Maybe some will fix it soon, but I won't get to it 
> this 
> week.
>
> https://trac-hacks.org/ticket/12979
>
> - Ryan 
>


 According to your guidance, I have disabled the `TracUserManagerPlugin` 
 plug-in, the current query task when a single error, I cut a picture to 
 show you.


 
 2016-12-06 17:08:35,179 Trac[main] ERROR: Internal Server Error: 
 , referrer '
 http://trac.xxx.com/trac/xxx/ticket/508'
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, 
 in _dispatch_request
 dispatcher.dispatch(req)
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 263, 
 in dispatch
 self._post_process_request(req, *resp)
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 444, 
 in _post_process_request
 resp = f.post_process_request(req, *resp[:-1])
   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 
 73, in post_process_request
 children = self.get_children(ticket.id)
   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 
 104, in get_children
 db = self.env.get_db_cnx()
 AttributeError: 'Environment' object has no attribute 'get_db_cnx'


>>> Look at the traceback. Where do you think the problem lies? 
>>>
>>
>>
>> I inadvertently disable the plug-in 
>> `TracSubTicketsPlugin-0.2.0.dev20161020-py2.6.egg`, this problem is 
>> automatically solved.
>> But I found some flaws:
>> 2016-12-06 17:34:38,164 Trac[api] ERROR: AnnouncementSystem failed.
>> Traceback (most recent call last):
>>   File "build/bdist.linux-x86_64/egg/announcer/api.py", line 584, in 
>> _real_send
>> evt)
>>   File "build/bdist.linux-x86_64/egg/announcer/distributors/mail.py", 
>> line 282, in distribute
>> addr = rslvr.get_address_for_name(name, authed)
>>   File "build/bdist.linux-x86_64/egg/announcer/resolvers.py", line 55, in 
>> get_address_for_name
>> db = self.env.get_db_cnx()
>> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
>> 2016-12-06 17:34:38,532 Trac[usermanager] WARNING: Trying to use 
>> UserPicturesUserManagerProvider, but UserManager plugin is not installed!
>> 2016-12-06 17:34:51,650 Trac[main] ERROR: Internal Server Error: 
>> , referrer '
>> http://trac.xxx.com/trac/xxx/ticket/523'
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
>> _dispatch_request
>> dispatcher.dispatch(req)
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 273, in 
>> dispatch
>> iterable=chrome.use_chunked_encoding)
>>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1123, 
>> in render_template
>> stream |= self._filter_stream(req, method, filename, stream, data)
>>   File "build/bdist.linux-x86_64/egg/genshi/core.py", line 133, in __or__
>> return Stream(_ensure(function(self)), serializer=self.serializer)
>>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1436, 
>> in inner
>> data)
>>   File 
>> "/usr/lib/python2.6/site-packages/trac_UserPicturesPlugin-0.1.1-py2.6.egg/userpictures/__init__.py",
>>  
>> line 94, in filter_stream
>> if 'attachments' in data and data.get('attachments', 
>> {}).get('attachments'):
>> AttributeError: 'list' object has no 

[Trac] Re: Multiple environment startup

2016-12-06 Thread RjOllos


On Tuesday, December 6, 2016 at 3:15:22 PM UTC-8, Tomasz Brzezina wrote:
>
> Is there any way to speed up FIRST run? 
>
> After long pause (e.g. 24 hours) wsgi is unloaded from memory and first 
> running takes lots of time - about 40 seconds - when it runs, everything 
> runs very fast, but wakeing up is paniful.  Any ideas?
>

Do you have any hints from looking at the logs for Trac and Apache where 
the time is being spent? I'd be interested to know the time from when the 
request hits the web server to when the //Environment Startup// message 
appears in the Trac log.

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


Re: [Trac] Re: How to have mod_wsgi serve multiple projects in a simple manner

2016-12-06 Thread RjOllos


On Tuesday, December 6, 2016 at 5:04:25 AM UTC-8, phep wrote:
>
> Hi, 
>
> Le 06/12/2016 à 04:17, RjOllos a écrit : 
> > 
> > You trac.env_parent_dir should contain only Trac environments, whereas 
> you 
> > directory (/srv/trac) also contains cgi-bin. 
> > 
>
> That's it ! Thanks a lot. I've taken the liberty to update the TracModWSGI 
> pages on the edgewall wiki, both current and 1.0 versions. 
>
> Thanks again ! 
>
> phep 
>

Thanks for making the update. TracModWSGI and other pages such as 
TracModPython need an overhaul, so hopefully we get around to that sometime 
in the next development cycle.

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


[Trac] Re: Multiple environment startup

2016-12-06 Thread Tomasz Brzezina
Is there any way to speed up FIRST run? 

After long pause (e.g. 24 hours) wsgi is unloaded from memory and first 
running takes lots of time - about 40 seconds - when it runs, everything 
runs very fast, but wakeing up is paniful.  Any ideas?

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


[Trac] Trac and containers

2016-12-06 Thread Christopher Nelson
Has anyone here done any work to get Trac running in a container?  I'm
interested in getting familiar with Kubernetes and getting back into
Trac, and I wonder if I might do both at once.  If I could get my Trac
in a container, it might be more resilient across system updates, etc.

   Chris
-- 
Christopher Nelson, PE
Professional Software Engineer
@ChrisNelsonPE
LinkedIn.com/in/ChrisNelsonPE
NoPerfectProgram.Wordpress.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.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Re: How to have mod_wsgi serve multiple projects in a simple manner

2016-12-06 Thread phep

Hi,

Le 06/12/2016 à 04:17, RjOllos a écrit :


You trac.env_parent_dir should contain only Trac environments, whereas you
directory (/srv/trac) also contains cgi-bin.



That's it ! Thanks a lot. I've taken the liberty to update the TracModWSGI 
pages on the edgewall wiki, both current and 1.0 versions.


Thanks again !

phep

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


Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread RjOllos


On Tuesday, December 6, 2016 at 1:36:45 AM UTC-8, Mingxing Tian wrote:
>
>
>
> 在 2016年12月6日星期二 UTC+8下午5:17:16,RjOllos写道:
>>
>>
>>
>> On Tuesday, December 6, 2016 at 1:14:44 AM UTC-8, Mingxing Tian wrote:
>>>
>>>
>>>
>>> 在 2016年12月6日星期二 UTC+8下午4:56:16,RjOllos写道:



 On Tue, Dec 6, 2016 at 12:43 AM Mingxing Tian  wrote:

> Fortunately, the page can be accessed, but can not normally show, I 
> screenshot to you.
>

 How did you resolve the previous issue with authz_policy? I want to 
 determine if there is a problem with the upgrade step, so please provide 
 the requested information.
  

> TypeError: inline_overwrite_get_known_users() got an unexpected keyword 
> argument 'as_dict'
>
>
>
>
>
> 
>

 To discover which plugin is causing that error you'll need to find the 
 associated traceback in the logs.

 It's probably due to UserManagerPlugin:
 https://trac-hacks.org/wiki/UserManagerPlugin

 I'm not surprised the plugin is not compatible with Trac 1.2. You'll 
 have to disable it. Maybe some will fix it soon, but I won't get to it 
 this 
 week.

 https://trac-hacks.org/ticket/12979

 - Ryan 

>>>
>>>
>>> According to your guidance, I have disabled the `TracUserManagerPlugin` 
>>> plug-in, the current query task when a single error, I cut a picture to 
>>> show you.
>>>
>>>
>>> 
>>> 2016-12-06 17:08:35,179 Trac[main] ERROR: Internal Server Error: 
>>> , referrer '
>>> http://trac.xxx.com/trac/xxx/ticket/508'
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
>>> _dispatch_request
>>> dispatcher.dispatch(req)
>>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 263, in 
>>> dispatch
>>> self._post_process_request(req, *resp)
>>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 444, in 
>>> _post_process_request
>>> resp = f.post_process_request(req, *resp[:-1])
>>>   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 73, 
>>> in post_process_request
>>> children = self.get_children(ticket.id)
>>>   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 
>>> 104, in get_children
>>> db = self.env.get_db_cnx()
>>> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
>>>
>>>
>> Look at the traceback. Where do you think the problem lies? 
>>
>
>
> I inadvertently disable the plug-in 
> `TracSubTicketsPlugin-0.2.0.dev20161020-py2.6.egg`, this problem is 
> automatically solved.
> But I found some flaws:
> 2016-12-06 17:34:38,164 Trac[api] ERROR: AnnouncementSystem failed.
> Traceback (most recent call last):
>   File "build/bdist.linux-x86_64/egg/announcer/api.py", line 584, in 
> _real_send
> evt)
>   File "build/bdist.linux-x86_64/egg/announcer/distributors/mail.py", line 
> 282, in distribute
> addr = rslvr.get_address_for_name(name, authed)
>   File "build/bdist.linux-x86_64/egg/announcer/resolvers.py", line 55, in 
> get_address_for_name
> db = self.env.get_db_cnx()
> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
> 2016-12-06 17:34:38,532 Trac[usermanager] WARNING: Trying to use 
> UserPicturesUserManagerProvider, but UserManager plugin is not installed!
> 2016-12-06 17:34:51,650 Trac[main] ERROR: Internal Server Error: 
> , referrer '
> http://trac.xxx.com/trac/xxx/ticket/523'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
> _dispatch_request
> dispatcher.dispatch(req)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 273, in 
> dispatch
> iterable=chrome.use_chunked_encoding)
>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1123, 
> in render_template
> stream |= self._filter_stream(req, method, filename, stream, data)
>   File "build/bdist.linux-x86_64/egg/genshi/core.py", line 133, in __or__
> return Stream(_ensure(function(self)), serializer=self.serializer)
>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1436, 
> in inner
> data)
>   File 
> "/usr/lib/python2.6/site-packages/trac_UserPicturesPlugin-0.1.1-py2.6.egg/userpictures/__init__.py",
>  
> line 94, in filter_stream
> if 'attachments' in data and data.get('attachments', 
> {}).get('attachments'):
> AttributeError: 'list' object has no attribute 'get'
>
>

You should remove AnnouncerPlugin, it's not compatible with Trac 1.2. Trac 
1.2 has an improved notification system that includes some components that 
were 

Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread Mingxing Tian


在 2016年12月6日星期二 UTC+8下午5:17:16,RjOllos写道:
>
>
>
> On Tuesday, December 6, 2016 at 1:14:44 AM UTC-8, Mingxing Tian wrote:
>>
>>
>>
>> 在 2016年12月6日星期二 UTC+8下午4:56:16,RjOllos写道:
>>>
>>>
>>>
>>> On Tue, Dec 6, 2016 at 12:43 AM Mingxing Tian  wrote:
>>>
 Fortunately, the page can be accessed, but can not normally show, I 
 screenshot to you.

>>>
>>> How did you resolve the previous issue with authz_policy? I want to 
>>> determine if there is a problem with the upgrade step, so please provide 
>>> the requested information.
>>>  
>>>
 TypeError: inline_overwrite_get_known_users() got an unexpected keyword 
 argument 'as_dict'





 

>>>
>>> To discover which plugin is causing that error you'll need to find the 
>>> associated traceback in the logs.
>>>
>>> It's probably due to UserManagerPlugin:
>>> https://trac-hacks.org/wiki/UserManagerPlugin
>>>
>>> I'm not surprised the plugin is not compatible with Trac 1.2. You'll 
>>> have to disable it. Maybe some will fix it soon, but I won't get to it this 
>>> week.
>>>
>>> https://trac-hacks.org/ticket/12979
>>>
>>> - Ryan 
>>>
>>
>>
>> According to your guidance, I have disabled the `TracUserManagerPlugin` 
>> plug-in, the current query task when a single error, I cut a picture to 
>> show you.
>>
>>
>> 
>> 2016-12-06 17:08:35,179 Trac[main] ERROR: Internal Server Error: 
>> , referrer '
>> http://trac.xxx.com/trac/xxx/ticket/508'
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
>> _dispatch_request
>> dispatcher.dispatch(req)
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 263, in 
>> dispatch
>> self._post_process_request(req, *resp)
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 444, in 
>> _post_process_request
>> resp = f.post_process_request(req, *resp[:-1])
>>   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 73, 
>> in post_process_request
>> children = self.get_children(ticket.id)
>>   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 104, 
>> in get_children
>> db = self.env.get_db_cnx()
>> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
>>
>>
> Look at the traceback. Where do you think the problem lies? 
>


I inadvertently disable the plug-in 
`TracSubTicketsPlugin-0.2.0.dev20161020-py2.6.egg`, this problem is 
automatically solved.
But I found some flaws:
2016-12-06 17:34:38,164 Trac[api] ERROR: AnnouncementSystem failed.
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/announcer/api.py", line 584, in 
_real_send
evt)
  File "build/bdist.linux-x86_64/egg/announcer/distributors/mail.py", line 
282, in distribute
addr = rslvr.get_address_for_name(name, authed)
  File "build/bdist.linux-x86_64/egg/announcer/resolvers.py", line 55, in 
get_address_for_name
db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
2016-12-06 17:34:38,532 Trac[usermanager] WARNING: Trying to use 
UserPicturesUserManagerProvider, but UserManager plugin is not installed!
2016-12-06 17:34:51,650 Trac[main] ERROR: Internal Server Error: 
, referrer 
'http://trac.xxx.com/trac/xxx/ticket/523'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
_dispatch_request
dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 273, in 
dispatch
iterable=chrome.use_chunked_encoding)
  File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1123, in 
render_template
stream |= self._filter_stream(req, method, filename, stream, data)
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 133, in __or__
return Stream(_ensure(function(self)), serializer=self.serializer)
  File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1436, in 
inner
data)
  File 
"/usr/lib/python2.6/site-packages/trac_UserPicturesPlugin-0.1.1-py2.6.egg/userpictures/__init__.py",
 
line 94, in filter_stream
if 'attachments' in data and data.get('attachments', 
{}).get('attachments'):
AttributeError: 'list' object has no attribute 'get'



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


Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread RjOllos


On Tuesday, December 6, 2016 at 1:14:44 AM UTC-8, Mingxing Tian wrote:
>
>
>
> 在 2016年12月6日星期二 UTC+8下午4:56:16,RjOllos写道:
>>
>>
>>
>> On Tue, Dec 6, 2016 at 12:43 AM Mingxing Tian  wrote:
>>
>>> Fortunately, the page can be accessed, but can not normally show, I 
>>> screenshot to you.
>>>
>>
>> How did you resolve the previous issue with authz_policy? I want to 
>> determine if there is a problem with the upgrade step, so please provide 
>> the requested information.
>>  
>>
>>> TypeError: inline_overwrite_get_known_users() got an unexpected keyword 
>>> argument 'as_dict'
>>>
>>>
>>>
>>>
>>>
>>> 
>>>
>>
>> To discover which plugin is causing that error you'll need to find the 
>> associated traceback in the logs.
>>
>> It's probably due to UserManagerPlugin:
>> https://trac-hacks.org/wiki/UserManagerPlugin
>>
>> I'm not surprised the plugin is not compatible with Trac 1.2. You'll have 
>> to disable it. Maybe some will fix it soon, but I won't get to it this week.
>>
>> https://trac-hacks.org/ticket/12979
>>
>> - Ryan 
>>
>
>
> According to your guidance, I have disabled the `TracUserManagerPlugin` 
> plug-in, the current query task when a single error, I cut a picture to 
> show you.
>
>
> 
> 2016-12-06 17:08:35,179 Trac[main] ERROR: Internal Server Error: 
> , referrer '
> http://trac.xxx.com/trac/xxx/ticket/508'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
> _dispatch_request
> dispatcher.dispatch(req)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 263, in 
> dispatch
> self._post_process_request(req, *resp)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 444, in 
> _post_process_request
> resp = f.post_process_request(req, *resp[:-1])
>   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 73, 
> in post_process_request
> children = self.get_children(ticket.id)
>   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 104, 
> in get_children
> db = self.env.get_db_cnx()
> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
>
>
Look at the traceback. Where do you think the problem lies? 

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


Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread Mingxing Tian


在 2016年12月6日星期二 UTC+8下午4:56:16,RjOllos写道:
>
>
>
> On Tue, Dec 6, 2016 at 12:43 AM Mingxing Tian  
> wrote:
>
>> Fortunately, the page can be accessed, but can not normally show, I 
>> screenshot to you.
>>
>
> How did you resolve the previous issue with authz_policy? I want to 
> determine if there is a problem with the upgrade step, so please provide 
> the requested information.
>  
>
>> TypeError: inline_overwrite_get_known_users() got an unexpected keyword 
>> argument 'as_dict'
>>
>>
>>
>>
>>
>> 
>>
>
> To discover which plugin is causing that error you'll need to find the 
> associated traceback in the logs.
>
> It's probably due to UserManagerPlugin:
> https://trac-hacks.org/wiki/UserManagerPlugin
>
> I'm not surprised the plugin is not compatible with Trac 1.2. You'll have 
> to disable it. Maybe some will fix it soon, but I won't get to it this week.
>
> https://trac-hacks.org/ticket/12979
>
> - Ryan 
>


According to your guidance, I have disabled the `TracUserManagerPlugin` 
plug-in, the current query task when a single error, I cut a picture to 
show you.


2016-12-06 17:08:35,179 Trac[main] ERROR: Internal Server Error: 
, referrer 
'http://trac.xxx.com/trac/xxx/ticket/508'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
_dispatch_request
dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 263, in 
dispatch
self._post_process_request(req, *resp)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 444, in 
_post_process_request
resp = f.post_process_request(req, *resp[:-1])
  File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 73, in 
post_process_request
children = self.get_children(ticket.id)
  File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 104, 
in get_children
db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'

 

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


Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread Ryan Ollos
On Tue, Dec 6, 2016 at 12:43 AM Mingxing Tian  wrote:

> Fortunately, the page can be accessed, but can not normally show, I
> screenshot to you.
>

How did you resolve the previous issue with authz_policy? I want to
determine if there is a problem with the upgrade step, so please provide
the requested information.


> TypeError: inline_overwrite_get_known_users() got an unexpected keyword 
> argument 'as_dict'
>
>
>
>
>
> 
>

To discover which plugin is causing that error you'll need to find the
associated traceback in the logs.

It's probably due to UserManagerPlugin:
https://trac-hacks.org/wiki/UserManagerPlugin

I'm not surprised the plugin is not compatible with Trac 1.2. You'll have
to disable it. Maybe some will fix it soon, but I won't get to it this week.

https://trac-hacks.org/ticket/12979

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


Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread RjOllos


On Tuesday, December 6, 2016 at 12:02:52 AM UTC-8, Mingxing Tian wrote:
>
>
>
> 在 2016年12月6日星期二 UTC+8下午2:43:30,RjOllos写道:
>>
>>
>>
>> On Monday, December 5, 2016 at 10:12:48 PM UTC-8, Mingxing Tian wrote:
>>>
>>>
>>>
>>> 在 2016年12月6日星期二 UTC+8下午2:08:00,RjOllos写道:



 On Monday, December 5, 2016 at 9:57:24 PM UTC-8, Mingxing Tian wrote:
>
> I still get some mistakes, because I do not understand the Python 
> language, so it is difficult to analyze what is the problem!
>
>
> 2016-12-06 13:48:08,061 Trac[loader] ERROR: Skipping 
> "trac.mimeview.txtl = trac.mimeview.txtl [textile]":
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/trac/loader.py", line 68, in 
> _load_eggs
> entry.load(require=True)
>   File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", 
> line 2287, in load
> return self.resolve()
>   File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", 
> line 2293, in resolve
> module = __import__(self.module_name, fromlist=['__name__'], 
> level=0)
>   File "/usr/lib/python2.6/site-packages/trac/mimeview/txtl.py", line 
> 21, in 
> import textile
> ImportError: No module named textile
>
> 2016-12-06 13:48:09,211 Trac[main] ERROR: Exception caught while 
> post-processing request:
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 285, 
> in dispatch
> self._post_process_request(req)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 447, 
> in _post_process_request
> f.post_process_request(req, *(None,)*extra_arg_count)
>   File "build/bdist.linux-x86_64/egg/tracwysiwyg/__init__.py", line 
> 49, in post_process_request
> add_script_data(req, {'_tracwysiwyg': options})
>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 
> 186, in add_script_data
> script_data = req.chrome.setdefault('script_data', {})
>   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, 
> in __getattr__
> value = self.callbacks[name](self)
>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 
> 800, in prepare_request
> if req.locale is not None and str(req.locale) != 'en_US':
>   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, 
> in __getattr__
> value = self.callbacks[name](self)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 358, 
> in _get_locale
> preferred = req.session.get('language')
>   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, 
> in __getattr__
> value = self.callbacks[name](self)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 350, 
> in _get_session
> return Session(self.env, req)
>   File "/usr/lib/python2.6/site-packages/trac/web/session.py", line 
> 242, in __init__
> if req.authname == 'anonymous':
>   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, 
> in __getattr__
> value = self.callbacks[name](self)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 172, 
> in authenticate
> authname = authenticator.authenticate(req)
>   File "build/bdist.linux-x86_64/egg/acct_mgr/util.py", line 81, in 
> wrap
> return func(self, *args, **kwds)
>   File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 422, in 
> authenticate
> return auth.LoginModule.authenticate(self, req)
>   File "/usr/lib/python2.6/site-packages/trac/web/auth.py", line 97, 
> in authenticate
> req.incookie['trac_auth'])
>   File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 491, in 
> _get_name_for_cookie
> db = self.env.get_db_cnx()
> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
> 2016-12-06 13:48:09,212 Trac[main] ERROR: Internal Server Error: 
> , referrer '
> http://trac.idouzi.com/trac/idouzi/timeline?smp_update=filter_projects=%E6%95%B0%E6%8D%AE%E4%B8%AD%E5%BF%83_query==2016-12-05=8=tianmingxing=on=on=on_Mall=on_Server=on=on=on=on=%E6%9B%B4%E6%96%B0%E7%BB%93%E6%9E%9C
> '
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, 
> in _dispatch_request
> dispatcher.dispatch(req)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 220, 
> in dispatch
> chosen_handler = self._pre_process_request(req, chosen_handler)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 422, 
> in _pre_process_request
> chosen_handler = filter_.pre_process_request(req, chosen_handler)
>   File "build/bdist.linux-x86_64/egg/acct_mgr/api.py", line 478, in 
> pre_process_request
> if 

Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-06 Thread Mingxing Tian


在 2016年12月6日星期二 UTC+8下午2:43:30,RjOllos写道:
>
>
>
> On Monday, December 5, 2016 at 10:12:48 PM UTC-8, Mingxing Tian wrote:
>>
>>
>>
>> 在 2016年12月6日星期二 UTC+8下午2:08:00,RjOllos写道:
>>>
>>>
>>>
>>> On Monday, December 5, 2016 at 9:57:24 PM UTC-8, Mingxing Tian wrote:

 I still get some mistakes, because I do not understand the Python 
 language, so it is difficult to analyze what is the problem!


 2016-12-06 13:48:08,061 Trac[loader] ERROR: Skipping 
 "trac.mimeview.txtl = trac.mimeview.txtl [textile]":
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/trac/loader.py", line 68, in 
 _load_eggs
 entry.load(require=True)
   File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", 
 line 2287, in load
 return self.resolve()
   File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", 
 line 2293, in resolve
 module = __import__(self.module_name, fromlist=['__name__'], 
 level=0)
   File "/usr/lib/python2.6/site-packages/trac/mimeview/txtl.py", line 
 21, in 
 import textile
 ImportError: No module named textile

 2016-12-06 13:48:09,211 Trac[main] ERROR: Exception caught while 
 post-processing request:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 285, 
 in dispatch
 self._post_process_request(req)
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 447, 
 in _post_process_request
 f.post_process_request(req, *(None,)*extra_arg_count)
   File "build/bdist.linux-x86_64/egg/tracwysiwyg/__init__.py", line 49, 
 in post_process_request
 add_script_data(req, {'_tracwysiwyg': options})
   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 186, 
 in add_script_data
 script_data = req.chrome.setdefault('script_data', {})
   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
 __getattr__
 value = self.callbacks[name](self)
   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 800, 
 in prepare_request
 if req.locale is not None and str(req.locale) != 'en_US':
   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
 __getattr__
 value = self.callbacks[name](self)
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 358, 
 in _get_locale
 preferred = req.session.get('language')
   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
 __getattr__
 value = self.callbacks[name](self)
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 350, 
 in _get_session
 return Session(self.env, req)
   File "/usr/lib/python2.6/site-packages/trac/web/session.py", line 
 242, in __init__
 if req.authname == 'anonymous':
   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
 __getattr__
 value = self.callbacks[name](self)
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 172, 
 in authenticate
 authname = authenticator.authenticate(req)
   File "build/bdist.linux-x86_64/egg/acct_mgr/util.py", line 81, in wrap
 return func(self, *args, **kwds)
   File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 422, in 
 authenticate
 return auth.LoginModule.authenticate(self, req)
   File "/usr/lib/python2.6/site-packages/trac/web/auth.py", line 97, in 
 authenticate
 req.incookie['trac_auth'])
   File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 491, in 
 _get_name_for_cookie
 db = self.env.get_db_cnx()
 AttributeError: 'Environment' object has no attribute 'get_db_cnx'
 2016-12-06 13:48:09,212 Trac[main] ERROR: Internal Server Error: 
 , referrer '
 http://trac.idouzi.com/trac/idouzi/timeline?smp_update=filter_projects=%E6%95%B0%E6%8D%AE%E4%B8%AD%E5%BF%83_query==2016-12-05=8=tianmingxing=on=on=on_Mall=on_Server=on=on=on=on=%E6%9B%B4%E6%96%B0%E7%BB%93%E6%9E%9C
 '
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, 
 in _dispatch_request
 dispatcher.dispatch(req)
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 220, 
 in dispatch
 chosen_handler = self._pre_process_request(req, chosen_handler)
   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 422, 
 in _pre_process_request
 chosen_handler = filter_.pre_process_request(req, chosen_handler)
   File "build/bdist.linux-x86_64/egg/acct_mgr/api.py", line 478, in 
 pre_process_request
 if not req.session.authenticated or \
   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
 __getattr__
 value = self.callbacks[name](self)
   File