Dear experts, I've encountered a problem where images cannot be displayed correctly.

I'm using a Mac M1, on which I've set up a CentOS 7 virtual machine using Parallels to run the backend services. The services have started normally and can be accessed over the network. However, I've come across a problem. After images are uploaded, they cannot be displayed correctly, and I'm not sure where the issue lies. Image upload channels: Mac Mini web end and iOS client.
No description
No description
79 Replies
joke102
joke102OP2y ago
I used dockercompose to insatll
Alex Tran
Alex Tran2y ago
Can you post your docker-compose, .env and server/microservices logs please?
joke102
joke102OP2y ago
of course, thank you.
joke102
joke102OP2y ago
this is my .env
Alex Tran
Alex Tran2y ago
I think your docker-compose file is incorrect microservices is using the startup command for server that is the cause
joke102
joke102OP2y ago
I used the example docker-compose , not changed any word.
Alex Tran
Alex Tran2y ago
hmm strange can you help posted all the logs please for server and microservices
joke102
joke102OP2y ago
a minute
joke102
joke102OP2y ago
found some errors but I dont have any idea about it
Alex Tran
Alex Tran2y ago
what is your microservices logs?
joke102
joke102OP2y ago
Alex Tran
Alex Tran2y ago
Can you restart the microservices container and make sure that you see this message immich_microservices | [Nest] 29 - 07/22/2023, 2:06:59 AM LOG [ImmichMicroservice] Immich Microservices is listening on 3002 [v1.68.0]
joke102
joke102OP2y ago
i'll try
Alex Tran
Alex Tran2y ago
Can you help me cope and paste your docker-compose?
joke102
joke102OP2y ago
I restarted Immich Microservices , got some new logs as same as the old ones.
joke102
joke102OP2y ago
this is my docker-compose for immich-microservices immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - .env depends_on: - redis - database - typesense restart: always
Alex Tran
Alex Tran2y ago
okay it is now showing it is starting for microservices but I don't see the entire logs can you do docker ps? and then docker logs immich_microservices
joke102
joke102OP2y ago
No description
Alex Tran
Alex Tran2y ago
looks like microservices container keep restasrting now do this
joke102
joke102OP2y ago
No description
Alex Tran
Alex Tran2y ago
docker-compose down and then docker-compose up without the --d flags to see if the container restarting
joke102
joke102OP2y ago
ok all up
joke102
joke102OP2y ago
No description
Alex Tran
Alex Tran2y ago
do you see logs for immich_microservices?
joke102
joke102OP2y ago
No description
joke102
joke102OP2y ago
this is last logs for microservices
Alex Tran
Alex Tran2y ago
No description
Alex Tran
Alex Tran2y ago
Hmm so strange, I don't see the logs to get microservices to startup
joke102
joke102OP2y ago
yes , so it is the problem, immich_microservices is not started
Alex Tran
Alex Tran2y ago
not starting correctly can you do docker-compose down then docker container prune and then docker-compose up
joke102
joke102OP2y ago
ok
joke102
joke102OP2y ago
No description
joke102
joke102OP2y ago
done
Alex Tran
Alex Tran2y ago
after the server starting up, can you try to run thumbnail generation for missing one again?
joke102
joke102OP2y ago
joke102
joke102OP2y ago
still can't do it
Alex Tran
Alex Tran2y ago
I mean go into administration > job > thumbnail generation click generate for all and then monitor the logs please
joke102
joke102OP2y ago
oh i see success thank you
Alex Tran
Alex Tran2y ago
the thumbnail generated?
joke102
joke102OP2y ago
I got a fool question, I never click the thumbnail generation before
Alex Tran
Alex Tran2y ago
you shouldn't have to click it thumbnail should be generated automatically I assume there was something wrong with the microservices container when you first started and upload those images but apparently it is fix?
joke102
joke102OP2y ago
I thought thumbnails would be automatically generated and displayed after the image is uploaded.
Alex Tran
Alex Tran2y ago
Exactly I suspect something might have gone wrong for your initial upload can you try upload some more photos to see if they get generated?
joke102
joke102OP2y ago
ok
joke102
joke102OP2y ago
No description
Alex Tran
Alex Tran2y ago
did the log say anything?
joke102
joke102OP2y ago
the new upload not work
joke102
joke102OP2y ago
No description
joke102
joke102OP2y ago
log
joke102
joke102OP2y ago
No description
Alex Tran
Alex Tran2y ago
can you try with docker logs immich_microservices
joke102
joke102OP2y ago
ok but I think I may have to stop the container and restart with -d
Alex Tran
Alex Tran2y ago
using that command it should pull the logs correctly
joke102
joke102OP2y ago
No description
joke102
joke102OP2y ago
the log say nothing , I suppose.
Alex Tran
Alex Tran2y ago
this logs looks old at 38 minutes while you uploaded at minute 56 can you prune this instance and try create a new instance?
joke102
joke102OP2y ago
ignore the time, my centos7 time is incorrect
Alex Tran
Alex Tran2y ago
hmm strange can you create a new instance and test it?
joke102
joke102OP2y ago
ok
joke102
joke102OP2y ago
The time on my Linux virtual machine, Docker on the virtual machine, and my Mac are all different.
No description
joke102
joke102OP2y ago
I'll try upload one pic
Alex Tran
Alex Tran2y ago
okay!
joke102
joke102OP2y ago
No description
joke102
joke102OP2y ago
still no word from the log
Alex Tran
Alex Tran2y ago
and thumbnail doesn't get generated?
joke102
joke102OP2y ago
yes
Alex Tran
Alex Tran2y ago
Hmm And this is a new instance with new user and everything?
joke102
joke102OP2y ago
yes But if I trigger it manually, it works.
Alex Tran
Alex Tran2y ago
HMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM :icebearehwhat:
joke102
joke102OP2y ago
should I build another vm to run this?
Alex Tran
Alex Tran2y ago
Please try because this is REALY strange
joke102
joke102OP2y ago
Maybe this vm has been cursed
Alex Tran
Alex Tran2y ago
could be :BO_Nani:
joke102
joke102OP2y ago
Thank you very much for spending so much time helping me. I will try to start another virtual machine later to handle this issue. If there is any progress, I will update you here. Thank you so much.
Alex Tran
Alex Tran2y ago
No problem man, thank you for reporting and sorry for the inconvenient such a weird case
joke102
joke102OP2y ago
FYI,  I started a new VM, and it worked. thank you for you time any way! I have a new question, does this app support live photos on iPhone?
Alex Tran
Alex Tran2y ago
Yed

Did you find this page helpful?