Migrating to stash-s6 error

I’m migrating from the official stashapp/stash image to stash-s6 in Unraid and encountering the error /config/entrypoint.sh: 2: apk: not found. Additionally, the entrypoint.sh file is zero bytes, which likely means it’s not being copied correctly. I followed the migration instructions and I set MIGRATE=TRUE.

How can I resolve this issue? Do I need to create or modify the entrypoint.sh script, and if so, what should I include?

apk not found? Yikes, which image tag are you using? That sounds like the entire image is corrupted or wasn’t written to disk properly

I’m using the image tag ghcr.io/feederbox826/stash-s6:hwaccel.

Regarding the volumes:

volumes:
  - /data/old-stash/config:/root/.stash
  - /data/new-stash/config:/config
  - /data/new-stash/pip-install:/pip-install

I created a new folder called stash-s6 with empty config and pip-install directories. Should I have moved the old config folder into a new folder instead?

Wait… /config/entrypoint.sh, that’s not the default entrypoint. It sounds like you had it overridden to add python dependencies… and hwaccel is debian based, so alpine’s apk would fail

remove entrypoint from your docker-compose

Good catch, it’s working now! I completely missed it was there for the Python dependencies.

Do I need to add this configuration somewhere in Unraid since it is not using a docker compose file? I’m using an Intel iGPU for QSV.

x-quicksync: &quicksync
  group_add:
    - 109
    - 44
    - 103
    - 226

services:
  stash:
    <<: *quicksync

It should help, just add it directly instead

services:
  stash:
    group_add:
      - 109
     ....
    image: ghcr.io/feederbox826/stash-s6:hwaccel

It looks like only the video group (GID 44) exists inside the container. I’m not sure what the other groups are for, but they don’t seem to be present—getent group doesn’t return anything for them.

After migrating from the official repo, I’m encountering a transcode error. The initialization shows the following supported codecs:

Info [InitHWSupport] Supported HW codecs [4]:
- H264 Intel Quick Sync Video (QSV) - h264_qsv
- H264 Intel Quick Sync Video (QSV) Compatibility profile - h264_qsv
- H264 VAAPI - h264_vaapi
- VP9 VAAPI - vp9_vaapi

However, I am receiving these error messages:

Error [transcode] ffmpeg error when running command </usr/bin/ffmpeg -hide_banner -v error -init_hw_device qsv=hw -filter_hw_device hw -ss 12.58 -i /data/Performers/9.wmv -c:v h264_qsv -global_quality 20 -preset faster -movflags frag_keyframe+empty_moov -vf hwupload=extra_hw_frames=64,format=qsv -ac 2 -f mp4 pipe:>
Error [transcode] ffmpeg error when running command </usr/bin/ffmpeg -hide_banner -v error -init_hw_device qsv=hw -filter_hw_device hw -ss 1588.65 -i /data/Performers/file.avi -c:v h264_qsv -global_quality 20 -preset faster -movflags frag_keyframe+empty_moov -vf hwupload=extra_hw_frames=64,format=qsv -ac 2 -f mp4 pipe:>

I would appreciate any help in troubleshooting this issue.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Related to Transcode Error · Issue #32 · feederbox826/stash-s6 · GitHub

I haven’t had time to dive that deep into it but had a lot of trouble looking for any red flags since 0 is a successful exit code

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.