群晖 Docker 安装 RcloneBrowser 挂载错误: "fusermount3": executable file not found in $PATH - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要把任何和邀请码有关的内容发到 NAS 节点。

邀请码相关的内容请使用 /go/in 节点。

如果没有发送到 /go/in,那么会被移动到 /go/pointless 同时账号会被降权。如果持续触发这样的移动,会导致账号被禁用。
unishare
V2EX    NAS

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

  •  
  •   unishare 2023-12-18 20:14:50 +08:00 3026 次点击
    这是一个创建于 729 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
       2023-12-18 20:15:18 +08:00
    julyclyde
        2
    julyclyde  
       2023-12-18 20:57:16 +08:00
    这个是个符号链接啊
    它指向哪个文件?
    unishare
        3
    unishare  
    OP
       2023-12-18 22:55:29 +08:00 via iPhone
    @julyclyde 指向 fusermount2 ,看教程链接教的软链接
    unishare
        4
    unishare  
    OP
       2023-12-18 22:56:06 +08:00 via iPhone
    @unishare 不对,是 fusermount
    georgex
        5
    georgex  
       2023-12-18 23:59:41 +08:00 via iPhone   1
    我也用的 docker 版的 rclone ,挂载的 alist 的 webdav ,并没有安装这个 fuse3 呢
    unishare
        6
    unishare  
    OP
       2023-12-19 00:21:28 +08:00 via iPhone
    @georgex rclone 新版本才需要
    NessajCN
        7
    NessajCN  
       2023-12-19 09:37:41 +08:00   1
    下面这俩命令输出是啥
    echo $PATH
    ls -alF /bin
    unishare
        8
    unishare  
    OP
       2023-12-19 10:26:41 +08:00
    @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  
       2023-12-19 10:31:50 +08:00   1
    @unishare 再看一下这俩
    ls -alF /bin/ | grep fuser
    type fusermount3
    georgex
        10
    georgex  
       2023-12-19 10:48:33 +08:00   1
    @unishare 我用的也是新版,rclone/rclone:latest 目前版本 v1.65.0
    unishare
        11
    unishare  
    OP
       2023-12-19 11:04:29 +08:00
    @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
       2023-12-19 11:07:21 +08:00
    @georgex #10 会不会是装过 fuse3 了,你是用的群晖吗
    unishare
        13
    unishare  
    OP
       2023-12-19 11:11:35 +08:00
    @georgex #10 你知道怎么通过 ssh 进入 docker 内部的 rclone 配置命令吗,好像是得先获得 rclone 的 docker id 吧,然后再用 rclone config 命令
    NessajCN
        14
    NessajCN  
       2023-12-19 11:20:22 +08:00   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
       2023-12-19 11:29:34 +08:00
    @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
       2023-12-19 11:46:42 +08:00
    @NessajCN #14 我设置 7777 权限了,但是 RcloneBrowser 还是一样的错误
    unishare
        17
    unishare  
    OP
       2023-12-19 12:02:01 +08:00
    @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  
       2023-12-19 12:03:16 +08:00   1
    @unishare 肯定是在 docker 内部运行啊,加上 shared ,共享再给 host
    georgex
        19
    georgex  
       2023-12-19 12:04:17 +08:00   1
    unishare
        20
    unishare  
    OP
       2023-12-19 12:07:14 +08:00
    @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
       2023-12-19 12:36:07 +08:00
    @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
       2023-12-19 13:13:11 +08:00
    @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  
       2023-12-19 14:24:14 +08:00   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
       2023-12-19 15:26:48 +08:00
    @georgex #23 好,我试试看
    unishare
        25
    unishare  
    OP
       2023-12-19 18:38:28 +08:00
    @georgex #23

    成功挂载了,十分感谢!!!
    georgex
        26
    georgex  
       2023-12-20 05:45:53 +08:00 via iPhone
    @unishare 不客气
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     911 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 28ms UTC 22:10 PVG 06:10 LAX 14:10 JFK 17:10
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86