Ask Your Question
0

cannot create container

asked 2013-12-11 02:08:25 -0500

pragya jain gravatar image

hello,

I had installed swift using link http://docs.openstack.org/developer/swift/development_saio.html

I am facing problem in creating container.

curl -v -H 'X-Auth-Token: AUTH_tk850294e7f80b4ca09d9acda278466391' -X PUT http://127.0.0.1:8080/v1/AUTH_prag2648/photos http://paste.openstack.org/show/54495/

I am also sending a copy of /var/log/syslog http://paste.openstack.org/show/54807/

Please help me in this regard.

Pragya Jain

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-12-11 09:33:43 -0500

jtopjian gravatar image

In your logs, it's showing:

mkdir(name, mode)#012OSError: [Errno 13] Permission denied: '/srv/2/node/sdb2/accounts'

Can you verify that the /srv directory and its subdirectories have the correct permissions for the user that Swift is running under? The user is most commonly swift.

edit flag offensive delete link more

Comments

Thanks for reply jtopjian, to check permissions for the user, I run following commands: root@pragya-VirtualBox:~# sudo mkdir /mnt/sdb1 mkdir: cannot create directory `/mnt/sdb1': File exists root@pragya-VirtualBox:~# sudo mount /mnt/sdb1 mount: according to mtab /srv/swift-disk is already mounted on /mnt/sdb1 as loop root@pragya-VirtualBox:~# sudo mkdir /mnt/sdb1/1 /mnt/sdb1/2 /mnt/sdb1/3 /mnt/sdb1/4 mkdir: cannot create directory `/mnt/sdb1/1': File exists mkdir: cannot create directory `/mnt/sdb1/2': File exists mkdir: cannot create directory `/mnt/sdb1/3': File exists mkdir: cannot create directory `/mnt/sdb1/4': File exists root@pragya-VirtualBox:~# sudo chown ${USER}:${USER} /mnt/sdb1/* root@pragya-VirtualBox:~# for x in {1..4}; do sudo ln -s /mnt/sdb1/$x /srv/$x; done root@pragya-VirtualBox:~# sudo mkdir -p /srv/1/node/sdb1 /srv/2/node/sdb2 /srv/3/node/sdb3 /srv/4/node/sdb4 /var/run/swift root ...(more)

pragya jain gravatar imagepragya jain ( 2013-12-11 12:09:09 -0500 )edit

root@pragya-VirtualBox:~# for x in {1..4}; do sudo chown -R ${USER}:${USER} /srv/$x/; done and then, I create container. But this time, the error is: http://paste.openstack.org/show/54843/

pragya jain gravatar imagepragya jain ( 2013-12-11 12:10:59 -0500 )edit

It looks like your paste was truncated.

jtopjian gravatar imagejtopjian ( 2013-12-11 12:40:03 -0500 )edit

I am pasting the error again http://paste.openstack.org/show/54843

pragya jain gravatar imagepragya jain ( 2013-12-11 21:38:30 -0500 )edit

Please reply

pragya jain gravatar imagepragya jain ( 2013-12-12 01:52:53 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-12-11 02:08:25 -0500

Seen: 474 times

Last updated: Dec 11 '13