Perform a GET and get http/ 1.1 503 Internal Server Error
Hello,
I just setup swift env in my lab for testing. When i perform <curl -v -H 'X-Auth-Token: AUTH_tkadaffa35
[root@cleverloa
* 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_admin HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-
> Host: 127.0.0.1:8080
> Accept: */*
> X-Auth-Token: AUTH_tkadaffa35
>
< HTTP/1.1 503 Internal Server Error
< Content-Type: text/html; charset=UTF-8
< Content-Length: 0
< Date: Wed, 10 Jul 2013 17:59:03 GMT
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
[root@cleverloa
Thank,
Jimmy
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- jimmy
- Solved:
- 2013-07-18
- Last query:
- 2013-07-18
- Last reply:
- 2013-07-11
This question was originally filed as bug #1199928.
Kun Huang (academicgareth) said : | #1 |
There may be some config error during deployment, but bugs
jimmy (jlu) said : | #2 |
I rebuilt the rings to the correct mount points and restart all services. When perform <curl -v -H 'X-Auth-Token: AUTH_tk95a0d54e
Thank you much!!
-Jimmy
<log from 1 of the storage node>
Jul 10 23:28:54 cleverloadgen16 object-expirer Unhandled exception: #012Traceback (most recent call last):#012 File "/usr/lib/
Jul 10 23:37:36 cleverloadgen15 account-replicator Exception dumping recon cache: #012Traceback (most recent call last):#012 File "/usr/lib/
Jul 10 23:37:36 cleverloadgen15 account-replicator no_change:0 ts_repl:0 diff:0 rsync:0 diff_capped:0 hashmatch:0 empty:0
Jul 10 23:37:38 cleverloadgen15 object-server 10.218.36.76 - - [11/Jul/
Jul 10 23:37:42 cleverloadgen15 object-server 10.218.36.76 - - [11/Jul/
Jul 10 23:37:51 cleverloadgen15 object-server 10.218.36.78 - - [11/Jul/
Samuel Merritt (torgomatic) said : | #3 |
The answer is in the stack trace you posted.
Quoting: "OSError: [Errno 2] No such file or directory: '/var/cache/
Please make sure /var/cache/swift exists and is writable by the user that the Swift processes run as (probably "swift", but YMMV).
jimmy (jlu) said : | #4 |
Hi Samuel,
I had already created the file and changed the ownership to swift:swift and I don't see that error in the log.
This is my observation with the 400 bad request.
I have 5 storage nodes and 1 proxy node:
When I perform <curl -v -H "X-Auth-Token: AUTH_tk95a0d54e
What I noticed, on node3,5,6, i see these errors
node3:
Jul 11 13:44:15 cleverloadgen13 object-server 10.218.36.74 - - [11/Jul/
node5:
Jul 11 13:44:15 cleverloadgen15 object-server 10.218.36.74 - - [11/Jul/
node6:
Jul 11 13:44:15 cleverloadgen16 object-server 10.218.36.74 - - [11/Jul/
and node2 and node4 - i do not see such errors.
Thanks and appreciated for the help!!
-Jimmy
jimmy (jlu) said : | #5 |
This issue is resolved. It was due to port mismatch when building the ring and in the rsyncd.conf for *-server.conf.
Thanks,
Jimmy