# Exception: “tryton” is not a Tryton database

**URL:** <https://discuss.tryton.org/t/exception-tryton-is-not-a-tryton-database/4009>\
**Category:** System Administrator\
**Created:** [April 5, 2021, 12:33pm UTC](https://discuss.tryton.org/t/exception-tryton-is-not-a-tryton-database/4009 "2021-04-05T12:33:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MDves](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@MDves](https://discuss.tryton.org/u/MDves)\
**Post date:** [April 5, 2021, 12:33pm UTC](https://discuss.tryton.org/t/exception-tryton-is-not-a-tryton-database/4009/1 "2021-04-05T12:33:13Z")

</div>

Ubuntu 20.04  
Tryton 5.0.17 (Installed from Ubuntu repositoryes)

On system user ‘tryton’ is created.  
On postgre server role ‘tryton’ is created with database ‘tryton’ and pwd ‘trypw’.

/etc/tryton/trytond.conf

> path = /var/lib/tryton  
> uri = postgresql://tryton:trypw@localhost:5432/

/etc/postgresql/13/main/pg\_hba.conf

> local set to md5

```auto
sudo -u tryton trytond-admin -c /etc/tryton/trytond.conf -d tryton -–all

```

```auto
Traceback (most recent call last):
  File "/usr/bin/trytond-admin", line 21, in <module>
    admin.run(options)
  File "/usr/lib/python3/dist-packages/trytond/admin.py", line 34, in run
    raise Exception('"%s" is not a Tryton database.' % db_name)
Exception: "tryton" is not a Tryton database.

```

Same result with SQLite (empty database file created /var/lib/tryton/tryton.sqlite)

---

<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:** [April 5, 2021, 10:13pm UTC](https://discuss.tryton.org/t/exception-tryton-is-not-a-tryton-database/4009/3 "2021-04-05T22:13:56Z")

</div>

It looks like the `--all` option is not correctly passed to `trytond-admin`.  
The exception line 34 is raised when a database is passed as argument (but without any update) and that the database has not been initialized.

---

<div class="post-metadata">

**Author:** ![MDves](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@MDves](https://discuss.tryton.org/u/MDves)\
**Post date:** [April 7, 2021, 10:27am UTC](https://discuss.tryton.org/t/exception-tryton-is-not-a-tryton-database/4009/4 "2021-04-07T10:27:54Z")

</div>

Thank you, Cédric  
Is there any solution? I have tried it on different system with same result.

Is there any recent, step by step and, most importantly, complete guide to install, configure and run Tryton server and configure and run client on Linux system?  
This would have helped the small associations without a qualified IT personal to try this software.  
Thanks again for your time

---

<div class="post-metadata">

**Author:** ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)\
**Post date:** [April 7, 2021, 10:42am UTC](https://discuss.tryton.org/t/exception-tryton-is-not-a-tryton-database/4009/5 "2021-04-07T10:42:17Z")

</div>

> [@MDves](#):
>
> Is there any solution? I have tried it on different system with same result.

Are you copying and pasting this line?

> [@MDves](#):
>
> `sudo -u tryton trytond-admin -c /etc/tryton/trytond.conf -d tryton -–all`

The two dashes before the `all` look like they are different characters. The first dash looks like a normal dash, but the second dash looks longer like a n-dash.

They both must be [Hyphen-minus - Wikipedia](https://en.wikipedia.org/wiki/Hyphen-minus) characters.

---

<div class="post-metadata">

**Author:** ![MDves](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@MDves](https://discuss.tryton.org/u/MDves)\
**Post date:** [April 12, 2021, 2:35pm UTC](https://discuss.tryton.org/t/exception-tryton-is-not-a-tryton-database/4009/7 "2021-04-12T14:35:53Z")

</div>

Thank you David  
You are absolutely wright - this was an error on characters in ’ -–all’. I have copied it from internet and did not notice the mistake.  
Will be a lesson for me.  
Thank you again

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [May 12, 2021, 2:35pm UTC](https://discuss.tryton.org/t/exception-tryton-is-not-a-tryton-database/4009/8 "2021-05-12T14:35:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
