Hi
I am having a spot od trouble trying to install Tryton in a jail on
FreeBSD 11 Trytond 4.4.0 installed via pip Python 2.7.13
# uname -a
FreeBSD jtryton42.network 11.0-STABLE FreeBSD 11.0-STABLE #2 r317644:
Mon May 1 11:43:03 EDT 2017
tryton -v
INFO:tryton.rpc:wizard.ir.module.activate_upgrade.execute(6, {u'start':
{u'module_info': u'account: to activate\naccount_deposit: to
activate\naccount_invoice: to activate\naccount_invoice_history: to
activate\naccount_invoice_line_standalone: to
activate\naccount_invoice_stock: to activate\naccount_payment: to
activate\naccount_payment_clearing: to activate\naccount_product: to
activate\naccount_statement: to activate\naccount_tax_rule_country: to
activate\nanalytic_account: to activate\nanalytic_invoice: to
activate\nanalytic_purchase: to activate\nanalytic_sale: to
activate\nauthentication_sms: to upgrade\nbank: to activate\ncarrier:
to activate\ncompany: to activate\ncompany_work_time: to
activate\ncountry: to upgrade\ncurrency: to upgrade\ncustoms: to
activate\ndashboard: to upgrade\ngoogle_maps: to upgrade\nir: to
upgrade\nparty: to upgrade\nparty_relationship: to
upgrade\nparty_siret: to activate\nparty_vcarddav: to
activate\nproduct: to activate\nproduct_classification: to
activate\nproduct_classification_taxonomic: to
activate\nproduct_cost_fifo: to activate\nproduct_cost_history: to
activate\nproduct_measurements: to activate\nproduct_price_list: to
activate\nproduction: to activate\nproduction_routing: to
activate\nproduction_work: to activate\nproduction_work_timesheet: to
activate\nproject: to activate\nproject_invoice: to
activate\nproject_plan: to activate\nproject_revenue: to
activate\npurchase: to activate\npurchase_invoice_line_standalone: to
activate\npurchase_shipment_cost: to activate\nres: to upgrade\nsale:
to activate\nsale_price_list: to activate\nstock: to
activate\ntimesheet: to activate\ntimesheet_cost: to activate\nwebdav:
to upgrade', 'id': -2}}, u'upgrade', {u'language': u'en', u'groups':
[1, 3, 2, 4], 'active_model': u'ir.ui.menu', u'language_direction':
u'ltr', 'active_ids': [42], 'active_id': 42, 'action_id': 45})
ERROR:tryton.common.common:Traceback (most recent call last): File
"/site-packages/trytond/wsgi.py", line 47, in dispatch_request return
endpoint(request, **request.view_args) File
"/site-packages/trytond/protocols/dispatcher.py", line 41, in rpc
request, database_name, *request.rpc_params) File
"/site-packages/trytond/wsgi.py", line 39, in auth_required return
wrapped(*args, **kwargs) File
"/site-packages/trytond/protocols/wrappers.py", line 105, in wrapper
return func(request, pool, *args, **kwargs) File
"/site-packages/trytond/protocols/dispatcher.py", line 162, in
_dispatch result = rpc.result(meth(*c_args, **c_kwargs)) File
"/site-packages/trytond/wizard/wizard.py", line 287, in execute return
wizard._execute(state_name) File
"/site-packages/trytond/wizard/wizard.py", line 318, in _execute result
= self._execute(transition()) File
"/site-packages/trytond/ir/module.py", line 581, in transition_upgrade
pool.init(update=update, lang=lang) File
"/site-packages/trytond/pool.py", line 155, in init lang=lang) File
"/site-packages/trytond/modules/__init__.py", line 456, in load_modules
_load_modules() File "/site-packages/trytond/modules/__init__.py", line
421, in _load_modules load_module_graph(graph, pool, update, lang) File
"/site-packages/trytond/modules/__init__.py", line 244, in
load_module_graph cls.__register__(module) File
"/site-packages/trytond/modules/party_vcarddav/party.py", line 39, in
__register__ table.add_raw_column('uuid', AttributeError:
'TableHandler' object has no attribute 'add_raw_column'
'TableHandler' object has no attribute 'add_raw_column'
And it locks up the desktop requiring a reboot.
postgresql96-server-9.6.2
log
May 2 12:15:06 jtryton42 postgres[3647]: [3-1] ERROR: could not
serialize access due to concurrent update May 2 12:15:06 jtryton42
postgres[3647]: [3-2] STATEMENT: UPDATE "ir_session" SET "write_uid" =
0, "write_date" = CURRENT_TIMESTAMP WHERE (("ir_session"."id" IN (2 )))
I am not sure if this is correct. I have cobbled trytond.conf together from
various sources. I could not find any documentation from the pip
install.
Also
pidfile = /var/run/trytond/trytond.pid
logfile = /var/log/trytond/trytond.log
seems not to work. I am not sure why. The rc.d needs this info in order
to start, but I see no data in these locations The database
intialization at /usr/local/bin/trytond-admin
-c /usr/local/etc/trytond.conf -d trytondb --all worked with no
apparent errors
/usr/local/etc/trytond.conf
[web]
# Defines a comma separated list of couple of host (or IP address) and
port # number separeted by a colon to listen on.
listen = *:8000
[hostname]
# Defines the hostname for this network interface
hostname = jtryton42.network
[root]
# Defines the root path to retrieve data for `GET` request
root = /usr/local/www/tryton-sao
[database]
# Contains the URI to connect to the SQL database. The URI follows the
# RFC-3986_.
# database://username:password@host:port/db_name
# sqlite
# mysql
# PostgreSQL via Unix domain sockets
# (e.g. PostgreSQL database running on the same machine (localhost))
uri = postgresql://tryton:password@/
#
# PostgreSQL via TCP/IP
#uri = postgresql://tryton:[email protected]:5432/
[path]
# The directory where Tryton should store files.
path = /var/db/trytond
[logconf]
logconf = /usr/local/etc/trytond_log.conf
# Configure the path of the files for the pid and the logs needed for
rc.d pidfile = /var/run/trytond/trytond.pid
logfile = /var/log/trytond/trytond.log
[list]
# A boolean value (default: `True`) to list available databases.
list = True
[retry]
# The number of retries when a database operation error occurs during a
# request.
retry = 5
[language]
# The main language (default: `en_US`) of the database that will be
stored in
[model]
#The number of different model kept in the cache per transaction.
model = 200
[record]
#The number of record loaded kept in the cache of the list. It can be
changed loc [field]
#The number of field to load with an eager Field.loading.
field = 100
[table]
#This section allows to override the default generated table name for a
ModelSQL. The #main goal is to bypass limitation on the name length of
the database backen d. For #example:
account.invoice.line = acc_inv_line
account.invoice.tax = acc_inv_tax
[ssl]
# openssl req -new -x509 -keyout server.key -out server.pem -days 3650
-nodes #privatekey = /home/administrator/cert/server.key
#certificate = /home/administrator/cert/server.pem
[email]
# The SMTP-URL_ to connect to the SMTP server which is extended to
support SSL_ # and STARTTLS_
# The available protocols are:
# - `smtp`: simple SMTP
# - `smtp+tls`: SMTP with STARTTLS_
# - `smtps`: SMTP with SSL
#uri = smtp://localhost:25
# Defines the default `From` address when Tryton send emails.
#from =
[session]
[authentications]
#A comma separated list of login methods to use to authenticate the
user. By defa ult, #Tryton supports only the password method which
compare the password entered by the #user against a stored hash. But
other modules can define new methods (pl ease refers to #their
documentation). The methods are tested following the order of the list.
authentications = password
# The time in second before a session expires.
timeout=3600
[max_attempt]
#The maximum authentication attempt before the server answers
unconditionally Too Many #Requests for any other attempts. The counting
is done on all attempts over a period of #timeout.
max_attempt = 5
[password]
[length]
#The minimal length required for the user password.
length = 6
[forbidden]
#The path to a file containing one forbidden password per line.
[entropy]
#The ratio of non repeated characters for the user password.
entropy = 0.75
[report]
[unoconv]
#The parameters for unoconv.
unoconv = pipe,name=trytond;urp;StarOffice.ComponentContext
[attachment]
#Defines how to store the attachments
[filestore]
#A boolean value to store attachment in the FileStore.
filestore = True
[store_prefix]
#The prefix to use with the FileStore.
store_prefix = None
I apologize in advance if this post appears twice
Thanks
Geordie
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/57b5ccf9-9449-4a4c-987c-80522a3ff702%40googlegroups.com.