我正在尝试在Debian 9 EC2实例上运行安装助手
https://docs.aws.amazon.com/efs/latest/ug/mounting-fs.html#mounting-fs-mount-helper-ec2
运行以下命令(使用我自己的正确文件路径和EFS ID)
$ sudo mount -t efs fs-12345678:/ / mnt / efs
我收到以下错误:
Traceback (most recent call last):
File "/sbin/mount.efs", line 674, in <module>
main()
File "/sbin/mount.efs", line 668, in main
mount_tls(config, init_system, dns_name, path, fs_id, mountpoint, options)
File "/sbin/mount.efs", line 630, in mount_tls
with bootstrap_tls(config, init_system, dns_name, fs_id, mountpoint, options) as tunnel_proc:
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/sbin/mount.efs", line 391, in bootstrap_tls
start_watchdog(init_system)
File "/sbin/mount.efs", line 367, in start_watchdog
proc = subprocess.Popen(['/sbin/status', WATCHDOG_SERVICE], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
从Google周围看,似乎我需要以某种方式运行具有管理员权限的Python?我尝试设置
/ sbin /状态
到chmod 777
答案 0 :(得分:0)
解决方案-挂载EFS代码不支持sysvinit ..切换到systemd
https://major.io/2014/05/20/switching-to-systemd-on-debian-jessie/