* Dale Scott: " Re: [tryton] no connection to trytond running in VirtualBox
  NAT" (Wed, 21 May 2014 06:50:40 -0700 (PDT)):

[...]

> edited /usr/local/pgsql/data/pg_hba.conf to allow remote access from any 
> system on my LAN,
> 
> host all all 192.168.10.0/24 md5

Since you configured md5, you need to give the tryton role in postgres a
password.

Put this password into your trytond.conf as the user password for the db user.
 
> And finally I started the Tryton client on a Win7 laptop (I double-checked 
> the client version - it's tryton-3.2.0). I entered the Profile Editor (btw, 
> the client was able to connect to demo32.tryton.org) and added my server IP 
> (192.168.10.125, port 8000) 

If you are using IPv4 addresses, better to also let trytond listen on IPv4
interface like

jsonrpc = *:8000,0.0.0.0:8000

> set but it still reports "Could not connect to 
> server" (the username in the client is set to "tryton" but I don't believe 
> that's important at this step, is that correct?).

It is important: The first user created is admin and it is this one, with which
you connect the first time (providing the password used while creating the
database).

> There were no new 
> messages in the ssh terminal session in which I invoked trytond, and no 
> messages in the log file (which I had configured in trytond.conf).
> 
> Is there any way to debug whether the connection request from the client is 
> being received by the server at all? I don't understand the stack (i.e. 
> psycopg2 et all). Is there any way to check if the connection is getting 
> through the individual components of the stack? I've been reading a lot of 
> posts, and while I haven't found anything specific, did read references to 
> whether or not the database hostname, etc. is required in trytond.conf, and 
> that psycopg2 will use unix sockets by default, and wonder if this might be 
> related at all.

You can try to connect to the postgres database from your windows machine
(e.g. with pgadmin3).
 
> Any and all suggestions are appreciated, I intend to stick with this until 
> it makes sense - or I die of old age first  ;-)

Hopefully not the latter.

-- 

    Mathias Behrle
    MBSolutions
    Gilgenmatten 10 A
    D-79114 Freiburg

    Tel: +49(761)471023
    Fax: +49(761)4770816
    http://m9s.biz
    UStIdNr: DE 142009020
    PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6

Attachment: signature.asc
Description: PGP signature

Reply via email to