Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

fix Folder-Permissions for odm2fhir/out/ #54

Open
cerbelding opened this issue Jun 4, 2021 · 1 comment
Open

fix Folder-Permissions for odm2fhir/out/ #54

cerbelding opened this issue Jun 4, 2021 · 1 comment

Comments

@cerbelding
Copy link
Member

Expected Behavior

When running the num-node without a FHIR-Server as destination, the JSON files should be saved within odm2fhir/out/.

Actual Behavior

If the folder does not yet exist, the shell-script creates it with an ownership by user root, causing an AccesDeniedException when odm2fhir tries to write files into this folder.

Steps to Reproduce the Problem

  1. delete folder odm2fhir/out
  2. comment out FHIR_SERVER_URL in odm2fhir/docker-compose.yml
  3. run sh 04_execute-odm2fhir.sh
  4. see result

Specifications

  • Version: latest (cloned 02.06.2021)
  • Platform: Ubuntu 20.04
  • Subsystem:
@cerbelding
Copy link
Member Author

Possible Solutions:

  1. Change folder permissions to allow non-root users to write into this directory
    $ sudo chmod 777 out/

  2. change folder ownership to docker container user (UID 65532)
    $ sudo chown 65532:65532 out/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant