You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Bernardo Elayda <be...@gmail.com> on 2010/03/15 07:06:02 UTC
Having trouble accessing couchdb via curl
Hi,
I'm using couchdb v 0.10 on Ubuntu 9.10.
Access to couchdb via a browser or driver(couchdbkit) is fine. But, I
want to be able to access it via curl. Everytime I try to do this via
an url which works in my browser, I
alwasy get 'connection refused'.
iptables are totally opened. I've also turned it off. No change.
When I checked for errors(sudo -u couchdb couchdb), there are no
errors. "netstat -tap tcp" indicates that port 5894 is open and listening.
Is there anything else I can do to get curl to work with couchdb 0.10?
tia,
Bernardo
Re: Having trouble accessing couchdb via curl
Posted by Pavan Kumar <tv...@gmail.com>.
I head couchdb runs on different port for each user in Ubuntu because of
ubuntuOne
Run "netstat -tanup" to check where couch is listening to.
On Mon, Mar 15, 2010 at 2:52 PM, Brian Candler <B....@pobox.com> wrote:
> On Sun, Mar 14, 2010 at 11:06:02PM -0700, Bernardo Elayda wrote:
> > I'm using couchdb v 0.10 on Ubuntu 9.10.
> >
> > Access to couchdb via a browser or driver(couchdbkit) is fine. But, I
> > want to be able to access it via curl. Everytime I try to do this via
> > an url which works in my browser, I
> > alwasy get 'connection refused'.
>
> I assume you're talking about the curl command-line tool, and not curl
> linked as a library into some other app or language.
>
> Tell us:
> (1) the exact URL you put into your browser
> (2) your exact curl command line and the response that comes back - using
> copy-paste.
> (3) try it again, adding '-v' to the curl command line.
>
> If the curl line is something like
> curl http://127.0.0.1:5984/
> then try 'tcpdump -i lo -n -s0 tcp port 5984' in another window (as root)
>
Re: Having trouble accessing couchdb via curl
Posted by Brian Candler <B....@pobox.com>.
On Sun, Mar 14, 2010 at 11:06:02PM -0700, Bernardo Elayda wrote:
> I'm using couchdb v 0.10 on Ubuntu 9.10.
>
> Access to couchdb via a browser or driver(couchdbkit) is fine. But, I
> want to be able to access it via curl. Everytime I try to do this via
> an url which works in my browser, I
> alwasy get 'connection refused'.
I assume you're talking about the curl command-line tool, and not curl
linked as a library into some other app or language.
Tell us:
(1) the exact URL you put into your browser
(2) your exact curl command line and the response that comes back - using
copy-paste.
(3) try it again, adding '-v' to the curl command line.
If the curl line is something like
curl http://127.0.0.1:5984/
then try 'tcpdump -i lo -n -s0 tcp port 5984' in another window (as root)