Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect to self-built webdav server using rclone for android #228

Open
xinjiajuan opened this issue Oct 31, 2022 · 2 comments
Open

Comments

@xinjiajuan
Copy link

What version of RCX are you using (About -> App version)?

1.12.2

What is your Android version, phone model and manufacturer?

Android 12
ROM:KaleidoscopeOS
Dev:Oneplus 7 pro

Which steps are required to reproduce this issue?

  1. Open a remote

  2. Select "plus button"

  3. Select WebDav

  4. Config ,see img:
    24$CI@7%WFIPQS13DA%X )6

  5. Done

  6. Return remotes

  7. select "me"

  8. program display broadcast:“Error retrieving directory content”

What is your configuration (rclone.conf)?

see img.

Does the same issue also occur when using the same configuration on a PC or in Termux?

none test

What are the contents of Android/data/io.github.x0b.rcx/files/logs/log.txt?

Android 12, can't get files in Android/data/

log.txt (click to expand)

@xinjiajuan
Copy link
Author

Supplementary note: The self-built web server uses a trusted certificate, because of the firewall, port 443 cannot be used, but other ports are used.

@bill-mcgonigle
Copy link

I ran into something similar, LineageOS 19 (rooted). Two notes. The logs say:

2023-02-06 13:56:11 - 2023/02/06 18:56:11 DEBUG : Using config file from "/data/user/0/io.github.x0b.rcx/files/rclone.conf"
2023/02/06 18:56:11 DEBUG : rclone: Version "v1.55.1-rcx" starting with parameters ["/data/app/~~uLdxz2_uO4KdO6Lwn8H3bQ==/io.github.x0b.rcx-jRMWPed-FgsrG_zqB8kFZw==/lib/arm64/librclone.so" "--cache-chunk-path" "/data/user/0/io.github.x0b.rcx/cache" "--cache-db-path" "/data/user/0/io.github.x0b.rcx/cache" "--config" "/data/user/0/io.github.x0b.rcx/files/rclone.conf" "-vvv" "lsjson" "nextcloud-bfc-flowerpt:"]
2023/02/06 18:56:11 DEBUG : Creating backend with remote "nextcloud"
2023/02/06 18:56:11 ERROR : : error listing: couldn't list files: Propfind "https://nextcloud.example.com/": dial tcp: lookup nextcloud.example.com: No address associated with hostname
2023/02/06 18:56:11 DEBUG : 3 go routines active
2023/02/06 18:56:11 Failed to lsjson with 2 errors: last error was: error in ListJSON: couldn't list files: Propfind "https://nextcloud.example.com/": dial tcp: lookup nextcloud.bfcomputing.com: No address associated with hostname

But there's actually no DNS error.

What I had wrong was:

[nextcloud]
type = webdav
url = https://nextcloud.example.com/
vendor = nextcloud
user = username
pass = foobar

But what it needed was:

[nextcloud]
type = webdav
url = https://nextcloud.example.com/remote.php/webdav/
vendor = nextcloud
user = username
pass = foobar

including the trailing '/'.

It would be cool for the log to report an error more in line with the failure. Or, perhaps, since I'm selecting 'Nextcloud' in the popup and Nextcloud apparently always needs URL/remote.php/webdav/ maybe RCX could assume if a user puts in a plain URL that it needs the suffix and validate that it works correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants