500connect ECONNREFUSED 172.20.0.8:3001
Hi
I'm seeing this issue when trying to log in to the web gui
226 Replies
Can you post the log of server container?
erm
lets see how to do that
sorry im a rookie and linux
click on a container and I think there is a log button

which container?
@Alex
server
hmm
bring down all the containers and bring them back up
ok lets try
same errors
@Alex
Can you post your .env file?
yes
one sec
sorry
try to leave everything as default beseides
UPLOAD_LOCATION
?how do make everything dfault again/
oh just edit
ok
same error
@Alex
i restarted all the containers
Please don't ping
sorry
what is your .env now?
can you capture the screenshot of contianer?
my logs?



You haven't change your .env in portainer
oops
time to google how to do that
Portainer | Immich
Install Immich using Portainer's Stack feature.
thank you
you might start from scratch following the guide above
what do you mean by
start from scratch
so im doing to ditch docker composeE?
and do it through portainer?remove the stack from portainer
which one
compose
or immich
oh
immich
sorry
the whole stack

yes remove that then follow the guide
i cant remove it
you might have to shut it down first
i installed portainer throug linux

then I am not sure
rip
you will need to find a way to do that
i cant really do much through the portainer web gui
do you know how to remove volume
try to remove the pg_data vouime
so it'l have to be through cmd
its in use righ tnow
should i shut down the immich container?
bring down the stack forst
yes
darn
cant do it
let me do it hrough compose
this is strange
if you mange it through compose you don't need portainer
if you mange things from protainer then you might not need to run compose command

yea
docker volume rm pgdata
i can just start stop from portainer
ok
concac@concac:~/immich$ docker volume rm pgdata
Error: No such volume: pgdata
docker volume ls
local immich_model-cache
local immich_pgdata
local immich_tsdata
concac@concac:~/immich$
docker volume rm immich_pgdata
Error response from daemon: remove immich_pgdata: volume is in use - [0a4a1e8bfea05fc7466f9be21c72bffd190d481222317050a15b90769989503c]
hmmm
weird
i stopped all containers too
through docker command
docker ps
nothing is running right now
docker container prune
wait
i have other containers
like sonar and radar
etc
prune only remove stop containre
ok let me stop all the immich containers only
ok
pruned
lets check
ok
all pruned
at least the immich containers
ok with the original .env file and only change the
UPLOAD_LOCATION
let's start everything backup
hold ongot it
docker volume prune first
alright
i removed the pgdata volume
ok
so lets start from scratch?
im gonna use the docker compse guide again
yeah let's change the
UPLOAD_LOCATION
value onlygot it
thank you again for helping
no problem

thats all ive changed so far
and thats all i wil change
okay
let's bring up the stack
ok
all started
lets see the log

heyyyyy
lets go
What are you running your server on?
i have a r730
does it support avx and avx2 instruction set?
let me google what that is
im very new
i just set this thing up
lik a few months ago
Typesense - the database for searching looks to have problem starting up
oo
probably due to your CPU doesn't support instruction set avx and avx2
ðŸ˜
2x Intel Xeon E5-2697 V2 - 2.70GHz 12 Core
this is my cpu
it just supports avx nly
yeah
so this wont work?
you can set
TYPESENSE_ENABLED=false
in your environment variabledont we need typesense?
so everything works but searching
oh ok
yeah you won't be able to search
hmm.
but backing up and display should work just fine
gotcha
thats a bummer
its ok. better than nothing
yeah this is the current limitation
so should i change the user name and pw?
in the env
since we don't really have control on upstream of Typesense
gotcha
it'll motivate me to upgrade sometime down the future
you might need to remove the postgres volume again if you want to change that
just keep the host name
but FYI this is internal to the Stack
gotcha
and we don't expose the Postgres DB outside of the tack
that makes sense
ok off to bed now
have fun
thank you again!
appreciate it
if you run into any problem, please feel free to create a post here
appreciate it
how can i close this tickeT?
I can do it
thank you
also
do you have cashapp
id like to donate
I don'tjust Github donation and Paypall through https://liberapay.com/alex.tran1502
ok perfect
thank you so much
thank you for your support
absolutely
thank you
oh wait
sorry
how can i access this outside of the network
ok ill make a post
for tomorrow
Search for reverse proxy
It would get you started
yea i just reviewed that sectin
thank you
have a blessed night
You as well
im really sorry
i didnt know how to use liberapay correclty
i chose the year option
i realized that it doesnt pay you the full amount
ðŸ˜

i guess search works

bro this is FRKN AWESOME
HOW
HOW DID IT KNOW
magic
Hey alex
Im a little stuck with nginx and how to incorporate that to immich
do you already have a public dns?
yes
I just set up a dynamic DNS ealier today

So what I do is to create a separate VM that only handle proxying stuff
since my ISP changes my ip often, i used ddclient to automatically update the ip
o
oh
same here
nice twins
I use Caddy
not Nginx
oooo
yea this my first even touching anything related to reverse proxies
i just installed nginx on docker
im not familiar with how it ties into the Domain and then immich
were you able to redirect your dns to that container yet?
yea
i think so
well kinda
for example if i did menace.supply:2283
yeah I can access that site of yours
yea
scary
lmao
So what you want to do is to create another CNAME
ok
so immich.menace.supply

or photo.menace.supply
oh ok
what do i put in the data section?
it would be menace.supply

i also have this opened
on nginx
ok put the new CNAME to the domain name
so immich.menace.supply
gotcha
the IP would be my IP that the ISP gave me?
the forward Hostname/IP would be your internal IP address of your Immich server
oh
hmmm
the port would be 2283
you mean the IP that DHCP or I assigend it?
not the public
the local IP address where you are curerntly using to access Immich
gotcha
cool
if i wanted to do SSL, id do https?
basically you want to tell nginx that "when ever I go to immich.menace.supply, foward me to my internal service of Immich on IP xxx and port xx"
I believe so
ok let me read what you just wrote and comprehend it
so why are we doing this in general
like for example
i can just log into
menace.supply:2283
and be done
whats the deal with this extra stuff?if you do that then you have to export port 2283
yea i opened port 2283 on my router
lmao
thats scary
so with reverse proxy, i dont have to open 2283?
with reverse proxy you only need to expose port 80 and 443 for http and https respectively
OOOOOOOO
shoot
correct because it would use port 443
gotcha
ok

does this look right?
put scheem as https
and enable SSL
ok

force SSL
yaeh sounds good to me
thank you
so currently
if i wanted to access, id do
cloud.menace.supply
thats itcorrect

ooo maybe i gotta wait for the dns to update?
it is usually pretty fast
are you putting https?
no im so dumb sorry

ok what are you running your Nginx manager as?
is it a container?
yea
its a container
can it see the IP address of your Immich server?

good question
let me see
how do i find that out?
go into the Nginx container's shell and ping your Immich IP address
ok lets see

im here
The reason I go with a separate VM because then the VM has access to all internal IP address of my services
ok ping your Immich internal IP

lol
lol
yea
can you do
ip -c a
?no lmao
let me try from the other side
now i gotta find out how to cd into that container
pretty much the same operations you did above
rip
these containers do not have ssh
lets try docker exec
yeah you hae to use docker exec
ok

im in
phew
do i add the port 2283 as well?
its pinging when i do
ping cloud.menace.supply

it also pinged my internal ip
can you ping immich>
sorry
wym
ping imich IP
192.168.1.6 is the ip
for immich
diodn you put .10 in your nginx manager?
that was a typo
sorry


try to access it again
ping it again?
ping 192.168.1.6?
i just did


hmm unsure is there any log from nginx you can get?
lets see
i have dynamic dns set up
does that affect anythin
anything*
no as long as you can access your domain
i have no idea why its not working hahah
@jrasm91 When you have time, can you help taking a look, I don't use NPM so I have no idea what is missing here. Thank you
thanks you alex
alex
i got it to work
but for some reason, https will not work
Is npm a container? Are you running everything on portainer?
This should be http not https btw
I don't actually expose port 2283 on the stack either. I add the npm proxy network to the immich proxy container using docker composes external network feature. Then, I use the target of immich-proxy:8080 in npm.
got it.
i deleted all NPM related things
and started over
i need to learn what you did here. i removed the port forward for 2283.
i just forwarded 80 81 and 443
this ended up working along with me correcting the dns settings for the A settings
all is well now. thank you
If im using the domain i set up in nginx to log in, do i need to use these settings in this document?
GitHub
immich/default.conf.template at main · immich-app/immich
Self-hosted photo and video backup solution directly from your mobile phone. - immich/default.conf.template at main · immich-app/immich
on the mobile app, i log in as
http://immich.menace.supply/api
and then I login
is this the correct way of doing things?When you added the immich entry did you check the box for SSL cert?
Yes, but it should be https
It should use https to communicate from the mobile app to the reverse proxy and then it will use just http to communicate from the proxy to immich
That's why the target needs to be http in npm and the url for the mobile app should be https
Ah ok that makes sense. Let’s try. Thank you !
Works perfectly !! Thanks!
In which scenario would I use this?
You shouldn't need to add those settings anywhere
Ok thank you! Looks like I should be all set! Appreciate y’all!