pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.21k stars 87 forks source link

Transcoding error on local file: Forbidden (External storage not supported) #1293

Open hendricksond opened 2 months ago

hendricksond commented 2 months ago

Describe the bug

I'm running nextcloud & memories on bare metal. When I attempt to watch any video with memories transcoding enabled, I receive this error in the browser's network panel and the video falls back to direct play/no transcoding:

Request URL: https://<redacted>/apps/memories/api/video/transcode/fwrno34fb480/390258/index.m3u8
Request Method: GET
Status Code: 403 Forbidden
Response:

{"message":"Forbidden (External storage not supported)"}

I do have a folder on my nextcloud instance using external storage, but this video file is not in that folder. It's in a local directory.

Nothing shows up in the go-vod log:

2024/09/15 05:48:12 &{Version:0.2.5 Configured:true VersionMonitor:false Bind:127.0.0.1:47788 FFmpeg:/usr/bin/ffmpeg FFprobe:/usr/bin/ffprobe TempDir:/tmp/ocmfjrp8dabi ChunkSize:3 LookBehind:3 GoalBufferMin:1 GoalBufferMax:4 StreamIdleTime:60 ManagerIdleTime:60 QF:25 VAAPI:false VAAPILowPower:false NVENC:false NVENCTemporalAQ:false NVENCScale:cuda UseTranspose:false ForceSwTranspose:false UseGopSize:false}
2024/09/15 05:48:12 &{Version:0.2.5 Configured:true VersionMonitor:false Bind:127.0.0.1:47788 FFmpeg:/usr/bin/ffmpeg FFprobe:/usr/bin/ffprobe TempDir:/tmp/ocmfjrp8dabi ChunkSize:3 LookBehind:3 GoalBufferMin:1 GoalBufferMax:4 StreamIdleTime:60 ManagerIdleTime:60 QF:25 VAAPI:false VAAPILowPower:false NVENC:false NVENCTemporalAQ:false NVENCScale:cuda UseTranspose:false ForceSwTranspose:false UseGopSize:false}
2024/09/15 05:48:12 Starting go-vod 0.2.5 on 127.0.0.1:47788

There aren't any errors in the nextcloud server log, either.

Steps To Reproduce

  1. Upload a video to a local folder in nextcloud
  2. Add an external storage folder, but do not upload any videos there
  3. Configure memories to use transcoding
  4. Attempt to play the video
  5. Observe error in browser console/network tab

Platform

- OS: Windows 11
- Browser: Firefox 130
- Memories Version: 7.3.1
- Nextcloud Version: Nextcloud Hub 9 (30.0.0)
- PHP Version: 8.2.23

Screenshots

No response

Additional context

No response

hendricksond commented 2 months ago

Hmm, it might actually be a problem with Nextcloud 30. I see Memories isn't officially supported on it yet, and removing the configured external storage folder does not resolve the issue.

hendricksond commented 1 month ago

The problem still occurs after upgrading version 7.4.1, which lists nextcloud 30 support.

jonathanx commented 1 month ago

I have the exact same issue, only difference is that I'm running the nextcloud linuxserver(dot)io docker image on a Mac mini M2 and I've even disabled the files_external app using occ app:disable files_external because I'm using mounted volumes directly to the docker image, but still get the same External storage not supported forbidden error in console tab. Same versions as well, nextcloud v30 and memories v7.4.1.

My scenario is a bit different but I'm getting the same error and I don't see anything on the nextcloud logs nor the go-vod logs, only on the console tab in browser.