<div dir="ltr"><div>you need to add the proxy-logging middleware, see swift's default proxy-server.conf <a href="https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample">https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample</a><br>

<br></div>Chmouel.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 4, 2013 at 10:37 AM, Andrey V. Romanchev <span dir="ltr"><<a href="mailto:andrey.romanchev@gmail.com" target="_blank">andrey.romanchev@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>[pipeline:main]<br>pipeline = catch_errors healthcheck cache authtoken keystone proxy-server<br><br>

</div>How to add log messages to middleware components?<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/2/1 David Goetz <span dir="ltr"><<a href="mailto:david.goetz@rackspace.com" target="_blank">david.goetz@rackspace.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I'm sorry- I didn't read that part about the proxy restart :)  The proxy may not log if it gets hung up in some middleware. What middleware do you have running?  You can try adding in some log messages into the middleware you have running to find out where.<br>



<br>
<br>
On Feb 1, 2013, at 1:37 PM, David Goetz wrote:<br>
<br>
> Sounds like swift isn't listening on that port. What is the bind_port in your proxy-server.conf?<br>
><br>
><br>
> On Feb 1, 2013, at 12:53 PM, Andrey V. Romanchev wrote:<br>
><br>
>> Hello!<br>
>> I've installed swift + keystone and have incomprehensible problem<br>
>><br>
>> First of all I get auth tokens<br>
>> curl -d '{"auth": {"tenantName": "service", "passwordCredentials":{"username": "swift", "password": "swiftpass"}}}' -H "Content-type: application/json" http://<host>:5000/v2.0/tokens | python -mjson.tool<br>



>><br>
>> This command works fine, I get token id and publicURL<br>
>><br>
>> Then<br>
>> curl -H "X-AUTH-TOKEN: cf1d44080a184e6c8f94e3fe52e89d48" http://<host>:8888/v1/AUTH_b74d4d57b1f5473bb2d8ffe5110a3d5a<br>
>><br>
>> This command just hangs and that's all. No swift logs, no response.<br>
>> If I restart proxy server, I get on client side<br>
>> curl: (56) Recv failure: Connection reset by peer<br>
>><br>
>> I've completely stuck here. I even turned on debug logs in swift-proxy - no result as well.<br>
>> Is there any possibility to understand what's wrong?<br>
>> _______________________________________________<br>
>> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>> Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
>> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
><br>
><br>
> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>