dieterich-lab / scimodom

Sci- ModoM: A quantitative database of transcriptome-wide high-throughput RNA modification sites
https://dieterich-lab.github.io/scimodom/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Wrong directory permission on deployment #116

Closed eboileau closed 4 months ago

eboileau commented 4 months ago

A clear and concise description of what the bug is.

On deployment, __create_local_folders.py is run, and directories under HOST_DATA_DIR end up with the wrong ownership. This is "commented out" in the installation playbook. mini_cron.sh should also be more forgiving.

This can be fixed after install, but ideally we want a clean install.

eboileau commented 4 months ago

We now have conflicting directory creation between create_local_folders (container) and FileService (both dev and prod): this should happen only once, probably by FileService, and be safe (create if not exists, i.e. exists_ok=True).

eboileau commented 4 months ago

The only tricky one is IMPORT_DIR, which should exists on startup... see also #126

HaraldWilhelmi commented 4 months ago

As discussed with Etienne:

HaraldWilhelmi commented 4 months ago

Etienne pointed out that we should also move out as much as possible from docker/scripts/__create_local_folders.py. What needs to stay?

HaraldWilhelmi commented 4 months ago

Permission setup:

Possible approach:

To do that, we need: