FORTH-ICS-INSPIRE / artemis

ARTEMIS: Real-Time Detection and Automatic Mitigation for BGP Prefix Hijacking. This is the main ARTEMIS repository that composes artemis-frontend, artemis-backend, artemis-monitor and other needed containers.
BSD 3-Clause "New" or "Revised" License
302 stars 45 forks source link

Routinator Fails to Start #659

Open chewsterB opened 2 years ago

chewsterB commented 2 years ago

Describe the bug When trying to start routinator - it fails with:

Failed to read config file /home/routinator/.routinator.conf: Is a directory (os error 21)
Failed to read config file /home/routinator/.routinator.conf: Is a directory (os error 21)

Affected Component(s)

To Reproduce Steps to reproduce the behavior:

  1. Follow the instructions here: https://bgpartemis.readthedocs.io/en/latest/rpkivalidconf/
  2. Routinator fails with the above log (docker logs routinator)
  3. This line in the instructions creates a directory called routinator.conf with the routinator.conf inside it cp other/routinator/routinator.conf local_configs/routinator/routinator.conf &&
  4. Edit the docker-compose.routinator.yaml and change the volumes line to:

    volumes:
            - ./local_configs/routinator/tals:/home/routinator/.rpki-cache/tals
            - ./local_configs/routinator/routinator.conf/routinator.conf:/home/routinator/.routinator.conf

Expected behavior Routinator should start, as per instructions

System (please complete the following information):

CuriouzK0d3r commented 2 years ago

I wasn't able to replicate this issue yet, but could you run cat local_configs/routinator/routinator.conf to see it is being read as a file?

Perhaps something went wrong with the config files? Can you delete the local_configs/routinator dir and re-execute the following commands?

mkdir -p local_configs/routinator/tals && \ sudo chown -R 1012:1012 local_configs/routinator/tals && \ mkdir -p local_configs/routinator/rpki-repo && \ sudo chown -R 1012:1012 local_configs/routinator/rpki-repo && \ cp other/routinator/routinator.conf local_configs/routinator/routinator.conf && \ sudo chown -R 1012:1012 local_configs/routinator/routinator.conf