502 Bad Gateway out of nowhere

What is the problem you are having with rclone?

my rclone config worked for a year and today I can't access my webdav mounted folder anymore

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

rclone version
rclone v1.65.2
- os/version: slackware 15.0+ (64 bit)
- os/kernel: 6.1.74-Unraid (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none

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

webdav

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

rclone mount \
	--no-check-certificate \
	--vfs-cache-mode off \
	--uid 99 \
	--gid 100 \
	--allow-other \
	--read-only \
	--poll-interval 0 \
	--log-level INFO \
	webdav-seedbox: /mnt/user/data/webdav &


ls webdav # <--- command not working

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

[webdav-seedbox]
type = webdav
url = https://
seedbox.fr/remote.php/dav/files/biscuit/Seedbox/seed/downloads/
user = XXX
pass = XXX
vendor = other
### Double check the config for sensitive info before posting publicly

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

ERROR : IO error: couldn't list files: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway

welcome to the forum,

that is a not a valid command

  1. the name of the remote is webdav-seedbox, not webdav
  2. remotes need a : character, webdav-seedbox:

please post a complete debug log, not snippets
rclone lsd webdav-seedbox: -vv

I did ls webdav because this is the mounted folder as in the command just above

When running the command you gave me

rclone lsd webdav-seedbox: -vv
2024/06/19 15:02:51 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "lsd" "webdav-seedbox:" "-vv"]
2024/06/19 15:02:51 DEBUG : Creating backend with remote "webdav-seedbox:"
2024/06/19 15:02:51 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"
2024/06/19 15:02:51 DEBUG : found headers:
2024/06/19 15:02:51 ERROR : : error listing: couldn't list files: Propfind "https://seedbox.fr/remote.php/dav/files/biscuit/Seedbox/seed/downloads/": tls: failed to verify certificate: x509: certificate signed by unknown authority
2024/06/19 15:02:51 DEBUG : 4 go routines active
2024/06/19 15:02:51 Failed to lsd with 2 errors: last error was: couldn't list files: Propfind "https://seedbox.fr/remote.php/dav/files/biscuit/Seedbox/seed/downloads/": tls: failed to verify certificate: x509: certificate signed by unknown authority

ok, but no point in testing mount until simple commands work.

try rclone lsd webdav-seedbox: -vv --no-check-certificate=true

rclone lsd webdav-seedbox: -vv --no-check-certificate=true
2024/06/19 15:19:12 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "lsd" "webdav-seedbox:" "-vv" "--no-check-certificate=true"]
2024/06/19 15:19:12 DEBUG : Creating backend with remote "webdav-seedbox:"
2024/06/19 15:19:12 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"
2024/06/19 15:19:12 DEBUG : found headers:
2024/06/19 15:19:13 DEBUG : pacer: low level retry 1/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:13 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2024/06/19 15:19:13 DEBUG : pacer: low level retry 2/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:13 DEBUG : pacer: Rate limited, increasing sleep to 40ms
2024/06/19 15:19:13 DEBUG : pacer: low level retry 3/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:13 DEBUG : pacer: Rate limited, increasing sleep to 80ms
2024/06/19 15:19:13 DEBUG : pacer: low level retry 4/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:13 DEBUG : pacer: Rate limited, increasing sleep to 160ms
2024/06/19 15:19:13 DEBUG : pacer: low level retry 5/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:13 DEBUG : pacer: Rate limited, increasing sleep to 320ms
2024/06/19 15:19:13 DEBUG : pacer: low level retry 6/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:13 DEBUG : pacer: Rate limited, increasing sleep to 640ms
2024/06/19 15:19:13 DEBUG : pacer: low level retry 7/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:13 DEBUG : pacer: Rate limited, increasing sleep to 1.28s
2024/06/19 15:19:14 DEBUG : pacer: low level retry 8/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:14 DEBUG : pacer: Rate limited, increasing sleep to 2s
2024/06/19 15:19:15 DEBUG : pacer: low level retry 9/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:17 DEBUG : pacer: low level retry 10/10 (error <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway)
2024/06/19 15:19:17 ERROR : : error listing: couldn't list files: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway
2024/06/19 15:19:17 DEBUG : 7 go routines active
2024/06/19 15:19:17 Failed to lsd with 2 errors: last error was: couldn't list files: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>: 502 Bad Gateway

most seedbox offer sftp or ftp. as a test, i would try that.

I've tested it out with this command and it does work I can access my mounted folder

curlftpfs -v {username}:{password}@seedbox.fr:/data/complete/seed/downloads/ /mnt/user/data/seedbox -o no_verify_peer,no_verify_hostname,allow_other,uid=99,gid=100

I turned to rclone because I had some issue with curlftpfs being slow and having weird bug at time

What I don't understand is that my rclone config hasn't changed for a year and half and today it does that out of nowhere

seems like an issue with one of the upstream servers. good chance the issue will go way on its own.

Okay! Thanks I'll keep you updated :slight_smile:

There was an update going on with the service which made my webdav unusable. It now has been resolved

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