You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by "Martens, Jason" <jm...@cityofevanston.org> on 2005/08/24 22:17:15 UTC
permissions error with nutch 0.7
Hey all,
I'm trying to install nutch 0.7, and I think I mostly have it
installed correctly, but I keep getting this error when I try to
search for something:
java.io.IOException: Permission denied
java.io.UnixFileSystem.createFileExclusively(Native Method)
java.io.File.createNewFile(File.java:828)
org.apache.lucene.store.FSDirectory$1.obtain(FSDirectory.java:357)
org.apache.lucene.store.Lock.obtain(Lock.java:53)
org.apache.lucene.store.Lock$With.run(Lock.java:108)
org.apache.lucene.index.IndexReader.open(IndexReader.java:140)
org.apache.lucene.index.IndexReader.open(IndexReader.java:124)
org.apache.nutch.searcher.IndexSearcher.<init>(IndexSearcher.java:69)
org.apache.nutch.searcher.NutchBean.init(NutchBean.java:90)
org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:82)
org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:72)
org.apache.nutch.searcher.NutchBean.get(NutchBean.java:64)
org.apache.jsp.search_jsp._jspService(search_jsp.java:112)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
I've checked all the permissions that I can think of, and set most of
them to
777. But I can't figure out exactly where it is that it's trying to
write to,
but none of the logs say which file it it is trying to access.
Any suggestions would be appreciated.
Thanks,
Jason Martens
Re: permissions error with nutch 0.7
Posted by Piotr Kosiorowski <pk...@gmail.com>.
It looks like it has problem creating lucene lock file - I think it is
usually created in /tmp if you are running it on Unix. Can you check
if you can correctly access it?
Regards
Piotr
On 8/25/05, Jason Martens <jm...@cityofevanston.org> wrote:
> On Wed, 2005-08-24 at 18:20 -0700, Michael Ji wrote:
> > did you try switch your user mode to su (Super User)
> > mode?
>
> In nutch itself? I configured this all as root, and I would rather not
> run tomcat as root. Is there some way I can find out what files it is
> trying to write to when it gets the permission denied message?
>
> Jason Martens
>
>
Re: permissions error with nutch 0.7
Posted by Jason Martens <jm...@cityofevanston.org>.
On Wed, 2005-08-24 at 18:20 -0700, Michael Ji wrote:
> did you try switch your user mode to su (Super User)
> mode?
In nutch itself? I configured this all as root, and I would rather not
run tomcat as root. Is there some way I can find out what files it is
trying to write to when it gets the permission denied message?
Jason Martens
Re: permissions error with nutch 0.7
Posted by Michael Ji <fj...@yahoo.com>.
did you try switch your user mode to su (Super User)
mode?
Michael Ji
--- "Martens, Jason" <jm...@cityofevanston.org>
wrote:
> Hey all,
> I'm trying to install nutch 0.7, and I think I
> mostly have it
> installed correctly, but I keep getting this error
> when I try to
> search for something:
>
>
> java.io.IOException: Permission denied
> java.io.UnixFileSystem.createFileExclusively(Native
> Method)
> java.io.File.createNewFile(File.java:828)
>
>
org.apache.lucene.store.FSDirectory$1.obtain(FSDirectory.java:357)
> org.apache.lucene.store.Lock.obtain(Lock.java:53)
>
> org.apache.lucene.store.Lock$With.run(Lock.java:108)
>
>
org.apache.lucene.index.IndexReader.open(IndexReader.java:140)
>
>
org.apache.lucene.index.IndexReader.open(IndexReader.java:124)
>
>
org.apache.nutch.searcher.IndexSearcher.<init>(IndexSearcher.java:69)
>
>
org.apache.nutch.searcher.NutchBean.init(NutchBean.java:90)
>
>
org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:82)
>
>
org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:72)
>
>
org.apache.nutch.searcher.NutchBean.get(NutchBean.java:64)
>
>
org.apache.jsp.search_jsp._jspService(search_jsp.java:112)
>
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:324)
>
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> I've checked all the permissions that I can think
> of, and set most of
> them to
> 777. But I can't figure out exactly where it is
> that it's trying to
> write to,
> but none of the logs say which file it it is trying
> to access.
>
> Any suggestions would be appreciated.
>
> Thanks,
> Jason Martens
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com