HTTP/1.x transport connection broken: malformed HTTP response "loged:\x1f"

Hello,

What is the problem you are having with rclone?

I try to mount a webdav server (actually from megacmd).
I get some error from the file. I don't understand what the problem is:

Mounting mega.music
Mounting mega.musicva
2025/02/14 00:25:52 ERROR : 16 Bit/Where Are You_ (12_ Single): error listing: couldn't list files: Propfind "http://127.0.0.1:4443/WNtBQLKA/Music/16%20Bit/Where%20Are%20You_%20%2812_%20Single%29/": net/http: HTTP/1.x transport connection broken: malformed HTTP response "loged:\x1f"
2025/02/14 00:25:52 ERROR : webdav root '': Error refreshing VFS directory cache: couldn't list files: Propfind "http://127.0.0.1:4443/WNtBQLKA/Music/16%20Bit/Where%20Are%20You_%20%2812_%20Single%29/": net/http: HTTP/1.x transport connection broken: malformed HTTP response "loged:\x1f"
2025/02/14 00:26:28 ERROR : Les Plus Grands Succès Du Punk: error listing: couldn't list files: Propfind "http://127.0.0.1:4443/fMlhxbyb/Music-Various-Artists/Les%20Plus%20Grands%20Succ%C3%A8s%20Du%20Punk/": net/http: HTTP/1.x transport connection broken: malformed HTTP version "loged:\x1fHTTP/1.1"
2025/02/14 00:26:28 ERROR : webdav root '': Error refreshing VFS directory cache: couldn't list files: Propfind "http://127.0.0.1:4443/fMlhxbyb/Music-Various-Artists/Les%20Plus%20Grands%20Succ%C3%A8s%20Du%20Punk/": net/http: HTTP/1.x transport connection broken: malformed HTTP version "loged:\x1fHTTP/1.1"

When i try to access directly to the file, it seems to work, doesn't it? :

$ ls '/mnt/bigfoot/MegaData/music/16 Bit'
'[1987] Inaxycvgtgb'  '[2007] Best Of Long Versions'  'Best of Long Versions'  'Bruit Rose - Play-back'   Inaxycvgtgb  'Where Are You_ (12_ Single)'

Run the command 'rclone version' and share the full output of the command.

$ rclone version
rclone v1.69.0
- os/version: debian 12.9 (64 bit)
- os/kernel: 6.1.0-30-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.4
- go/linking: static
- go/tags: none

Which cloud storage system are you using?

webdav

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

I use a script with :

echo "Mounting mega.music" >> /home/jbo/rclone-mount.log
/usr/bin/rclone mount mega.music:/ /mnt/bigfoot/MegaData/music \
    --cache-dir /mnt/bigfoot/MegaCache/music \
    --vfs-cache-mode full \
    --vfs-refresh \
    --vfs-cache-max-size 100G \
    --vfs-cache-max-age 24h \
    --vfs-fast-fingerprint \
    --vfs-read-chunk-streams 16 \
    --vfs-read-chunk-size 32M \
    --read-only \
    --allow-other >> /home/jbo/rclone-mount.log 2>&1  &

I have add to /etc/fuse.conf:
user_allow_other

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[mega.music]
type = webdav
url = http://127.0.0.1:4443/WNtBQLKA/Music
vendor = other

[mega.musicva]
type = webdav
url = http://127.0.0.1:4443/fMlhxbyb/Music-Various-Artists
vendor = other

A log from the command that you were trying to run with the -vv flag

cf below


Thank you in advance for your help.

Why do you put cache on the mount itself? It is like an attempt to create perpetuum mobile:) And similarly it wont work. Not even mentioning that your want it to use zero space as you set --read-only flag.

Put it somewhere else or turn it off if you can't afford it.

Thank you for the quick response.

For a perfect understanding, the mount must work with plex.

My understanding of --cache-dir was that it was going to facilitate the crawling of plex and the access to the new data.
For --read-only, it was to avoid writing on assemblies.
So I was completely wrong.

To optimize the work with plex, it is better to be used --cache-dir or --read-only?

As for the errors, they seem to be linked to the flag VPS or to specific files?

You can use both no problem but do not put cache on your mount.

Put it on your local disk.

I think I made mistake.

Actually maybe it is correct:) After looking at this again now I see that your cache is NOT the same as your rclone mount mountpoint. All good assuming that /mnt/bigfoot/MegaCache/music points to directory on local disk.

This is an external ssd.
I am on a single board card, the local disk is really small 27 GB. :man_shrugging:

External SSD is perfectly OK as a cache location.

Try a bit simplified mount command:

/usr/bin/rclone mount mega.music:/ /mnt/bigfoot/MegaData/music \
    --cache-dir /mnt/bigfoot/MegaCache/music \
    --vfs-cache-mode full \
    --vfs-refresh \
    --vfs-cache-max-size 100G \
    --vfs-cache-max-age 24h \
    --vfs-fast-fingerprint \
    --read-only \
    --allow-other

as maybe you stress mega too much with your multiple streams.

Thank you for the suggestion ad the confirmation about the SSD.

In fact, I mount several webdav server at the same time in my script. It is perhaps more effective than I group my MEGA folders to set up only one webdav server to be mounted with rclone.

I try these change, but i still have some errors:

2025/02/15 22:06:19 ERROR : 38 Dub Band: error listing: couldn't list files: Propfind "http://127.0.0.1:4443/WNtBQLKL/Music/38%20Dub%20Band/": net/http: HTTP/1.x transport connection broken: malformed HTTP version "loged:\x1fHTTP/1.1"
2025/02/15 22:06:25 ERROR : webdav root '': Error refreshing VFS directory cache: couldn't list files: Propfind "http://127.0.0.1:4443/WNtBQLKL/Music/38%20Dub%20Band/": net/http: HTTP/1.x transport connection broken: malformed HTTP version "loged:\x1fHTTP/1.1"

The error are not the same.

In plex, i get also some errors:

  • in the app : Please check that the file exists and the necessary drive is mounted.
  • in the logs : Critical: libusb_init failed

Which would point into random problems with megacmd... Are you sure you are using the latest one? Have you checked their forums for similar issues?

Have you tried to connect to mega directly? Maybe it is slower but more stable?

At this stage I am not sure what else you can do.

Thank you @kapitainsky for your thought.

I will try to connect to mega directly as you suggest.

This is my second attempt to use RCLONE and PLEX. I cheated 2 years ago. I am still worry this time. I would come and document the developments.