各位大佬好,我在内部局域网使用一台主机安装了cloudreve,然后用于上网的路由器有公网IP,我在路由器上设置了端口转发uPnP。在外网环境下,我能够使用浏览器访问到cloudreve的登录页面,但是在Zotero的webdav同步中,始终显示“无法连接到服务器”,不是密码错误什么的,就是连接不到服务器。
但内网的cloudreve输出显示是收到了一些请求的:
每次验证服务器,就会输出
[GIN] 2023/11/13 - 15:04:46 |[97;42m 200 [0m| 594µs | 10.xx.xx.210 |[90;47m OPTIONS [0m "/dav/zotero/"
[GIN] 2023/11/13 - 15:04:46 |[97;42m 207 [0m| 901.2µs | 10.xx.xx.210 |[0m PROPFIND [0m "/dav/zotero/"
[GIN] 2023/11/13 - 15:04:46 |[90;43m 404 [0m| 2.3128ms | 10.xx.xx.210 |[97;44m GET [0m "/dav/zotero/nonexistent.prop"
Zotero的调试日志输出:
(3)(+0009315): Unverifying storage
(3)(+0000000): WebDAV: Clearing cached credentials
(3)(+0000001): CookieBlocker: Removing http://xxxxxx%40163%2Ecom:********@202.xxxxx.46:5212/dav/zotero/ from blocklist
(3)(+0000001): CookieBlocker: Removing observers
(3)(+0000000): Getting WebDAV password
(3)(+0000004): WebDAV password hasn't changed
(3)(+0000001): Unverifying storage
(3)(+0000001): Verifying storage
(3)(+0000001): Getting WebDAV password
(3)(+0000004): CookieBlocker: Registering observers
(3)(+0000001): CookieBlocker: Adding http://xxxxx%40163%2Ecom:********@202.xxxx.46:5212/dav/zotero/ to blocklist
(3)(+0000001): HTTP OPTIONS http://xxxxx%40163.com:********@202.xxxxx.46:5212/dav/zotero/
(3)(+0000000): {}
(3)(+0000018): CookieBlocker: Ignoring cookies for http://xxxxxxx%40163%2Ecom:********@202.xxxx.46:5212/dav/zotero/
(3)(+0000017): HTTP OPTIONS http://xxxxx%40163.com:********@202.xxxxx.46:5212/dav/zotero/ succeeded with 200
(3)(+0000000):
(3)(+0000001): Allow: OPTIONS, LOCK, PUT, MKCOL Content-Encoding: gzip Content-Length: 23 Date: Mon, 13 Nov 2023 07:06:56 GMT Dav: 1, 2 Ms-Author-Via: DAV Vary: Accept-Encoding
(3)(+0000001): HTTP PROPFIND "<propfind xmlns='DAV:'><prop><getcontentlength/></prop></propfind>" to http://xxxxx%40163.com:********@202.xxxxx.46:5212/dav/zotero/
(3)(+0000000): { "Depth": 0 "Content-Type": "text/xml; charset=utf-8" }
(3)(+0000003): CookieBlocker: Ignoring cookies for http://xxxxxx%40163%2Ecom:********@202.xxxxxx.46:5212/dav/zotero/
(3)(+0000012): HTTP PROPFIND http://xxxxxx%40163.com:********@202.xxxxx.46:5212/dav/zotero/ succeeded with 207
(3)(+0000000): <?xml version="1.0" encoding="UTF-8"?><D:multistatus xmlns="DAV:"><D:response><D:href>/dav/zotero/</D:href><D:propstat><D:prop><D:getcontentlength></D:getcontentlength></D:prop><D:status>HTTP/1.1 404 Not Found</D:status></D:propstat></D:response></D:multistatus>
(3)(+0000001): HTTP GET http://xxxxxx%40163.com:********@202.xx.xx.46:5212/dav/zotero/nonexistent.prop
(3)(+0000001): {}
(3)(+0000002): CookieBlocker: Ignoring cookies for http://xxxxxx%40163%2Ecom:********@202.xx.xx.46:5212/dav/zotero/nonexistent.prop
(3)(+0000011): HTTP GET http://xxxxxxx%40163.com:********@202.xx.xx.46:5212/dav/zotero/nonexistent.prop succeeded with 404
(3)(+0000000): Sorry, Page Not Found