Anyone has Webdav Working ??

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
Post Reply
Sylrob
Know my way around
Posts: 172
Joined: Thu Sep 15, 2011 11:13 pm

Anyone has Webdav Working ??

Post by Sylrob »

Good Morning,

This is not my first Webdav setup, I did it numerous time under IIS and I'm aware of all the security setting I need to do. Yesterday Qnap tech support take control of my Qnap and don't understand what is going on and tell me that for us all my setup is correct. The problem is not reaching the Webdav dir but I'm pretty sure that is something missing in the configuration of Apache but I'm not enough familiar with it. Can someone give me a clue. please find attached the LOG file of netdrive2 which is a Webdav client You will notice a Error 405 method not allowed ??

I triple check my configuration and the users rights and for test purpose I'm trying to acces the Webdav dir on my LOCAL network which is the easiest way to debug !

Here is the netdrive2 debug log ! can someone give me a clue !? Thank's in advance !!
Host: qnap1:2020
User-Agent: NetDrive 2.6.12
Accept: */*
Depth: 1
Accept-encoding: gzip
Content-Type: text/xml
Content-Length: 193
[2016/10/13 07:03:06.779] [NETWORK ] [MESSAGE ] [ 6840] [INFORMATION] We are completely uploaded and fine
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] HTTP/1.1 301 Moved Permanently
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Date: Thu, 13 Oct 2016 11:03:06 GMT
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Server: Apache
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Location: http://qnap1:2020/Outlook/
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Vary: Accept-Encoding
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Content-Encoding: gzip
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Content-Length: 231
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Content-Type: text/html; charset=iso-8859-1
[2016/10/13 07:03:06.779] [NETWORK ] [MESSAGE ] [ 6840] [INFORMATION] Ignoring the response-body
[2016/10/13 07:03:06.779] [NETWORK ] [MESSAGE ] [ 6840] [INFORMATION] Connection #0 to host qnap1 left intact
[2016/10/13 07:03:06.779] [NETWORK ] [MESSAGE ] [ 6840] [INFORMATION] Issue another request to this URL: 'http://qnap1:2020/Outlook/'
[2016/10/13 07:03:06.779] [NETWORK ] [MESSAGE ] [ 6840] [INFORMATION] Switch from POST to GET
[2016/10/13 07:03:06.779] [NETWORK ] [MESSAGE ] [ 6840] [INFORMATION] Found bundle for host qnap1: 0x6b2108 [can pipeline]
[2016/10/13 07:03:06.779] [NETWORK ] [MESSAGE ] [ 6840] [INFORMATION] Re-using existing connection! (#0) with host qnap1
[2016/10/13 07:03:06.779] [NETWORK ] [MESSAGE ] [ 6840] [INFORMATION] Connected to qnap1 (192.168.0.###) port 2020 (#0) <- I remove the IP
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER <<] PROPFIND /Outlook/ HTTP/1.1
Host: qnap1:2020
User-Agent: NetDrive 2.6.12
Accept: */*
Depth: 1
Accept-encoding: gzip
Content-Type: text/xml
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] HTTP/1.1 405 Method Not Allowed
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Date: Thu, 13 Oct 2016 11:03:06 GMT
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Server: Apache
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Allow: OPTIONS,GET,HEAD,POST
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Vary: Accept-Encoding
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Content-Encoding: gzip
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Content-Length: 231
[2016/10/13 07:03:06.779] [NETWORK ] [DEBUG ] [ 6840] [HEADER >>] Content-Type: text/html; charset=iso-8859-1
[2016/10/13 07:03:06.779] [NETWORK ] [MESSAGE ] [ 6840] [INFORMATION] Connection #0 to host qnap1 left intact
[2016/10/13 07:03:06.779] [PERF ] [MESSAGE ] [ 6840] Upload 0b/s / Download 4914b/s : http://qnap1:2020/Outlook(-1 / -1 bytes)
[2016/10/13 07:03:06.779] [PERF ] [MESSAGE ] [ 6840] Upload 0b/s / Download 4914b/s : http://qnap1:2020/Outlook(193 / 291 bytes)
[2016/10/13 07:03:06.779] [PROTOCOL ] [ERROR ] [ 6840] Protocol::do_propfind Got auth type but not support
Using TS 220,TS-470PRO, TVS 871 and more
User avatar
storageman
Ask me anything
Posts: 5507
Joined: Thu Sep 22, 2011 10:57 pm

Re: Anyone has Webdav Working ??

Post by storageman »

So webdav is on and both 80/8081 works natively?
And read this
viewtopic.php?t=96576
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Anyone has Webdav Working ??

Post by schumaku »

Aware the NAS Web Server does operate on a dedicated port pair, configured in the Control Panel -> Web Server (default 80 for http, 8081 for https) - which are different from the QTS Desktop and API port pairs (default 8080 for http, 443 for https)?

As the QTS Desktop/API service does not have WebDAV extensions in place, any attempt using this one will return HTTP/1.1 405 Method Not Allowed on WebDAV methods.

Regards,
-Kurt.
Sylrob
Know my way around
Posts: 172
Joined: Thu Sep 15, 2011 11:13 pm

Re: Anyone has Webdav Working ??

Post by Sylrob »

Kurt,

I'm not accessing Webdav on 80 neither 8081 for now I'm using it with my virtual host as you can see in the netdrive2 LOG on port 2020 and Webdav use the same port as the WWW port you can test it under Windows with \\yourservername@yourserverport\DavWWWRoot\yourwebdavdir, but when everything will be ok I'll transfert my site on port 80, and will want Webdav on that port !

There is something really wrong with Webdav on my NAS . Ticket is open Qnap support already check the NAS and found nothing special, Hope to have a feedback on monday october 24 !

@storageman, I already read those, THNKS

Regards,

Sylvain
Using TS 220,TS-470PRO, TVS 871 and more
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Anyone has Webdav Working ??

Post by schumaku »

Sylrob wrote:I'm not accessing Webdav on 80 neither 8081 for now I'm using it with my virtual host as you can see in the netdrive2 LOG on port 2020 and Webdav use the same port as the WWW port you can test it under Windows with \\yourservername@yourserverport\DavWWWRoot\yourwebdavdir, but when everything will be ok I'll transfert my site on port 80, and will want Webdav on that port !
I don't have a crystal ball available - this information is not visible in the log - except of the non-standard port ... which can have ben changed anywhere.

Unless I'm wrong, WebDAV does only work on the primary/default port - not on a virtual server - in QNAP's implementation. And afraid, I know Im right.

It's a design and implementation limitation.
Sylrob
Know my way around
Posts: 172
Joined: Thu Sep 15, 2011 11:13 pm

Re: Anyone has Webdav Working ??

Post by Sylrob »

Hi,

First let me tell you that I really appreciate all the effort you are making to help me solve my problem ! :). I hope I understand you correctly for the primary/default port I assume that you are talking about the port 80 which is the standard WWW port ! so:

As a test I change my virtual host port to 80 in Apache so I was able to access my website www.datadis.net directly on port 80, I tried to access my Webdav dir with netdrive2 and all the tools that I know to access Webdav directory and no one is working ?. The current Webdav dir that I am trying to access is a SMBD share that I gave Weddav access to one user, that share is a SYMLINK in my website wich is Outlook so trying to access www.datadis.net/Outlook don't prompt for a username and PWD, netdrive2 can't access it here is the log when www.datadis.net is on the default port
*****************************
[2016/10/24 13:49:37.057] [NETWORK ] [MESSAGE ] [ 5236] [INFORMATION] We are completely uploaded and fine
[2016/10/24 13:49:37.059] [NETWORK ] [DEBUG ] [ 5236] [HEADER >>] HTTP/1.1 405 Method Not Allowed
[2016/10/24 13:49:37.059] [NETWORK ] [DEBUG ] [ 5236] [HEADER >>] Date: Mon, 24 Oct 2016 17:49:38 GMT
[2016/10/24 13:49:37.059] [NETWORK ] [DEBUG ] [ 5236] [HEADER >>] Server: Apache
[2016/10/24 13:49:37.059] [NETWORK ] [DEBUG ] [ 5236] [HEADER >>] Allow: GET,HEAD,POST,OPTIONS
[2016/10/24 13:49:37.059] [NETWORK ] [DEBUG ] [ 5236] [HEADER >>] Vary: Accept-Encoding
[2016/10/24 13:49:37.059] [NETWORK ] [DEBUG ] [ 5236] [HEADER >>] Content-Encoding: gzip
[2016/10/24 13:49:37.059] [NETWORK ] [DEBUG ] [ 5236] [HEADER >>] Content-Length: 234
[2016/10/24 13:49:37.059] [NETWORK ] [DEBUG ] [ 5236] [HEADER >>] Content-Type: text/html; charset=iso-8859-1
[2016/10/24 13:49:37.059] [NETWORK ] [MESSAGE ] [ 5236] [INFORMATION] Connection #0 to host www.datadis.net left intact
[2016/10/24 13:49:37.059] [PERF ] [MESSAGE ] [ 5236] Upload 12062b/s / Download 14625b/s : http://www.datadis.net/Outlook(-1 / -1 bytes)
[2016/10/24 13:49:37.059] [PERF ] [MESSAGE ] [ 5236] Upload 12062b/s / Download 14625b/s : http://www.datadis.net/Outlook(193 / 298 bytes)
[2016/10/24 13:49:37.059] [PROTOCOL ] [ERROR ] [ 5236] Protocol::do_propfind Got auth type but not support
[2016/10/24 13:49:58.252] [CACHE ] [DEBUG ] [ 4072] [CACHE] [C:\ProgramData\NetDrive2\_cache_] Total cache : 0(limits : 4,294,967,296)
*******************************
when I go in the config file for the Webdav here is what I have for that Alias

Alias "/Outlook" "/share/CACHEDEV1_DATA/outlookcalendar"
<Directory "/share/CACHEDEV1_DATA/outlookcalendar">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Location "/Outlook">
IndexOptions Charset=UTF-8
Dav On
AuthType Basic
AuthName "DAV-Outlook"
AuthBasicProvider external
AuthExternal pwauth
AuthzUnixgroup on
<LimitExcept OPTIONS>
require valid-group
require user "My user name was here I removed it !"
</LimitExcept>
</Location>

The starting directory for www.datadis.net is /DatadisSite which is a share that is not under /Web, and I added a symbolic link to it that point to the share named Outlook and the Outlook share have the Webdav rights defined for it , I did it this way because I don't want to gave Webdav access to /DatadisSite !

Just a question can the problem be that my SMBD share is Outlook and my SYMLINK that I added to my website is also Outlook, I don't think so but I'm not a linux GURU ! :)


If I don't understand you correctly please don't hesitate to point me in the right direction !

Best Regards,

Sylvain
Using TS 220,TS-470PRO, TVS 871 and more
Sylrob
Know my way around
Posts: 172
Joined: Thu Sep 15, 2011 11:13 pm

Re: Anyone has Webdav Working ??

Post by Sylrob »

Hi Schumaku,

I finally understand what you are trying to explain I CAN'T access webdav folder on any other port than the default port of the QNAP and HTTPS is preferable (port 8081). That's exactly what I did and it's working now !

It takes me sometimes to figure out what you are try to explain me, but obviously I was thinking that Webdav was directly linked to the Virtual host which I had WRONG !

Even QNAP technical support dind not figure it out ?? Really weird !

Working with port 8081 work great !

TY and sorry that I had take your precious time !

Best REgards,

Sylvain
Using TS 220,TS-470PRO, TVS 871 and more
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Anyone has Webdav Working ??

Post by schumaku »

Hi Sylvain,

The port is less relevant - it just has to be the default Web Server port for https (or for the sale of it http).

In my opinion, it would not be very complex to include the WebDAV related include files along with the virtual server configurations. One could wish some additional virtual server specific user group which would allow the specific virtual server WebDAV for some segregation of access.

I can't blame QNAP customer service ... these QTS NAS (and the QES models) have become highly complex platforms, ways beyond of any commercial NAS in the market. Providing first and reasonable second level support is not an easy job.

Glad you have a way for WebDAV being workable for now.

Regards,
-Kurt.
aiturbide
Starting out
Posts: 10
Joined: Sat Sep 19, 2009 6:09 am

Re: Anyone has Webdav Working ??

Post by aiturbide »

Hello and good evening. I am not so good on these topics, but good enough to know I need help.
Today I was talking to a friend , who gives us IT support. He told me that on the newest QTS firmware update, the webdav services are not available anymore.
He told me that since I use the webdav services, I should know that, before updating firmware.
He noticed that, yesterday while reading the notes to a firmware update.
SO BEWARE!!
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Anyone has Webdav Working ??

Post by schumaku »

aiturbide wrote:He told me that on the newest QTS firmware update, the webdav services are not available anymore.
Nope.

The NAS WebDAV services are available as before.

Currently disabled is the File Station Remote Connection talking to WebDAV servers - nothing else. The release notes are mostly clear on this subject:
QTS4.2.2 Build 20161102

[Feature]

- The WebDAV protocol has been removed from File Station remote connection due to usability concern when copying big files. And the original WebDAV connection will be removed after upgraded.
The second sentence want to say that any existing connections configured (in File Station Remote Connection) will be removed.
User avatar
pendragon
Starting out
Posts: 47
Joined: Thu Sep 11, 2008 3:25 am

Re: Anyone has Webdav Working ??

Post by pendragon »

Is there any way (besides downgroading firmware) to get webdav back in file station? It's strange that qnap decides for me if it is usable or not. I love using the remote webdav server connections. Is there a third party tool to achieve the same thing?
User avatar
elian
First post
Posts: 1
Joined: Sat Mar 31, 2012 6:08 pm

Re: Anyone has Webdav Working ??

Post by elian »

Hi Folks,

i also noticed, that my Webdav Connections has been terminated, since the upgrade.
Is there another way to connect folders / shares via Internet as a local networkdrive?

Thanks!
Post Reply

Return to “File Sharing”