kamalasv / orthanc

Automatically exported from code.google.com/p/orthanc
GNU General Public License v3.0
0 stars 0 forks source link

Permission denied: "WebViewerCache" when running init script #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to automatically run Orthanc on boot with the webviewer plugin 
installed.

When trying to install the orthanc.init script for debian as described in the 
file, There is no error returned, but Orthanc does not start. Orthanc.ERROR log 
shows:

boost::filesystem::create_directory: Permission denied: "WebViewerCache"

The Orthanc user in the script is correctly configured for my system 
(ORTHANC_USER=ubuntu:ubuntu)

Orthanc runs without problems if invoked directly with that user, using:

./OrthancBuild/Orthanc ~/Configuration.json

The directory when created by running Orthanc directly has all permissions set 
for my user.

Original issue reported on code.google.com by simo...@gmail.com on 22 Apr 2015 at 3:56

GoogleCodeExporter commented 9 years ago
Hi,

You should specify an explicit path for the location of the cache, for instance:

{
   [...]
   "WebViewer" : {
     "CachePath" : "/tmp/WebViewerCache"
     [...]
   }
}

Does this solve your problem?

Original comment by s.jodo...@gmail.com on 22 Apr 2015 at 10:43

GoogleCodeExporter commented 9 years ago
That did the trick, thanks!

Original comment by simo...@gmail.com on 23 Apr 2015 at 3:17

GoogleCodeExporter commented 9 years ago
Fine! I close the issue.

Original comment by s.jodo...@gmail.com on 23 Apr 2015 at 7:15