Skip to content

Temp dir filled with /tmp/nextcloud_photos_* files #2072

@danielmarschall

Description

@danielmarschall

I have a lot of temp files in /tmp:

-rw------- 1 nextcloud         nextcloud         3,8M 17. Sep 01:10  nextcloud_photos_d9Ym8N
-rw------- 1 nextcloud         nextcloud         3,8M 17. Sep 02:10  nextcloud_photos_DMM0Wq
-rw------- 1 nextcloud         nextcloud         3,8M 24. Sep 23:45  nextcloud_photos_emig0d
-rw------- 1 nextcloud         nextcloud         3,8M 25. Sep 01:05  nextcloud_photos_fk7kzY

All have the same content.

Searching the code for nextcloud_photos_, I can see that in apps/photos/lib/Service/ReverseGeoCoderService.php the file was created in the following methods:

  • ReverseGeoCoderService::buildKDTree()
  • ReverseGeoCoderService::loadKdTree()

I do not see that the temp file gets deleted. Maybe I missed it, or they are actually never deleted.

Current system: nextcloud 27.1.2 on Debian 12 with PHP 8.2.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    3. to reviewWaiting for reviewsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions