[BUG] local-reverse-geocoder creates data in node_modules #338

Closed
opened 2026-02-04 19:48:46 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @nebulade on GitHub (Sep 28, 2022).

The newly added dependency local-reverse-geocoder tries to create a folder to stash some data within node_modules/ at server/node_modules/local-reverse-geocoder/geonames_dump. This causes problems if node_modules is in read-only filesystem if treated like code (in this case for the Cloudron app package).

I am not sure if this should be reported rather with the upstream module to change https://github.com/tomayac/local-reverse-geocoder/blob/main/index.js#L99 to use the process cwd instead of the code file path, or if immich should provide a better folder path at https://github.com/tomayac/local-reverse-geocoder/blob/main/index.js#L618

I am happy to produce a pull request if the change should be made in immich, otherwise will try to get this into the module itself.

Originally created by @nebulade on GitHub (Sep 28, 2022). The newly added dependency `local-reverse-geocoder` tries to create a folder to stash some data within `node_modules/` at `server/node_modules/local-reverse-geocoder/geonames_dump`. This causes problems if `node_modules` is in read-only filesystem if treated like code (in this case for the Cloudron app package). I am not sure if this should be reported rather with the upstream module to change https://github.com/tomayac/local-reverse-geocoder/blob/main/index.js#L99 to use the process cwd instead of the code file path, or if immich should provide a better folder path at https://github.com/tomayac/local-reverse-geocoder/blob/main/index.js#L618 I am happy to produce a pull request if the change should be made in immich, otherwise will try to get this into the module itself.
Author
Owner

@alextran1502 commented on GitHub (Sep 28, 2022):

I am open to see the change in Immich since it will probably be faster and easier to control. Let me know if you have any question.

@alextran1502 commented on GitHub (Sep 28, 2022): I am open to see the change in Immich since it will probably be faster and easier to control. Let me know if you have any question.
Author
Owner

@zackpollard commented on GitHub (Sep 28, 2022):

I'm happy for us to put this change in immich, we did consider it but didn't think the default path would cause a problem. Feel free to make a PR that corrects this with a sensible path for storing the data.

@zackpollard commented on GitHub (Sep 28, 2022): I'm happy for us to put this change in immich, we did consider it but didn't think the default path would cause a problem. Feel free to make a PR that corrects this with a sensible path for storing the data.
Author
Owner

@nebulade commented on GitHub (Sep 28, 2022):

The change seems unnecessarily small given that I don't know the codebase conventions, so maybe this works for you? :)

@nebulade commented on GitHub (Sep 28, 2022): The change seems unnecessarily small given that I don't know the codebase conventions, so maybe this works for you? :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#338