Hi Dave, Thanks for your help, I really appreciate it.
I went through the installation part relative to solr as you suggested, but the problem was still there. Then I tried at a certain point to re-create allura again, calling env-allura)~/src/allura/Allura$ paster setup-app development.ini and I noticed that the same error was logged during allura creation... well it turned out solr wasn't installed at all on my system :) I know that for you guys that is perfectly logic but I would suggest to add a couple of lines on the installation documentation and specify to install solr. I followed the instructions here: https://www.digitalocean.com/community/tutorials/how-to-install-solr-on-ubuntu-14-04 the "Manual" part. Well now is really late here, tomorrow I think I will bother this list asking help to set up svn and git. Thanks again. Dan On 11 November 2014 23:49, Dave Brondsema <[email protected]> wrote: > Most of the lines in that traceback are just passing up the root error from > Solr. The last line with the solr error is the real issue. "no segments* > file > found in NRTCachingDirectory" I haven't seen that before. Some google > results > for that indicate you might need to reinitialize solr or something like > that (I > would try redoing the SOLR section of the Allura INSTALL file). Or > perhaps the > ~/logs/solr.log file has some useful warnings/errors to show what happened. > > On 11/11/14 5:02 AM, Daniele Niero wrote: > > Unfotunately that didn't work, I got this error back: > > > > Traceback (most recent call last): > > File "/home/daniele/src/allura/Allura/allura/model/monq_model.py", > line 265, in __call__ > > self.result = func(*self.args, **self.kwargs) > > File "/home/daniele/src/allura/Allura/allura/scripts/scripttask.py", > line 72, in __new__ > > cls._execute_task(arg_string) > > File "/home/daniele/src/allura/Allura/allura/scripts/scripttask.py", > line 80, in _execute_task > > cls.execute(options) > > File > "/home/daniele/src/allura/Allura/allura/scripts/reindex_users.py", line 49, > in execute > > add_users(chunk) > > File "/home/daniele/src/allura/Allura/allura/tasks/index_tasks.py", > line 63, in add_users > > __add_objects(users) > > File "/home/daniele/src/allura/Allura/allura/tasks/index_tasks.py", > line 38, in __add_objects > > solr_instance.add([obj.solarize() for obj in objects]) > > File "/home/daniele/src/allura/Allura/allura/lib/solr.py", line 97, in > add > > responses.append(solr.add(*args, **kw)) > > File > "/home/daniele/env-allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", > line 117, in wrapper > > return self.run_and_log(func, inst, *args, **kwargs) > > File > "/home/daniele/env-allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", > line 142, in run_and_log > > retval = func(*args, **kwargs) > > File > "/home/daniele/env-allura/local/lib/python2.7/site-packages/pysolr.py", > line 703, in add > > response = self._update(m, commit=commit, waitFlush=waitFlush, > waitSearcher=waitSearcher) > > File > "/home/daniele/env-allura/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/daniele/env-allura/local/lib/python2.7/site-packages/pysolr.py", > line 322, in _send_request > > raise SolrError(error_message) > > SolrError: [Reason: None] > > <response><lst name="responseHeader"><int name="status">500</int><int > name="QTime">12</int></lst><lst name="error"><str name="msg">no segments* > file found in > NRTCachingDirectory(org.apache.lucene.store.MMapDirectory@/home/daniele/env-allura/src/solr-4.2.1/example/solr/collection1/data/index > lockFactory=org.apache.lucene.store.NativeFSLockFactory@618fadbb; > maxCacheMB=48.0 maxMergeSizeMB=4.0): files: [write.lock]</str><str > name="trace">org.apache.lucene.index.IndexNotFoundException: no segments* > file found in > NRTCachingDirectory(org.apache.lucene.store.MMapDirectory@/home/daniele/env-allura/src/solr-4.2.1/example/solr/collection1/data/index > lockFactory=org.apache.lucene.store.NativeFSLockFactory@618fadbb; > maxCacheMB=48.0 maxMergeSizeMB=4.0): files: [write.lock] at > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:741) > at > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:630) > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos. > j > ava:343) at > org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:673) at > org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:77) > at org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:64) > at > org.apache.solr.update.DefaultSolrCoreState.createMainIndexWriter(DefaultSolrCoreState.java:198) > at > org.apache.solr.update.DefaultSolrCoreState.getIndexWriter(DefaultSolrCoreState.java:111) > at > org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:148) > at > org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69) > at > org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51) > at > org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:451) > at > org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:587) > at org.apache.solr.update.processor.DistributedUpdateProcessor.process > A > dd(DistributedUpdateProcessor.java:346) at > org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:100) > at > org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:246) > at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:173) at > org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92) > at > org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1817) at > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:639) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307) > at org.eclipse.jetty.servlet > . > ServletHandler.doHandle(ServletHandler.java:453) at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) > at > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) > at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) > at org.eclipse.j > e > tty.server.Server.handle(Server.java:365) at > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485) > at > org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) > at > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937) > at > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) > at > org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) > at > org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) > at java.lang.Thread.run(Thread.java:745)</str><int name="code">500</ > i > nt></lst></response> > > > > > > > > On 10 November 2014 22:27, Dave Brondsema <[email protected] > > <mailto:[email protected]>> wrote: > > > > On 11/10/14 12:44 PM, Daniele Niero wrote: > > > Hi Dave, > > > > > > Thank for the help. > > > > > > I haven't tried to remove them from the Mongo DB yet, I will do it > soon. That > > > means there isn't a simple way to remove a project through the > interface, am I > > > correct? > > > > > > > Right, you can do a "soft" delete but that just hides it. > > > > > however, about removing the users from /nf/admin, it seems I can > find any, most > > > probably the search doesn't work. Solr problem? > > > > Yeah I think the users aren't indexed in Solr initially. We should > fix that in > > our setup instructions. What you can do is go to > /nf/admin/task_manager/new and > > put "allura.scripts.reindex_users.ReindexUsers" in the Task Name and > run that. > > That should index everyone and make them searchable. > > > > > > > > You can see it yourself http://allura.danieleniero.it/nf/admin > > > > > > I'm using this complete open installation to learn more about > Allura. > > > I really love the software, but it seems still in a very early > stage isn't it? > > > > > > > It actually has been used a lot, but not very broadly. So I mean > there is a lot > > of functionality, it'll scale well, it can handle most user input > without > > errors, etc. But not many people have deployed it so the getting > started > > instructions and configuration process is still a bit rough. > > > > > Anyway I will have a tons of questions in the next days because I > really want it > > > up and running. I hope I won't annoying you guys too much with > silly questions: > > > > Please send them! It'll help us smooth out the process for getting > Allura up > > and running. > > > > > I'm not an expert of web technology. > > > > > > Cheers, > > > Dan > > > > > > On 10 November 2014 17:55, Dave Brondsema <[email protected] > <mailto:[email protected]> > > > <mailto:[email protected] <mailto:[email protected]>>> wrote: > > > > > > On 11/10/14 7:29 AM, Daniele Niero wrote: > > > > > > > > Hi, > > > > > > > > I have just managed to install and run Allura and I noticed > in comes with > > > a lot > > > > of test projects and users. > > > > > > > > From the root user I saw I can delete a project, however the > project is note > > > > really delete, it becomes simply invisible to normal users. > > > > > > > > How can I delete a project for good? > > > > > > > > Same things goes for Users, how do I delete them for good? > > > > > > > > Cheers, > > > > Dan > > > > > > > > > You can remove them directly from the mongo database. This > mail has some > > > example commands http://markmail.org/message/5hlluycsyl53w2am > > > > > > If you are using the latest code from git (as compared to the > 1.1.0 release) > > > then you can go to /nf/admin and search for the users and > disable them there > > > instead of the db.user.update commands > > > > > > > > > -- > > > Dave Brondsema : [email protected] <mailto:[email protected] > > > > <mailto:[email protected] <mailto:[email protected]>> > > > http://www.brondsema.net : personal > > > http://www.splike.com : programming > > > <>< > > > > > > > > > > > > > > -- > > Dave Brondsema : [email protected] <mailto:[email protected]> > > http://www.brondsema.net : personal > > http://www.splike.com : programming > > <>< > > > > > > > > -- > Dave Brondsema : [email protected] > http://www.brondsema.net : personal > http://www.splike.com : programming > <>< >
