# Trytond.conf is not working with 5.0 version

**URL:** https://discuss.tryton.org/t/trytond-conf-is-not-working-with-5-0-version/840
**Category:** User
**Created:** [October 30, 2018, 2:29am UTC](https://discuss.tryton.org/t/trytond-conf-is-not-working-with-5-0-version/840 "2018-10-30T02:29:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![julio](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/7ba0ec/32.png) [@julio](https://discuss.tryton.org/u/julio)
#### Post date: [October 30, 2018, 2:29am UTC](https://discuss.tryton.org/t/trytond-conf-is-not-working-with-5-0-version/840/1 "2018-10-30T02:29:26Z")

</div>

I executed the next command:

trytond - c /etc/tryton/trytond.conf -v

Then this is the error message:

3071 140369512281920 [2018-10-30 01:42:55,395] INFO trytond.config using /etc/tryton/trytond.conf as configuration files  
3071 140369512281920 [2018-10-30 01:42:55,560] INFO trytond.modules ir:registering classes  
3071 140369512281920 [2018-10-30 01:42:55,560] INFO trytond.modules res:registering classes  
3071 140369512281920 [2018-10-30 01:42:55,560] INFO trytond.modules country:registering classes  
3071 140369512281920 [2018-10-30 01:42:55,560] INFO trytond.modules currency:registering classes  
3071 140369512281920 [2018-10-30 01:42:55,561] INFO trytond.modules test:registering classes  
3071 140369512281920 [2018-10-30 01:42:55,561] INFO trytond.modules party:registering classes  
3071 140369512281920 [2018-10-30 01:42:55,565] INFO trytond.modules company:registering classes  
3071 140369512281920 [2018-10-30 01:42:55,566] INFO trytond.modules account:registering classes  
Traceback (most recent call last):  
File “/home/julio/.virtualenvs/tryton-5.0/bin/trytond”, line 47, in   
use\_reloader=options.dev)  
File “/home/julio/.virtualenvs/tryton-5.0/lib/python3.6/site-packages/werkzeug/serving.py”, line 814, in run\_simple  
inner()  
File “/home/julio/.virtualenvs/tryton-5.0/lib/python3.6/site-packages/werkzeug/serving.py”, line 774, in inner  
fd=fd)  
File “/home/julio/.virtualenvs/tryton-5.0/lib/python3.6/site-packages/werkzeug/serving.py”, line 660, in make\_server  
passthrough\_errors, ssl\_context, fd=fd)  
File “/home/julio/.virtualenvs/tryton-5.0/lib/python3.6/site-packages/werkzeug/serving.py”, line 577, in\_\_init\_\_  
self.address:family), handler)  
File “/user/lib/python3.6/socketserver.py”, line 453, in\_\_init\_\_  
self.server\_bind()  
File “/user/lib/python3.6/http/server.py”, line 136, in server\_bind  
socketserver.TCPServer.server\_bind(self)  
File “/user/lib/python3.6/socketserver.py”, line 467, in server\_bind  
self.socket.bind(self.server\_address)  
socket.gaierror: [Errno -2] Name or service not known

I’m new with tryton and i read the documentation but i can’t get any answer for the error.  
I will appreciate your help to resolve this problem.

---

<div class="post-metadata">

### Author: ![semarie](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/semarie/32/112_2.png) [@semarie](https://discuss.tryton.org/u/semarie)
#### Post date: [October 30, 2018, 5:36am UTC](https://discuss.tryton.org/t/trytond-conf-is-not-working-with-5-0-version/840/2 "2018-10-30T05:36:08Z")

</div>

including the content of your `/etc/tryton/trytond.conf`file could help. without it I could only shot in the dark.

the server address you used in the config file is unknown by the system (DNS resolution failed). So the server couldn’t bind to it and fail.

Review the [`web`](http://doc.tryton.org/projects/trytond/en/latest/topics/configuration.html#web) section of the config file. I think it is a problem with `listen` entry.

---

<div class="post-metadata">

### Author: ![nicoe](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/nicoe/32/2880_2.png) [@nicoe](https://discuss.tryton.org/u/nicoe)
#### Post date: [October 30, 2018, 8:03am UTC](https://discuss.tryton.org/t/trytond-conf-is-not-working-with-5-0-version/840/3 "2018-10-30T08:03:23Z")

</div>

> [@julio](#):
>
> socket.gaierror: [Errno -2] Name or service not known

This looks like a DNS error. Make sure the names specified in your config file resolve correctly.

---

<div class="post-metadata">

### Author: ![julio](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/7ba0ec/32.png) [@julio](https://discuss.tryton.org/u/julio)
#### Post date: [October 30, 2018, 8:43pm UTC](https://discuss.tryton.org/t/trytond-conf-is-not-working-with-5-0-version/840/4 "2018-10-30T20:43:56Z")

</div>

Thanks for yours advice, still i have the problem.  
Here is my trytond.conf I hope it is useful:

```
# /etc/tryton/trytond.conf - Configuration file for Tryton Server
# (trytond, trytond-admin, trytond-cron)
#
# This file contains the most common settings for trytond (Defaults
# are commented).
# For more information install the tryton-server-doc package and read
# /usr/share/doc/tryton-server-doc/html/index.html
# and accordingly
# /usr/share/doc/tryton-server-doc/html/topics/configuration.html

[web]
# Settings for the web interface

# The IP/host and port number of the interface
# (Internal default: localhost:8000)
#
# Listen on all interfaces (IPv4)
listen = * :8000
#
# Listen on all interfaces (IPv4 and IPv6)
#listen = [::]:8000

# The hostname for this interface
#hostname = localhost

# The root path to retrieve data for GET requests
# (i.e. namely the path to the web client)
# (Internal default: /var/www/localhost/tryton)
root = /usr/share/tryton-sao/www

[database]
# Database related settings

# The URI to connect to the SQL database (following RFC-3986)
# uri = database://username:password@host:port/
uri = postgresql://XXXXXXXX:XXXXXXXX@localhost:5432
#
# (Internal default: sqlite:// (i.e. a local SQLite database))
#
# PostgreSQL via Unix domain sockets
# (e.g. PostgreSQL database running on the same machine (localhost))
# 
#
# PostgreSQL via TCP/IP
# (e.g. connecting to a PostgreSQL database running on a remote machine or
# by means of md5 authentication. Needs PostgreSQL to be configured to accept
# those connections (pg_hba.conf).)
#uri = postgresql://tryton:XXXXXXXX@localhost:5432/

# The path to the directory where the Tryton Server stores files.
# The server must have write permissions to this directory.
# (Internal default: /var/lib/trytond)
path = /var/lib/tryton

# Shall available databases be listed in the client?
#list = True

# The number of retries of the Tryton Server when there are errors 
# in a request to the database
#retry = 5

# The primary language, that is used to store entries in translatable
# fields in the database.
#language = en

[ssl]
# SSL settings
# Activation of SSL for all available protocols.
# Uncomment the following settings for key and certificate
# to enable SSL.

# The path to the private key
#privatekey = /etc/ssl/private/ssl-cert-snakeoil.key

# The path to the certificate
#certificate = /etc/ssl/certs/ssl-cert-snakeoil.pem

[session]
# Session settings

# A comma separated list of login methods to use for user authentication.
# By default, Tryton supports only the password method which compares the
# password entered by the user against a stored hash.
# Other modules may define other methods (please refer to their documentation).
# The methods are tested following the order of the list.
#authentications = password

# The time (in seconds) until an inactive session expires
#timeout = 600
timeout = 3600

[email]
# Mail settings

# The URI to connect to the SMTP server.
# Available protocols are:
# - smtp: simple SMTP
# - smtp+tls: SMTP with STARTTLS
# - smtps: SMTP with SSL
#uri = smtp://localhost:25

# The From address used by the Tryton Server to send emails.
#from = tryton@localhost

[report]
# Report settings

# Unoconv parameters for connection to the unoconv service.
#unoconv = pipe,name=trytond;urp;StarOffice.ComponentContext

[attachment]
# Defines how to store the attachments
# A boolean value to store attachment in the FileStore.
#filestore=True

# The prefix to use with the FileStore.
#store_prefix = None

# Special Settings
[cache]
# Various cache size settings

# The number of different models kept in the cache per transaction.
#model = 200

# The number of loaded records kept in the cache. It can also be changed
# locally using the _record_cache_size key in Transaction.context.
#record = 2000

# The number of fields to load with eager Field.loading.
#field = 100

[table]
# This section allows to override the default generated table names. The main purpose
# is to bypass name length limitations of a database backend.
# Examples:
#account.invoice.line = acc_inv_line
#account.invoice.tax = acc_inv_tax

# Module settings
#
# Some modules are reading configuration parameters from this
# configuration file. These settings only apply when those modules
# are installed.
#
[ldap_authentication]
# The LDAP URL to connect to the server following RFC-2255.
#uri = ldap://host:port/dn?attributes?scope?filter?extensions
# A basic default URL could look like
#uri = ldap://localhost:389/

# The LDAP password used to bind if needed.
#bind_pass = 

# If the LDAP server is an Active Directory.
#active_directory = False

# The UID attribute for authentication.
#uid = uid

# If the user shall be created in the database in case it does not exist.
#create_user = False

[sms_authentication]
# The fully qualified name of the method to send SMS. It must take three
# arguments: text, to and from.
#
# - The sms method just sends a code via SMS to the user. This code can directly
# be used in the login dialog.
# - The password_sms method sends a code only after the user entered a valid
# password (two-factor authentication).
#
# Both methods require that the user has a *mobile* phone number defined
# otherwise he can not be authenticated with those methods.
#
# This method is required to send SMS.
#function = 

# The number from which the SMS are sent.
#from =

# The length of the generated code.
#length = 6

# The time to live for the generated codes in seconds.
#ttl = 300

# The name used in the SMS text.
#name = Tryton

[product]
# The number of decimals with which the unit prices are stored
# in the database. The default value is 4.
# Warning: This setting can not be lowered once a database is created.
#price_decimal = 4

[webdav]
# Settings for the webdav interface
# The IP/host and port number of the interface
# (Internal default: localhost:8080)
listen = localhost:8080
# Listen on all interfaces (IPv4)
#listen = 192.168.1.12:8080
# Listen on all interfaces (IPv4 and IPv6)
#listen = [::]:8080

# The hostname for this interface
#hostname =

```

---

<div class="post-metadata">

### Author: ![julio](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/7ba0ec/32.png) [@julio](https://discuss.tryton.org/u/julio)
#### Post date: [October 30, 2018, 10:26pm UTC](https://discuss.tryton.org/t/trytond-conf-is-not-working-with-5-0-version/840/6 "2018-10-30T22:26:03Z")

</div>

Thanks Sebastien and Nicolas

Now is running fine the trytond.

I need to change:

listen = \* :8000  
by  
listen = 192.168.1.15 :8000  
Then is running

Now I need to upload the modules  
Thanks again

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 30, 2018, 10:32pm UTC](https://discuss.tryton.org/t/trytond-conf-is-not-working-with-5-0-version/840/7 "2018-10-30T22:32:36Z")

</div>

> [@julio](#):
>
> I need to change:
> 
> listen = \* :8000  
> by  
> listen = 192.168.1.15 :8000  
> Then is running

Indeed if you want to listen to all interface, the right way is to use `0.0.0.0:8000` for IPv4 and `[::]:8000` for IPv6.

---

<div class="post-metadata">

### Author: ![julio](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/7ba0ec/32.png) [@julio](https://discuss.tryton.org/u/julio)
#### Post date: [October 31, 2018, 12:49am UTC](https://discuss.tryton.org/t/trytond-conf-is-not-working-with-5-0-version/840/8 "2018-10-31T00:49:48Z")

</div>

Ok Cédric.  
I will try  
Thank you
