I
Immich•3y ago
CON CAC

500connect ECONNREFUSED 172.20.0.8:3001

Hi I'm seeing this issue when trying to log in to the web gui
226 Replies
Alex Tran
Alex Tran•3y ago
Can you post the log of server container?
CON CAC
CON CACOP•3y ago
erm lets see how to do that sorry im a rookie and linux
Alex Tran
Alex Tran•3y ago
click on a container and I think there is a log button
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
which container? @Alex
Alex Tran
Alex Tran•3y ago
server
CON CAC
CON CACOP•3y ago
Alex Tran
Alex Tran•3y ago
hmm bring down all the containers and bring them back up
CON CAC
CON CACOP•3y ago
ok lets try same errors
CON CAC
CON CACOP•3y ago
CON CAC
CON CACOP•3y ago
@Alex
Alex Tran
Alex Tran•3y ago
Can you post your .env file?
CON CAC
CON CACOP•3y ago
yes one sec
CON CAC
CON CACOP•3y ago
CON CAC
CON CACOP•3y ago
sorry
Alex Tran
Alex Tran•3y ago
try to leave everything as default beseides UPLOAD_LOCATION?
CON CAC
CON CACOP•3y ago
how do make everything dfault again/ oh just edit ok same error @Alex
CON CAC
CON CACOP•3y ago
CON CAC
CON CACOP•3y ago
i restarted all the containers
Alex Tran
Alex Tran•3y ago
Please don't ping
CON CAC
CON CACOP•3y ago
sorry
Alex Tran
Alex Tran•3y ago
what is your .env now? can you capture the screenshot of contianer?
CON CAC
CON CACOP•3y ago
CON CAC
CON CACOP•3y ago
my logs?
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
You haven't change your .env in portainer
CON CAC
CON CACOP•3y ago
oops time to google how to do that
Alex Tran
Alex Tran•3y ago
Portainer | Immich
Install Immich using Portainer's Stack feature.
CON CAC
CON CACOP•3y ago
thank you
Alex Tran
Alex Tran•3y ago
you might start from scratch following the guide above
CON CAC
CON CACOP•3y ago
what do you mean by start from scratch so im doing to ditch docker composeE? and do it through portainer?
Alex Tran
Alex Tran•3y ago
remove the stack from portainer
CON CAC
CON CACOP•3y ago
which one compose or immich oh immich sorry
Alex Tran
Alex Tran•3y ago
the whole stack
CON CAC
CON CACOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
yes remove that then follow the guide
CON CAC
CON CACOP•3y ago
i cant remove it
Alex Tran
Alex Tran•3y ago
you might have to shut it down first
CON CAC
CON CACOP•3y ago
i installed portainer throug linux
CON CAC
CON CACOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
then I am not sure
CON CAC
CON CACOP•3y ago
rip
Alex Tran
Alex Tran•3y ago
you will need to find a way to do that
CON CAC
CON CACOP•3y ago
i cant really do much through the portainer web gui
Alex Tran
Alex Tran•3y ago
do you know how to remove volume try to remove the pg_data vouime
CON CAC
CON CACOP•3y ago
so it'l have to be through cmd its in use righ tnow should i shut down the immich container?
Alex Tran
Alex Tran•3y ago
bring down the stack forst yes
CON CAC
CON CACOP•3y ago
darn cant do it let me do it hrough compose
Alex Tran
Alex Tran•3y ago
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
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
yea
Alex Tran
Alex Tran•3y ago
docker volume rm pgdata
CON CAC
CON CACOP•3y ago
i can just start stop from portainer ok concac@concac:~/immich$ docker volume rm pgdata Error: No such volume: pgdata
Alex Tran
Alex Tran•3y ago
docker volume ls
CON CAC
CON CACOP•3y ago
local immich_model-cache local immich_pgdata local immich_tsdata concac@concac:~/immich$
Alex Tran
Alex Tran•3y ago
docker volume rm immich_pgdata
CON CAC
CON CACOP•3y ago
Error response from daemon: remove immich_pgdata: volume is in use - [0a4a1e8bfea05fc7466f9be21c72bffd190d481222317050a15b90769989503c] hmmm weird i stopped all containers too through docker command
Alex Tran
Alex Tran•3y ago
docker ps
CON CAC
CON CACOP•3y ago
nothing is running right now
Alex Tran
Alex Tran•3y ago
docker container prune
CON CAC
CON CACOP•3y ago
wait i have other containers like sonar and radar etc
Alex Tran
Alex Tran•3y ago
prune only remove stop containre
CON CAC
CON CACOP•3y ago
ok let me stop all the immich containers only ok pruned lets check ok all pruned at least the immich containers
Alex Tran
Alex Tran•3y ago
ok with the original .env file and only change the UPLOAD_LOCATION let's start everything backup hold on
CON CAC
CON CACOP•3y ago
got it
Alex Tran
Alex Tran•3y ago
docker volume prune first
CON CAC
CON CACOP•3y ago
alright i removed the pgdata volume ok so lets start from scratch? im gonna use the docker compse guide again
Alex Tran
Alex Tran•3y ago
yeah let's change the UPLOAD_LOCATION value only
CON CAC
CON CACOP•3y ago
got it thank you again for helping
Alex Tran
Alex Tran•3y ago
no problem
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
thats all ive changed so far and thats all i wil change
Alex Tran
Alex Tran•3y ago
okay let's bring up the stack
CON CAC
CON CACOP•3y ago
ok all started lets see the log
CON CAC
CON CACOP•3y ago
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
heyyyyy lets go
Alex Tran
Alex Tran•3y ago
What are you running your server on?
CON CAC
CON CACOP•3y ago
i have a r730
Alex Tran
Alex Tran•3y ago
does it support avx and avx2 instruction set?
CON CAC
CON CACOP•3y ago
let me google what that is im very new i just set this thing up lik a few months ago
Alex Tran
Alex Tran•3y ago
Typesense - the database for searching looks to have problem starting up
CON CAC
CON CACOP•3y ago
oo
Alex Tran
Alex Tran•3y ago
probably due to your CPU doesn't support instruction set avx and avx2
CON CAC
CON CACOP•3y ago
😭 2x Intel Xeon E5-2697 V2 - 2.70GHz 12 Core this is my cpu it just supports avx nly
Alex Tran
Alex Tran•3y ago
yeah
CON CAC
CON CACOP•3y ago
so this wont work?
Alex Tran
Alex Tran•3y ago
you can set TYPESENSE_ENABLED=false in your environment variable
CON CAC
CON CACOP•3y ago
dont we need typesense?
Alex Tran
Alex Tran•3y ago
so everything works but searching
CON CAC
CON CACOP•3y ago
oh ok
Alex Tran
Alex Tran•3y ago
yeah you won't be able to search
CON CAC
CON CACOP•3y ago
hmm.
Alex Tran
Alex Tran•3y ago
but backing up and display should work just fine
CON CAC
CON CACOP•3y ago
gotcha thats a bummer its ok. better than nothing
Alex Tran
Alex Tran•3y ago
yeah this is the current limitation
CON CAC
CON CACOP•3y ago
so should i change the user name and pw? in the env
Alex Tran
Alex Tran•3y ago
since we don't really have control on upstream of Typesense
CON CAC
CON CACOP•3y ago
gotcha it'll motivate me to upgrade sometime down the future
Alex Tran
Alex Tran•3y ago
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
CON CAC
CON CACOP•3y ago
gotcha
Alex Tran
Alex Tran•3y ago
and we don't expose the Postgres DB outside of the tack
CON CAC
CON CACOP•3y ago
that makes sense
Alex Tran
Alex Tran•3y ago
ok off to bed now have fun
CON CAC
CON CACOP•3y ago
thank you again! appreciate it
Alex Tran
Alex Tran•3y ago
if you run into any problem, please feel free to create a post here
CON CAC
CON CACOP•3y ago
appreciate it how can i close this tickeT?
Alex Tran
Alex Tran•3y ago
I can do it
CON CAC
CON CACOP•3y ago
thank you also do you have cashapp id like to donate
Alex Tran
Alex Tran•3y ago
I don'tjust Github donation and Paypall through https://liberapay.com/alex.tran1502
CON CAC
CON CACOP•3y ago
ok perfect thank you so much
Alex Tran
Alex Tran•3y ago
thank you for your support
CON CAC
CON CACOP•3y ago
absolutely thank you oh wait sorry how can i access this outside of the network ok ill make a post for tomorrow
Alex Tran
Alex Tran•3y ago
Search for reverse proxy It would get you started
CON CAC
CON CACOP•3y ago
yea i just reviewed that sectin thank you have a blessed night
Alex Tran
Alex Tran•3y ago
You as well
CON CAC
CON CACOP•3y ago
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 😭
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
i guess search works
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
bro this is FRKN AWESOME HOW HOW DID IT KNOW
Alex Tran
Alex Tran•3y ago
magic
CON CAC
CON CACOP•3y ago
Hey alex Im a little stuck with nginx and how to incorporate that to immich
Alex Tran
Alex Tran•3y ago
do you already have a public dns?
CON CAC
CON CACOP•3y ago
yes I just set up a dynamic DNS ealier today
CON CAC
CON CACOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
So what I do is to create a separate VM that only handle proxying stuff
CON CAC
CON CACOP•3y ago
since my ISP changes my ip often, i used ddclient to automatically update the ip o oh
Alex Tran
Alex Tran•3y ago
same here
CON CAC
CON CACOP•3y ago
nice twins
Alex Tran
Alex Tran•3y ago
I use Caddy not Nginx
CON CAC
CON CACOP•3y ago
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
Alex Tran
Alex Tran•3y ago
were you able to redirect your dns to that container yet?
CON CAC
CON CACOP•3y ago
yea i think so well kinda for example if i did menace.supply:2283
Alex Tran
Alex Tran•3y ago
yeah I can access that site of yours
CON CAC
CON CACOP•3y ago
yea scary lmao
Alex Tran
Alex Tran•3y ago
So what you want to do is to create another CNAME
CON CAC
CON CACOP•3y ago
ok
Alex Tran
Alex Tran•3y ago
so immich.menace.supply
CON CAC
CON CACOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
or photo.menace.supply
CON CAC
CON CACOP•3y ago
oh ok what do i put in the data section?
Alex Tran
Alex Tran•3y ago
it would be menace.supply
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
i also have this opened on nginx
Alex Tran
Alex Tran•3y ago
ok put the new CNAME to the domain name so immich.menace.supply
CON CAC
CON CACOP•3y ago
gotcha the IP would be my IP that the ISP gave me?
Alex Tran
Alex Tran•3y ago
the forward Hostname/IP would be your internal IP address of your Immich server
CON CAC
CON CACOP•3y ago
oh hmmm
Alex Tran
Alex Tran•3y ago
the port would be 2283
CON CAC
CON CACOP•3y ago
you mean the IP that DHCP or I assigend it? not the public
Alex Tran
Alex Tran•3y ago
the local IP address where you are curerntly using to access Immich
CON CAC
CON CACOP•3y ago
gotcha cool if i wanted to do SSL, id do https?
Alex Tran
Alex Tran•3y ago
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
CON CAC
CON CACOP•3y ago
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?
Alex Tran
Alex Tran•3y ago
if you do that then you have to export port 2283
CON CAC
CON CACOP•3y ago
yea i opened port 2283 on my router lmao thats scary so with reverse proxy, i dont have to open 2283?
Alex Tran
Alex Tran•3y ago
with reverse proxy you only need to expose port 80 and 443 for http and https respectively
CON CAC
CON CACOP•3y ago
OOOOOOOO shoot
Alex Tran
Alex Tran•3y ago
correct because it would use port 443
CON CAC
CON CACOP•3y ago
gotcha ok
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
does this look right?
Alex Tran
Alex Tran•3y ago
put scheem as https and enable SSL
CON CAC
CON CACOP•3y ago
ok
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
force SSL
Alex Tran
Alex Tran•3y ago
yaeh sounds good to me
CON CAC
CON CACOP•3y ago
thank you so currently if i wanted to access, id do cloud.menace.supply thats it
Alex Tran
Alex Tran•3y ago
correct
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
ooo maybe i gotta wait for the dns to update?
Alex Tran
Alex Tran•3y ago
it is usually pretty fast are you putting https?
CON CAC
CON CACOP•3y ago
no im so dumb sorry
CON CAC
CON CACOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
ok what are you running your Nginx manager as? is it a container?
CON CAC
CON CACOP•3y ago
yea its a container
Alex Tran
Alex Tran•3y ago
can it see the IP address of your Immich server?
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
good question let me see how do i find that out?
Alex Tran
Alex Tran•3y ago
go into the Nginx container's shell and ping your Immich IP address
CON CAC
CON CACOP•3y ago
ok lets see
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
im here
Alex Tran
Alex Tran•3y ago
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
CON CAC
CON CACOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
lol
CON CAC
CON CACOP•3y ago
lol yea
Alex Tran
Alex Tran•3y ago
can you do ip -c a?
CON CAC
CON CACOP•3y ago
no lmao let me try from the other side now i gotta find out how to cd into that container
Alex Tran
Alex Tran•3y ago
pretty much the same operations you did above
CON CAC
CON CACOP•3y ago
rip these containers do not have ssh lets try docker exec
Alex Tran
Alex Tran•3y ago
yeah you hae to use docker exec
CON CAC
CON CACOP•3y ago
ok
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
im in phew do i add the port 2283 as well? its pinging when i do ping cloud.menace.supply
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
it also pinged my internal ip
Alex Tran
Alex Tran•3y ago
can you ping immich>
CON CAC
CON CACOP•3y ago
sorry wym
Alex Tran
Alex Tran•3y ago
ping imich IP
CON CAC
CON CACOP•3y ago
192.168.1.6 is the ip for immich
Alex Tran
Alex Tran•3y ago
diodn you put .10 in your nginx manager?
CON CAC
CON CACOP•3y ago
that was a typo sorry
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
try to access it again
CON CAC
CON CACOP•3y ago
ping it again? ping 192.168.1.6? i just did
CON CAC
CON CACOP•3y ago
No description
CON CAC
CON CACOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
hmm unsure is there any log from nginx you can get?
CON CAC
CON CACOP•3y ago
lets see i have dynamic dns set up does that affect anythin anything*
Alex Tran
Alex Tran•3y ago
no as long as you can access your domain
CON CAC
CON CACOP•3y ago
i have no idea why its not working hahah
Alex Tran
Alex Tran•3y ago
@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
CON CAC
CON CACOP•3y ago
thanks you alex alex i got it to work but for some reason, https will not work
jrasm91
jrasm91•3y ago
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.
CON CAC
CON CACOP•3y ago
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?
CON CAC
CON CACOP•3y ago
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
CON CAC
CON CACOP•3y ago
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?
jrasm91
jrasm91•3y ago
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
CON CAC
CON CACOP•3y ago
Ah ok that makes sense. Let’s try. Thank you ! Works perfectly !! Thanks! In which scenario would I use this?
jrasm91
jrasm91•3y ago
You shouldn't need to add those settings anywhere
CON CAC
CON CACOP•3y ago
Ok thank you! Looks like I should be all set! Appreciate y’all!

Did you find this page helpful?