swauth-prep returns 500 Server Error
Hi
I'm testing the 1.3 development version of swift on a few servers I have for testing. I have read the SAIO and the "Instructions for a Multiple Server Swift Installation" pages in detail and have already installed a SAIO in a virtual machine a few weeks ago and that worked fine but now I am installing the software again in a bigger setup. I downloaded the software from the trunk last Friday. In my new multi-server setup, it seems that all of the services start up normally but when I try to execute swauth-prep to prepare the user database, I get an error like this:
$ swauth-prep -K secretkey
Auth subsystem prep failed: 500 Server Error
I have not been able to identify the problem.
The swift storage logs contain the following:
==> storage1.log <==
Apr 3 14:19:32 blazer1 object-server 192.168.51.1 - - [03/Apr/
A similar log is on 2 other storage servers that the proxy contacted.
The proxy logs show:
==> proxy.log <==
Apr 3 14:19:32 blazer1 proxy-server - - 03/Apr/
==> proxy.error <==
Apr 3 14:19:32 blazer1 proxy-server STDOUT: EXCEPTION IN handle: Traceback (most recent call last):#012 File "/home/
I killed one of the object-servers and started it manually with strace to see what syscalls it was calling. Here is an strace of what the object-server is doing when it gets the command from the proxy:
[pid 5772] accept(4, {sa_family=AF_INET, sin_port=
[pid 5772] fcntl64(6, F_GETFL) = 0x2 (flags O_RDWR)
[pid 5772] fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 5772] fcntl64(6, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
[pid 5772] fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 5772] gettimeofday(
[pid 5772] accept(4, 0xff99bae4, [16]) = -1 EAGAIN (Resource temporarily unavailable)
[pid 5772] gettimeofday(
[pid 5772] fcntl64(6, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
[pid 5772] fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 5772] fcntl64(6, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
[pid 5772] fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 5772] fcntl64(6, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
[pid 5772] fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 5772] fcntl64(6, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
[pid 5772] fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 5772] recv(6, "PUT /6/67951/AUTH_.auth HTTP/1.1"..., 8192, 0) = 174
[pid 5772] getsockname(6, {sa_family=AF_INET, sin_port=
[pid 5772] gettimeofday(
[pid 5772] gettimeofday(
[pid 5772] gettimeofday(
[pid 5772] gettimeofday(
[pid 5772] stat64(
[pid 5772] gettimeofday(
[pid 5772] send(5, "<150>object-server 192.168.51.1 "..., 154, 0) = 154
[pid 5772] gettimeofday(
[pid 5772] send(6, "HTTP/1.1 400 Bad Request\
[pid 5772] gettimeofday(
[pid 5772] gettimeofday(
[pid 5772] stat64(
[pid 5772] recv(6, "", 8192, 0) = 0
[pid 5772] shutdown(6, 2 /* send and receive */) = 0
[pid 5772] close(6) = 0
[pid 5772] poll([{fd=4, events=
I'm running the latest Debian on the servers. It seems that the object-server is rejecting the request immediately. The config for the object-server is here:
[DEFAULT]
devices = /srv/swift_1
mount_check = false
bind_ip = 192.168.51.1
bind_port = 6010
user = swift
log_facility = LOG_LOCAL2
[pipeline:main]
pipeline = object-server
[app:object-server]
use = egg:swift#object
[object-replicator]
[object-updater]
[object-auditor]
The devices under /srv/swift_1/ are named simply "1", "2" and up to "6". What could be the reason for the 400 error from the object-servers?
[ Edits below]
I have a very similar issue, which differs only in the path being accessed.
Apr 26 16:48:39 d00-0c-29-14-30-92 proxy-server STDOUT: EXCEPTION IN handle: Traceback (most recent call last):#012 Fil
e "/usr/lib/
t(req)(env, start_response)#012 File "/usr/lib/
dle_request#012 req.response = handler(req)#012 File "/usr/lib/
(note the /sdb1 path)
All 3 servers (container, account and object) are running on the same nodes. disks are mounted on /srv/node/sdb1. I verified that the ports in the ring file are correct
account ring output
The minimum number of hours before a partition can be reassigned is 1
Devices: id zone ip address port name weight partitions balance meta
4 1 192.168.124.130 6000 sdb1 100.00 131072 0.00
5 1 192.168.124.132 6000 sdb1 100.00 131072 0.00
Any pointers?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- gholt
- Solved:
- Last query:
- Last reply: