fun nas cp命令报错zip: not found
kia126 opened this issue · comments
George commented
使用fun nas cp命令报错zip: not found
$ fun nas cp -r nas://NasDemo/mnt/auto/logs .\logs
using template: template.yml
start fun nas init...
checking if _FUN_NAS_NasDemo needs to be deployed...
skip deploying _FUN_NAS_NasDemo, which has been deployed
fun nas init Success
zipping /mnt/auto/logs
Command failed: cd /mnt/auto && zip -r /mnt/auto/.fun-nas-generated.zip logs
/bin/sh: 1: zip: not found
Claud.Lee commented
找到了点原因,可以看下 fc 那边对应生成的 FUN_NAS{{serviceName}} 下的 fun_nas_function,里面的文件目录有点不对
zip 的 bin 在:/code/.fun/root/root/usr/bin 下,但 PATH 里面没有
[临时解决]
修改下这个 function 的配置,把上面这个加到 PATH 中就可以了
为什么会这样,还没扒完代码,还不知道原因
wss-git commented
最近提了一个 pr, 在重试一下呢