allura-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Brondsema <d...@brondsema.net>
Subject Re: error on new allura install while init task processing
Date Mon, 25 Mar 2013 16:01:45 GMT
20-30 seconds is about right.  I've got some pending commits actually which
update that sentence in the README.

The error below implies that `c.project` is None.  I haven't seen that before
but I wouldn't worry about it too much unless it keeps happening during normal
usage of Allura too.  Perhaps it was just some side-effect of the other errors
you got when running setup-app earlier.

On 3/22/13 3:05 AM, nicolas david wrote:
> Hi
> 
> After some solr testing and proxy settings it seems that I've probably resolve
> this solr/proxy issue but
> unfortunately it also seems to not be the only one proxy issue on Allura install.
> 
> I have tested solr via it's web interface and it's example. Some http/proxy
> error show up when making https request to http://localhost but not when doing
> the same POST request for http://127.0.0.1. So I've changed solr setting into
> allura development.ini file and my error related to solr disappeared from
> taskd.log.
> 
> But now I've also some similar errors related to notification.py (cf below).
> I think it was another proxy issues but i'm not able to resolve tis one yet.
> 
> I'm also suspicous about my install because "paster setup-app development.ini"
> not ake 5-6 minutes but more 20-30 s ..
> 
> Nicolas David
> 
> ***************************************************************************************************************
> 
> 10:37:46,453 INFO  [allura.model.monq_model] starting <MonQTask
> 51420918200cb40b2462dff2 (busy) P:10 allura.tasks.notification_tasks.notify
> del-9323825 pid 1561 project:None app:None user:None>
> 10:37:46,466 INFO  [allura.model.monq_model] Error on job <MonQTask
> 51420918200cb40b2462dff2 (busy) P:10 allura.tasks.notification_tasks.notify
> del-9323825 pid 1561 project:None app:None user:None>, re-raising it
> 10:37:46,732 ERROR [allura.command] taskd error 'NoneType' object has no
> attribute '_id'; pausing for 10s before taking more tasks
> Traceback (most recent call last):
>   File "/home/taram/src/forge/Allura/allura/command/taskd.py", line 112, in worker
>     list(wsgi_app(r.environ, start_response))
>   File "/home/taram/anvil/local/lib/python2.7/site-packages/paste/registry.py",
> line 409, in streaming_iter
>     for item in self.application(environ, start_response):
>   File
> "/home/taram/anvil/local/lib/python2.7/site-packages/ming/odm/middleware.py",
> line 16, in __call__
>     result = self.app(environ, start_response)
>   File "/home/taram/src/forge/Allura/allura/lib/custom_middleware.py", line 41,
> in __call__
>     return self.app(environ, start_response)
>   File "/home/taram/anvil/local/lib/python2.7/site-packages/ew/middleware.py",
> line 65, in __call__
>     result = self.app(environ, start_response)
>   File "/home/taram/src/forge/Allura/allura/config/middleware.py", line 164, in
> AlluraGlobalsMiddleware
>     return app(environ, start_response)
>   File "/home/taram/src/forge/Allura/allura/lib/custom_middleware.py", line 121,
> in __call__
>     return self._app(environ, session_start_response)
>   File
> "/home/taram/anvil/local/lib/python2.7/site-packages/timermiddleware/__init__.py",
> line 172, in __call__
>     resp = req.get_response(self.app)
>   File "/home/taram/anvil/local/lib/python2.7/site-packages/webob/request.py",
> line 1053, in get_response
>     application, catch_exc_info=False)
>   File "/home/taram/anvil/local/lib/python2.7/site-packages/webob/request.py",
> line 1022, in call_application
>     app_iter = application(self.environ, start_response)
>   File "/home/taram/src/forge/Allura/allura/lib/custom_middleware.py", line 91,
> in __call__
>     start_response(status, headers, exc_info)
>   File
> "/home/taram/anvil/local/lib/python2.7/site-packages/weberror/evalexception.py",
> line 431, in respond
>     app_iter = self.application(environ, detect_start_response)
>   File
> "/home/taram/anvil/local/lib/python2.7/site-packages/beaker/middleware.py", line
> 152, in __call__
>     return self.wrap_app(environ, session_start_response)
>   File
> "/home/taram/anvil/local/lib/python2.7/site-packages/routes/middleware.py", line
> 131, in __call__
>     response = self.app(environ, start_response)
>   File "/home/taram/anvil/local/lib/python2.7/site-packages/pylons/wsgiapp.py",
> line 107, in __call__
>     response = self.dispatch(controller, environ, start_response)
>   File "/home/taram/anvil/local/lib/python2.7/site-packages/pylons/wsgiapp.py",
> line 312, in dispatch
>     return controller(environ, start_response)
>   File "/home/taram/src/forge/Allura/allura/controllers/task.py", line 11, in
> __call__
>     result = task(restore_context=False)
>   File "/home/taram/src/forge/Allura/allura/model/monq_model.py", line 237, in
> __call__
>     self.result = func(*self.args, **self.kwargs)
>   File "/home/taram/src/forge/Allura/allura/tasks/notification_tasks.py", line
> 6, in notify
>     M.Mailbox.deliver(n_id, ref_id, topic)
>   File "/home/taram/src/forge/Allura/allura/model/notification.py", line 434, in
> deliver
>     'project_id':c.project._id,
> AttributeError: 'NoneType' object has no attribute '_id'
> 
> ************************************************************************************************
> 
> 
> 
> 
> 
> 
> 
> Le 20/03/2013 02:20, Dave Brondsema a écrit :
>> You can access solr's web interface at http://localhost:8983/solr/ (by default)
>> to see if it is working.
>>
>> There's not a formal way to disable solr usage for Allura.  There will be lots
>> of errors unfortunately.
>>
>> On 3/18/13 2:28 AM, nicolas david wrote:
>>> Hi
>>>
>>> thank you for your answer.
>>>
>>> In term of Solr set up, I've just follow the README.markdow step and download
>>> solr version 1.4.1.
>>> Is-it any way to test this solr set-up before to launch allura ?
>>>
>>> I've also try to launch allura without solr, by commenting all solr related
>>> lignes on developpment.ini but I have still some error/warning error related
to
>>> solr. What is the right way to disable solr on allura configuration ?
>>>
>>> Nicolas DAVID
>>>
>>> Le 16/03/2013 17:59, Dave Brondsema a écrit :
>>>> Hi. From the trace it looks like the error is when Allura is talking to the
>>>> solr server. I'm not sure why it would be getting an http forbidden. What
>>>> version of solr are using?  How did you set up solr?
>>>>
>>>> If you want to, you can run Allura without solr configured and it still should
>>>> mostly work. You'll get lots of errors from taskd of course, and pages that
do
>>>> search won't work but everything else should. So that might get you by in
the
>>>> meantime.
>>>>
>>>> -- 
>>>> Dave Brondsema
>>>>
>>>> On Mar 15, 2013, at 6:09 AM, nicolas david<nicolas.david@ign.fr
>>>> <mailto:nicolas.david@ign.fr>>  wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> We want to test Allura for our private code management. In order to lead
some
>>>>> tests, I'm trying to install Allura on a fresh Ubuntu 12.04 minimal install.
>>>>>
>>>>> To do so, I'm following step by step the README.markdow.  Except some
minor
>>>>> issues with our proxy setting when dowloading package all run fine until
the
>>>>> task processing initialization step.
>>>>>
>>>>> When running :
>>>>>
>>>>>    (anvil)~/src/forge/Allura$ nohup paster taskd development.ini>
>>>>> ~/logs/taskd.log&
>>>>>
>>>>> It's seems that something goes wrong with our network configuration (proxy
>>>>> settings ?), see taskd.log below.
>>>>> Have you any idea to resolve this issues ?
>>>>>
>>>>> Thank you
>>>>>
>>>>> Nicolas DAVID
>>>>>
>>>>>
>>>>> ***************************
>>>>> /logs/taskd.log***************************************************
>>>>> 10:17:45,418 INFO  [allura.command] Initialize command with config
>>>>> 'development.ini'
>>>>> 10:17:46,254 INFO  [allura.command] Loaded tools
>>>>> 10:17:46,255 INFO  [allura.command] Starting taskd, pid 1241
>>>>> 10:17:46,539 INFO  [ew.resource] Loading ep ew_resources =
>>>>> allura.config.resources:register_ew_resources
>>>>> 10:17:46,558 INFO  [ew.resource] Loading ep ew_resources =
>>>>> forgeactivity.config.resources:register_ew_resources
>>>>> 10:17:46,561 INFO  [ew.resource] Loading ep ew_resources =
>>>>> forgetracker.config.resources:register_ew_resources
>>>>> 10:17:46,754 INFO  [allura.model.monq_model] starting<MonQTask
>>>>> 51420980200cb40b3bea23a1 (busy) P:10 allura.tasks.index_tasks.add_artifacts
>>>>> del-9323825 pid 1241 project:None app:None user:None>
>>>>> 10:17:46,787 INFO  [allura.model.monq_model] Error on job<MonQTask
>>>>> 51420980200cb40b3bea23a1 (busy) P:10 allura.tasks.index_tasks.add_artifacts
>>>>> del-9323825 pid 1241 project:None app:None user:None>, re-raising
it
>>>>> 10:17:47,161 ERROR [allura.command] taskd error (403, 'Forbidden'); pausing
>>>>> for 10s before taking more tasks
>>>>> Traceback (most recent call last):
>>>>>    File "/home/taram/src/forge/Allura/allura/command/taskd.py", line
112, in
>>>>> worker
>>>>>      list(wsgi_app(r.environ, start_response))
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/paste/registry.py",
line
>>>>> 409, in streaming_iter
>>>>>      for item in self.application(environ, start_response):
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/ming/odm/middleware.py",
>>>>> line 16, in __call__
>>>>>      result = self.app(environ, start_response)
>>>>>    File "/home/taram/src/forge/Allura/allura/lib/custom_middleware.py",
line
>>>>> 41, in __call__
>>>>>      return self.app(environ, start_response)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/ew/middleware.py",
line
>>>>> 65, in __call__
>>>>>      result = self.app(environ, start_response)
>>>>>    File "/home/taram/src/forge/Allura/allura/config/middleware.py", line
164,
>>>>> in AlluraGlobalsMiddleware
>>>>>      return app(environ, start_response)
>>>>>    File "/home/taram/src/forge/Allura/allura/lib/custom_middleware.py",
line
>>>>> 121, in __call__
>>>>>      return self._app(environ, session_start_response)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/timermiddleware/__init__.py",
>>>>>
>>>>> line 172, in __call__
>>>>>      resp = req.get_response(self.app)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/webob/request.py",
line
>>>>> 1053, in get_response
>>>>>      application, catch_exc_info=False)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/webob/request.py",
line
>>>>> 1022, in call_application
>>>>>      app_iter = application(self.environ, start_response)
>>>>>    File "/home/taram/src/forge/Allura/allura/lib/custom_middleware.py",
line
>>>>> 91, in __call__
>>>>>      start_response(status, headers, exc_info)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/weberror/evalexception.py",
>>>>>
>>>>> line 431, in respond
>>>>>      app_iter = self.application(environ, detect_start_response)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/beaker/middleware.py",
>>>>> line 152, in __call__
>>>>>      return self.wrap_app(environ, session_start_response)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/routes/middleware.py",
>>>>> line 131, in __call__
>>>>>      response = self.app(environ, start_response)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/pylons/wsgiapp.py",
line
>>>>> 107, in __call__
>>>>>      response = self.dispatch(controller, environ, start_response)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/pylons/wsgiapp.py",
line
>>>>> 312, in dispatch
>>>>>      return controller(environ, start_response)
>>>>>    File "/home/taram/src/forge/Allura/allura/controllers/task.py", line
11, in
>>>>> __call__
>>>>>      result = task(restore_context=False)
>>>>>    File "/home/taram/src/forge/Allura/allura/model/monq_model.py", line
237,
>>>>> in __call__
>>>>>      self.result = func(*self.args, **self.kwargs)
>>>>>    File "/home/taram/src/forge/Allura/allura/tasks/index_tasks.py", line
36,
>>>>> in add_artifacts
>>>>>      g.solr.add(solr_updates)
>>>>>    File "/home/taram/src/forge/Allura/allura/lib/solr.py", line 22, in
add
>>>>>      return pysolr.Solr.add(self, *args, **kw)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/timermiddleware/__init__.py",
>>>>>
>>>>> line 116, in wrapper
>>>>>      return self.run_and_log(func, inst, *args, **kwargs)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/timermiddleware/__init__.py",
>>>>>
>>>>> line 141, in run_and_log
>>>>>      return func(*args, **kwargs)
>>>>>    File "/home/taram/anvil/local/lib/python2.7/site-packages/pysolr.py",
line
>>>>> 703, in add
>>>>>      response = self._update(m, commit=commit, waitFlush=waitFlush,
>>>>> waitSearcher=waitSearcher)
>>>>>    File "/home/taram/anvil/local/lib/python2.7/site-packages/pysolr.py",
line
>>>>> 401, in _update
>>>>>      return self._send_request('POST', path, message, {'Content-type':
>>>>> 'text/xml; charset=utf-8'})
>>>>>    File "/home/taram/anvil/local/lib/python2.7/site-packages/pysolr.py",
line
>>>>> 310, in _send_request
>>>>>      headers, response = http.request(url, method=method, body=body,
>>>>> headers=headers)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/httplib2/__init__.py",
>>>>> line 1544, in request
>>>>>      (response, content) = self._request(conn, authority, uri, request_uri,
>>>>> method, body, headers, redirections, cachekey)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/httplib2/__init__.py",
>>>>> line 1294, in _request
>>>>>      (response, content) = self._conn_request(conn, request_uri, method,
body,
>>>>> headers)
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/httplib2/__init__.py",
>>>>> line 1230, in _conn_request
>>>>>      conn.connect()
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/httplib2/__init__.py",
>>>>> line 880, in connect
>>>>>      self.sock.connect((self.host, self.port) + sa[2:])
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/httplib2/socks.py",
line
>>>>> 424, in connect
>>>>>      self.__negotiatehttp(destpair[0], destpair[1])
>>>>>    File
>>>>> "/home/taram/anvil/local/lib/python2.7/site-packages/httplib2/socks.py",
line
>>>>> 390, in __negotiatehttp
>>>>>      raise HTTPError((statuscode, statusline[2]))
>>>>> HTTPError: (403, 'Forbidden')
>>>>> 10:17:57,232 INFO  [allura.model.monq_model] starting<MonQTask
>>>>> 51420980200cb40b3bea23a4 (busy) P:10 allura.tasks.index_tasks.add_artifacts
>>>>> del-9323825 pid 1241 project:None app:None user:None>
>>>>> 10:17:57,238 INFO  [allura.model.monq_model] Error on job<MonQTask
>>>>> 51420980200cb40b3bea23a4 (busy) P:10 allura.tasks.index_tasks.add_artifacts
>>>>> del-9323825 pid 1241 project:None app:None user:None>, re-raising
it
>>>>> 10:17:57,405 ERROR [allura.command] taskd error (403, 'Forbidden'); pausing
>>>>> for 10s before taking more tasks
>>>>> ***************************
>>>>> ***************************************************
>>
>>
> 



-- 
Dave Brondsema : dave@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
              <><

Mime
View raw message