What is the recommended way to connect to hetzner storage box?

What would be the recommended way to use external storage and connect to a hetzner storage box?

They provide webdav and SFTP.
But both connection methods do not work with the correct settings (works mounting with another client application).
I can see no log output in owncloud.log when trying to connect via SFTP.
When trying to connect via Webdav, there are messages in owncloud.log about “Message not Allowed”:

ontext",“method”:“GET”,“url”:"/owncloud/apps/files_external/globalstorages/7?testOnly=true",“message”:“Exception: {“Exception”:“Sabre\\HTTP\\ClientHttpException”,“Message”:“Method Not Allowed”,“Code”:405,“Trace”:”#0 \/srv\/www\/owncloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Client.php(231): Sabre\\HTTP\\Client->send(Object(Sabre\\HTTP\\Request))\n#1 \/srv\/www\/owncloud\/lib\/private\/Files\/Storage\/DAV.php(255): Sabre\\DAV\\Client->propFind('https:\/\/u1…

Any hint is appreciated.
Thanks a lot
Cornelius

According to our SOLUTIONS ARCHITECT:

mount on the application server via nfs on the application server

Hi @dmitry
thanks a lot.
So I assume that is because NFS is more fault tolerant if a connection is lost and returns again.

Unfortunately in my special scenario NFS is not supported by the hetzner storagebox. So I had to use webdav (I did not figure out how to use SFTP in this scenario).

At the hetzner console I consigures a subaccount on a folder owncloud.

At ownCloud I configure:

  • External Storage: WebDAV
  • Authentication: Username and Password
  • URL: http://<subaccount>.your-storagebox.de
  • Path: leave empty or use a subpath within owncloud folder
  • https: [x]
  • Username: <subaccaount> with corresponding <password>.

Kind regards
Cornelius

1 Like

So this is a working configuration you managed to figure out on your own?

Yes, after some fiddling around with it, I got this to work this way.
After all, it is probably not my preferred one. But others did not work out.

Great. Thanks for sharing :slight_smile: