Rclone -> qnap webdav -> crypt


#1

I am using a qnap server with own cloud. with that setup I can connect and setup an encrypted backup with no issues. The data gets copied over and gets encrypted. I can also view with rclone browser. The problem is that when I try to setup a webdav connection with qnaps built in webdav encryption does not work. I can set up the non encrypted connection with no problems and can copy files back and fort. But setting up a encrypted connection does not work. I can send files over and they look encrypted but I cannot read them back or list the directory.

Is this a limitation of the qnap webdav? Is there any way to make this work?

Thanks


#2

Are you trying to read rclone encrypted data? I doubt that qnaps encryption is compatible with rclone’s encryption or maybe I mis-understand!

Did you know rclone can serve webdav rclone serve webdav remote:path which might help


#3

Yes, I setup the reclone drive, then I create a rclone encrypt/decrypt drive then using a cmd window I copy a file over. It goes through fine. I then try to ls the dir to see the file I copied over and it fails. If I log directly into the qnap device and go to that share I do see the encrypted file there.


#4

This is a copy of the error I get when trying to list the directory.

“C:\Program Files\rclone\rclone.exe” ls qnap_weekly: -v

2018/02/05 17:27:53 Failed to create file system for “qnap_weekly:”: failed to make remote “qnap:/weekly” to wrap: read metadata failed: 403 Forbidden

when I write the file I get this.

C:\Users\enlight>“C:\Program Files\rclone\rclone.exe” copy C:\Users\enlight\Desktop\RClone_1.39_x86_64.qpkg qnap_weekly: -v
2018/02/05 17:27:34 INFO : Encrypted drive ‘qnap_weekly:’: Modify window is 1s
2018/02/05 17:27:34 INFO : Encrypted drive ‘qnap_weekly:’: Waiting for checks to finish
2018/02/05 17:27:34 INFO : Encrypted drive ‘qnap_weekly:’: Waiting for transfers to finish
2018/02/05 17:27:36 INFO : RClone_1.39_x86_64.qpkg: Copied (new)
2018/02/05 17:27:36 INFO :
Transferred: 6.029 MBytes (1.463 MBytes/s)
Errors: 0
Checks: 0
Transferred: 1
Elapsed time: 4.1s


#5

I did notice an error: “Modify window not supported” Does anyone know what that means?

C:\Users\enlight>“C:\Program Files\rclone\rclone.exe” copy C:\Users\enlight\Desktop\RClone_1.39_x86_64.qpkg qnap: -v
2018/02/05 17:38:44 INFO : webdav root ‘’: Modify window not supported
2018/02/05 17:38:44 INFO : webdav root ‘’: Waiting for checks to finish
2018/02/05 17:38:44 INFO : webdav root ‘’: Waiting for transfers to finish
2018/02/05 17:38:44 INFO :
Transferred: 0 Bytes (0 Bytes/s)
Errors: 0
Checks: 1
Transferred: 0
Elapsed time: 400ms


#6

Hmmm, I think that may be the qnap responding in an unexpected way to one of rclone’s queries.

Can you paste the result of

“C:\Program Files\rclone\rclone.exe” ls qnap_weekly: -vv --dump-bodies

It isn’t an error it is only an “INFO”. It means that the qnap (and in general webdav) doesn’t support altering modification times of already uploaded files, so rclone won’t use that as part of the check when syncing.


#7

Here are copies of the outputs, I do have a working backup usint owncloud on the same qnap device.

qnap:

C:\Users\enlight>"C:\Program Files\rclone\rclone.exe" ls qnap: -vv --dump-bodies
2018/02/06 19:26:00 INFO  : --dump-bodies is obsolete - please use --dump bodies instead
2018/02/06 19:26:00 DEBUG : Using config file from "C:\\Users\\enlight\\.config\\rclone\\rclone.conf"
2018/02/06 19:26:00 DEBUG : rclone: Version "v1.39" starting with parameters ["C:\\Program Files\\rclone\\rclone.exe" "ls" "qnap:" "-vv" "--dump-bodies"]
2018/02/06 19:26:00 INFO  : webdav root '': Modify window not supported
2018/02/06 19:26:00 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/06 19:26:00 DEBUG : HTTP REQUEST (req 0xc0421acd00)
2018/02/06 19:26:00 DEBUG : PROPFIND /enlight/ HTTP/1.1
Host:
User-Agent: rclone/v1.39
Authorization: XXXX
Depth: 1
Accept-Encoding: gzip

2018/02/06 19:26:00 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/06 19:26:00 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/06 19:26:00 DEBUG : HTTP RESPONSE (req 0xc0421acd00)
2018/02/06 19:26:00 DEBUG : HTTP/1.1 207 Multi-Status
Content-Length: 2359
Content-Type: text/xml; charset="utf-8"
Date: Wed, 07 Feb 2018 01:26:01 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN

<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response xmlns:lp2="http://apache.org/dav/props/" xmlns:lp1="DAV:">
<D:href>/enlight/</D:href>
<D:propstat>
<D:prop>
<lp1:resourcetype><D:collection/></lp1:resourcetype>
<lp1:creationdate>2018-02-07T01:19:39Z</lp1:creationdate>
<lp1:getlastmodified>Mon, 05 Feb 2018 23:40:50 GMT</lp1:getlastmodified>
<lp1:getetag>"1000-5647f979a0c9b"</lp1:getetag>
<D:supportedlock>
<D:lockentry>
<D:lockscope><D:exclusive/></D:lockscope>
<D:locktype><D:write/></D:locktype>
</D:lockentry>
<D:lockentry>
<D:lockscope><D:shared/></D:lockscope>
<D:locktype><D:write/></D:locktype>
</D:lockentry>
</D:supportedlock>
<D:lockdiscovery/>
<D:getcontenttype>httpd/unix-directory</D:getcontenttype>


qnap_weekly:

2018/02/06 19:24:51 INFO  : --dump-bodies is obsolete - please use --dump bodies instead
2018/02/06 19:24:51 DEBUG : Using config file from "C:\\Users\\enlight\\.config\\rclone\\rclone.conf"
2018/02/06 19:24:51 DEBUG : rclone: Version "v1.39" starting with parameters ["C:\\Program Files\\rclone\\rclone.exe" "ls" "qnap_weekly:" "-vv" "--dump-bodies"]
2018/02/06 19:24:51 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/06 19:24:51 DEBUG : HTTP REQUEST (req 0xc04210c200)
2018/02/06 19:24:51 DEBUG : PROPFIND /enlight//weekly HTTP/1.1
Host: hurtlocker.myqnapcloud.com:8081
User-Agent: rclone/v1.39
Authorization: XXXX
Accept-Encoding: gzip

2018/02/06 19:24:51 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/06 19:24:52 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/06 19:24:52 DEBUG : HTTP RESPONSE (req 0xc04210c200)
2018/02/06 19:24:52 DEBUG : HTTP/1.1 301 Moved Permanently
Content-Length: 342
Content-Type: text/html; charset=iso-8859-1
Date: Wed, 07 Feb 2018 01:24:53 GMT
Location
Server: Apache
X-Frame-Options: SAMEORIGIN

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href=y/">here</a>.</p>
<hr>
<address>Apache Server at </address>
</body></html>
2018/02/06 19:24:52 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/06 19:24:52 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/06 19:24:52 DEBUG : HTTP REQUEST (req 0xc04210c000)
2018/02/06 19:24:52 DEBUG : GET /enlight//weekly/ HTTP/1.1
Host: hurtlocker.myqnapcloud.com:8081
User-Agent: rclone/v1.39
Authorization: XXXX
Referer: 
Accept-Encoding: gzip

#8

I don’t see the 403 forbidden message in that log?

Is it immediately after that?

Can you paste a bit including the 403 and what happened before it?

Thanks


#9

Hi The error is at the verry end.

Microsoft Windows [Version 10.0.16299.214]
© 2017 Microsoft Corporation. All rights reserved.

C:\Users\Enlight>"C:\Program Files\rclone\rclone.exe" ls qnap_weekly: -vv --dump-bodies
2018/02/09 08:53:11 INFO  : --dump-bodies is obsolete - please use --dump bodies instead
2018/02/09 08:53:11 DEBUG : Using config file from "C:\\Users\\Enlight\\.config\\rclone\\rclone.conf"
2018/02/09 08:53:11 DEBUG : rclone: Version "v1.39" starting with parameters ["C:\\Program Files\\rclone\\rclone.exe" "ls" "qnap_weekly:" "-vv" "--dump-bodies"]
2018/02/09 08:53:11 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 08:53:11 DEBUG : HTTP REQUEST (req 0xc0421ca500)
2018/02/09 08:53:11 DEBUG : PROPFIND /enlight//weekly HTTP/1.1
Host: 
User-Agent: rclone/v1.39
Authorization: XXXX
Accept-Encoding: gzip

2018/02/09 08:53:11 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 08:53:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 08:53:12 DEBUG : HTTP RESPONSE (req 0xc0421ca500)
2018/02/09 08:53:12 DEBUG : HTTP/1.1 301 Moved Permanently
Content-Length: 342
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Feb 2018 14:53:12 GMT
Location:
Server: Apache
X-Frame-Options: SAMEORIGIN

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href=">here</a>.</p>
<hr>
<address>Apache Server at </address>
</body></html>
2018/02/09 08:53:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 08:53:12 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 08:53:12 DEBUG : HTTP REQUEST (req 0xc0421ca300)
2018/02/09 08:53:12 DEBUG : GET /enlight//weekly/ HTTP/1.1
Host: 
User-Agent: rclone/v1.39
Authorization: XXXX
Referer:
Accept-Encoding: gzip

2018/02/09 08:53:12 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 08:53:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 08:53:12 DEBUG : HTTP RESPONSE (req 0xc0421ca300)
2018/02/09 08:53:12 DEBUG : HTTP/1.1 403 Forbidden
Content-Length: 303
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Feb 2018 14:53:12 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /enlight//weekly/
on this server.<br />
</p>
<hr>
<address>Apache Server at </address>
</body></html>
2018/02/09 08:53:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 08:53:12 DEBUG : Couldn't decode error response: XML syntax error on line 11: element <hr> closed by </body>
2018/02/09 08:53:12 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 08:53:12 DEBUG : HTTP REQUEST (req 0xc0433b2100)
2018/02/09 08:53:12 DEBUG : PROPFIND /enlight//weekly HTTP/1.1
Host: 
User-Agent: rclone/v1.39
Authorization: XXXX
Accept-Encoding: gzip

2018/02/09 08:53:12 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 08:53:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 08:53:12 DEBUG : HTTP RESPONSE (req 0xc0433b2100)
2018/02/09 08:53:12 DEBUG : HTTP/1.1 301 Moved Permanently
Content-Length: 342
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Feb 2018 14:53:13 GMT
Location: 
Server: Apache
X-Frame-Options: SAMEORIGIN

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="">here</a>.</p>
<hr>
<address>Apache Server at</address>
</body></html>
2018/02/09 08:53:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 08:53:12 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 08:53:12 DEBUG : HTTP REQUEST (req 0xc0421ca900)
2018/02/09 08:53:12 DEBUG : GET /enlight//weekly/ HTTP/1.1
Host: 
User-Agent: rclone/v1.39
Authorization: XXXX
Referer: https://hurtlocker.myqnapcloud.com:8081/enlight//weekly
Accept-Encoding: gzip

2018/02/09 08:53:12 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 08:53:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 08:53:12 DEBUG : HTTP RESPONSE (req 0xc0421ca900)
2018/02/09 08:53:12 DEBUG : HTTP/1.1 403 Forbidden
Content-Length: 303
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Feb 2018 14:53:13 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /enlight//weekly/
on this server.<br />
</p>
<hr>
<address>Apache Server at</address>
</body></html>
2018/02/09 08:53:12 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 08:53:12 DEBUG : Couldn't decode error response: XML syntax error on line 11: element <hr> closed by </body>
2018/02/09 08:53:12 Failed to create file system for "qnap_weekly:": failed to make remote "qnap:/weekly" to wrap: read metadata failed: 403 Forbidden

#10

Here is a longer log where it sees the files I copied over with the crypt but seems to still have problems.

C:\Users\Enlight>"C:\Program Files\rclone\rclone.exe" ls qnap_weekly:weekly -vv --dump-bodies
2018/02/09 09:04:05 INFO  : --dump-bodies is obsolete - please use --dump bodies instead
2018/02/09 09:04:05 DEBUG : Using config file from "C:\\Users\\Enlight\\.config\\rclone\\rclone.conf"
2018/02/09 09:04:05 DEBUG : rclone: Version "v1.39" starting with parameters ["C:\\Program Files\\rclone\\rclone.exe" "ls" "qnap_weekly:weekly" "-vv" "--dump-bodies"]
2018/02/09 09:04:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 09:04:05 DEBUG : HTTP REQUEST (req 0xc0420ee200)
2018/02/09 09:04:05 DEBUG : PROPFIND /enlight//weekly/ivsc6mub5ccjhrbgej6qskholo HTTP/1.1
Host: 
User-Agent: rclone/v1.39
Authorization: XXXX
Accept-Encoding: gzip

2018/02/09 09:04:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 09:04:05 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 09:04:05 DEBUG : HTTP RESPONSE (req 0xc0420ee200)
2018/02/09 09:04:05 DEBUG : HTTP/1.1 301 Moved Permanently
Content-Length: 369
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Feb 2018 15:04:06 GMT
Location:
Server: Apache
X-Frame-Options: SAMEORIGIN

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="/">here</a>.</p>
<hr>
<address>Apache Server at </address>
</body></html>
2018/02/09 09:04:05 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 09:04:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 09:04:05 DEBUG : HTTP REQUEST (req 0xc0420ee000)
2018/02/09 09:04:05 DEBUG : GET /enlight//weekly/ivsc6mub5ccjhrbgej6qskholo/ HTTP/1.1
Host: 
User-Agent: rclone/v1.39
Authorization: XXXX
Referer:
Accept-Encoding: gzip

2018/02/09 09:04:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 09:04:05 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 09:04:05 DEBUG : HTTP RESPONSE (req 0xc0420ee000)
2018/02/09 09:04:05 DEBUG : HTTP/1.1 403 Forbidden
Content-Length: 330
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Feb 2018 15:04:06 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /enlight//weekly/ivsc6mub5ccjhrbgej6qskholo/
on this server.<br />
</p>
<hr>
<address>Apache Server a</address>
</body></html>
2018/02/09 09:04:05 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 09:04:05 DEBUG : Couldn't decode error response: XML syntax error on line 11: element <hr> closed by </body>
2018/02/09 09:04:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 09:04:05 DEBUG : HTTP REQUEST (req 0xc0420ee900)
2018/02/09 09:04:05 DEBUG : PROPFIND /enlight//weekly/ivsc6mub5ccjhrbgej6qskholo HTTP/1.1
Host: 
User-Agent: rclone/v1.39
Authorization: XXXX
Accept-Encoding: gzip

2018/02/09 09:04:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 09:04:05 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 09:04:05 DEBUG : HTTP RESPONSE (req 0xc0420ee900)
2018/02/09 09:04:05 DEBUG : HTTP/1.1 301 Moved Permanently
Content-Length: 369
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Feb 2018 15:04:06 GMT
Location: 
Server: Apache
X-Frame-Options: SAMEORIGIN

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href=
<hr>
<address>Apache Server at</address>
</body></html>
2018/02/09 09:04:05 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 09:04:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 09:04:05 DEBUG : HTTP REQUEST (req 0xc04337e000)
2018/02/09 09:04:05 DEBUG : GET /enlight//weekly/ivsc6mub5ccjhrbgej6qskholo/ HTTP/1.1
Host: hurtlocker.myqnapcloud.com:8081
User-Agent: rclone/v1.39
Authorization: XXXX
Referer:
Accept-Encoding: gzip

2018/02/09 09:04:05 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/02/09 09:04:05 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 09:04:05 DEBUG : HTTP RESPONSE (req 0xc04337e000)
2018/02/09 09:04:05 DEBUG : HTTP/1.1 403 Forbidden
Content-Length: 330
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Feb 2018 15:04:06 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /enlight//weekly/ivsc6mub5ccjhrbgej6qskholo/
on this server.<br />
</p>
<hr>
<address>Apache Server at 
</body></html>
2018/02/09 09:04:05 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/02/09 09:04:05 DEBUG : Couldn't decode error response: XML syntax error on line 11: element <hr> closed by </body>
2018/02/09 09:04:05 Failed to create file system for "qnap_weekly:weekly": failed to make remote "qnap:/weekly/ivsc6mub5ccjhrbgej6qskholo" to wrap: read metadata failed: 403 Forbidden

#11

What appears to be happening is rclone asks for the URL https://hurtlocker.myqnapcloud.com:8081/enlight//weekly the server then sends a redirect to https://hurtlocker.myqnapcloud.com:8081/enlight//weekly/ and when rclone tries to fetch that URL the server says 403 Forbidden.

There are several things that are puzzling in that exchange,

  • why didn’t rclone look for a URL with final /
  • where did the doubled up // come from
  • why didn’t the server accept its own redirection?

It might be that the // is the cause of the problem…

Can you show me what your config looks like please? (remove the username and password)

Also can you try with the latest beta too please?


#12

Just to check I installed rclone on one of my linux boxes and it has the same problem talking to the server. But in the logs there are no “//”. Also when I do a rclone help on my windows machine and look at the --config it shows the default with the “//” so it might just be a printf error.
I did notice that its not just with the crypt. and If I have no folders and copy the the root directory qnap: all files copy over right and I can read them. Also I did use the latest beta.

[qnap]
type = webdav
url =
vendor = other
user = xxxxxx
pass = xxxxxx

[qnap_weekly]
type = crypt
remote = qnap:weekly
filename_encryption = standard
directory_name_encryption = true
password = xxxxxx
password2 = xxxxxx


#13

It seems I was able to resolve the issue. I have a couple new issues but i will research them for a couple days before posting. The problem was on the qnap server. Under the WEBDAV server settings there was a webdav section for user access where I granted the account and password using one of my user accounts. After digging a little deeper in that section I found another section where I could give extra permissions to actual shared folders.once I opened up the permissions it all started working.

Whats weird is that It only gave a problem when creating or using folders, any single files in the main shared directory worked with no issues. Either way Thank You for your help and time on this issue.

Armando


#14

I’m glad you got it fixed and please to be able to help!