You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by wlee <wl...@hotmail.com> on 2017/04/04 02:42:15 UTC
Problem starting solr 6.5
Try to start solr and get this error message. What is the problem ?
$ bin/solr start
Exception in thread "main" java.nio.file.AccessDeniedException: /usr/local/solr-6/solr-6.5.0/server/logs
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at org.apache.solr.util.SolrCLI$UtilsTool.archiveGcLogs(SolrCLI.java:3565)
at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3548)
at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250)
Failed archiving old GC logs
Exception in thread "main" java.nio.file.AccessDeniedException: /usr/local/solr-6/solr-6.5.0/server/logs
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at org.apache.solr.util.SolrCLI$UtilsTool.archiveConsoleLogs(SolrCLI.java:3594)
at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3551)
at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250)
Failed archiving old console logs
ERROR: Logs directory /usr/local/solr-6/solr-6.5.0/server/logs could not be created. Exiting
--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-starting-solr-6-5-tp4328227.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem starting solr 6.5
Posted by Rick Leir <rl...@leirtech.com>.
Looks like a file permissions problem to me.
On April 3, 2017 10:42:15 PM EDT, wlee <wl...@hotmail.com> wrote:
>Try to start solr and get this error message. What is the problem ?
>
>
>$ bin/solr start
>
>Exception in thread "main" java.nio.file.AccessDeniedException:
>/usr/local/solr-6/solr-6.5.0/server/logs
>
>at
>sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
>
>at
>sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>
>at
>sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>
>at
>sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
>
>at java.nio.file.Files.createDirectory(Files.java:674)
>
>at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
>
>at java.nio.file.Files.createDirectories(Files.java:767)
>
>at
>org.apache.solr.util.SolrCLI$UtilsTool.archiveGcLogs(SolrCLI.java:3565)
>
>at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3548)
>
>at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250)
>
>Failed archiving old GC logs
>
>Exception in thread "main" java.nio.file.AccessDeniedException:
>/usr/local/solr-6/solr-6.5.0/server/logs
>
>at
>sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
>
>at
>sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>
>at
>sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>
>at
>sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
>
>at java.nio.file.Files.createDirectory(Files.java:674)
>
>at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
>
>at java.nio.file.Files.createDirectories(Files.java:767)
>
>at
>org.apache.solr.util.SolrCLI$UtilsTool.archiveConsoleLogs(SolrCLI.java:3594)
>
>at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3551)
>
>at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250)
>
>Failed archiving old console logs
>
>
>ERROR: Logs directory /usr/local/solr-6/solr-6.5.0/server/logs could
>not be created. Exiting
>
>
>
>
>
>--
>View this message in context:
>http://lucene.472066.n3.nabble.com/Problem-starting-solr-6-5-tp4328227.html
>Sent from the Solr - User mailing list archive at Nabble.com.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: Problem starting solr 6.5
Posted by wlee <wl...@hotmail.com>.
Thanks. I chmod 777 of the solr directory and I can start solr 6.5 now.
--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-starting-solr-6-5-tp4328227p4328373.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem starting solr 6.5
Posted by Yasufumi Mizoguchi <ya...@gmail.com>.
Hi,
I think you should check the permission of
/usr/local/solr-6/solr-6.5.0/server/log
(maybe, you do not have write permission on the directory)
regards,
Yasufumi
On 2017/04/04 11:42, wlee wrote:
> Try to start solr and get this error message. What is the problem ?
>
>
> $ bin/solr start
>
> Exception in thread "main" java.nio.file.AccessDeniedException: /usr/local/solr-6/solr-6.5.0/server/logs
>
> at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
>
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>
> at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
>
> at java.nio.file.Files.createDirectory(Files.java:674)
>
> at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
>
> at java.nio.file.Files.createDirectories(Files.java:767)
>
> at org.apache.solr.util.SolrCLI$UtilsTool.archiveGcLogs(SolrCLI.java:3565)
>
> at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3548)
>
> at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250)
>
> Failed archiving old GC logs
>
> Exception in thread "main" java.nio.file.AccessDeniedException: /usr/local/solr-6/solr-6.5.0/server/logs
>
> at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
>
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>
> at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
>
> at java.nio.file.Files.createDirectory(Files.java:674)
>
> at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
>
> at java.nio.file.Files.createDirectories(Files.java:767)
>
> at org.apache.solr.util.SolrCLI$UtilsTool.archiveConsoleLogs(SolrCLI.java:3594)
>
> at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3551)
>
> at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250)
>
> Failed archiving old console logs
>
>
> ERROR: Logs directory /usr/local/solr-6/solr-6.5.0/server/logs could not be created. Exiting
>
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Problem-starting-solr-6-5-tp4328227.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem starting solr 6.5
Posted by Erick Erickson <er...@gmail.com>.
Looks like a permissions issue.
Best,
Erick
On Mon, Apr 3, 2017 at 7:42 PM, wlee <wl...@hotmail.com> wrote:
> Try to start solr and get this error message. What is the problem ?
>
>
> $ bin/solr start
>
> Exception in thread "main" java.nio.file.AccessDeniedException: /usr/local/solr-6/solr-6.5.0/server/logs
>
> at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
>
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>
> at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
>
> at java.nio.file.Files.createDirectory(Files.java:674)
>
> at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
>
> at java.nio.file.Files.createDirectories(Files.java:767)
>
> at org.apache.solr.util.SolrCLI$UtilsTool.archiveGcLogs(SolrCLI.java:3565)
>
> at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3548)
>
> at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250)
>
> Failed archiving old GC logs
>
> Exception in thread "main" java.nio.file.AccessDeniedException: /usr/local/solr-6/solr-6.5.0/server/logs
>
> at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
>
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
>
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
>
> at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
>
> at java.nio.file.Files.createDirectory(Files.java:674)
>
> at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
>
> at java.nio.file.Files.createDirectories(Files.java:767)
>
> at org.apache.solr.util.SolrCLI$UtilsTool.archiveConsoleLogs(SolrCLI.java:3594)
>
> at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3551)
>
> at org.apache.solr.util.SolrCLI.main(SolrCLI.java:250)
>
> Failed archiving old console logs
>
>
> ERROR: Logs directory /usr/local/solr-6/solr-6.5.0/server/logs could not be created. Exiting
>
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Problem-starting-solr-6-5-tp4328227.html
> Sent from the Solr - User mailing list archive at Nabble.com.