rmfakecloud icon indicating copy to clipboard operation
rmfakecloud copied to clipboard

Cannot get WebDav to work with Seafile seafdav folder

Open monkeyclass opened this issue 2 years ago • 8 comments

I'm trying to get WebDAV to work with rmfakecloud. Everything else I've tried seems to work. My WebDAV folder is using default Seafile settings for version > 7.1.x found here.

It works fine through a browser to visit the WebDAV share, but it appears nowhere on the remarkable device or in the data folder of the rmfakecloud server.

My config for my user in data/users/<username>/.userprofile is as follows:

integrations:
  - provider: webdav
    id: <UUID>
    name: Seafile Home
    username: <[email protected]>
    password: <password here>
    address: https://<seafile-server-here>/seafdav/<folder-name>/
    insecure: false

monkeyclass avatar Jan 31 '22 15:01 monkeyclass

Have you checked the server logs at all?

Eeems avatar Jan 31 '22 15:01 Eeems

Yes. I've set LOGLEVEL to debug and nothing appears in the logs at all related to integrations besides: INFO[0058] [GIN] 2022/01/31 - 15:35:27 | 200 | 465.729µs | 192.168.99.1 | GET "/integrations/v1/" .

No errors in the log, only a single warning Can't read from ws read tcp <server-ip>:3000-> <ip of local gateway>:<some port>: read: connection reset by peer

monkeyclass avatar Jan 31 '22 15:01 monkeyclass

On the rmfakecloud server can you ping the seafile server?

Eeems avatar Jan 31 '22 15:01 Eeems

hmm now that you mention it. i put the rmfakecloud in my DMZ, so I guess there could be an issue there. Will do some testing with the firewall. Thanks!

EDIT: I am not able to get a response from my seafile server, like I am on other machines not in the DMZ.

monkeyclass avatar Jan 31 '22 15:01 monkeyclass

hmm now that you mention it. i put the rmfakecloud in my DMZ, so I guess there could be an issue there. Will do some testing with the firewall. Thanks!

EDIT: I am not able to get a response from my seafile server, like I am on other machines not in the DMZ.

That might be the issue.

By the looks of it, you should be seeing things starting with [webdav] in the logs: https://github.com/ddvk/rmfakecloud/blob/273f251ee57b32c841358042f7ccebcf36700c23/internal/integrations/webdav.go#L18 At the very least I would expect to see a new client, log line at trace level: https://github.com/ddvk/rmfakecloud/blob/273f251ee57b32c841358042f7ccebcf36700c23/internal/integrations/webdav.go#L35

Eeems avatar Jan 31 '22 15:01 Eeems

I have now opened the firewall, confirming I can ping the seafile server from my rmfakecloud server (allow all). Still neither webdav nor new client appears in the log. There is not anything in the logs to indicate integrations besides:

time="2022-01-31T18:00:42Z" level=info msg=/integrations/v1/
time="2022-01-31T18:00:42Z" level=info msg="[GIN] 2022/01/31 - 18:00:42 | 200 |      85.593µs |    <gateway ip> | GET      \"/integrations/v1/\""

monkeyclass avatar Jan 31 '22 18:01 monkeyclass

[webdav] new client would only appear if you are logging at trace level as it logs the username/password.

Eeems avatar Jan 31 '22 19:01 Eeems

did you use the latest version? that was added after 0.0.5

ddvk avatar Feb 01 '22 10:02 ddvk