And change the image name in the three places in docker-compose if anyone wishes to test (and feed back please!)
From: image: openrem/openrem:develop
To: image: openrem/openrem:issue897pixelmedpermissions
@David Platten we have another problem with volumes…
If I copy a file into the /imports/ folder/volume, it is always owned by root, group 999. I’ve tried all sorts to get it to at least 777 permissions, but to no avail. The only ‘solution’ I have found so far is to do some weird piping through tar when doing the cp, which will alienate any normal users and probably not work with Windows.
I’ll look again later, but I think this is part of the issue @Alexandr Zub is hitting.
It might be that we need to run the container as root rather than a non-root user
@Ed McDonagh I don’t think I have ever needed to put anything into the imports folder. What is it for?
If you want to import from a local file without using DCMTK storescu, would you not need to do something like:
Actually it is also where orthanc puts the files before calling OpenREM to import them. I have what I think is a working solution by running the container (inside) as root rather than app - let me work it though.
So it seems that when a file is saved to /imports/ it has ownership app:app whereas a folder gets root:999. At the end of the toshiba routine, the folder is deleted, and doesn’t work.
If I change the openrem container to have everything owned by root, then it all seems to work.
I also can’t work out how/where the non-Toshiba files get deleted after import!
Added root ownership in changeset 744d5b7 (referenced wrong issue!)
@Alexandr Zub can you try again with a fresh pull of the image: