dev1
2013-04-08
2013-04-26
  • dev1
    dev1
    2013-04-08

    I installed allura in ubuntu machine.created chroot for scm hosting.Evrything is working fine when the auth.method =local in development.ini file.If i change authentication method to "ldap",getting an internal server error.Please help me in fixing this

     
  • Rui Ferreira
    Rui Ferreira
    2013-04-09

    Hi there.

    Without some further logs it might be hard for me to offer any assistance. Can you get some error messages from paster?

    When you enable the ldap auth backend some features will not work (or will work differently). If you check Allura/lib/plugin.py you can see that the LDAP backend does not support some operations.

    In any case you can always post an email at the allura mailing lists or check the docs at docs/scm_host.rst.

     
    Last edit: Rui Ferreira 2013-04-11
  • dev1
    dev1
    2013-04-15

    taskd.log .Getting error in adding indexing for artifacts
    please help me out
    11:41:59,628 INFO [allura.command] Initialize command with config 'development.ini'
    11:41:59,895 INFO [allura.command] Loaded tools
    11:41:59,895 INFO [allura.command] Starting taskd, pid 503
    11:41:59,995 INFO [ew.resource] Loading ep ew_resources = allura.config.resources:register_ew_resources
    11:41:59,998 INFO [ew.resource] Loading ep ew_resources = forgeactivity.config.resources:register_ew_resources
    11:41:59,999 INFO [ew.resource] Loading ep ew_resources = forgetracker.config.resources:register_ew_resources
    11:42:12,039 INFO [allura.model.monq_model] starting
    11:42:12,092 INFO [pysolr] Finished 'http://localhost:8983/solr/core0/update/?commit=false' (POST) with body '[stats] {"url": "/--allura.tasks.index_tasks.add_artifacts--/", "uptime": 12, "call_counts": {"markdown": 1, "mong o": 15, "socket_read": 6, "total": 1, "solr": 1, "socket_write": 1, "ming": 18}, "request_category": "wiki", "timings": {"markdown": 1, "mongo": 3, "ming": 10, "socket_write": 0, "socket_read": 28, "total": 68, "solr": 29}} 11:42:12,097 INFO [allura.model.monq_model] starting
    11:42:12,108 INFO [pysolr] Finished 'http://localhost:8983/solr/core0/update/?commit=false' (POST) with body '[stats] {"url": "/--allura.tasks.index_tasks.add_artifacts--/", "uptime": 12, "call_counts": {"markdown": 1, "mong o": 17, "socket_read": 6, "total": 1, "solr": 1, "socket_write": 1, "ming": 20}, "request_category": "wiki", "timings": {"markdown": 0, "mongo": 1, "ming": 6, "socket_write": 0, "socket_read": 0, "total": 14, "solr": 5}} 11:42:12,112 INFO [allura.model.monq_model] starting
    11:42:12,127 ERROR [allura.tasks.index_tasks] Error indexing artifact forgewiki/model/wiki/Page#516b9a3bb1a5b60202864250
    11:42:12,134 INFO [pysolr] Finished 'http://localhost:8983/solr/core0/update/?commit=false' (POST) with body '[allura.model.monq_model] Error on job , re-raising it
    11:42:12,235 ERROR [allura.command] taskd error user_project_shortname; pausing for 10s before taking more tasks
    Traceback (most recent call last):
    File "/home/pc247053/src/allura/Allura/allura/command/taskd.py", line 112, in worker
    list(wsgi_app(r.environ, start_response))
    File "/usr/local/lib/python2.7/dist-packages/paste/registry.py", line 409, in streaming_iter
    for item in self.application(environ, start_response):
    File "/usr/local/lib/python2.7/dist-packages/ming/odm/middleware.py", line 16, in call
    result = self.app(environ, start_response)
    File "/home/pc247053/src/allura/Allura/allura/lib/custom_middleware.py", line 41, in call
    return self.app(environ, start_response)
    File "/usr/local/lib/python2.7/dist-packages/ew/middleware.py", line 65, in call
    result = self.app(environ, start_response)
    File "/home/pc247053/src/allura/Allura/allura/config/middleware.py", line 164, in AlluraGlobalsMiddleware
    return app(environ, start_response)
    File "/home/pc247053/src/allura/Allura/allura/lib/custom_middleware.py", line 121, in call
    return self._app(environ, session_start_response)
    File "/usr/local/lib/python2.7/dist-packages/timermiddleware/init.py", line 172, in call
    resp = req.get_response(self.app)
    File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
    application, catch_exc_info=False)
    File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
    app_iter = application(self.environ, start_response)
    File "/home/pc247053/src/allura/Allura/allura/lib/custom_middleware.py", line 91, in call
    start_response(status, headers, exc_info)
    File "/usr/local/lib/python2.7/dist-packages/weberror/evalexception.py", line 431, in respond

     
  • dev1
    dev1
    2013-04-15

    Hi please check the solr.log below.I need help in fixing these severe errors

    15 Apr, 2013 11:43:15 AM org.apache.solr.search.SolrIndexSearcher
    INFO: Opening Searcher@5484ff20 main
    15 Apr, 2013 11:43:15 AM org.apache.solr.update.DirectUpdateHandler2 commit
    INFO: end_commit_flush
    15 Apr, 2013 11:43:15 AM org.apache.solr.search.SolrIndexSearcher warm
    INFO: autowarming Searcher@5484ff20 main from Searcher@10ea443f main
    fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
    15 Apr, 2013 11:43:15 AM org.apache.solr.search.SolrIndexSearcher warm
    INFO: autowarming result for Searcher@5484ff20 main
    fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
    15 Apr, 2013 11:43:15 AM org.apache.solr.core.SolrCore registerSearcher
    INFO: [core0] Registered new searcher Searcher@5484ff20 main
    15 Apr, 2013 11:43:15 AM org.apache.solr.search.SolrIndexSearcher close
    INFO: Closing Searcher@10ea443f main
    fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
    15 Apr, 2013 11:48:45 AM org.apache.solr.update.processor.LogUpdateProcessor finish
    INFO: {} 0 5
    15 Apr, 2013 11:48:45 AM org.apache.solr.common.SolrException log
    SEVERE: org.apache.solr.common.SolrException: missing content stream
    at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:49)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
    at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
    at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:285)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
    at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

    15 Apr, 2013 11:48:45 AM org.apache.solr.core.SolrCore execute
    INFO: [core0] webapp=/solr path=/update params={} status=400 QTime=5
    15 Apr, 2013 11:51:40 AM org.apache.solr.update.processor.LogUpdateProcessor finish
    INFO: {} 0 0
    15 Apr, 2013 11:51:40 AM org.apache.solr.common.SolrException log
    SEVERE: org.apache.solr.common.SolrException: missing content stream
    at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:49)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
    at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
    at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:285)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
    at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

    15 Apr, 2013 11:51:40 AM org.apache.solr.core.SolrCore execute
    INFO: [core0] webapp=/solr path=/update params={} status=400 QTime=0
    15 Apr, 2013 11:51:57 AM org.apache.solr.core.SolrCore execute
    INFO: [core0] webapp=/solr path=/admin/file/ params={file=solrconfig.xml} status=0 QTime=1
    15 Apr, 2013 11:52:11 AM org.apache.solr.core.SolrCore execute
    INFO: [core0] webapp=/solr path=/admin/luke params={wt=json&show=schema} status=0 QTime=16
    15 Apr, 2013 11:52:11 AM org.apache.solr.core.SolrCore execute
    INFO: [core0] webapp=/solr path=/admin/luke params={wt=json} status=0 QTime=105
    15 Apr, 2013 11:58:22 AM org.apache.solr.core.SolrCore execute
    INFO: [core0] webapp=/solr path=/admin/file/ params={file=solrconfig.xml} status=0 QTime=0
    15 Apr, 2013 12:30:58 PM org.apache.solr.update.processor.LogUpdateProcessor finish
    INFO: {} 0 0
    15 Apr, 2013 12:30:58 PM org.apache.solr.common.SolrException log
    SEVERE: org.apache.solr.common.SolrException: missing content stream
    at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:49)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)

     
  • Rui Ferreira
    Rui Ferreira
    2013-04-15

    Hi,

    Can't say I am familiar with any of those error messages.

    1. Seems like a generic error getting the list of endpoints
    2. I really don't know about solr, our setup never had any issues with solr

    The only piece of info I find familiar (and relating to LDAP) is this line

    11:42:12,235 ERROR [allura.command] taskd error user_project_shortname; pausing for 10s before taking more tasks
    

    In the version of allura we are running the LDAP auth backend did not have the user_project_shortname() function (Allura/allura/lib/plugin.py
    ) which caused allura to throw in some NotImplemented errors.

    Does this happen whenever you try to add a wiki page? Or does it also happen in other situations, like simply accessing the user pages /u/username?

     
  • dev1
    dev1
    2013-04-16

    Hi
    thank you for the reply
    It happens whenever i access user pages.I fixed the solr errors by changing the solrconfig file.Please help me out in fixing this ldap backend errors.I am unable to register a user and login.

     
  • dev1
    dev1
    2013-04-16

    while running paster setup-app development.ini getting attribute errors as below:
    AttributeError: 'NoneType' object has no attribute '_id'

    ERROR [allura.model.project] userstats is not available
    how can i fix this errors??

     
    • Rui Ferreira
      Rui Ferreira
      2013-04-26

      Hi, sorry for delay, I was away for a while here,

      AttributeError: 'NoneType' object has no attribute '_id'
      

      Do you have log for this error? Some more details would be usefull.

      ERROR [allura.model.project] userstats is not available

      This one here seems to be about userstats. I don't know which version you are running but the version we have right now still has no support for userstats, so I have no usefull info about that until we upgrade.

      BR

       
      Last edit: Rui Ferreira 2013-04-26