Skip to content

feature request: Fix Stremthru DMM Hashlists sync #47

@roots-wd

Description

@roots-wd

Checklist

  • I checked that this feature has not been requested before
  • I checked that this feature is not in the "Not planned" list
  • This feature will benefit the majority of users

Problem Description / Use Case

Stremthru log:

level=ERROR
msg=failed to get remote url
scope=worker/sync-dmm-hashlist
error=exit status 128
cmd_error=fatal: detected dubious ownership in repository at '/app/data/hashlists' To add an exception for this directory, call: git config --global --add safe.directory /app/data/hashlists

In the default configuration, Stremthru logs the above error whenever it's trying to parse the hashlists in /stremthru/data/hashlists due to Git ownership requirements. While the log proposes a fix by adding an exception in the git config, a more elegant solution would be to address the ownership mismatch when creating the Stremthru container.

Proposed Solution

In docker/apps/stremthru/compose.yaml, add user: $PUID:$PGID as follows:

services:
  stremthru:
    user: $PUID:$PGID
    image: ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions