#Getting repeated failed connection attempts when i boot up immich

1 messages · Page 1 of 1 (latest)

oak acorn
#

Hoi, i'm setting up immich for the first time, it worked at first to somewhat read images, but couldn't import anything. So tried to delete api key and add a new one, and now i can't login anymore. tried to delete it's appdata folder, but no configs to be located.

And now immich is spitting out these errors.

}
Error: connect ECONNREFUSED 192.168.0.161:6379
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '192.168.0.161',
port: 6379

Installed it with spaceinvaderone's SQL addon docker

https://www.youtube.com/watch?v=LtNWxxM5Mzg

In Part 2, we're getting hands-on, walking you through the entire setup process of Immich, from installing the container on your server to seamlessly uploading your memories via CLI. But that's not all - I'll also show you how to link Immich to your own domain for easy access and connect it with a mobile app for uploading and managing photos on ...

▶ Play video
jade ospreyBOT
#

:wave: Hey @oak acorn,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: I have read applicable release notes.
  3. :blue_square: I have reviewed the FAQs for known issues.
  4. :blue_square: I have reviewed Github for known issues.
  5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :blue_square: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

oak acorn
#

Wanna note that i'm sadly quite easily overwhelmed with too much to read, hence why i watched spaceinvaderone's video on the matter

velvet spruce
#

Port 6379 means it can’t connect to Redis

oak acorn
#

Logging in to http:.//192.168.0.161:8083/api
Failed to load user info - TypeError: fetch failed
root@86775c417c10:/#

And here's the error in console when i try to log in with current newest api key

velvet spruce
#

Does the website work?

#

I recommend starting over. If it worked once, you must have broken something between then and now, I presume

oak acorn
#

As when i just reinstall and delete it's image, the old data is still there and can't login to it in cli to import media

velvet spruce
#

I don't know what platform this is but I am sure if you google you can find a guide to remove the appdata

oak acorn
oak acorn
velvet spruce
#

what command are you trying to run exactly?

oak acorn
velvet spruce
#

http:.// why?

#

what is the http:.

#

should be http://

oak acorn
#

It's what spaceinvaderone told to do

velvet spruce
#

I'm certain they didn't

oak acorn
#

Wait.. shite

velvet spruce
#

that is not a URL

oak acorn
#

Always one single symbol that one overlooks, thanks! xD

#

Now to see if importing works

#

Now we wait, and i'll ping when it gets to the importing part :D

#

@velvet spruce So, now it's stuck here. Is that normal?

velvet spruce
#

how long did you wait?

oak acorn
#

Half a minute. Or is this the part where the hardware accel comes in to do it's machine learning thing?

velvet spruce
#

no, not related to that. Any logs in the Immich server?

oak acorn
#

Nothing apart from it's usual spam of this one

Error: connect ECONNREFUSED 192.168.0.161:6379
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '192.168.0.161',
port: 6379
}

velvet spruce
#

ok so you need to fix that

#

Redis is not available / functioning

#

Were you supposed to do this in the guide?

Set DOCKER_MODS=imagegenius/mods:universal-redis
Configure REDIS_HOSTNAME to localhost
oak acorn
velvet spruce
#

no no

#

key DOCKER_MODS

#

value imagegenius/....

#

the = means set this variable (key) to this value

#

go watch the video again, it should spell it out exactly what to do there

oak acorn
velvet spruce
oak acorn
#

Aye, i think i hopped back and forth between the video and mine like 8 times until i saw the big error there lol

velvet spruce
#

Make sure you didn’t do the same for REDIS_HOSTNAME

oak acorn
#

Nah, just set top surface ip for that one

oak acorn
velvet spruce
#

Disable Redis? It’s definitely needed

#

Are you sure that’s exactly how he setup REDIS_HOSTNAME ?

#

You applied the settings / restart?

oak acorn
#

there we go. Set redis hostname to just localhost, then it all booted up. Managed to oversee that step :P

velvet spruce
#

Nice glad it worked

oak acorn
#

Aye! But for it's scan/learning, how do i make it use gpu here?

#

Here's how i put that one, as he didn't cover the gpu part there, but assumed it'd be just needing this :P

#

Or no, wait, so i don't need the gpu string there at all, just set value to cuda?

oak acorn
#

@velvet spruce Got any idea why it flips all out after i did this?

Followed this comment :P

oak acorn
#

And what options makes it reinstall everything cuda related on every restart?

#

Ah, now it seems to do it's thing thinkymr

#

Now that all is set up and running, can it do object detection? Or can i train a model on for instance "3d printer", graphic card model" and so on?

teal narwhal
#

You can't train a model with Immich

oak acorn
#

Gotchu. Can i add extra models that adds more recognition support? Or is it only face recognition immich supports?

teal narwhal
#

you mean, models for face detection ?

oak acorn
#

and for images i import, can i make it so every specific folder i add is added to a new album automatically?

oak acorn
# teal narwhal you mean, models for face detection ?

Face detection it has, but don't know if it does general object detection. Like if i search for hand on samsung photos app, it will locate all pics with hands specifically. Or if i search for computer, boat etc

teal narwhal
teal narwhal
oak acorn
#

Thanks :)
As long as it's planned, then i'll wait :)

What's the most efficient way of importing images atm? And is there a way to best sort images i want to throw into an albuim? Like sort images to "select all from last import" to then quick add to album for instance.

teal narwhal
#

Mmmh, probably using the CLI

oak acorn
#

Aye, been doing that so far. One album at a time.

And as it at least has facial recognition, how can i specify who is who?

teal narwhal
#

Explore > view all, then you can add names, merge people…

oak acorn
teal narwhal
#

Yes, you can!

#

Go to a person, select a picture then click on the 3 dots you can change the feature photo

oak acorn
#

Ah, perfect, thanks!

teal narwhal
#

You're welcome ! 😄

oak acorn
#

For my next querstion of possibly many in the fiuture xD

Can i have a user have their personal photo uploads to be encrypted for only them to access?

#

As i don't want it to be all "if i'm gonna host shit, i want to see it". So that my family can choose to keep their uploads private, or set them as public for the whole family to see

teal narwhal
#

Nope, Immich is not designed for e2ee

oak acorn
teal narwhal
#

what ?

#

No, I mean, you the admin can see the photos they uploaded by looking at your fs

#

But by default, Immich won't show the assets uploaded by other users

#

To share assets, you have to share an album or use the partner sharing feature