Hey Pablo, Are you trying to use the Erlang protobuf client on the http port? You can validate which port riak is listening to by checking for pb_port variable in your app.config[1]. By default protobuf listens on port 8087.
To resolve this we will need your app.config along with the output of netstat: # netstat -nlt [1] http://docs.basho.com/riak/latest/references/Configuration-Files/#app-config Olav 2012/12/12 Pablo Vieytes <[email protected]>: > Hi, > I'm new with Riak. I'm trying to use riak-erlang-client but I have some > problems. > > I can connect with the browser to localhost:8091 > > http://localhost:8091/ping -> ok > > But I can do a ping with the erlang client. > > 1> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8091). > {ok,<0.34.0>} > 2> riakc_pb_socket:ping(Pid). > > =ERROR REPORT==== 12-Dec-2012::15:14:40 === > ** Generic server <0.34.0> terminating > ** Last message in was {req_timeout,#Ref<0.0.0.37>} > ** When Server state == {state,"127.0.0.1",8091,false,false,undefined, > undefined, > {[],[]}, > 1,[],infinity,100} > ** Reason for termination == > ** disconnected > ** exception exit: disconnected > 3> > > > I'm using riak-1.2.1 > > > Thanks in advance. > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > -- Med Vennlig Hilsen Olav Frengstad Systemutvikler // FWT +47 920 42 090 _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
