Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having trouble running pacoloco via Docker #50

Open
987computer opened this issue Aug 3, 2022 · 9 comments
Open

Having trouble running pacoloco via Docker #50

987computer opened this issue Aug 3, 2022 · 9 comments

Comments

@987computer
Copy link

When I try to start the Docker container after building it with the provided instructions (as well as putting the config file listed below), this is what it returns:

pacoloco.go:102: Reading config file from /etc/pacoloco.yaml
pacoloco.go:105: read /etc/pacoloco.yaml: is a directory

@anatol
Copy link
Owner

anatol commented Aug 3, 2022

cc @ilya-zlobintsev

@anatol
Copy link
Owner

anatol commented Aug 3, 2022

/etc/pacoloco.yams is a config file. It must not be a directory. Check your filesystem content.

@ilya-zlobintsev
Copy link
Contributor

Are you sure that you've created the config file? By default if the host path specified in a volume doesn't exist, docker will create it as a directory.

@987computer
Copy link
Author

987computer commented Aug 5, 2022

Yeah. In fact, I already created it beforehand after getting that error. Trying the same steps with that said config file in the "etc" directory returns the same result.

@cocoonkid
Copy link

@987computer Did you ever solve this? Docker works perfectly for me here.

@Focshole
Copy link
Contributor

Focshole commented Jan 27, 2023

When I try to start the Docker container after building it with the provided instructions (as well as putting the config file listed below), this is what it returns:

pacoloco.go:102: Reading config file from /etc/pacoloco.yaml pacoloco.go:105: read /etc/pacoloco.yaml: is a directory

Try logging into the docker container , then check what is going on in /etc/pacoloco.yaml

@HarHarLinks
Copy link
Contributor

HarHarLinks commented Feb 24, 2023

docker works perfectly here.

@987computer: you appear to not have created the yaml file before starting the container and/or in the wrong place. Docker will create an empty directory of that name in those cases, which leads to this error.

  1. You need to stop and any existing container.
  2. Create the pacoloco.yaml file at a reasonable place on your host system. I use /opt/pacoloco/pacoloco.yaml (next to /opt/pacoloco/cache/).
  3. Then look at where the example command or compose file says /path/to/config/pacoloco.yaml:/etc/pacoloco.yaml.
  4. Set the left part of the argument to the path on your host. In my example that means you get /opt/pacoloco/pacoloco.yaml:/etc/pacoloco.yaml.
  5. Run.

@Focshole
Copy link
Contributor

Shall we close this issue?

@fhteagle
Copy link

fhteagle commented Sep 7, 2023

--- Disregard, docker-compose up -d pacoloco fixed my issue ---

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

No branches or pull requests

7 participants