self hosted lemmy 502 pictrs
self hosted lemmy 502 pictrs
Hi,
I've been trying to host my own lemmy instance for a while. i've almost got it working (i think). But my problem now is that whenever i try to post something with a picture i get an error SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
.
In firefox i get a 502 bad gateway error pointing to https://lemmy.emphisia.nl/pictrs/image
I don't really know why because everything seems to be working
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).