reruin / sharelist

快速分享 GoogleDrive OneDrive
MIT License
2.68k stars 936 forks source link

docker里无法用webDAV代理无法工作 #754

Closed rockonedege closed 2 years ago

rockonedege commented 2 years ago

问题描述 / Describe the bug

我用docker成功挂载和彩云盘,可以通过33001访问。但是我试图用群晖的webDAV客户端去挂载的时候,连不上服务器,我看了一下log,也没有相关的记录。

Sharelist 版本 / Sharelist Version

next

复现链接 / Reproduction

No response

日志 / Logs

No response

reruin commented 2 years ago

先确认下:

  1. 使用sharelist:next 镜像,
  2. webdav连接 用户名 admin,密码 sharelist
rockonedege commented 2 years ago

都确认,也改过用户名密码,端口,webDAV,都不产生反应。

version: '3' services: caiyun-webdav: image: reruin/sharelist:next container_name: sharelist restart: unless-stopped volumes:



-       Synology链接失败
***@***.***

-       Log无感
***@***.***

从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送

发件人: ***@***.***>
发送时间: 2022年1月4日 23:15
收件人: ***@***.***>
抄送: ***@***.***>; ***@***.***>
主题: Re: [reruin/sharelist] docker里无法用webDAV代理无法工作 (Issue #754)

先确认下:

  1.  使用sharelist:next 镜像,
  2.  webdav连接 用户名 admin,密码 sharelist

―
Reply to this email directly, view it on GitHub<https://github.com/reruin/sharelist/issues/754#issuecomment-1004896114>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAFPFJKCAA373U6LEZQ7NDDUUMFIXANCNFSM5LHTPTAQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
reruin commented 2 years ago

修复了。拉取最新的docker镜像 再试试。

rockonedege commented 2 years ago

没有变化,还是不行 配置导出如下

{
    "token": "sharelist",
    "proxy_enable": false,
    "index_enable": true,
    "expand_single_disk": false,
    "max_age_dir": 900000,
    "max_age_file": 300000,
    "theme": "default",
    "ignores": [],
    "acl_file": ".passwd",
    "max_age_download_sign": "sl_1641303549901",
    "anonymous_upload_enable": false,
    "anonymous_download_enable": true,
    "webdav_path": "",
    "proxy_paths": [],
    "proxy_server": "",
    "webdav_proxy": true,
    "webdav_user": "test",
    "webdav_pass": "password",
    "ocr_server": "",
    "drives": [
        {
            "name": "caiyu",
            "path": "..."
        }
    ],
    "proxy_url": "https://reruin.github.io/sharelist/redirect.html"
}

另外两个建议:

rockonedege commented 2 years ago

刚看了服务器log。最新的docker image 并没有更新到最新的0.3.15. $ docker pull reruin/sharelist Using default tag: latest latest: Pulling from reruin/sharelist Digest: sha256:1bb364bcaad30a1cd2b04986b5f9ef7b358b5194a8518c2b0a435ecd104d6de0 Status: Image is up to date for reruin/sharelist:latest docker.io/reruin/sharelist:latest $ docker-compose -f docker-compose-sharelist.yml up Starting sharelist ... done Attaching to sharelist sharelist | sharelist | > sharelist@0.3.13 start /sharelist sharelist | > node app.js sharelist | sharelist | 2022-01-10T07:23:43.231Z sharelist | Sharelist Server is running at http://127.0.0.1:33001/

reruin commented 2 years ago

使用 reruin/sharelist:next

rockonedege commented 2 years ago

也一样, 还是sharelist@0.3.13。也许是docker image缓存没清?


$ docker pull reruin/sharelist:next
next: Pulling from reruin/sharelist
Digest: sha256:e3000a36977c35bfe1eb1dc21a065101682d3b304e712f68f546510db7a6e8c4
Status: Image is up to date for reruin/sharelist:next
docker.io/reruin/sharelist:next
$ docker-compose -f docker-compose-sharelist.yml up

Starting sharelist ... done
Attaching to sharelist
sharelist        |
sharelist        | > sharelist@0.3.13 start /sharelist
sharelist        | > node app.js
sharelist        |
sharelist        | 2022-01-12T03:27:21.979Z
sharelist        | Sharelist Server is running at http://127.0.0.1:33001/
sharelist        | load ctc
sharelist        | load aliyun
sharelist        | load baidu
sharelist        | load caiyun
sharelist        | load file
sharelist        | load googledrive
sharelist        | load http
sharelist        | load https
sharelist        | load onedrive
sharelist        | load sld
^CGracefully stopping... (press Ctrl+C again to force)
Stopping sharelist ... done
$ cat docker-compose-sharelist.yml
version: '3'
services:
  caiyun-webdav:
    image: reruin/sharelist:next
    container_name: sharelist
    restart: unless-stopped
    volumes:
      - /etc/localtime:/etc/localtime
      - /volume1/docker/sharelist:/sharelist/cache
    ports:
      - "33001:33001"
    environment:
      - PUID=1026
      - PGID=100
      - TZ=Asia/Shanghai
$```
reruin commented 2 years ago

移除容器 和 镜像,再拉取试试。目前确实是 0.3.15。 image

rockonedege commented 2 years ago

能用了,删了容器和镜像重新拉取就可以了。

如果我想要用一个脚本,从本地盘复制到webdav里,借助它同步到云上,请问可以用什么命令?rsync可以吗?怎么些webdav部分?

发件人: Ting @.> 发送时间: 2022年1月12日 15:31 收件人: reruin/sharelist @.> 抄送: ttan @.>; Author @.> 主题: Re: [reruin/sharelist] docker里无法用webDAV代理无法工作 (Issue #754)

移除容器 和 镜像,再拉取试试。目前确实是 0.3.15。 [image]https://user-images.githubusercontent.com/7403780/149083180-07d2a624-aba3-487f-8817-758886056409.png

— Reply to this email directly, view it on GitHubhttps://github.com/reruin/sharelist/issues/754#issuecomment-1010724710, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFPFJN6DKCOJWGHJDQD363UVUU4VANCNFSM5LHTPTAQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>

reruin commented 2 years ago

使用工具(比如 RaiDrive rclone)将 webdav 挂载到本地,然后直接复制 或 同步。

rockonedege commented 2 years ago

rclone用起来了。谢谢。

获取 BlueMailhttps://bluemail.me/download for Desktop

Ting wrote:

使用工具(比如 RaiDrive rclone)将 webdav 挂载到本地,然后直接复制 或 同步。

— Reply to this email directly, view it on GitHubhttps://github.com/reruin/sharelist/issues/754#issuecomment-1010818963, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFPFJMRDFRQJA5CD5BRYITUVVA7FANCNFSM5LHTPTAQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

reruin commented 2 years ago

ok,如果没问题的话,麻烦关下issue

ahdiua commented 2 years ago

大佬,能否细说如何用起rclone的,我遇到了同样的问题。

我的sharelist挂载了天翼云,打开了webdav代理,用rclone添加了webdav服务。

但我在试图tree或者copy操作时会报500。

Attempt 1/3 failed with 1 errors and: read metadata failed: Internal Server Error: 500 Internal Server Error