After doing a pip install anvil-app-server -U I tried launching my app and I receive the following Traefik error.
Found Anvil App Server JAR in package directory
Launching HTTPS Server on port 443
Traefik dashboard: http://localhost:31686/dashboard/
2021/09/23 07:55:02 command anvil-traefik error: stat /home/ubuntu/.config/traefik.toml: permission denied
Reverse proxy exited with code 1
Runtime exiting. Shutting down Traefik.
I tried to stat that path with sudo and it doesn’t exist. It seems traefik is trying to pull in some config to get started but it can’t find it.
It’s possible something else is going on with this server, and a reimage would probably be a good idea, but I’m trying to avoid the whole backup and restore situation if possible.
Some additional info. As you can’t fun anvil-app-server as root I’m using a non root user. The root user on this server is ubuntu. So Traefik is trying to locate it’s config file in the root users home directory, which seems weird.
I also tried to rename the traefik folder in .anvil-data so the app server would unpack traefik again. It still tried to look for the config file in the root user after trying to launch the app.
I then made an empty file at /home/ubuntu/.config/traefik.toml and set permissions so the user could access it. I don’t even want to get started on how this isn’t acceptable permissions wise but I wanted to give it a shot. A different error from traefik this time saying the config doesn’t exist:
Found Anvil App Server JAR in package directory
Launching HTTPS Server on port 443
Traefik dashboard: http://localhost:11309/dashboard/
2021/09/23 08:38:12 command anvil-traefik error: no configuration found in file: /home/ubuntu/.config/traefik.toml
Reverse proxy exited with code 1
Runtime exiting. Shutting down Traefik.