this post was submitted on 23 Jul 2023
12 points (100.0% liked)
Self Hosted - Self-hosting your services.
11401 readers
1 users here now
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules
- No harassment
- crossposts from c/Open Source & c/docker & related may be allowed, depending on context
- Video Promoting is allowed if is within the topic.
- No spamming.
- Stay friendly.
- Follow the lemmy.ml instance rules.
- Tag your post. (Read under)
Important
Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!
- Lemmy doesn't have tags yet, so mark it with [Question], [Help], [Project], [Other], [Promoting] or other you may think is appropriate.
Cross-posting
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed if topic has to do with selfhosting.
- [email protected] is allowed!
If you see a rule-breaker please DM the mods!
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The typical beginner error is that their pictrs folder is not owned by the 991 user from inside the container.
Otherwise... you need to provide more details about your setup.
yeah I've already done that, I did
sudo chown -r 991:991 volumes/pictrs
. what details do you need about my setup? edit: I do know another program is already using port 8080 on my host machine, or does that not matter when it's running inside docker?Depends. If it runs in a separated docker network then not. Pict-rs only needs to be reachable by the lemmy backend and have out-going internet access. But I would try changing the port as I think the official docker-compose script removed the internal network for some reason, not sure (I am using my own Podman based setup).
it does appear to be in its own network (according to portainer) the error log in the lemmy container is
no errors appear when i look at the pictrs log. I don't know why it says
password: None
as i've set a passwordHmm not sure. The api-key ENV variable changed with pict-rs 0.4 to
PICTRS__SERVER__API_KEY
, maybe double-check that this is correctly updated and also the same as in your lemmy.hjson config file.the config in docker compose looks like
and in the config it is
the password on both is the same so i don't see what is going wrong :(
Well, did you try changing the 8080 port to rule that out?
hmm after looking i dont even see an option to change the port (in pictrs). it seems stuck at 8080, but since its running on its own network, i doubt it would matter.
just change the port the container exposes, like -p 8081:8080
I haven't done this setup myself, but the hostname being 127.0.0.1 is suspect, especially since it mentions a pictrs URL config in lemmy.
yeah i changed that because i was testing. but i now realize that was dumb. ive change both the hostname and the url to pictrs. OMG that just worked..... i feel so dumb rn. it is strange tho because that wasnt working before. Thanks for all the help :)