Linkding container not restarted after volume backup
To Reproduce
- Deploy a Linkding service in Dokploy.
- Enable scheduled volume backups.
- Wait for the backup job to run.
- After the backup completes, try to access Linkding at its configured domain.
Current vs. Expected behavior
Current vs. Expected behavior
Expected: The Linkding container is stopped for the backup, the volume is archived and uploaded, then the same container is started again. Linkding should remain accessible after backup.
Actual: The container is stopped and removed during the backup process. Dokploy then attempts to start it again using the old container ID, which fails with
Error response from daemon: No such container: <container-id>
The container never comes back up, and the domain returns 404.
Provide environment information
Debian GNU/Linux 12 (bookworm)
x86_64
dokploy v0.25.1
Which area(s) are affected? (Select all that apply)
Docker Compose
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
Logs / Output Excerpt from backup log:
Stopping compose container
b7c9ea19b2e5
...
Starting compose container
Error response from daemon: No such container: b7c9ea19b2e5
Error: failed to start containers: b7c9ea19b2e5
It looks like Dokploy’s backup flow issues a docker stop, but at some point the container is removed (possibly docker compose down is triggered). As a result, docker start cannot bring the container back, leaving the service offline until manually redeployed with docker compose up -d.
Will you send a PR to fix it?
No
Hi @lwndp can you please provide more information about how did you configured the volume backup and the compose service?It will be usefull for us
Hi @Harikrishnan1367709 ! Thanks for picking this up.
This is my simple compose:
services: linkding: image: sissbruecker/linkding:latest-plus restart: unless-stopped volumes: - linkding-data:/etc/linkding/data pull_policy: always volumes: linkding-data: {}
The backup I set up via "Volume Backup". The destination is an S3 compatible storage and I selected the volume name from the list and selected a daily backup. After deselecting "Turn Off Container During Backup" it seems to work but ideally I'd like to turn off the app during the backup process for safety.
I tried the same compose file and volume backup and it works
Hi @Siumauricio I just noticed that the issue still persists, here are the logs from deployment and the app:
This is my compose file:
services:
linkding:
image: sissbruecker/linkding:latest-plus
restart: unless-stopped
volumes:
- linkding-data:/etc/linkding/data
pull_policy: always
volumes:
linkding-data: {}
Hi, I have the same issue with the Prometheus service. I've configured a Grafana stack (grafana, loki, tempo, prometheus) all from one compose and all of them have the same voilume backup configuration, but Prometheus is the only one that stops and doesn't go back up.
This is the compose file:
services:
prometheus:
build:
dockerfile: dockerfiles/prometheus.Dockerfile
hostname: prometheus-modo-node
ports:
- "${PROMETHEUS_PORT_MAPPING:-9090:9090}"
volumes:
- prometheus-data:/prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=90d
- --web.console.libraries=/etc/prometheus/console_libraries
- --web.console.templates=/etc/prometheus/consoles
- --web.enable-lifecycle
- --log.level=info
- --log.format=logfmt
networks:
- dokploy-network
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:9090/-/healthy || exit 1" ]
interval: 30s
timeout: 10s
retries: 3
volumes:
prometheus-data:
name: prometheus-modo-data
prometheus.Dockerfile:
FROM prom/prometheus:latest
COPY ../prometheus.yml /etc/prometheus/prometheus.yml
Volume backup config:
Last log from Prometheus:
time=2025-10-17T00:00:00.328Z level=WARN source=main.go:1075 msg="Received an OS signal, exiting gracefully..." signal=terminated
time=2025-10-17T00:00:00.328Z level=INFO source=main.go:1100 msg="Stopping scrape discovery manager..."
time=2025-10-17T00:00:00.328Z level=INFO source=main.go:1114 msg="Stopping notify discovery manager..."
time=2025-10-17T00:00:00.328Z level=INFO source=manager.go:190 msg="Stopping rule manager..." component="rule manager"
time=2025-10-17T00:00:00.328Z level=INFO source=manager.go:206 msg="Rule manager stopped" component="rule manager"
time=2025-10-17T00:00:00.328Z level=INFO source=main.go:1151 msg="Stopping scrape manager..."
time=2025-10-17T00:00:00.328Z level=INFO source=main.go:1096 msg="Scrape discovery manager stopped"
time=2025-10-17T00:00:00.328Z level=INFO source=main.go:1110 msg="Notify discovery manager stopped"
time=2025-10-17T00:00:00.328Z level=INFO source=main.go:1143 msg="Scrape manager stopped"
time=2025-10-17T00:00:00.340Z level=INFO source=manager.go:540 msg="Stopping notification manager..." component=notifier
time=2025-10-17T00:00:00.340Z level=INFO source=manager.go:282 msg="Draining any remaining notifications..." component=notifier
time=2025-10-17T00:00:00.340Z level=INFO source=manager.go:288 msg="Remaining notifications drained" component=notifier
time=2025-10-17T00:00:00.340Z level=INFO source=manager.go:218 msg="Notification manager stopped" component=notifier
time=2025-10-17T00:00:00.340Z level=INFO source=main.go:1421 msg="Notifier manager stopped"
time=2025-10-17T00:00:00.340Z level=INFO source=main.go:1435 msg="See you next time!"
After that it stays down the whole night until I start it again the next day. Any thoughts? Workaround? Thanks!
I'm going to answer myself. The issue was related to the fact that Dokploy wasn't able to find the container when attempting to start it again for some reason.
In my case I recreated the volume backup config (because I needed to change the backup time) and from there on it started working again. Not sure what went wrong there to be honest.
I'll close this issue for now, feel free to create a new issue with clear and steps to reproduce this
Still facing this issue in current version -> Version v0.29.0.
Notes
- Running this on remote server
- Setup server logs are all green
- Have configured cloudflare R2 as S3 destination.
- Test button of S3 destination works fine.
- R2 endpoint value format:
https://<account r2 identifier>.r2.cloudflarestorage.com
Below are the raw logs
...
Volume backup done ✅
Starting compose container
2312d65b1da6
Compose container started
Starting upload to S3...
2026/04/18 17:12:11 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
2026/04/18 17:12:11 ERROR : Attempt 1/3 failed with 1 errors and: operation error S3: HeadObject, https response error StatusCode: 403, RequestID: , HostID: , api error Forbidden: Forbidden
2026/04/18 17:12:11 ERROR : Attempt 2/3 failed with 1 errors and: operation error S3: HeadObject, https response error StatusCode: 403, RequestID: , HostID: , api error Forbidden: Forbidden
2026/04/18 17:12:11 ERROR : Attempt 3/3 failed with 1 errors and: operation error S3: HeadObject, https response error StatusCode: 403, RequestID: , HostID: , api error Forbidden: Forbidden
2026/04/18 17:12:11 NOTICE: Failed to copyto: operation error S3: HeadObject, https response error StatusCode: 403, RequestID: , HostID: , api error Forbidden: Forbidden