Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] oshash generation fails when using symlinks #2196

Closed
Karkarus opened this issue Jan 2, 2022 · 0 comments · Fixed by #2198
Closed

[Bug Report] oshash generation fails when using symlinks #2196

Karkarus opened this issue Jan 2, 2022 · 0 comments · Fixed by #2198
Labels
bug Something isn't working

Comments

@Karkarus
Copy link

Karkarus commented Jan 2, 2022

Describe the bug
Since version 0.11.0 scanning symlinks fails most of the time as Stash tries to generate the oshash from the symlink itself instead of the actual file.
This fails almost always as the filesize of the link is often not a multiple of 8.

Error message: "error generating oshash for /data/library/testfile.mp4: oshash head: buffer is not a multiple of 8"

To Reproduce
Steps to reproduce the behavior:

  1. Install Stash as a docker container as described in the README.md.
  2. Create the following folder structure inside the /data folder:
    /data/library
    /data/downloads
  3. Run Stash and set the library to /data/library
  4. Add a video file to the /data/downloads folder
  5. Create a (relative) symlink (inside the docker) from the file in the downloads folder to the library folder
  6. Scan the library

Expected behavior
The file should be scanned and added to the library normally. The oshash should be generated from the video file itself, not the link. This worked until the 0.11.0 update.

Stash Version: (from Settings -> About): 0.12.0

Desktop (please complete the following information):

  • OS: Ubuntu 20.04.3 LTS
  • Docker Version: 20.10.12
  • Docker-Compose Version: 1.29.2

Additional Information
The same problem occurs when using the Docker container for Unraid and when running the latest Linux release directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants