On 6 Aug, 2009, at 23:37 , Ash wrote:
Hi Ash, > Anyone else getting this intermittent error on creating tickets? We also got this sometimes, we are still trying to find out where and what happens ;-) > AttributeError: 'NoneType' object has no attribute 'has_key' > > File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 423, in > _dispatch_request > dispatcher.dispatch(req) > File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 173, in > dispatch > chosen_handler) > File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 286, in > _pre_process_request > chosen_handler = filter_.pre_process_request(req, chosen_handler) > File "/usr/local/lib/python2.6/dist-packages/binary_agilo-1.0_PRO- > py2.6.egg/agilo/utils/web_ui.py", line 196, in pre_process_request > elif self._alias_to_type.has_key(req.args[typedef]): > > As it only happens some times, I'm suspicious that it is related to > running as WSGI, possibly in a non-thread-safe way with a global > variable? It is definitely the case, that is what I am looking at, it is due to the fact that the Agilo config needs to keep stored some properties that are used by others, and these properties are read only. The problem is that the event of saving the config from whatever Admin page, triggers the reload of it, and this is sometime done outside of Agilo control, whatever other plugin can write the config file. So what we could try to do is to put a lock on the load, and block all the thread till the reload is completed, hopefully this will solve the problem. The problem here is that it is not easy to reproduce :-( > My users are getting grumpy that they keep seeing this, and I can't > seem to figure out the cause. We are getting grumpy too ;-) I can try to solve it with the lock and send you a patch so you can try this out ok for you? It would help if it is happening so often on your side, to understand which conditions are triggering this... do many people save or change things in the Admin site? How many concurrent users you have... whatever you can figure out would help... Best ANdreaT --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Agilo for Scrum" group. This group is moderated by agile42 GmbH http://www.agile42.com and is focused in supporting Agilo for Scrum users. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/agilo?hl=en -~----------~----~----~----~------~----~------~--~---

