Ask Your Question
0

DevStack install fail: Permissions error [closed]

asked 2013-12-22 09:58:05 -0500

cephaslr gravatar image

updated 2014-01-22 15:13:07 -0500

Evgeny gravatar image

I get this error running ./stack.sh

0Warning: Failed to create the file pip-1.4.1.tar.gz: Permission denied

I tried chwoning the dir as recommended by this thread, but it did not help:

https://bugs.launchpad.net/devstack/+bug/1239022

Any ideas? Thanks in advance!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2013-12-22 22:28:26.643540

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-12-22 10:56:25 -0500

dheeru gravatar image

updated 2013-12-22 10:57:52 -0500

It is permission issue only. It will not be anything else. Looks like your directory is owned by root and stack user is trying to write to the directory. So it is failing at this step.

If you look at this step, script is trying to  execute following 
cd to /opt/devstack/files
curl -O https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz 
This command downloads and writes pip-1.4.1.tar.gz file into /opt/devstack/files directory. It is failing permission issue. It means it is permission issue only.

Can you check the permissions of this directory ?
How are you executing the stack.sh ? As root or as stack user ?  Please ensure that you create stack user with sudo privileges. Post this you execute.

I'm sure you have seen this bug. I would request you to check all the steps from beginning as mentioned in the bug i.e creating stack user etc.
https://bugs.launchpad.net/devstack/+bug/1239022
edit flag offensive delete link more
0

answered 2013-12-22 10:55:40 -0500

cephaslr gravatar image

Figured it out, I needed to log in as the stack user and run ./stack.sh.

To do so, I had to call

sudo visudo

and add

stack ALL=(ALL) NOPASSWD: ALL

to the file. Then rerun stack.sh as stack and its working.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-22 09:58:05 -0500

Seen: 1,489 times

Last updated: Dec 22 '13