mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 22:52:58 +03:00
🐛 Bug Report: Synology Deployment Issues #431
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Owl-Tec on GitHub.
Reproduction steps
Deploying pocket-id via my Synology results in the container not properly starting:

My Docker host is a Synology DS1621+ and I am running the pocket-id container through my reverse proxy (Nginx Proxy Manager) via Portainer.
Here is my configure file:
Here are my environmental values:
Expected behavior
Pocket-id should deploy itself as a typical docker container on my Synology.
Actual Behavior
Here is the output from Docker container:
My guess looking at the logs is that Caddy is not happy but I am not sure what has to be tweaked on my end.
@Owl-Tec commented on GitHub:
Thanks for getting back to me so quickly. Same issue occurs when I have the Caddy port:
Here is the new config:
@Owl-Tec commented on GitHub:
I just tried this but I changed my PUID and PGID back to my previous account:
It looks like it is 100% a permission issue (via my Synology and Docker) and separate from your application.
@stonith404 commented on GitHub:
Can you try to change the internal port of Pocket ID by setting the env variable
CADDY_PORTto something different than80? Make sure to also change the exposed ports then:@stonith404 commented on GitHub:
Can you try a port that is higher than 1023?
@Owl-Tec commented on GitHub:
Okay, I got it working. I unfortunately, I had to run my container as root which is strange as the previous account I used PUID and PGID values was an admin account:

Let me play around some more. Unfortunately, Synologies sometimes have wonky permission issues when using Docker with them.
@Owl-Tec commented on GitHub:
Okay, I spent playing around with my Synology all morning and right now due to limitations with my Synology, Pocket ID has be run as root. That is not ideal but also not a big deal as well for me. Even if your account has administrator permissions or Docker run permissions, Caddy will not run properly.
I tried the following with no success:
Anyway, thanks for releasing such a cool project - I cannot wait to deploy with my environment.
Edit:
I made a quick blog guide on how to get Pocket ID running on a Synology:
Once I figure out how to run the container as non-root then I will add to project's documentation as right my solution is not really a solution for most people.
@Owl-Tec commented on GitHub:
I think so, I created a post on the Caddy forum to get their thoughts on this issue:
I also created a ticket with Synology as well.
The reason why I am being so persistent with this issue is because there are so many of us using our Synologies as our complete homelab and they are very beginner friendly.
Oh I forgot - I am fine with not being mentioned at the moment :~).
@tayden commented on GitHub:
I managed to get things to spin up properly by adding the user mapping to the docker compose:
@Owl-Tec commented on GitHub:
I just gave that a try and unfortunately I still had to use root on my end.
@stonith404 commented on GitHub:
Okay I'm glad it's working now. I can't really help you with the root user issue because I don't own a Synology NAS but I think there should be a way that the container runs without root.
Btw, thanks for your sponsorship :) I didn't receive an email that you want to get mentioned in the release notes. Did you miss the email or do you not want to get mentioned?
@eboman commented on GitHub:
ran into the same issue, i really needed to raise the user to root
@joel72265 commented on GitHub:
yes, we shouldn't need to install the container with 'root' (PUID=0, PGID=0) or even specify PUID/PGID