Run the command 'rclone version' and share the full output of the command.
2023/11/28 15:56:31 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "version" "-vv"]
rclone v1.65.0
- os/version: darwin 14.1.1 (64 bit)
- os/kernel: 23.1.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.21.4
- go/linking: dynamic
- go/tags: cmount
2023/11/28 15:56:31 DEBUG : rclone: Version "v1.65.0" finishing with parameters ["rclone" "version" "-vv"]
Which cloud storage system are you using? (eg Google Drive)
MagentaCloud
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone ls magentacloud: -vv
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[magentacloud]
type = webdav
url = https://magentacloud.de/remote.php/webdav
vendor = other
user = XXX
pass = XXX
### 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
2023/11/28 16:47:32 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "ls" "magentacloud:" "-vv"]
2023/11/28 16:47:32 DEBUG : Creating backend with remote "magentacloud:"
2023/11/28 16:47:32 DEBUG : Using config file from "/Users/micneu/.config/rclone/rclone.conf"
2023/11/28 16:47:32 DEBUG : found headers:
2023/11/28 16:47:36 ERROR : : error listing: couldn't list files: Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured: Sabre\DAV\Exception\NotAuthenticated: 401 Unauthorized
2023/11/28 16:47:36 DEBUG : 6 go routines active
2023/11/28 16:47:36 Failed to ls with 2 errors: last error was: couldn't list files: Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured: Sabre\DAV\Exception\NotAuthenticated: 401 Unauthorized
I can log in via the browser with my username/password, I don't need any more information. That's why I'm wondering where I can get this "Authorization: Bearer". I didn't find/get this information anywhere. sorry, my english is bad
~ % rclone ls magentacloud: -vv --dump headers
2023/11/28 17:54:13 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "ls" "magentacloud:" "-vv" "--dump" "headers"]
2023/11/28 17:54:13 DEBUG : Creating backend with remote "magentacloud:"
2023/11/28 17:54:13 DEBUG : Using config file from "/Users/micneu/.config/rclone/rclone.conf"
2023/11/28 17:54:13 DEBUG : found headers:
2023/11/28 17:54:13 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2023/11/28 17:54:13 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/11/28 17:54:13 DEBUG : HTTP REQUEST (req 0x1400075a100)
2023/11/28 17:54:13 DEBUG : PROPFIND /remote.php/webdav/ HTTP/1.1
Host: magentacloud.de
User-Agent: rclone/v1.65.0
Authorization: XXXX
Depth: 1
Referer: https://magentacloud.de/remote.php/webdav/
Accept-Encoding: gzip
2023/11/28 17:54:13 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/11/28 17:54:16 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/11/28 17:54:16 DEBUG : HTTP RESPONSE (req 0x1400075a100)
2023/11/28 17:54:16 DEBUG : HTTP/2.0 401 Unauthorized
Connection: close
Content-Security-Policy: default-src 'none';
Content-Type: application/xml; charset=utf-8
Date: Tue, 28 Nov 2023 16:54:16 GMT
Referrer-Policy: no-referrer
Server: elb
Set-Cookie: nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
Set-Cookie: nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
Strict-Transport-Security: max-age=15768000; includeSubDomains; preload;
Www-Authenticate: Basic realm="MagentaCLOUD", charset="UTF-8"
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Request-Id: XXX
X-Robots-Tag: none
X-Upstream: nmcloud-prod1-node-9tibqshz
X-Xss-Protection: 1; mode=block
2023/11/28 17:54:16 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/11/28 17:54:16 ERROR : : error listing: couldn't list files: Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured: Sabre\DAV\Exception\NotAuthenticated: 401 Unauthorized
2023/11/28 17:54:16 DEBUG : 6 go routines active
2023/11/28 17:54:16 Failed to ls with 2 errors: last error was: couldn't list files: Username or password was incorrect, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured: Sabre\DAV\Exception\NotAuthenticated: 401 Unauthorized
sorry my english is bad.
Unfortunately I don't understand how to get these "Bearers".
When I enter my password it is saved in plain text in the config under bearer_token.
Unfortunately the link where the user got it doesn't help me. what exactly do I have to do to get the “Bearer”?
I can't see that link as it needs a login and I don't have one.
I think you will have to log into your control panel to get the bearer token. It will be a long string of numbers like BIjTxQvBdWoNg5Xb2TfoZZV1iP8tA02I0vc3sMfkL5KBY probably.
[magentacloud]
type = webdav
url = https://magentacloud.de/remote.php/webdav
vendor = other
bearer_token = XXX
### Double check the config for sensitive info before posting publicly