Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

swift proxy server - connection reset error by peer

I have installed swift 1.4.5 on a single server and have configured proxy server with the following settings:-

root@ubuntu-test-machine:/etc/rsyslog.d# dpkg -s swift Package: swift Status: install ok installed Priority: optional Section: net Installed-Size: 308 Maintainer: Ubuntu Developers Architecture: all Version: 1.4.5~20111202.1634-0ubuntu0ppa1~maverick1

I have followed steps mentioned here to install proxy server on a single node.


[DEFAULT] cert_file = /etc/swift/cert.crt key_file = /etc/swift/cert.key bind_ip= bind_port = 8080 workers = 1 user = swift group = swift

log_facility = LOG_LOCAL0 log_level = DEBUG log_name = swift-p log_requests = true setup_console_handler = true

[pipeline:main] pipeline = healthcheck cache tempauth proxy-server

[app:proxy-server] use = egg:swift#proxy account_autocreate = true set log_name = proxy-server set log_facility = LOG_LOCAL0 set log_level = DEBUG set access_log_name = proxy-server set access_log_facility = LOG_LOCAL0 set access_log_level = DEBUG set log_requests = true

[filter:tempauth] use = egg:swift#tempauth user_admin_admin = admin .admin .reseller_admin user_test_tester = testing .admin user_test2_tester2 = testing2 .admin user_test_tester3 = testing3

[filter:healthcheck] use = egg:swift#healthcheck

[filter:cache] use = egg:swift#memcache memcache_servers =

Now if I try to send curl command to get the x-auth-token, it look likes the request is sent but the proxy server doesn't send any response. After few minutes it gives an error message "Connection reset by Peer"

root@ubuntu-test-machine:/etc/swift# curl -k -v -H 'x-auth-user: test:tester' -H 'x-auth-key: testing' * About to connect() to port 8080 (#0) * Trying connected * Connected to ( port 8080 (#0)

GET /auth/v1.0 HTTP/1.1 User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/ libidn/1.18 Host: Accept: / x-auth-user: test:tester x-auth-key: testing

There are no logs in the /var/log/messages. so I don't have any clue what is happening.

Any assistance will be greatly appreciated.