cancel
Showing results for 
Search instead for 
Did you mean: 

Error while installing Alfresco-search-services 1.3

akash251998
Star Contributor
Star Contributor

I am installing Alfresco community version 6.0.7 on Ubuntu 18.04 LTS with alfresco-search-services.

While installing alfresco-search-services in ubuntu 18.04 LTS when i am running the command:-

./solr start -a "-Dcreate.alfresco.defaults=alfresco,archive"

I am getting the error described below:-

Exception in thread "main" java.nio.file.AccessDeniedException: /home/dms/acs/alfresco-search-services/solr/server/../../logs/archived
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:3889)
at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3872)
at org.apache.solr.util.SolrCLI.main(SolrCLI.java:257)
Failed archiving old GC logs
Exception in thread "main" java.nio.file.AccessDeniedException: /home/dms/acs/alfresco-search-services/solr/server/../../logs/archived
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:3918)
at org.apache.solr.util.SolrCLI$UtilsTool.runTool(SolrCLI.java:3875)
at org.apache.solr.util.SolrCLI.main(SolrCLI.java:257)
Failed archiving old console logs

ERROR: Logs directory ../../logs is not writable. Exiting

What is the error.

1 ACCEPTED ANSWER

I solved the issue instead running the command  :

./solr/bin/solr start -a "-Dcreate.alfresco.defaults=alfresco,archive"
 
Run this command:  ./solr/bin/solr start -force "-Dcreate.alfresco.defaults=alfresco,archive"
 
It solves my issue.

View answer in original post

10 REPLIES 10

EddieMay
World-Class Innovator
World-Class Innovator

Hi @akash251998,

On your Ubunto box you should be able to connect to the database from the cmd prompt like so: 

psql DBNAME USERNAME

 This should show whether postgres is running correctly.

HTH,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!