Connecting Nextcloud via WebDAV

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
modda
500 Command not understood
Posts: 4
Joined: 2018-10-05 12:55

Connecting Nextcloud via WebDAV

#1 Post by modda » 2018-10-05 13:04

Hi everyone,

today I got FileZilla Pro and tried to connect my Nextcloud via WebDAV.

As URL I tried:

- https://example.com
- https://example.com/remote.php/dav/files/USERNAME/

With the 2nd way there is a connection but I get the error, that the table of contents could not be received.

Does anybody know, how I can connect die Nextcloud to FileZilla WebDAV?

Best regarda
modda

User avatar
botg
Site Admin
Posts: 31582
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Connecting Nextcloud via WebDAV

#2 Post by botg » 2018-10-05 16:24

Please post a complete and unmodified log.

modda
500 Command not understood
Posts: 4
Joined: 2018-10-05 12:55

Re: Connecting Nextcloud via WebDAV

#3 Post by modda » 2018-10-05 17:48

Hi, this is the Log. Some words in German:

I masked the real domain.

Status: Auflösen der IP-Adresse für domain.de
Status: Verbinde mit 11.11.11.11:11...
Status: Verbindung hergestellt, initialisiere TLS...
Status: Überprüfe Zertifikat...
Status: TLS-Verbindung hergestellt, schicke HTTP-Anfrage
Befehl: PROPFIND / HTTP/1.1
Befehl: Authorization: **************************
Befehl: Connection: keep-alive
Befehl: Content-Length: 0
Befehl: Depth: 1
Befehl: Host: domain.de:443
Befehl: Keep-Alive: 300
Befehl: User-Agent: FileZilla/3.37.4
Antwort: HTTP/1.1 405 Method Not Allowed
Antwort: Date: Fri, 05 Oct 2018 17:45:01 GMT
Antwort: Server: Apache
Antwort: Expires: Thu, 19 Nov 1981 08:52:00 GMT
Antwort: Cache-Control: no-store, no-cache, must-revalidate
Antwort: Pragma: no-cache
Antwort: Set-Cookie: oc_sessionPassphrase=KcNPD5Le85XpQkzB5qwcsMU8A12qwJ42eG6COfpihVwlkxN%2BOwbel%2FHWH%2BdCOphjjh4OMfhJPyYMVFHY4GxshxJHdq4RzW%2Fo5ItThc7kB5HpLRifOXbq8iYwgBIl9if2; path=/; secure; HttpOnly
Antwort: Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' 'nonce-THk1SUJRSkxXU215SFVlcVFTSEJEc3VBQ0IrRHBJYTc3VUZqTWdpaTFJdz06ZmgwdVZYRW5FVVR3YmdUQWVSaUhWNTc2WkVXbzNQL0Rsd3hhZVc3d21zQT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';
Antwort: X-Frame-Options: SAMEORIGIN
Antwort: X-XSS-Protection: 1; mode=block
Antwort: X-Content-Type-Options: nosniff
Antwort: X-Robots-Tag: none
Antwort: X-Download-Options: noopen
Antwort: X-Permitted-Cross-Domain-Policies: none
Antwort: Set-Cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
Antwort: Set-Cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
Antwort: Set-Cookie: ocj5zcpsfx32=914c343b08330ba077ea571ed34884d6; path=/; secure; HttpOnly
Antwort: Set-Cookie: cookie_test=test; expires=Fri, 05-Oct-2018 18:45:01 GMT; Max-Age=3600
Antwort: Upgrade: h2,h2c
Antwort: Connection: Upgrade, Keep-Alive
Antwort: Keep-Alive: timeout=2, max=1000
Antwort: Transfer-Encoding: chunked
Antwort: Content-Type: text/html; charset=UTF-8
Fehler: Verzeichnisinhalt konnte nicht empfangen werden

User avatar
botg
Site Admin
Posts: 31582
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Connecting Nextcloud via WebDAV

#4 Post by botg » 2018-10-06 21:41

The server rejects the PROPFIND method, meaning that the location entered as the default remote directory (or "/" if none entered), is not a WebDAV resource.

modda
500 Command not understood
Posts: 4
Joined: 2018-10-05 12:55

Re: Connecting Nextcloud via WebDAV

#5 Post by modda » 2018-10-08 07:24

Without changing anything on the server I can connect with the software "Cyberduck" via WebDAV. But in Cyberduck there are advaced Options to type the whole path.

In FileZilla it's:

I Type https://domain.de/remote.php/dav/files/USERNAME/ and after saving it's just https://domain.de

Trying to type the "remote.php/dav/files/USERNAME/" in advanced options and standard-folder of Server don't work.

In Cyberduck i type https://domain.de and in advanced the rest of the path "remote.php/dav/files/USERNAME/" and it works.

So the FileZilla Software maybe needs to be fixed?

Best regards
modda

User avatar
botg
Site Admin
Posts: 31582
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Connecting Nextcloud via WebDAV

#6 Post by botg » 2018-10-08 07:56

Trying to type the "remote.php/dav/files/USERNAME/" in advanced options and standard-folder of Server don't work.
The leading slash needs to be part of the path.

modda
500 Command not understood
Posts: 4
Joined: 2018-10-05 12:55

Re: Connecting Nextcloud via WebDAV

#7 Post by modda » 2018-10-08 08:08

botg wrote:
2018-10-08 07:56
Trying to type the "remote.php/dav/files/USERNAME/" in advanced options and standard-folder of Server don't work.
The leading slash needs to be part of the path.
Oh - my - god. Awkward.

But at least it will help some other users (If using the search).

Thank you!
modda

lee3521
500 Command not understood
Posts: 1
Joined: 2018-11-24 22:11
First name: Lee

Re: Connecting Nextcloud via WebDAV

#8 Post by lee3521 » 2018-11-24 22:15

Could you please show me an example of what you mean by the "leading slash"? How should I format the Advanced remote folder field and how should I format the host id field?

Post Reply