I cant start videos from http

What is the problem you are having with rclone?

I'm using the xtream-ui with nginx. I created a one rclone config for http mount and i activate a dir http on my nginx, but when xtream-ui try to start movie, he can't
Searching for the movie directly from my http directory

What is your rclone version (output from rclone version)

rclone v1.57.0-beta.5611.c32d5dd1f

  • os/version: ubuntu 18.04 (64 bit)
  • os/kernel: 4.15.0-154-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.6
  • go/linking: static
  • go/tags: none

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu Server 18 64bits

Which cloud storage system are you using? (eg Google Drive)

dir nginx http with mount http

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount http: /home/vods --allow-other --uid 1000 --umask 000 --vfs-cache-mode minimal --max-backlog=999999 --buffer-size=100M --max-read-ahead 100M --dir-cache-time 96h --size-only -vv

The rclone config contents with secrets removed.

[http]
type = http
url = http://IPHERE

A log from the command with the -vv flag

2021/08/28 03:36:42 DEBUG : rclone: Version "v1.57.0-beta.5611.c32d5dd1f" starting with parameters ["rclone" "mount" "http:" "/home/vods" "--allow-other" "--uid" "1000" "--umask" "000" "--vfs-cache-mode" "minimal" "--max-backlog=999999" "--buffer-size=100M" "--max-read-ahead" "100M" "--dir-cache-time" "96h" "--size-only" "-vv"]
2021/08/28 03:36:42 DEBUG : Creating backend with remote "http:"
2021/08/28 03:36:42 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/08/28 03:36:42 INFO  : http://IPHERE/: poll-interval is not supported by this remote
2021/08/28 03:36:42 DEBUG : vfs cache: root is "/root/.cache/rclone/vfs/http"
2021/08/28 03:36:42 DEBUG : vfs cache: metadata root is "/root/.cache/rclone/vfs/http"
2021/08/28 03:36:42 DEBUG : Creating backend with remote "/root/.cache/rclone/vfs/http"
2021/08/28 03:36:42 DEBUG : http://IPHERE/: Mounting on "/home/vods"
2021/08/28 03:36:42 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2021/08/28 03:36:42 DEBUG : : Root:
2021/08/28 03:36:42 DEBUG : : >Root: node=/, err=<nil>
2021/08/28 03:37:01 DEBUG : /: Lookup: name="filmesteste"
2021/08/28 03:37:01 DEBUG : /: >Lookup: node=filmesteste/, err=<nil>
2021/08/28 03:37:01 DEBUG : filmesteste/: Attr:
2021/08/28 03:37:01 DEBUG : filmesteste/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
2021/08/28 03:37:01 DEBUG : filmesteste/: Lookup: name="skayfoll.mp4"
2021/08/28 03:37:02 DEBUG : filmesteste/: >Lookup: node=filmesteste/skayfoll.mp4, err=<nil>
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: Attr:
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-rw-, err=<nil>
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: Open: flags=OpenReadOnly
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: Open: flags=O_RDONLY
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: >Open: fd=filmesteste/skayfoll.mp4 (r), err=<nil>
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: >Open: fh=&{filmesteste/skayfoll.mp4 (r)}, err=<nil>
2021/08/28 03:37:02 DEBUG : &{filmesteste/skayfoll.mp4 (r)}: Read: len=4096, offset=0
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: ChunkedReader.openRange at 0 length 134217728
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: ChunkedReader.Read at 0 length 4096 chunkOffset 0 chunkSize 134217728
2021/08/28 03:37:02 DEBUG : &{filmesteste/skayfoll.mp4 (r)}: >Read: read=4096, err=<nil>
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: Attr:
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: >Attr: a=valid=1s ino=0 size=0 mode=-rw-rw-rw-, err=<nil>
2021/08/28 03:37:02 DEBUG : &{filmesteste/skayfoll.mp4 (r)}: Flush:
2021/08/28 03:37:02 DEBUG : &{filmesteste/skayfoll.mp4 (r)}: >Flush: err=<nil>
2021/08/28 03:37:02 DEBUG : &{filmesteste/skayfoll.mp4 (r)}: Release:
2021/08/28 03:37:02 DEBUG : filmesteste/skayfoll.mp4: ReadFileHandle.Release closing
2021/08/28 03:37:02 DEBUG : &{filmesteste/skayfoll.mp4 (r)}: >Release: err=<nil>

I'm not familiar with that player but from looking at the rclone side, it seems to be reading the file but it does immediately close out which seems a bit strange.

Do you have something else you can test with?

I have no other alternative, this only happens with http mode, using to read/play videos directly from Google Drive.

I wonder if it can't be the web server, in this case, nginx.

I'm going to test it on other web servers like apache, to see if they're nginx read restrictions.

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