← Back to team overview

openstack team mailing list archive

Re: [OpenStack][Swift] Error while starting container, account, object servers.

 

Yes the problem got solved. Thank you for the responses. The problem was in
the conf files object-server.conf, container-server.conf,
account-server.conf i had given incorrect bind_ip of the host machine which
gave socket bind error. now i changed those IP address to the correct
address of the machine, there is no problem and the servers are running
perfectly.


On 13 February 2013 20:41, Razique Mahroua <razique.mahroua@xxxxxxxxx>wrote:

> I think it's the object-server which cannot bind the IP. Have you updated
> all the configuration files for it in order not to have the same bidings
> ports ?
>
> *Razique Mahroua** - **Nuage & Co*
> razique.mahroua@xxxxxxxxx
> Tel : +33 9 72 37 94 15
>
>
> Le 12 févr. 2013 à 09:42, Sujay M <sujay.m17@xxxxxxxxx> a écrit :
>
> My account-server configuration (Similarly other servers on 6010, 6011)
>
> root@vm0:~# cat /etc/swift/account-server.conf
> [DEFAULT]
> bind_ip = 10.0.2.16
> bind_port = 6012
> devices = /mnt
> mount_check = false
> disable_fallocate = true
> user = ubuntu
> eventlet_debug = true
>
> [pipeline:main]
> pipeline = account-server
>
> [app:account-server]
> use = egg:swift#account
>
> [account-replicator]
> vm_test_mode = yes
>
> [account-auditor]
>
> [account-reaper]
>
>
> Output of netstat -pl
>
> Proto Recv-Q Send-Q Local Address           Foreign Address
> State       PID/Program name
> tcp        0      0 *:ssh                   *:*
> LISTEN      135/sshd
> tcp6       0      0 [::]:ssh                [::]:*
> LISTEN      135/sshd
> udp        0      0 *:bootpc
> *:*                                 184/dhclient3
> Active UNIX domain sockets (only servers)
> Proto RefCnt Flags       Type       State         I-Node   PID/Program
> name    Path
> unix  2      [ ACC ]     STREAM     LISTENING     12674
> 1/init              @/com/ubuntu/upstart
> unix  2      [ ACC ]     SEQPACKET  LISTENING     14327
> 143/udevd           /run/udev/control
>
>
> ouput of ps -Al
>
> root@vm0:~# ps -Al
> F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
> 4 S     0     1     0  0  80   0 -  6083 poll_s ?        00:00:00 init
> 1 S     0    70     1  0  80   0 -  3797 poll_s ?        00:00:00
> upstart-socket
> 1 S     0   117     1  0  80   0 -  4308 poll_s ?        00:00:00
> upstart-udev-b
> 4 S     0   135     1  0  80   0 - 12489 poll_s ?        00:00:00 sshd
> 5 S     0   143     1  0  80   0 -  5334 ep_pol ?        00:00:00 udevd
> 5 S   101   151     1  0  80   0 - 45982 poll_s ?        00:00:00 rsyslogd
> 1 S     0   184     1  0  80   0 -  1816 poll_s ?        00:00:00 dhclient3
> 4 S     0   229     1  0  80   0 -  3188 n_tty_ lxc/tty4 00:00:00 getty
> 4 S     0   240     1  0  80   0 -  3188 n_tty_ lxc/tty2 00:00:00 getty
> 4 S     0   241     1  0  80   0 -  3188 n_tty_ lxc/tty3 00:00:00 getty
> 1 S     0   249     1  0  80   0 -  4778 hrtime ?        00:00:00 cron
> 4 S     0   307     1  0  80   0 - 13613 wait   lxc/console 00:00:00 login
> 4 S     0   309     1  0  80   0 -  3188 n_tty_ lxc/tty1 00:00:00 getty
> 5 S     0   387   143  0  80   0 -  5333 ep_pol ?        00:00:00 udevd
> 5 S     0   388   143  0  80   0 -  5333 ep_pol ?        00:00:00 udevd
> 4 S  1000   400   307  0  80   0 -  4525 wait   lxc/console 00:00:00 bash
> 4 S     0   430   400  0  80   0 -  9075 poll_s lxc/console 00:00:00 sudo
> 4 S     0   431   430  0  80   0 -  4525 wait   lxc/console 00:00:00 bash
> 4 S  1000   443     1  2  80   0 - 18943 poll_s ?        00:00:04
> swift-containe
> 4 S  1000   444     1  0  80   0 - 18435 poll_s ?        00:00:00
> swift-account-
> 4 S  1000   445     1  2  80   0 - 188691 poll_s ?       00:00:04
> swift-object-r
> 4 S  1000   446     1  2  80   0 - 18932 poll_s ?        00:00:05
> swift-containe
> 4 S  1000   447     1  0  80   0 - 17677 poll_s ?        00:00:00
> swift-object-a
> 4 S  1000   448     1  0  80   0 - 18434 poll_s ?        00:00:00
> swift-containe
> 4 S  1000   451     1  0  80   0 - 18559 poll_s ?        00:00:00
> swift-account-
> 4 S  1000   452     1  4  80   0 - 20978 poll_s ?        00:00:10
> swift-containe
> 4 S  1000   453     1  2  80   0 - 18898 poll_s ?        00:00:05
> swift-account-
> 4 S  1000   454     1  0  80   0 - 17673 poll_s ?        00:00:00
> swift-object-u
> 1 S  1000   496   447  0  80   0 - 17715 poll_s ?        00:00:00
> swift-object-a
> 4 R     0   540   431  0  80   0 -  1712 -      lxc/console 00:00:00 ps
>
> On 12 February 2013 14:06, Razique Mahroua <razique.mahroua@xxxxxxxxx>wrote:
>
>> Hi,
>> it's like the address you are trying to bind to either doesn't exist or
>> the ports are already assigned.
>> Can you provide us more infos on the setup?
>> thanks
>>
>> *Razique Mahroua** - **Nuage & Co*
>> razique.mahroua@xxxxxxxxx
>> Tel : +33 9 72 37 94 15
>>
>> <NUAGECO-LOGO_logo_complet.gif>
>>
>> Le 12 févr. 2013 à 09:30, Sujay M <sujay.m17@xxxxxxxxx> a écrit :
>>
>> Hi all,
>>
>> When i try to start the storage node I'm getting this error. Please help
>> me resolve it
>> root@vm2:~# swift-init all restart
>> Signal container-updater  pid: 298  signal: 15
>> Signal account-auditor  pid: 301  signal: 15
>> Signal object-replicator  pid: 297  signal: 15
>> No proxy-server running
>> Signal container-replicator  pid: 295  signal: 15
>> Signal object-auditor  pid: 302  signal: 15
>> No object-expirer running
>> Signal container-auditor  pid: 294  signal: 15
>> Signal container-server  pid: 530  signal: 15
>> No container-server running
>> Signal account-server  pid: 531  signal: 15
>> No account-server running
>> Signal account-reaper  pid: 304  signal: 15
>> Signal container-sync  pid: 448  signal: 15
>> Signal account-replicator  pid: 305  signal: 15
>> Signal object-updater  pid: 296  signal: 15
>> Signal object-server  pid: 532  signal: 15
>> No object-server running
>> container-updater (298) appears to have stopped
>> account-replicator (305) appears to have stopped
>> container-sync (448) appears to have stopped
>> object-updater (296) appears to have stopped
>> object-replicator (297) appears to have stopped
>> container-replicator (295) appears to have stopped
>> account-reaper (304) appears to have stopped
>> container-auditor (294) appears to have stopped
>> object-auditor (302) appears to have stopped
>> account-auditor (301) appears to have stopped
>> Starting container-updater...(/etc/swift/container-server.conf)
>> Starting account-auditor...(/etc/swift/account-server.conf)
>> Starting object-replicator...(/etc/swift/object-server.conf)
>> Unable to locate config for proxy-server
>> Starting container-replicator...(/etc/swift/container-server.conf)
>> Starting object-auditor...(/etc/swift/object-server.conf)
>> Unable to locate config for object-expirer
>> Starting container-auditor...(/etc/swift/container-server.conf)
>> Starting container-server...(/etc/swift/container-server.conf)
>> Starting account-server...(/etc/swift/account-server.conf)
>> Starting account-reaper...(/etc/swift/account-server.conf)
>> Starting container-sync...(/etc/swift/container-server.conf)
>> Starting account-replicator...(/etc/swift/account-server.conf)
>> Starting object-updater...(/etc/swift/object-server.conf)
>> Starting object-server...(/etc/swift/object-server.conf)
>> Traceback (most recent call last):
>>   File "/usr/bin/swift-container-server", line 22, in <module>
>>     run_wsgi(conf_file, 'container-server', default_port=6001, **options)
>>   File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 117,
>> in run_wsgi
>>     sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
>>   File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 73,
>> in get_socket
>>     family=address_family)
>>   File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line
>> 38, in listen
>>     sock.bind(addr)
>>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>>     return getattr(self._sock,name)(*args)
>> socket.error: [Errno 99] Cannot assign requested address
>>
>> Traceback (most recent call last):
>>   File "/usr/bin/swift-account-server", line 22, in <module>
>>     run_wsgi(conf_file, 'account-server', default_port=6002, **options)
>>   File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 117,
>> in run_wsgi
>>     sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
>>   File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 73,
>> in get_socket
>>     family=address_family)
>>   File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line
>> 38, in listen
>>     sock.bind(addr)
>>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>>     return getattr(self._sock,name)(*args)
>> socket.error: [Errno 99] Cannot assign requested address
>>
>> Traceback (most recent call last):
>>   File "/usr/bin/swift-object-server", line 22, in <module>
>>     run_wsgi(conf_file, 'object-server', default_port=6000, **options)
>>   File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 117,
>> in run_wsgi
>>     sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
>>   File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 73,
>> in get_socket
>>     family=address_family)
>>   File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line
>> 38, in listen
>>     sock.bind(addr)
>>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>>     return getattr(self._sock,name)(*args)
>> socket.error: [Errno 99] Cannot assign requested address
>>
>>
>> --
>> Best Regards,
>>
>> Sujay M
>> Final year B.Tech
>> Computer Engineering
>> NITK Surathkal
>>
>> contact: +918971897571
>>  _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>>
>
>
> --
> Best Regards,
>
> Sujay M
> Final year B.Tech
> Computer Engineering
> NITK Surathkal
>
> contact: +918971897571
>
>
>


-- 
Best Regards,

Sujay M
Final year B.Tech
Computer Engineering
NITK Surathkal

contact: +918971897571

JPEG image


Follow ups

References