V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
unishare
V2EX  ›  NAS

群晖 Docker 安装 RcloneBrowser 挂载错误: "fusermount3": executable file not found in $PATH

  •  
  •   unishare · 131 天前 · 1373 次点击
    这是一个创建于 131 天前的主题,其中的信息可能已经有所发展或是发生改变。
    docker 装的是这个,rclone 版本是 1.65
    https://hub.docker.com/r/yadiman/rclonebrowser

    按照这个教程 https://imnks.com/8208.html
    建立为 fuse2 的软连接,还是不行
    接着 opkg install fuse3-utils ,安装成功了,还是不行
    请问下大家该怎么解决
    26 条回复    2023-12-20 05:45:53 +08:00
    unishare
        1
    unishare  
    OP
       131 天前
    julyclyde
        2
    julyclyde  
       131 天前
    这个是个符号链接啊
    它指向哪个文件?
    unishare
        3
    unishare  
    OP
       131 天前 via iPhone
    @julyclyde 指向 fusermount2 ,看教程链接教的软链接
    unishare
        4
    unishare  
    OP
       131 天前 via iPhone
    @unishare 不对,是 fusermount
    georgex
        5
    georgex  
       131 天前 via iPhone   ❤️ 1
    我也用的 docker 版的 rclone ,挂载的 alist 的 webdav ,并没有安装这个 fuse3 呢
    unishare
        6
    unishare  
    OP
       131 天前 via iPhone
    @georgex rclone 新版本才需要
    NessajCN
        7
    NessajCN  
       130 天前   ❤️ 1
    下面这俩命令输出是啥
    echo $PATH
    ls -alF /bin
    unishare
        8
    unishare  
    OP
       130 天前
    @NessajCN #7

    admin@DS918plus:~$ echo $PATH
    /opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
    admin@DS918plus:~$ ls -alF /bin
    lrwxrwxrwx 1 root root 7 Sep 26 18:03 /bin -> usr/bin/
    NessajCN
        9
    NessajCN  
       130 天前   ❤️ 1
    @unishare 再看一下这俩
    ls -alF /bin/ | grep fuser
    type fusermount3
    georgex
        10
    georgex  
       130 天前   ❤️ 1
    @unishare 我用的也是新版,rclone/rclone:latest 目前版本 v1.65.0
    unishare
        11
    unishare  
    OP
       130 天前
    @NessajCN #9

    root@DS918plus:~# ls -alF /bin/ | grep fuser
    -rwsr-xr-x 1 root root 35544 Aug 1 2022 fusermount*
    lrwxrwxrwx 1 root root 15 Dec 18 17:59 fusermount3 -> /bin/fusermount*
    root@DS918plus:~# type fusermount3
    fusermount3 is /opt/bin/fusermount3
    unishare
        12
    unishare  
    OP
       130 天前
    @georgex #10 会不会是装过 fuse3 了,你是用的群晖吗
    unishare
        13
    unishare  
    OP
       130 天前
    @georgex #10 你知道怎么通过 ssh 进入 docker 内部的 rclone 配置命令吗,好像是得先获得 rclone 的 docker id 吧,然后再用 rclone config 命令
    NessajCN
        14
    NessajCN  
       130 天前   ❤️ 1
    @unishare 你现在有两个 fusermount3, 一个在 /opt/bin/fusermount3 , 应该是 opkg 装的
    一个在 /bin/fusermount3
    因为这俩都在 PATH 里,/opt/bin 比 /bin 位置靠前,所以 /opt/bin/fusermount3 先被使用
    你可以再用
    ls -alF /opt/bin/fusermount3
    看一下该执行文件的权限是否正确,你用来执行该命令的用户( docker ?)是否正确拥有该文件的可执行权限
    unishare
        15
    unishare  
    OP
       130 天前
    @NessajCN #14

    root@DS918plus:~# ls -alF /opt/bin/fusermount3
    -rwxr-xr-x 1 root root 35344 Sep 2 03:07 /opt/bin/fusermount3*
    unishare
        16
    unishare  
    OP
       130 天前
    @NessajCN #14 我设置 7777 权限了,但是 RcloneBrowser 还是一样的错误
    unishare
        17
    unishare  
    OP
       130 天前
    @georgex #10 我问 GPT 了,是输入这条命令 docker exec -it rclone-rclone-0 /bin/bash 可以进入 ssh 了,但是提示错误
    OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown
    我的 rclone 之前通过这条 command 装过 gui rcd --rc-web-gui --rc-addr :5572 --rc-user admin --rc-pass ***
    不知道是不是这个原因才提示错误
    georgex
        18
    georgex  
       130 天前   ❤️ 1
    @unishare 肯定是在 docker 内部运行啊,加上 shared ,共享再给 host
    georgex
        19
    georgex  
       130 天前   ❤️ 1
    unishare
        20
    unishare  
    OP
       130 天前
    @georgex #10
    改成 /bin/sh 就可以了,抱歉,都是很小白的问题
    root@DS918plus:~# docker exec -it rclone-rclone-0 /bin/sh
    /data # rclone config
    2023/12/19 04:05:15 NOTICE: Config file "/config/rclone/rclone.conf" not found - using defaults
    No remotes found, make a new one?
    n) New remote
    s) Set configuration password
    q) Quit config
    n/s/q>
    unishare
        21
    unishare  
    OP
       130 天前
    @NessajCN @georgex 我用命令行的方式挂载,这次用的这个 docker ,rclone/rclone:latest ,还是提示 fuse 的问题,😂

    2023/12/19 04:31:01 mount helper error: fusermount3: fuse device not found, try 'modprobe fuse' first
    2023/12/19 04:31:01 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
    /data #
    unishare
        22
    unishare  
    OP
       130 天前
    @NessajCN @georgex
    我不是通过命令行安装的 docker rclone ,我看教程有这一行,但是在群晖的图形界面找不到这个配置 --device /dev/fuse \ 不知道错误跟这个有没关

    docker run -d --name rclone-mount --restart=always \
    --cap-add SYS_ADMIN \
    --device /dev/fuse \
    --security-opt apparmor:unconfined \
    -e ConfigName="rclone.conf" \
    -e RemotePath="alist:" \
    -e MountCommands="--allow-other --allow-non-empty --read-only --dir-cache-time 2h --buffer-size 32M --poll-interval 5m --tpslimit 2" \
    -v "/volume1/docker/rclone-mount":/config \
    -v "/volume1/Rclone:/mnt/mediaefs:shared \
    mumiehub/rclone-mount
    georgex
        23
    georgex  
       130 天前   ❤️ 1
    @unishare #22 肯定是要 /dev/fuse 的,你不用命令行的话你可以试试 compose 写

    下面是我在用的

    version: '3'
    services:
    rclone:
    image: rclone/rclone
    container_name: rclone
    mem_limit: 2048m
    network_mode: bridge
    restart: unless-stopped
    user: 1026:101
    volumes:
    - ./config:/config/rclone
    - /etc/passwd:/etc/passwd:ro
    - /etc/group:/etc/group:ro
    - /volume3/rclone/cache:/cache
    - /volume3/rclone/data:/data:shared
    devices:
    - /dev/fuse
    cap_add:
    - SYS_ADMIN
    security_opt:
    - apparmor:unconfined
    command: mount alist:/ /data/alist --use-mmap --umask 000 --network-mode --no-check-certificate --allow-other --allow-non-empty --dir-cache-time 4h --cache-dir=/cache --header "Referer:" --vfs-cache-mode full --buffer-size 512M --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G --vfs-cache-max-size 10G --exclude "#recycle/**" --exclude "@eaDir/**" --exclude "@eaDir/" --exclude ".DS_Store"
    unishare
        24
    unishare  
    OP
       130 天前
    @georgex #23 好,我试试看
    unishare
        25
    unishare  
    OP
       130 天前
    @georgex #23

    成功挂载了,十分感谢!!!
    georgex
        26
    georgex  
       129 天前 via iPhone
    @unishare 不客气
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   909 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 19:51 · PVG 03:51 · LAX 12:51 · JFK 15:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.