Not able to start SAIO: cannot bind to ports
I have carefully followed the all-in-one instructions here for setting up a development swift VM: http://
Everything is fine until I reach step #8 in this section: http://
When I run startmain I get the following output:
saio@swift-
WARNING: Unable to increase file descriptor limit. Running as non-root?
Starting proxy-server.
Starting container-
Starting container-
Starting container-
Starting container-
Starting account-
Starting account-
Starting account-
Starting account-
Starting object-
Starting object-
Starting object-
Starting object-
Traceback (most recent call last):
File "/usr/local/
execfile(
File "/home/
run_
File "/home/
sock = get_socket(conf, default_
File "/home/
bind_addr)
Exception: Could not bind to 0.0.0.0:6011 after trying for 30 seconds
(The above traceback stanza repeats two more times, then this...)
Traceback (most recent call last):
File "/usr/local/
execfile(
File "/home/
run_
File "/home/
sock = get_socket(conf, default_
File "/home/
bind_addr)
Exception: Could not bind to 0.0.0.0:6012 after trying for 30 seconds
(...two more times, then this...)
Traceback (most recent call last):
File "/usr/local/
execfile(
File "/home/
run_
File "/home/
sock = get_socket(conf, default_
File "/home/
bind_addr)
Exception: Could not bind to 0.0.0.0:6010 after trying for 30 seconds
(...repeats two more times).
Note:
before I run startmain, output of `sudo netstat -ntlp` looks like this:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 864/sshd
tcp 0 0 127.0.0.1:873 0.0.0.0:* LISTEN 7915/rsync
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 6811/memcached
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 938/apache2
tcp6 0 0 :::22 :::* LISTEN 864/sshd
After running startmain it looks like this:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 864/sshd
tcp 0 0 0.0.0.0:6010 0.0.0.0:* LISTEN 10622/python
tcp 0 0 0.0.0.0:6011 0.0.0.0:* LISTEN 10614/python
tcp 0 0 0.0.0.0:6012 0.0.0.0:* LISTEN 10616/python
tcp 0 0 127.0.0.1:873 0.0.0.0:* LISTEN 7915/rsync
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 6811/memcached
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 10611/python
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 938/apache2
tcp6 0 0 :::22 :::* LISTEN 864/sshd
I tried adding "bind_ip = 127.0.0.1" into the DEFAULT stanza in /etc/swift/
BTW – when I run `swift-init rest start` I get no errors in stdout.
Pressing on in the procedure, I find that the test in step #9 seems to work ok:
saio@swift-
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /auth/v1.0 HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-
> Host: 127.0.0.1:8080
> Accept: */*
> X-Storage-User: test:tester
> X-Storage-Pass: testing
>
< HTTP/1.1 200 OK
< X-Storage-Url: http://
< X-Storage-Token: AUTH_tk89a9393d
< X-Auth-Token: AUTH_tk89a9393d
< Content-Length: 0
< Date: Thu, 21 Jun 2012 15:54:03 GMT
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
But the output from the test in step #10 is not as promising:
saio@swift-
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /v1/AUTH_test HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-
> Host: 127.0.0.1:8080
> Accept: */*
> X-Auth-Token: AUTH_tk89a9393d
>
< HTTP/1.1 500 Internal Server Error
< Content-Length: 228
< Content-Type: text/html; charset=UTF-8
< Date: Thu, 21 Jun 2012 15:57:18 GMT
<
<html>
<head>
<title>500 Internal Server Error</title>
</head>
<body>
<h1>500 Internal Server Error</h1>
The server has either erred or is incapable of performing the requested operation.<br /><br />
</body>
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
I get no errors in the output of the "Check that Swift works" test in step #11:
saio@swift-
Account: AUTH_test
Containers: 0
Objects: 0
Bytes: 0
Accept-Ranges: bytes
X-Timestamp: 1340294238.20513
The function test (steps 12-13) throws a ton of errors.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Chris Almond
- Solved:
- Last query:
- Last reply: