Running Actor docker container encountered AccessDeniedException: /var/lib/actor/files

Posted in Installation by ferrlin Thu Mar 10 2016 03:31:27 GMT+0000 (UTC)·2·Viewed 577 times

I was able to proceed from my last issue and now I can run actor-messenger and postgres in a multi-container environment with docker-compose. The problem now is that when actor is running an Access Denied Exception is thrown. Have you encountered this same issue when running it on a docker container? Any help is very much appreaciated. Thanks in Advance.
ferrlin
Mar 10, 2016
This is the stack trace that is throwing the exception: 03:26:00.362UTC ERROR akka.actor.ActorSystemImpl akka.actor.ActorSystemImpl(actor-server) Failed to initialize local file storage. You should provide correct path to directory with read and write permissions for user `actor` app_1 | java.nio.file.AccessDeniedException: /var/lib/actor/files app_1 | at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[na:1.8.0_72-internal] app_1 | at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[na:1.8.0_72-internal] app_1 | at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[na:1.8.0_72-internal] app_1 | at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) ~[na:1.8.0_72-internal] app_1 | at java.nio.file.Files.createDirectory(Files.java:674) ~[na:1.8.0_72-internal] app_1 | at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[na:1.8.0_72-internal] app_1 | at java.nio.file.Files.createDirectories(Files.java:767) ~[na:1.8.0_72-internal] app_1 | at better.files.File.createDirectories(File.scala:85) ~[com.github.pathikrit.better-files_2.11-2.13.0.jar:2.13.0] app_1 | at better.files.File.createIfNotExists(File.scala:58) ~[com.github.pathikrit.better-files_2.11-2.13.0.jar:2.13.0] app_1 | at im.actor.server.file.local.LocalFileStorageAdapter.im$actor$server$file$local$LocalFileStorageAdapter$$$anonfun$2(LocalFileStorageAdapter.scala:63) ~[im.actor.server.actor-fs-adapters-1.0.152-SNAPSHOT.jar:1.0.152-SNAPSHOT]
ferrlin
Mar 11, 2016
This is fix now. I need to set the permission of the folder from the host machine (ie macosx) so that docker can do the rw operations for user/group 'actor'.
  
Markdown is allowed