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

[Bug]: window webdav sync error #671

Closed
2 tasks done
djhdj1 opened this issue May 20, 2024 · 11 comments
Closed
2 tasks done

[Bug]: window webdav sync error #671

djhdj1 opened this issue May 20, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@djhdj1
Copy link

djhdj1 commented May 20, 2024

What happened?

When using windows for sync, folder sync works fine, file sync reports 401 unauthorized, webdav can check it through, but sync on android phone doesn't have any problem, both folder and file sync fine.
Regardless of whether the files are created on windows or on android, attached below are the images.
2024-05-20_110930
2024-05-20_110818

What OS are you using?

Windows

What remote cloud services are you using? (Please choose the specified one if it's in the list)

webdav (AList)

Version of the plugin

0.4.21

Version of Obsidian

1.5.12

Using password or not

  • Yes.

Ensure no sensitive information

  • I ensure that no sensitive information is submitted in the issue.
@djhdj1 djhdj1 added the bug Something isn't working label May 20, 2024
@djhdj1 djhdj1 changed the title [Bug]: [Bug]: window webdav sync error May 20, 2024
@fyears
Copy link
Member

fyears commented May 20, 2024

你的鉴权模式是 digest 吗?

alist 部署在哪里?中间有 nginx 之类的吗?有防火墙之类的吗?

@djhdj1
Copy link
Author

djhdj1 commented May 21, 2024

你的鉴权模式是 digest 吗?

alist 部署在哪里?中间有 nginx 之类的吗?有防火墙之类的吗?

用的basic鉴权,alist部署在远程主机vps上,使用了nginx proxy mananger 做反代,本机的iptable已经关闭,还有个vps自带的网络管理,因为我反代了,所以只开放了443和80端口,跟这个有关系吗...我在安卓上同步就正常,在windows上文件夹也能同步,就是文件同步不了

@fyears
Copy link
Member

fyears commented May 21, 2024

端口是没问题的。

安卓没问题,windows 有问题,确认配置是完全一致的吗?试试把 android 的 data.json 复制到 windows 呢?

@djhdj1
Copy link
Author

djhdj1 commented May 21, 2024

端口是没问题的。

安卓没问题,windows 有问题,确认配置是完全一致的吗?试试把 android 的 data.json 复制到 windows 呢?

安卓的datajson在什么位置啊

@fyears
Copy link
Member

fyears commented May 21, 2024

一个方法是手动复制粘贴 data.jaon,在 android / win 的 vault 里面的 .obsidian/plugins/remotely-save/ 文件夹里

另一个方法是 android 导出url,然后粘贴进电脑的设置:https://github.com/remotely-save/remotely-save/blob/master/docs/import_export_some_settings.md

@djhdj1
Copy link
Author

djhdj1 commented May 21, 2024

一个方法是手动复制粘贴 data.jaon,在 android / win 的 vault 里面的 .obsidian/plugins/remotely-save/ 文件夹里

另一个方法是 Android 导出URL,然后粘贴进电脑的设置:https://github.com/remotely-save/remotely-save/blob/master/docs/import_export_some_settings.md

我将插件卸载,并重新安装,用url的方式添加了安卓的配置,还是不行

@fyears
Copy link
Member

fyears commented May 21, 2024

不合理。

但是整个事情很诡异,android 可以 windows 不行,这里显然是哪里做了什么拦截。你用 windows 去 alist 网站可以上传成功吗?

这里没啥排查方法,去掉反向代理试一下?

@fyears
Copy link
Member

fyears commented May 21, 2024

安装一下开源的 webdav 软件,例如 https://cyberduck.io 试试能否连上和上传吧?

@fyears
Copy link
Member

fyears commented May 21, 2024

这里有类似的问题,换了反代就解决了。试试用 caddy 或者去掉反代吧。

https://help.nextcloud.com/t/webdav-broken-recently-401-for-keepass-clients/158593/19

@djhdj1
Copy link
Author

djhdj1 commented May 27, 2024

这里有类似的问题,换了反代就解决了。试试用 caddy 或者去掉反代吧。

https://help.nextcloud.com/t/webdav-broken-recently-401-for-keepass-clients/158593/19

好的我试一下

@fyears
Copy link
Member

fyears commented Jun 2, 2024

目前无法复现。且用自己搭建、在线注册的 nextcloud 和 infinicloud 都是正常的。如无进一步信息,就先关闭了。

@fyears fyears closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants