ImmichI
Immich12mo ago
FsFsmk

store files in a different disk

can i have immich on a disk but store the library in another disk? simply telling it to do that in the .env file results in the following:
→ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev              10M     0   10M   0% /dev
run              30G  3.0M   30G   1% /run
efivarfs        128K   48K   76K  39% /sys/firmware/efi/efivars
/dev/nvme1n1p2  1.8T  100G  1.7T   6% /
shm              30G   84K   30G   1% /dev/shm
/dev/nvme1n1p1  300M  288K  300M   1% /boot/efi
tmpfs            30G     0   30G   0% /tmp
tmpfs           5.9G     0  5.9G   0% /run/user/1000
/dev/nvme0n1p1  1.9T   61M  1.9T   1% /mnt

.env
:
UPLOAD_LOCATION=/mnt/immich/library
DB_DATA_LOCATION=/mnt/immich/postgres

but i get the following errors and i am unable to connect(logs from immich_server)
[Nest] 2  - 01/02/2025, 6:17:40 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
[Nest] 12  - 01/02/2025, 6:17:40 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: connect ECONNREFUSED 10.89.1.129:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
(it retries 9 times)
Error: connect ECONNREFUSED 10.89.1.231:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
[Nest] 12  - 01/02/2025, 6:17:40 AM   ERROR [ExceptionHandler] connect ECONNREFUSED 10.89.1.231:5432
Error: connect ECONNREFUSED 10.89.1.231:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)
microservices worker exited with code 1
Killing api process
Was this page helpful?