I
Immich•2y ago
zzbpyw

Unable to run reverse geo

hi,I'm installing immich v1.75.2. but it can't parse geo info. i found error log in immich_microservices: [Nest] 7 - 08/27/2023, 7:37:23 AM ERROR [MetadataExtractionProcessor] Unable to initialize reverse geocoding: Error: EACCES: permission denied, mkdir '/usr/src/app/.reverse-geocoding-dump/' Then i mapped a .reverse-geocoding-dump dir into immich_microservices and restart the docker. the lastest error is : Nest] 7 - 08/27/2023, 7:38:21 AM WARN [AppService] Geocoding csv parse error, trying again without cache... then all the tasks in "EXTRACT METADATA" fails, how to solve that please?
21 Replies
bo0tzz
bo0tzz•2y ago
Can you post your docker compose file and .env?
zzbpyw
zzbpywOP•2y ago
when was the directory craeted? root@zzbpywdebiannas:/sata-mirror-data/immich# docker exec -it immich_microservices bash I have no name!@6e83d42b5032:/usr/src/app$ pwd /usr/src/app I have no name!@6e83d42b5032:/usr/src/app$ ls -al total 897 drwxr-xr-x 1 root root 4096 Aug 27 07:51 . drwxr-xr-x 1 root root 4096 Aug 6 21:01 .. drwxr-xr-x 2 root root 4096 Aug 26 23:33 bin drwxr-xr-x 7 root root 4096 Aug 26 23:33 dist drwxr-xr-x 387 root root 12288 Aug 26 23:33 node_modules -rw-r--r-- 1 root root 853671 Aug 26 22:56 package-lock.json -rw-r--r-- 1 root root 5725 Aug 26 22:56 package.json -rwxr-xr-x 1 root root 43 Aug 25 23:29 start-microservices.sh -rwxr-xr-x 1 root root 36 Aug 25 23:29 start-server.sh -rwxr-xr-x 1 root root 753 Aug 26 14:05 start.sh drwxr-xr-x 6 1002 1002 6 Aug 27 07:25 upload I have no name!@6e83d42b5032:/usr/src/app$ mkdir .reverse-geocoding-dump mkdir: cannot create directory '.reverse-geocoding-dump': Permission denied I have no name!@6e83d42b5032:/usr/src/app$ there is no .reverse-geocoding-dump dir in the image, and i (or the process) can't mkdir
zzbpyw
zzbpywOP•2y ago
when i mapped a dir (with access rights) to the container,it can create files in it ,but the service seems not working
No description
No description
zzbpyw
zzbpywOP•2y ago
if i remove the dir mapping ,it will start but without geo
No description
Alex Tran
Alex Tran•2y ago
can you bring all containers down and removing them?
bo0tzz
bo0tzz•2y ago
This is happening because you're running immich as user 1002, IIRC that isn't really supported yet
zzbpyw
zzbpywOP•2y ago
No description
zzbpyw
zzbpywOP•2y ago
but this says it will work😂
No description
bo0tzz
bo0tzz•2y ago
You didn't set PUID/PGID ;)
zzbpyw
zzbpywOP•2y ago
i put user: "1002:1002" in the docker-compose.yml and the container was able to create data in the mapping dir
zzbpyw
zzbpywOP•2y ago
now i am running with root,the job still stucks
No description
No description
zzbpyw
zzbpywOP•2y ago
here is the yml and env
zzbpyw
zzbpywOP•2y ago
what's the cause of "Geocoding csv parse error, trying again without cache..."?
zzbpyw
zzbpywOP•2y ago
i didn't find any csv file in the config or inside the container
No description
zzbpyw
zzbpywOP•2y ago
i found that this file is incomplete: admin2_codes/admin2Codes_2023-08-27.txt
No description
zzbpyw
zzbpywOP•2y ago
what is the download url?is it right on the server,if it is ,then it's a download problem? by the way,i'm from China and the network seems very bad
zzbpyw
zzbpywOP•2y ago
ahh,the file differs from the container,there must be a bug in the download logic.(maybe time limit and without md5 checking)
No description
zzbpyw
zzbpywOP•2y ago
i think it's a async download,because the file ".reverse-geocoding-dump/admin2_codes/admin2Codes_2023-08-27.txt" is still updating after the error:"Geocoding csv parse error, trying again without cache..." i solved this by this: start immich_microservices and wait for downloading,when the txt files in .reverse-geocoding-dump stays no change for more than 20mins,then restart immich_microservices.
zzbpyw
zzbpywOP•2y ago
No description
Alex Tran
Alex Tran•2y ago
I believe this issue has been resolved since I saw your question on different matter?

Did you find this page helpful?