I did try searching for this, but couldn’t find any reasoning. Upon firing on the Docker container, I see the following.
api_1 | 2021/01/11 16:04:00 Config File “config” Not Found in “[/app/vikunja /etc/vikunja /app/vikunja/.config/vikunja]”
api_1 | 2021/01/11 16:04:00 Using default config.
My question is, why are there spaces in the path? i.e.
/app/vikunja /
/etc/vikunja /
Are these accidental errors in the default config on the Container?
That’s not anl real error, I just didn’t figure out a way to check if there are any environment variables present for Vikunja. Because if that’s the case, the error message doesn’t make sense. If you’re using docker, you’re probably configuring it through env variables, shouldn’t be a problem then.
The spaces in the message are all thee locations where Vikunja looks for a config file. (The error message needs better formatting, that’s just the default)
Thanks, I am using docker and specifying the path in an env file.
I didn’t think it was an error - more the fact there are spaces, to be fair, I’m not sure if that is just a bug in the output, or if the filesystem paths actually include a space.
There are no spaces in the path. Those are three paths, see Config options | Vikunja
The space between them is the default separation of go when printing a list.
The error itself is coming from the config library, so I don’t really have control over it.
Thanks, I am using docker and specifying the path in an env file.
You mean, you’re configuring Vikunja through env variables? Or do you still have a config file?
Also just a heads up, the Traefik 2 example in the Docs needs a slight adjustment. Its missing the port for the API Container, it requires something like this:
I find it personally better if you define the port in the: traefik.http.services.<service_name>.loadbalancer.server.port
Both of the comments from @Kelv1n and also from @tojoker94 helped me to found the reason for my bad gateway problem.
I exposed the wrong port from the vikunja-api to traefik2.