Muchas gracias por responder Leonardo,
Más información:
Ejecuto tryton desde virtualenv
He instalado eprdbcopy tanto en el ambiente base como en ambiente donde
tengo tryton
Si ejecuto desde el terminal erpdbcopy como root desde el ambiente base si
funciona y genera la base de datos _test
Si lo ejecuto desde un usuario linux normal no funciona ni en el ambiente
base ni en de tryton, en ambos me da este error:
Traceback (most recent call last):
File "/usr/local/bin/erpdbcopy", line 100, in <module>
options = parse_arguments(sys.argv)
File "/usr/local/bin/erpdbcopy", line 85, in parse_arguments
filename=LOG, level=logging.INFO)
File "/usr/lib/python2.7/logging/__init__.py", line 1532, in basicConfig
hdlr = FileHandler(filename, mode)
File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/erpdbcopy.log'
El viernes, 22 de agosto de 2014 18:24:26 UTC+2, Leonardo Ortega Hernandez
escribió:
>
> sube el archivo trytond.conf y muestra la lista de los usuarios postgres
>
>
>> Lista de roles
Nombre de rol | Atributos | Miembro
de
---------------+-------------------------------------------------+------------
erpdbcopy | Superusuario, Crear BD +| {}
| Constraseña válida hasta 2014-08-22 00:00:00+00 |
openerp | Crear BD | {}
postgres | Superusuario, Crear rol, Crear BD | {}
tryton | Crear BD | {}
trytond.conf
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
[options]
# Activate the json-rpc protocol
jsonrpc = localhost:8000
#ssl_jsonrpc = False
# This is the hostname used when generating tryton URI
#hostname_jsonrpc =
# Configure the path of json-rpc data
#jsondata_path = /var/www/localhost/tryton
# Activate the xml-rpc protocol
#xmlrpc = *:8069
#ssl_xmlrpc = False
# Activate the webdav protocol
#webdav = *:8080
#ssl_webdav = False
# This is the hostname used when generating WebDAV URI
#hostname_webdav =
# Configure the database type
# allowed values are postgresql, sqlite, mysql
#db_type = postgresql
# Configure the database connection
## Note: Only databases owned by db_user will be displayed in the
connection dialog
## of the Tryton client. db_user must have create permission for new
databases
## to be able to use automatic database creation with the Tryton client.
db_host = localhost
db_port = 5432
db_user = tryton
db_password = fani
#db_host = False
#db_port = False
#db_user = False
#db_password = False
#db_minconn = 1
#db_maxconn = 64
# Configure the postgresql path for the executable
#pg_path = None
# Configure the Tryton server password
#admin_passwd = admin
# Configure the path of the files for the pid and the logs
#pidfile = False
#logfile = False
#privatekey = server.pem
#certificate = server.pem
# Configure the SMTP connection
#smtp_server = localhost
#smtp_port = 25
#smtp_ssl = False
#smtp_tls = False
#smtp_password = False
#smtp_user = False
#smtp_default_from_email = False
# Configure the path to store attachments and sqlite database
#data_path = /var/lib/trytond
# Allow to run more than one instance of trytond
#multi_server = False
# Configure the session timeout (inactivity of the client in sec)
#session_timeout = 600
# Enable auto-reload of modules if changed
#auto_reload = True
# Prevent database listing
#prevent_dblist = False
# Enable cron
# cron = True
# unoconv connection
#unoconv = pipe,name=trytond;urp;StarOffice.ComponentContext
# Number of retries on database operational error
# retry = 5
# Default language code
# language = en_US
erpdbcopy_user: root
erpdbcopy_server: localhost
erpdbcopy_port: 22