-
I've been trying to get this container working in a Portainer stack and I just cannot figure out why I can't get ddns-updater to be able to read or write the config file. I wanted to use a config file instead of an environment variable, but I also tried with the env var like in the following attempt: Logs:
docker-compose:
Dir stats:
Maybe I am missing something obvious. Does anybody have an idea of what could be the issue? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Seeing same thing here
This is within portainer on a 7.2 synology NAS. With this docker-compose: https://github.com/geekau/media-stack/blob/main/min-vpn_mulitple-yaml/docker-compose-ddns-updater.yaml |
Beta Was this translation helpful? Give feedback.
-
I've managed to make it work by changing the directory in which the volume was mounted. If anybody can chime in on why this is happening, that would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue where the container log informed me that updates.json could not be created due to a permissions issue. I found that the container was trying to write the updates.json file with the UID:GID of 1000:1000, which did not exist on my Synology NAS. To fix this issue, I noted the UID:GID of another user (ensuring that said user had write permissions on the share mapped to /updater/data in the container) and then built the container instead of pulling an image. This allowed me to supply args to change the UID and GID. Here is an example of my docker-compose file: version: "3.7"
services:
ddns-updater:
build:
context: https://github.com/qdm12/ddns-updater.git
args:
UID: 1026 # Substitute for a user on your NAS
GID: 100 # Substitute for the user's group on your NAS
#image: qmcgaw/ddns-updater
container_name: ddns-updater
network_mode: "bridge"
ports:
- 9988:9988/tcp
volumes:
- /volume1/docker/ddns-updater/data:/updater/data
environment:
- CONFIG=
- PERIOD=5m
- UPDATE_COOLDOWN_PERIOD=5m
- PUBLICIP_FETCHERS=all
- PUBLICIP_HTTP_PROVIDERS=all
- PUBLICIPV4_HTTP_PROVIDERS=all
- PUBLICIPV6_HTTP_PROVIDERS=all
- PUBLICIP_DNS_PROVIDERS=all
- PUBLICIP_DNS_TIMEOUT=3s
- HTTP_TIMEOUT=10s
# Web UI
- LISTENING_PORT=9988
- ROOT_URL=/
- HEALTH_SERVER_ADDRESS=127.0.0.1:9995
# Backup
- BACKUP_PERIOD=0 # 0 to disable
- BACKUP_DIRECTORY=/updater/data
# Other
- LOG_LEVEL=info
- LOG_CALLER=hidden
- SHOUTRRR_ADDRESSES=
restart: always You'll need to make sure you have Git installed before doing the above. I just installed Git Server using the Package Center; no other config required. |
Beta Was this translation helpful? Give feedback.
-
Duplicate of #413 |
Beta Was this translation helpful? Give feedback.
Concerning these environment variables:
These won't do anything according to the author. Unless something changed since.
Could you confirm that you followed these steps in the setup section of the Readme?
However, since you're on a Synology NAS, you're probably stuck with the built-in user and group IDs, which is a PITA.
The solution could be building the container with your IDs so that it can get the permissions i…