Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Immich docker self-hosted google photos setup

Featured Replies

Hello, I'm using Immich and PostgreSQL_Immich, but I have this error into the postgresql docker when I open immich apps or website 

ERROR:  could not resize shared memory segment "/PostgreSQL.4195037598" to 907743232 bytes: No space left on device

 

I don't know why all my disk are not full

Edited by thomas.mantot

  • Replies 218
  • Views 108.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • gottoesplosivo
    gottoesplosivo

    What I did was actually following the instructions that you linked, and it seems to be working.     OPTIONAL: Create a db back up just in case. Change the values in brackets with the

  • Espressomatic
    Espressomatic

    I don't think so. When you update the container, it'll already include any necessary changes. There are breaking changes all the time, and if you're maintaining your own compose and config files, then

  • Mattaton
    Mattaton

    @mbc0 So, it looks like you have made the GPU available to the container, but you also need to turn on GPU acceleration in the Immich settings. Also, imagegenius recently changed how the AIO

Posted Images

On 3/9/2024 at 1:37 PM, Mattaton said:

Anyone been successful getting Fail2Ban setup with Immich?

had you been able to figure this out ?    I found a thread that outlines a way to configure fail 2 ban but  not sure how to get the logs  https://github.com/immich-app/immich/discussions/3243

Does someone successfully configure Crowdsec with SWAG and Immich ? 

Crowdsec ban me when I access Immich

Solved : 

 

I have added whitelist : 

name: crowdsecurity/immich-whitelists
description: "Whitelist des faux positifs d'Immich-api"
filter: "evt.Meta.service == 'http' && evt.Meta.log_type in ['http_access-log', 'http_error-log']"
whitelist:
  reason: "Faux positifs d'Immich-api"
  expression:
    - evt.Meta.http_verb == 'POST' && evt.Meta.http_status == '403' && evt.Parsed.request contains '/asset/upload'
    - evt.Meta.http_verb == 'GET' && evt.Meta.http_status == '429' && evt.Parsed.request contains '/api/asset/thumbnail/'
    - evt.Meta.http_verb == 'GET' && evt.Meta.http_status == '200' && evt.Parsed.request contains '/api/asset/thumbnail/'
    - evt.Meta.http_verb == 'GET' && evt.Meta.http_status == '304' && evt.Parsed.request contains '/api/asset/thumbnail/'

 

Edited by thomas.mantot

On 4/13/2024 at 12:27 AM, Aceriz said:

had you been able to figure this out ?    I found a thread that outlines a way to configure fail 2 ban but  not sure how to get the logs  https://github.com/immich-app/immich/discussions/3243

No. I let it go. Probably overkill anyway. But thanks!

Edited by Mattaton

3 hours ago, thomas.mantot said:

Does someone successfully configure Crowdsec with SWAG and Immich ? 

Crowdsec ban me when I access Immich

Solved : 

 

I have added whitelist : 

name: crowdsecurity/immich-whitelists
description: "Whitelist des faux positifs d'Immich-api"
filter: "evt.Meta.service == 'http' && evt.Meta.log_type in ['http_access-log', 'http_error-log']"
whitelist:
  reason: "Faux positifs d'Immich-api"
  expression:
    - evt.Meta.http_verb == 'POST' && evt.Meta.http_status == '403' && evt.Parsed.request contains '/asset/upload'
    - evt.Meta.http_verb == 'GET' && evt.Meta.http_status == '429' && evt.Parsed.request contains '/api/asset/thumbnail/'
    - evt.Meta.http_verb == 'GET' && evt.Meta.http_status == '200' && evt.Parsed.request contains '/api/asset/thumbnail/'
    - evt.Meta.http_verb == 'GET' && evt.Meta.http_status == '304' && evt.Parsed.request contains '/api/asset/thumbnail/'

 

I recently disabled Crowdsec for completely unrelated reasons, but up until then I had SWAG, Crowdsec, and Immich working together just fine. Never got banned.
I see you have it solved though. Sweet! 🙂 

Hi again,

I cannot delete picture using immich web page, when I delete I have a message information : Trashed 0 assets.

and using android app : impossible to delete, read only file.

 

 

What I need to do ?

1 hour ago, thomas.mantot said:

Hi again,

I cannot delete picture using immich web page, when I delete I have a message information : Trashed 0 assets.

and using android app : impossible to delete, read only file.

 

 

What I need to do ?

You’re probably using an external library which are only read-only (you can’t trash or delete assets)

I'm not sure what's going on. After images/videos uploaded, thumbnails don't work. When i open immich web-ui, its extremely slow. 

CleanShot 2024-04-16 at 20.57.14@2x.png

CleanShot 2024-04-16 at 20.58.37@2x.png

CleanShot 2024-04-16 at 20.59.27@2x.png

23 hours ago, martabal said:

You’re probably using an external library which are only read-only (you can’t trash or delete assets)

yes right, I only use immish as a "big library browser", all my image are stored on my unraid and uploaded using owncloud.

So it is not possible to delete image using external library ?

21 hours ago, thomas.mantot said:

yes right, I only use immish as a "big library browser", all my image are stored on my unraid and uploaded using owncloud.

So it is not possible to delete image using external library ?

Currently, no

i have install immich this evening. It starts correctly.

I have a photo folder (with a lot of subfolder) in my unraid share.
How can i use immich to load (and don't duplicate) my original photoes stored on unraid folder?

 

  • 2 weeks later...
On 4/16/2024 at 10:40 AM, martabal said:

You’re probably using an external library which are only read-only (you can’t trash or delete assets)

I have the same problem, but I'd like to do that so if I'm using an external library, how to use an internal one?


I've got a pretty big library, over 150K pictures and around 10k videos, 1.5TB in size overall. As you can see on the container configuration, i've got
/photos -> /mnt/cache/immich-previews  (internal library, I guess, but this is 195GB in size and is full of thumbnails)
/import -> /mnt/user/fotos (external library with my folder organization untouched, I do create forlders as albums there from my own sanity as I sync/uploads pictures and videos to manage them).

Is this somekind of permissions problem? A 'ls -la' shows as follows on these directories:

drwxr-xr-x 7206 javipas  users 7208 May  2 08:30 fotos/
drwxrwxrwx    6 nobody users    6 Feb 10 09:08 immich-previews/

Thanks!

Captura de pantalla 2024-05-07 a las 12.42.27.jpg

Hello People

 

I have a problem with immich..

My docker container called PostgreSQL_Immich, will not start, i think it could be because of an update. But im not sure:(

Anyone with an idea for what it could be??,, Is it possible to downgrade both containers??

 

This is my error:

find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning
find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning
find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning
find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning
find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning
find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning
find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning
find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning
find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning
find: ‘/var/lib/postgresql/data/global’: Structure needs cleaning

 

Thank you very much..

regards..

Hello again:)

 

I fixed the issue, used this video :

 

Thank you, regards

does someone has the same error?

 

 

grafik.thumb.png.111231638fe762b32acbbb261515a6f6.png

( Immich logs )

grafik.png.c831a02843a6eeb696fd937dfea7d60a.png

 

( immich console )

 

  • Author

@srepper looks like permissions problems. Have you googled around for Immich permission problems? Have you restarted the docker?

13 hours ago, rutherford said:

@srepper looks like permissions problems. Have you googled around for Immich permission problems? Have you restarted the docker?

Edit:
Found the issue: I used my USB drive. I can create and do stuff with it but not my docker.

Thanks !


Thanks for response. I google arround immich permission problems, but didn't find any solutions.

I restart it oftern, but same issue..

 

grafik.thumb.png.fbbaa42abf95706fd3a425f45a7afdb8.png

 

grafik.thumb.png.4eec1dacd2a888fdd18a5a0ee1e3f25f.png

 

 

grafik.thumb.png.cc41cfc21f6b4f3a83e67f00a72009c9.png

 

 

maybe because my usb drive is my storage?

Edited by srepper

  • Author

Here's a thread about docker permission issues:

 

Under your Immich Settings, hit Advanced, make sure those permissions down there are correct, like these in mine below.

 

 

 

 

image.thumb.png.6a3075eb4ec8902aae8ccc5530da4a2b.png

 

I also saw a crossed out thing about your storage being somewhere else instead of a normal data disk in unRaid?

 

Also check Common Settings under Settings for Unassigned Devices

image.thumb.png.c8bff57e4fb5292e6b23bd3d40722cbe.png

 

 

I seem to remember changing something in here a while back... Maybe that Destructive Mode thing? I don't exactly recall.

 

Also the Main > unassigned devices > Settings gear on the drive you're mounting

image.thumb.png.0aee2cba2559df62f6222a3daac3646e.png

 

 

Hopefully this will get you somewhere!

 

Looking over some other messages you have: looks like you probably linked the USB (?) folder via the Docker Settings for Immich. Make sure you got that right too. Let see if I have that somewhere...

 

I also have a Syncthing going, and it IS writing to an external USB drive. Here are the settings for adding that drive into the docker settings for Syncthing, your addition to Immich, to ahve access to that USB drive would be the same:

image.png.cf67afa5f4bac6c361cccf172eae80a3.png

 

 

Another thing you can try out:

Dashboard > Immich (icon) > "Console >_".

That will drop you into the environment the Immich docker lives. You can CLI (command line interface) your way around in there. Try heading over to:

/photos, and creating a file there:

root@0a4265eaedab:/# cd photos/
root@0a4265eaedab:/photos# ls
encoded-video  library  profile  thumbs  upload
root@0a4265eaedab:/photos# touch test.txt
root@0a4265eaedab:/photos# ls -la
total 0
drwxrwxrwx 1 abc  users 110 May 13 18:21 .
drwxr-xr-x 1 root root  322 Apr 30 21:20 ..
drwxr-xr-x 1 abc  users  58 Oct 23  2023 encoded-video
drwxr-xr-x 1 abc  users  58 Oct 23  2023 library
drwxr-xr-x 1 abc  users  58 Oct  7  2023 profile
-rw-r--r-- 1 root root    0 May 13 18:21 test.txt
drwxr-xr-x 1 abc  users  58 Oct 23  2023 thumbs
drwxr-xr-x 1 abc  users  58 Oct 25  2023 upload
root@0a4265eaedab:/photos# 

 

That should work, and if it doesn't, then you're getting closer to the problem.

 

Edited by rutherford

I suffered a disk error on an Unraid install which had Immich on it and now that container won't run. Fortunately I was able to copy all of the files off though, so now I'm trying to import them elsewhere. It looked like it was working until it got to the "uploading assets" step and failed - any idea what I'm missing? Here's a screenshot of the error:

 

image.thumb.png.ab0be3109aa2aeaf562e50273dc5bd4a.png

Hi, 

I see that my storage is always full? Is there a way to correct this information on the dashboard?

image.png.d095c0e9ea765e3d6659826aca2e6e64.png

 

As you can see here, I have 720GB available

 

image.thumb.png.8a69d073b95f6145b057a251d1de117a.png

 

image.thumb.png.890405666b0a3fb52163ec9f57076abf.png

 

 

  • Author

@mbc0 so 2.7TB, does that seem right to you? Do you have anything that’s 2.7TB? I suspect your file paths are incorrect in the docker, then the Immich settings. 
 

revisit the setup instructions, pay close attending to Docker Settings > paths

 

then also, once you get that Immich docker going, where those paths are pointing. 

Thank you, I will recheck again, I was sure all was ok but will have another look!

Hi, I have just walked through the installation video made by spaceinvader one and the only thing different I did was use a sub-folder instead of a dedicated share which has done the trick, thank you 🙂

 

I'm trying to connect Immich to Crowdsec however I'm missing the immich_server.log from /mnt/user/appdata/immich/. It does appear to be in /mnt/user/system/docker/docker/containers/containerid/ though with the name containerid-json.log.

 

I assume something is not right there? Any ideas how can I get it show in appdata/immich?

 

 

Okay, so I've re-read the Crowdsec docs a bit more carefully and Crowdsec can actually parse the logs directly from docker so a log file isn't necessary. I haven't actually go this to work yet but it seems it should. I will raise it as a question to the Crowdsec folks.

 

Edit:

In case anyone else needs this for Immich or any other docker logs a quick write up follows.
Pr-requisites:
  - the dockersocket app from CA to proxy the docker socket
  - a custom docker network that dockersocket and Crowdsec are on. Possibly Immich too as that is where I have it.
  - Immich collection installed on Crowdsec

 

To enable Crowdsec to read from dockersocket you need to add the variable `INFO: 1` to the dockersocket container. Source.

 

In your Crowdsec aquis.yaml add:

 

source: docker
container_name:
  - immich
labels:
  type: immich
docker_host: tcp://dockersocket:2375

Source.

 

You will also need to whitelist some of the api calls. Create a new yaml file in /crowdsec/parsers/s02-enrich/

name: crowdsecurity/immich-whitelists
description: "Whitelist false positive from Immich-api"
filter: "evt.Meta.service == 'http' && evt.Meta.log_type in ['http_access-log', 'http_error-log']"
whitelist:
  reason: "Whitelist false positive from Immich-api"
  expression:
   - evt.Parsed.traefik_router_name == 'immich@docker' && evt.Meta.http_verb == 'POST' && evt.Meta.http_status == '403' && evt.Parsed.request contains '/asset/upload'
   - evt.Parsed.traefik_router_name == 'immich@docker' && evt.Meta.http_verb == 'GET' && evt.Meta.http_status == '429' && evt.Parsed.request contains '/api/asset/thumbnail/'
   - evt.Parsed.traefik_router_name == 'immich@docker' && evt.Meta.http_verb == 'GET' && evt.Meta.http_status == '200' && evt.Parsed.request contains '/api/asset/thumbnail/'
   - evt.Parsed.traefik_router_name == 'immich@docker' && evt.Meta.http_verb == 'GET' && evt.Meta.http_status == '304' && evt.Parsed.request contains '/api/asset/thumbnail/'

Source.

 

Restart Crowdsec and Immich logs should be being parsed with no bans from using the mobile app.

Edited by tictoc
Updated information.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.