I am trying to install DevStack following the tutorial from here

It says I have to run ./stack.sh as non-root user and I did. But I am getting this error.

++ [[ -n False ]]
++ [[ False != \F\a\l\s\e ]]
++ date +%s
/home/mani/devstack/tools/install_prereqs.sh: line 80: /home/mani/devstack/.prereqs: Permission denied
+++ err_trap
+++ local r=1
+++ set +o xtrace
stack.sh failed
有帮助吗?

解决方案

After running ./create-stack-user.sh, try this

chown -R stack:stack /opt/devstack(the path of the cloned devstack) 
su stack 
./stack.sh .

I've stuck with the same problem and this worked..!!

其他提示

Your error stack.sh failed with Permission denied

This will fix for centos 7x

cd /opt/
chmod 755 stack
cd stack
chmod 755 devstack

The user must still be in the sudoers file. So add the username while root run the command visudo and add the user name what ever it is under root ALL=(ALL) ALL

so you will have:

root ALL=(ALL) ALL
newuserX ALL=(ALL) ALL

re-run ./stack.sh as regular user (with sudo permissions)

might want to clean any previous install attempts with ./clean.sh first, before re-install

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top