Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truenas #62

Open
Professorvennie opened this issue Nov 8, 2024 · 13 comments
Open

Truenas #62

Professorvennie opened this issue Nov 8, 2024 · 13 comments

Comments

@Professorvennie
Copy link

Anyway to get this to work with the Truenas install of Immich?

@sai80082
Copy link
Contributor

@Professorvennie Unfortunately, we don't have TrueNAS running on our servers for testing. I would recommend reaching out to the Immich community for assistance.

@AlexT59
Copy link

AlexT59 commented Dec 1, 2024

I managed to get it to work on TrueNAS (electric el, 24.10.0.2).
Here is my docker compose:

networks:
  immich-network:
    external: True
    name: ix-immich_default
services:
  immich-power-tools:
    env_file:
      - conf.env
    image: ghcr.io/varun-raj/immich-power-tools:latest
    networks:
      - immich-network
    ports:
      - '30042:3000'
    restart: unless-stopped

And my conf.env file:

IMMICH_URL=http://server_ip:30041
EXTERNAL_IMMICH_URL=https://external.immich.url
SECURE_COOKIE=true

DB_HOST=ix-immich-pgvecto-1
DB_PORT=5432
DB_USERNAME=immich
DB_PASSWORD=***
DB_DATABASE_NAME=immich

IMMICH_API_KEY=***

Some details about this config:

  1. Add the immich-power-tools container into the same Immich network
  2. To get the DB_PASSWORD: open shell window in the Immich server container and write echo $DB_PASSWORD
  3. To get the IMMICH_API_KEY: https://immich.app/docs/features/command-line-interface#obtain-the-api-key

@chocology
Copy link

chocology commented Dec 2, 2024

Thank you for your great post. I have been banging my head trying to get it to work on mine but I keep getting and error.

Database connection failed
getaddrinfo ENOTFOUND Jd&2Ys7W&o

Setup Instructions
Connected to (External)

https://immich.domain.com/
Connected to (Internal)

http://192.168.192.2:30041/

@AlexT59
Copy link

AlexT59 commented Dec 2, 2024

Database connection failed
getaddrinfo ENOTFOUND Jd&2Ys7W&o

Setup Instructions Connected to (External)

https://immich.domain.com/ Connected to (Internal)

http://192.168.192.2:30041/

Sorry but I doesn't understand your problem. Could you provide more logs / details ?

@chocology
Copy link

I followed your guide precisely which was more or less in line with what I was attempting prior. The only difference was SECURE_COOKIE=false which i corrected.

Here is my docker-compose.yaml:-
networks:
immich-network:
external: true
name: ix-immich_default
ix-immich_default:
external: true
services:
immich-power-tools:
env_file:
- conf.env
image: ghcr.io/varun-raj/immich-power-tools:latest
networks:
- immich-network
ports:
- 30042:3000
restart: unless-stopped

When I run the container, the logs from the terminal are as below.

immich_power_tools-immich-power-tools-1 | ✓ Starting...
immich_power_tools-immich-power-tools-1 | ✓ Ready in 164ms
immich_power_tools-immich-power-tools-1 | ▲ Next.js 14.2.5
immich_power_tools-immich-power-tools-1 | - Local: http://f5a606d88e0a:3000
immich_power_tools-immich-power-tools-1 | - Network: http://172.16.2.6:3000
immich_power_tools-immich-power-tools-1 |
immich_power_tools-immich-power-tools-1 | ✓ Starting...
immich_power_tools-immich-power-tools-1 | ✓ Ready in 236ms

When I open bash in the container, I get this message:-
WARN[0000] The "H" variable is not set. Defaulting to a blank string.
OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown

Upon opening the page in a browser, I get this:

image

Connected to (External)
https://foto.domain.com/

Connected to (Internal)
http://192.168.1.2:30041/

@AlexT59
Copy link

AlexT59 commented Dec 3, 2024

As you are not using the md formatting syntax your file is difficult to read but it seems that your docker compose file is not exactly the same, especially the networks part.
Mine is:

networks:
  immich-network:
    external: True
    name: ix-immich_default

Yours seems to be:

networks:
  immich-network:
    external: True
    name: ix-immich_default
  ix-immich_default:
    external: true

Just to be sure, are you running on TrueNAS 24.10.0 ?

Apart from that, I don't have any other ideas, as I don't know exactly how Immich power tools work intervaly and what this error realy means.

@chocology
Copy link

Thank you for the reply. I am using TrueNAS (electric el version 24.10.0.2).

I changed the network part to what you pasted and it is still not working with the same errors.

networks:
immich-network:
external: true
name: ix-immich_default
services:
immich-power-tools:
env_file:
- conf.env
image: ghcr.io/varun-raj/immich-power-tools:latest
networks:
- immich-network
ports:
- 30042:3000
restart: unless-stopped

@sai80082
Copy link
Contributor

sai80082 commented Dec 3, 2024

I followed your guide precisely which was more or less in line with what I was attempting prior. The only difference was SECURE_COOKIE=false which i corrected.

Here is my docker-compose.yaml:- networks: immich-network: external: true name: ix-immich_default ix-immich_default: external: true services: immich-power-tools: env_file: - conf.env image: ghcr.io/varun-raj/immich-power-tools:latest networks: - immich-network ports: - 30042:3000 restart: unless-stopped

When I run the container, the logs from the terminal are as below.

immich_power_tools-immich-power-tools-1 | ✓ Starting... immich_power_tools-immich-power-tools-1 | ✓ Ready in 164ms immich_power_tools-immich-power-tools-1 | ▲ Next.js 14.2.5 immich_power_tools-immich-power-tools-1 | - Local: http://f5a606d88e0a:3000 immich_power_tools-immich-power-tools-1 | - Network: http://172.16.2.6:3000 immich_power_tools-immich-power-tools-1 | immich_power_tools-immich-power-tools-1 | ✓ Starting... immich_power_tools-immich-power-tools-1 | ✓ Ready in 236ms

When I open bash in the container, I get this message:- WARN[0000] The "H" variable is not set. Defaulting to a blank string. OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown

Upon opening the page in a browser, I get this:

image

Connected to (External) https://foto.domain.com/

Connected to (Internal) http://192.168.1.2:30041/

The container doesn't have bash try /bin/sh.

@chocology
Copy link

image

@FreeDivers
Copy link

I managed to get it to work on TrueNAS (electric el, 24.10.0.2). Here is my docker compose:

networks:
immich-network:
external: True
name: ix-immich_default
services:
immich-power-tools:
env_file:
- conf.env
image: ghcr.io/varun-raj/immich-power-tools:latest
networks:
- immich-network
ports:
- '30042:3000'
restart: unless-stopped
And my conf.env file:

IMMICH_URL=http://server_ip:30041
EXTERNAL_IMMICH_URL=https://external.immich.url
SECURE_COOKIE=true

DB_HOST=ix-immich-pgvecto-1
DB_PORT=5432
DB_USERNAME=immich
DB_PASSWORD=***
DB_DATABASE_NAME=immich

IMMICH_API_KEY=***
Some details about this config:

  1. Add the immich-power-tools container into the same Immich network
  2. To get the DB_PASSWORD: open shell window in the Immich server container and write echo $DB_PASSWORD
  3. To get the IMMICH_API_KEY: https://immich.app/docs/features/command-line-interface#obtain-the-api-key

thank you !it worked well on my machine

@chocology
Copy link

Im going crazy here. I was using Dockge and now doing it on docker compose and still struggling to figure it out.

Image

@FreeDivers
Copy link

Im going crazy here. I was using Dockge and now doing it on docker compose and still struggling to figure it out.

Image

Is your database password correct?Check it
btw,you could try portainer,im using portainer to deploy it.

@chocology
Copy link

The database password is correct. I did run echo $DB_PASSWORD to verify. Even went as far as to completely recreate the config files. I will try with Portainer. Thanks for chiming in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants