reggna
reggna
IImmich
Created by reggna on 4/1/2025 in #help-desk-support
Clean uncustomized setup, but not able to connect to server.
Alright. My final way of dealing with the SELinux issue was to add a :z at the end of the database volumes line (indicating that the volume content can be shared) in docker-compose.yml. So instead of:
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
It now looks like this:
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data:z
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data:z
I'm (obviously) not an expert on how Docker Compose deals with SELinux, but now I'm able to run everything with SELinux enabled. I'd be happy to create a pull request if this is indeed an applicable solution?
18 replies
IImmich
Created by reggna on 4/1/2025 in #help-desk-support
Clean uncustomized setup, but not able to connect to server.
Aaaah! I see, it was just SELinux being the problem. Interesting. Then my initial understanding of how this project works with docker is still good. Phew. 🤣
18 replies
IImmich
Created by reggna on 4/1/2025 in #help-desk-support
Clean uncustomized setup, but not able to connect to server.
Yes. Created a symlink for the postgresql directory and temporarily disabled SELinux and now we're up and running!
sudo ln -s /var/lib/pgsql /var/lib/postgresql
sudo setenforce 0
sudo ln -s /var/lib/pgsql /var/lib/postgresql
sudo setenforce 0
Will get a permanent solution for SELinux in a while, but I'll mark this as resolved. Thanks @Zeus ! As a side note, I'd suggest adding a note in the set-up instructions about postgresql having to be pre-installed and that what the data location should be.
18 replies
IImmich
Created by reggna on 4/1/2025 in #help-desk-support
Clean uncustomized setup, but not able to connect to server.
I think this is the root cause of the problem:
$ docker logs immich_postgres
chmod: changing permissions of '/var/lib/postgresql/data': Permission denied
find: ‘/var/lib/postgresql/data’: Permission denied
$ docker logs immich_postgres
chmod: changing permissions of '/var/lib/postgresql/data': Permission denied
find: ‘/var/lib/postgresql/data’: Permission denied
I've installed and configured postgresql on my local machine (even though I'm not sure if that's part of the Immich set-up or not?). I'm on Fedora 41 and /var/lib/postgresql/data doesn't exist on my machine. Instead, the default data location is /var/lib/pgsql/data. But again, shouldn't this be locations inside the immich_postgres docker instance?
18 replies
IImmich
Created by reggna on 4/1/2025 in #help-desk-support
Clean uncustomized setup, but not able to connect to server.
I've made sure there's no firewall active. Even connecting from the same computer gives an error:
$ curl -vvv localhost:2283
* Host localhost:2283 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:2283...
* Connected to localhost (::1) port 2283
> GET / HTTP/1.1
> Host: localhost:2283
> User-Agent: curl/8.9.1
> Accept: */*
>
* Request completely sent off
* Recv failure: Connection reset by peer
* closing connection #0
curl: (56) Recv failure: Connection reset by peer
$ curl -vvv localhost:2283
* Host localhost:2283 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:2283...
* Connected to localhost (::1) port 2283
> GET / HTTP/1.1
> Host: localhost:2283
> User-Agent: curl/8.9.1
> Accept: */*
>
* Request completely sent off
* Recv failure: Connection reset by peer
* closing connection #0
curl: (56) Recv failure: Connection reset by peer
The request is sent, but the connection is terminated.
18 replies
IImmich
Created by reggna on 4/1/2025 in #help-desk-support
Clean uncustomized setup, but not able to connect to server.
The error message looks a bit similar to https://github.com/immich-app/immich/issues/17174 , but I didn't customize anything. This was a clean install with no edits.
18 replies