I am running Raspbian stretch on Raspberry Pi 2/3 and installed Orthanc 1.2 using the repositories of stretch distribution - i.e. sudo apt-get install orthanc. I have attached an external hard disk using a powered USB hub to my RPi. IT is formatted as NTFS and labelled "OrthancPiStorage". There is a folder "OrthancStorage" on the HDD. It gets mounted at "/media/pi/OrthancPiStorage". And I can write to the disk and read from the disk.
I want to use the folder "OrthancStorage" as the folder for storing the data (DICOM files) of Orthanc server. I modified the "/etc/orthanc/orthanc.json" to include
"StorageDirectory" : "/media/pi/OrthancPiStorage/OrthancStorage",
and commented out the default location in the configuration file.
after I restart service orthanc (sudo service orthanc restart) the Orthanc.log is as follows -
W0924 00:47:05.617477 main.cpp:1238] Orthanc version: 1.2.0
W0924 00:47:05.617636 main.cpp:1095] Performance warning: Non-release build, runtime debug assertions are turned on
W0924 00:47:05.625580 OrthancInitialization.cpp:173] Scanning folder "/etc/orthanc/" for configuration files
W0924 00:47:05.625815 OrthancInitialization.cpp:125] Reading the configuration from: "/etc/orthanc/serve-folders.json"
W0924 00:47:05.626281 OrthancInitialization.cpp:125] Reading the configuration from: "/etc/orthanc/worklists.json"
W0924 00:47:05.626469 OrthancInitialization.cpp:125] Reading the configuration from: "/etc/orthanc/orthanc.json"
W0924 00:47:05.711692 FromDcmtkBridge.cpp:141] Loading the external DICOM dictionary "/usr/share/libdcmtk8/dicom.dic"
W0924 00:47:05.790013 FromDcmtkBridge.cpp:141] Loading the external DICOM dictionary "/usr/share/libdcmtk8/private.dic"
W0924 00:47:05.847055 OrthancInitialization.cpp:488] Registering JPEG Lossless codecs
W0924 00:47:05.847222 OrthancInitialization.cpp:493] Registering JPEG codecs
W0924 00:47:05.914637 main.cpp:632] Loading plugin(s) from: /usr/share/orthanc/plugins/
W0924 00:47:05.916165 PluginsManager.cpp:268] Registering plugin 'serve-folders' (version 1.2.0)
W0924 00:47:05.917590 PluginsManager.cpp:167] ServeFolders: Empty configuration file: No additional folder will be served!
W0924 00:47:05.918387 PluginsManager.cpp:268] Registering plugin 'worklists' (version 1.2.0)
W0924 00:47:05.918450 PluginsManager.cpp:167] Sample worklist plugin is initializing
W0924 00:47:05.919117 PluginsManager.cpp:167] Worklists server is disabled by the configuration file
W0924 00:47:05.919219 OrthancInitialization.cpp:986] SQLite index directory: "/var/lib/orthanc/db-v6"
W0924 00:47:05.919959 OrthancInitialization.cpp:1056] Storage directory: "/media/pi/OrthancPiStorage/OrthancStorage"
W0924 00:47:05.920322 PluginsManager.cpp:218] Unregistering plugin 'serve-folders' (version 1.2.0)
W0924 00:47:05.920474 PluginsManager.cpp:218] Unregistering plugin 'worklists' (version 1.2.0)
W0924 00:47:05.920514 PluginsManager.cpp:167] Sample worklist plugin is finalising
E0924 00:47:05.920697 main.cpp:1281] Uncaught exception, stopping now: [boost::filesystem::status: Permission denied: "/media/pi/OrthancPiStorage/OrthancStorage"]
W0924 00:47:05.921864 main.cpp:1297] Orthanc has stopped
What am I doing wrong. I know that it should work as it worked once in the same setting but the sd-card got corrupted and I had to write another and have not been able to get it to work again.