我尝试在Heroku dyno中使用rclone mount,但似乎不起作用,因为没有fusermount。我找到了this,这是heroku的一个fuse构建包,但它也不能工作。
我通过heroku run bash进入了dyno的bash,并输入了以下命令
# These commands came from: https://github.com/kenshin23/heroku-fuse-buildpack/blob/master/bin/compile
wget https://raw.githubusercontent.com/kenshin23/fuse-lib/master/fuse_2.9.2.tar.gz
mkdir -p vendor/fuse
tar -C vendor/fuse -xvf fuse_2.9.2.tar.gz
# These commands came from: https://github.com/kenshin23/heroku-fuse-buildpack/blob/master/bin/compile
PATH="$PATH:/app/vendor/fuse/bin"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/app/vendor/fuse/lib"
rclone mount DRIVE:/foo bar # Assuming rclone is properly configured我只能从rclone mount得到这些错误信息
2020/01/02 10:18:49 mount helper error: fusermount: fuse device not found, try 'modprobe fuse' first
2020/01/02 10:18:49 Fatal error: failed to mount FUSE fs: fusermount: exit status 1发布于 2021-03-09 12:03:59
Heroku Dynos实际上是容器,与主机系统隔离。尝试更改任何系统文件都不起作用,因此我们无法初始化保险丝设备。
顺便说一句,使用Docker部署可能是一个聪明的想法。
https://stackoverflow.com/questions/59561887
复制相似问题