Immich docker self-hosted google photos setup


Recommended Posts

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
Link to comment
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

Link to comment

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
Link to comment
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
Link to comment
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! 🙂 

Link to comment
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)

Link to comment
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 ?

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.