* Shaifali Agrawal: " Re: [tryton] [Errno -2] Name or service not known" (Sat,
  15 Mar 2014 03:41:24 -0700 (PDT)):

> > > 3./etc/init.d/tryton-server restart # Here getting* error*, but start 
> > works 
> > > for me instead restart 
> > > 
> > >  following 4 and 5 are optional,  I tried to execute them too 
> > > 
> > > 4. sudo su - postgres -c "createdb --encoding=UNICODE --owner=tryton 
> > > tryton"   #Worked 
> > > 5. sudo /usr/bin/trytond -i all -d tryton    *# 
> > > Error:*psycopg2.OperationalError: FATAL:  role "root" does not exist 
> > > 
> >
> 
> This time getting "  psycopg2.OperationalError: FATAL:  Peer authentication 
> failed for user "tryton"  " Error.  It means postgres ask for peer 
> authentication which is failed. 

If you don't want peer authentication, set db_host (and db_port) together with
db_user and db_password.

>But in my pg_hba.conf file there is md5 not 
> peer like this:  
> 
> # TYPE DATABASE USER ADDRESS METHOD
> local  all      all          md5

Allows local connections. Are Postgres and Tryton server on the same host?
 
> Again when I try to open tryton using terminal getting Error-2 Name or
> service not known.
> 
> Is it a problem with server/localhost because on my local host I have already
> installed phpmyAdmin.

...which is for MySQL.

-- 

    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