I
Immich•6mo ago
drozek

Pictures missing after updating to latest version of immich

So after getting immich updated to the latest version today, changing the ports in the YAML file, i was able to boot up again, not all my pictures seem to have disappeared. Getting this error in the docker log: immich_server | [Nest] 19 - 11/26/2024, 1:26:03 AM ERROR [Api:GlobalExceptionFilter~tttla8ab] Unknown error: Error: ENOENT: no such file or directory, acc ess 'upload/thumbs/0ca460a7-bdfb-4f2c-b88f-232b5c56703c/2b/d1/2bd13f08-062f-4c21-a7c4-d35fe4166d32-thumbnail.webp' immich_server | Error: ENOENT: no such file or directory, access 'upload/thumbs/0ca460a7-bdfb-4f2c-b88f-232b5c56703c/2b/d1/2bd13f08-062f-4c21-a7c4-d35fe4166d 32-thumbnail.webp' immich_server | at async access (node:internal/fs/promises:605:10) immich_server | at async sendFile (/usr/src/app/dist/utils/file.js:50:9) immich_server | at async AssetMediaController.viewAsset (/usr/src/app/dist/controllers/asset-media.controller.js:58:9)
42 Replies
Immich
Immich•6mo ago
:wave: Hey @drozek, 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 - Container Logs: docker compose logs docs - Container Status: docker compose ps docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy 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. :ballot_box_with_check: I have read applicable release notes. 3. :ballot_box_with_check: I have reviewed the FAQs for known issues. 4. :ballot_box_with_check: I have reviewed Github for known issues. 5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting. 7. :ballot_box_with_check: 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.
drozek
drozekOP•6mo ago
.env file: You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables The location where your uploaded files are stored UPLOAD_LOCATION=P:\ The location where your database files are stored DB_DATA_LOCATION=./postgres To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List TZ=America/Chicago The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release Connection secret for postgres. You should change it to a random password Please use only the characters A-Za-z0-9, without special characters or spaces DB_PASSWORD=XXXX123 The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich
Alex Tran
Alex Tran•6mo ago
Did you change this value UPLOAD_LOCATION=P:\?
drozek
drozekOP•6mo ago
Yes I changed it back to UPLOAD_LOCATION=./library
Alex Tran
Alex Tran•6mo ago
then it should work unless the move the docker-compose.yml file elsewhere
drozek
drozekOP•6mo ago
Yeah something is seriously all messed up. I didnt move it at all
Alex Tran
Alex Tran•6mo ago
since ./library is relative to the location of the docker-compose.yml file what is the issue now?
drozek
drozekOP•6mo ago
Now i am getting this error immich_server | [Nest] 19 - 11/26/2024, 3:17:34 AM ERROR [Api:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich' immich_server | [Nest] 19 - 11/26/2024, 3:17:34 AM ERROR [Api:StorageService] Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich. app/docs/administration/system-integrity#folder-checks for more information." Sorry!
Alex Tran
Alex Tran•6mo ago
did you move, manually edit the content inside the folder that Immich created?
drozek
drozekOP•6mo ago
I might have! I was messing around with it so much today I am ok with starting from sratch just dont want to lose any pictures
Alex Tran
Alex Tran•6mo ago
So you should manually touching the folders structure that Immich created where did you upload the photos and did you remove the source?
drozek
drozekOP•6mo ago
I tried to do it to my network folder p:\ but i dont think that worked
Alex Tran
Alex Tran•6mo ago
what did you try to do?
drozek
drozekOP•6mo ago
I left it as UPLOAD_LOCATION=P:\ and I am guessing it went to my C:\ C:\Users\Admin\Local\Docker\wsl\data\ext4.vdhx since thats the biggest file i have on my c drive at 25GBs
Alex Tran
Alex Tran•6mo ago
So what do you want to accomplish initially that lead to all these modification?
drozek
drozekOP•6mo ago
So when I restarted windows and docker, it wouldn't boot up I was on an old version before I had to change the ports and then I got lost
Alex Tran
Alex Tran•6mo ago
hmm, change the port only need to be done in the docker-compose.yml file ok why don't you put back the ./library value for UPLOAD_LOCATION then create the .immich file in the encoded-video folder and then bring the stack back up
drozek
drozekOP•6mo ago
where is the encoded-video folder located?
Alex Tran
Alex Tran•6mo ago
inside the library folder next to the docker-compose.yml file
drozek
drozekOP•6mo ago
No description
Alex Tran
Alex Tran•6mo ago
yep, inside the library folder
drozek
drozekOP•6mo ago
its empty
Alex Tran
Alex Tran•6mo ago
just create an empty .immich file in the encoded-video folder
drozek
drozekOP•6mo ago
should I create a folder "encoded-video"
Alex Tran
Alex Tran•6mo ago
Did you delete the encoded-video folder?
drozek
drozekOP•6mo ago
no thats the thing It was never in there
Alex Tran
Alex Tran•6mo ago
is there anything in the upload or library folder?
drozek
drozekOP•6mo ago
library was empty and there was no upload folder at all
Alex Tran
Alex Tran•6mo ago
is there a library folder in your P: drive?
drozek
drozekOP•6mo ago
nope nothing ever went to P: I believe everything went to somewhere in the C: drive I am guessing here: C:\Users\Admin\Local\Docker\wsl\data\ext4.vdhx
Alex Tran
Alex Tran•6mo ago
what is the content of your docker-compose file looks like? and can you back track and let me know exactly what you did from the time there was no problem until now?
drozek
drozekOP•6mo ago
drozek
drozekOP•6mo ago
I was getting this error 2024-11-25 14:45:46 immich_redis | 1:C 25 Nov 2024 20:45:46.888 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 2024-11-25 14:45:46 immich_redis | 1:C 25 Nov 2024 20:45:46.888 # Redis version=6.2.14, bits=64, commit=00000000, modified=0, pid=1, just started 2024-11-25 14:45:46 immich_redis | 1:C 25 Nov 2024 20:45:46.888 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 2024-11-25 14:45:46 immich_redis | 1:M 25 Nov 2024 20:45:46.889 * monotonic clock: POSIX clock_gettime 2024-11-25 14:45:46 immich_redis | 1:M 25 Nov 2024 20:45:46.889 * Running mode=standalone, port=6379. 2024-11-25 14:45:46 immich_redis | 1:M 25 Nov 2024 20:45:46.889 # Server initialized 2024-11-25 14:45:46 immich_redis | 1:M 25 Nov 2024 20:45:46.890 * Loading RDB produced by version 6.2.14 2024-11-25 14:45:46 immich_redis | 1:M 25 Nov 2024 20:45:46.890 * RDB age 33 seconds 2024-11-25 14:45:46 immich_redis | 1:M 25 Nov 2024 20:45:46.890 * RDB memory usage when created 0.77 Mb 2024-11-25 14:45:46 immich_redis | 1:M 25 Nov 2024 20:45:46.890 # Done loading RDB, keys loaded: 0, keys expired: 0. 2024-11-25 14:45:46 immich_redis | 1:M 25 Nov 2024 20:45:46.890 * DB loaded from disk: 0.000 seconds 2024-11-25 14:45:46 immich_redis | 1:M 25 Nov 2024 20:45:46.890 * Ready to accept connections 2024-11-25 14:45:47 immich_postgres | 2024-11-25 14:45:47 immich_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization 2024-11-25 14:45:47 immich_postgres | 2024-11-25 14:45:47 immich_postgres | 2024-11-25 20:45:47.922 UTC [1] LOG: redirecting log output to logging collector process 2024-11-25 14:45:47 immich_postgres | 2024-11-25 20:45:47.922 UTC [1] HINT: Future log output will appear in directory "log". 2024-11-25 14:45:48 immich_machine_learning | [11/25/24 20:45:48] INFO Starting gunicorn 23.0.0 2024-11-25 14:45:48 immich_machine_learning | [11/25/24 20:45:48] INFO Listening at: http://[::]:3003/ (9) 2024-11-25 14:45:48 immich_machine_learning | [11/25/24 20:45:48] INFO Using worker: app.config.CustomUvicornWorker 2024-11-25 14:45:48 immich_machine_learning | [11/25/24 20:45:48] INFO Booting worker with pid: 10 2024-11-25 14:45:51 immich_machine_learning | [11/25/24 20:45:51] INFO Started server process [10] 2024-11-25 14:45:51 immich_machine_learning | [11/25/24 20:45:51] INFO Waiting for application startup. 2024-11-25 14:45:51 immich_machine_learning | [11/25/24 20:45:51] INFO Created in-memory cache with unloading after 300s 2024-11-25 14:45:51 immich_machine_learning | of inactivity. 2024-11-25 14:45:51 immich_machine_learning | [11/25/24 20:45:51] INFO Initialized request thread pool with 8 threads. 2024-11-25 14:45:51 immich_machine_learning | [11/25/24 20:45:51] INFO Application startup complete. this was after a reboot
Alex Tran
Alex Tran•6mo ago
I don't see any error
drozek
drozekOP•6mo ago
some how my server in docker disappeared 2024-11-25 15:59:07 [Nest] 7 - 11/25/2024, 9:59:07 PM ERROR [Microservices:TypeOrmModule] Unable to connect to the database. Retrying (1)... 2024-11-25 15:59:07 Error: connect ECONNREFUSED 172.18.0.2:5432 2024-11-25 15:59:07 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1610:16) 2024-11-25 15:59:07 [Nest] 7 - 11/25/2024, 9:59:07 PM ERROR [Microservices:TypeOrmModule] Unable to connect to the database. Retrying (2)... 2024-11-25 15:59:07 Error: connect ECONNREFUSED 172.18.0.2:5432 2024-11-25 15:59:07 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1610:16) then got these errors as well
Alex Tran
Alex Tran•6mo ago
something is wrong with your docker environment I don't know what though I highly recommend to run Immich on a Linux based server like Ubuntu or Debian Docker on Windows is very finicky
drozek
drozekOP•6mo ago
Yeah my plan is once I am able to get me pictures back, i was going to install it on a Pi
Alex Tran
Alex Tran•6mo ago
Did you already remove the source photos where you uploaded initially?
drozek
drozekOP•6mo ago
Nope the source has to be on the C: drive somewhere because there is nothign on the p:\
Alex Tran
Alex Tran•6mo ago
The source where you upload your photo should be on your phone
drozek
drozekOP•6mo ago
Yeah I have most of it on my phone and on amazon photos
Alex Tran
Alex Tran•6mo ago
🤔

Did you find this page helpful?