Hi Alessand, Thanks for replying.
Can you tell me how are you launching the server. In my case I am launching it using sv utility "exec chpst -u $ORIENTDB_USER $ORIENTDB_DIR/bin/server.sh $DISTRIBUTED". It shows up in ps output as follows:- root 299 0.0 0.0 4844 336 ? Ss May10 0:00 runsv orientdb I see 2424 is in listen state:- :/home/admin# netstat -tulpn | grep 2424 tcp 0 0 0.0.0.0:2424 0.0.0.0:* LISTEN 309/java PID for port 2424/tcp is 309: :/home/admin# fuser 2424/tcp 309 This pid maps to orientd: :/home/admin# pwdx 309 309: /var/lib/orientdb/bin :/home/admin# Is there any config I need to tweak or check ? On Wednesday, May 11, 2016 at 1:45:15 AM UTC-7, [email protected] wrote: > > Hi Lerner, > I launched the server and I tried this code > > import pyorient > > db_name='python_test' > > print("connection to the server...") > client=pyorient.OrientDB("localhost",2424) > client.set_session_token(True) > session_id=client.connect("root","root") > print("OK - sessionID: ",session_id,"\n") > > client.db_open( db_name, "root", "root" ) > client.db_close() > > and it works for me. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
