SAIO virtual machine setting up problem

Asked by csxbwang

I want to set up a virtual machine for doing swift development. I do it following SAIO steps.

Everything is ok until step 33. The 'tester' account has been successfully created. But when I check that I can GET account (the Step 33), the error is: curl: (7) couldn't connect to host.

It seems no process listens to the port 8080. I guess 'swift-init proxy-server start' does not start the proxy server correctly in virtual machine environment.

I use virtual-box installing ubuntu server 10.04 (32-bit).

Thanks and regards.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
csxbwang
Solved:
Last query:
Last reply:
Revision history for this message
csxbwang (xbwang-zh) said :
#1

error message from 'syslog'

Aug 17 11:43:00 csxbwang-ubuntu proxy UNCAUGHT EXCEPTION#012Traceback (most recent call last):#012 File "/usr/local/bin/swift-proxy-server", line 7, in <module>#012 execfile(__file__)#012 File "/home/csxbwang/swift/trunk/bin/swift-proxy-server", line 50, in <module>#012 run_wsgi(app, conf, logger=logger, default_port=80)#012 File "/home/csxbwang/swift/trunk/swift/common/wsgi.py", line 89, in run_wsgi#012 sock = listen(bind_addr)#012 File "/usr/lib/pymodules/python2.6/eventlet/convenience.py", line 37, in listen#012 sock.bind(addr)#012 File "<string>", line 1, in bind#012error: [Errno 13] Permission denie

Revision history for this message
gholt (gholt) said :
#2

I'm not sure why the proxy server would get permission denied while binding to port 8080. Can you post your /etc/swift/proxy-server.conf ? It should look something like (from step 10 in the SAIO):

[proxy-server]
bind_port = 8080
user = <your-user-name>

Revision history for this message
Jay Payne (letterj) said :
#3

Check the permissions on all your config files in /etc/swift and make sure they are set correctly.

-----Original Message-----
From: "csxbwang" <email address hidden>
Sent: Tuesday, August 17, 2010 05:28
To: <email address hidden>
Subject: Re: [Question #121484]: SAIO virtual machine setting up problem

Question #121484 on OpenStack Object Storage (swift) changed:
https://answers.launchpad.net/swift/+question/121484

csxbwang gave more information on the question:
error message from 'syslog'

Aug 17 11:43:00 csxbwang-ubuntu proxy UNCAUGHT EXCEPTION#012Traceback
(most recent call last):#012 File "/usr/local/bin/swift-proxy-server",
line 7, in <module>#012 execfile(__file__)#012 File
"/home/csxbwang/swift/trunk/bin/swift-proxy-server", line 50, in
<module>#012 run_wsgi(app, conf, logger=logger, default_port=80)#012
File "/home/csxbwang/swift/trunk/swift/common/wsgi.py", line 89, in
run_wsgi#012 sock = listen(bind_addr)#012 File
"/usr/lib/pymodules/python2.6/eventlet/convenience.py", line 37, in
listen#012 sock.bind(addr)#012 File "<string>", line 1, in
bind#012error: [Errno 13] Permission denie

--
You received this question notification because you are a member of
Swift Core, which is an answer contact for OpenStack Object Storage
(swift).

Revision history for this message
csxbwang (xbwang-zh) said :
#4

Thanks very much.

I made a typing error.

[proxy-server]
bind-port = 8080 // should be 'bind_port = 8080'
user = <your-user-name>