# Running trytond-admin to update custom module

**URL:** https://discuss.tryton.org/t/running-trytond-admin-to-update-custom-module/1652
**Category:** Developer
**Tags:** docker
**Created:** [August 7, 2019, 5:42pm UTC](https://discuss.tryton.org/t/running-trytond-admin-to-update-custom-module/1652 "2019-08-07T17:42:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mwl](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@mwl](https://discuss.tryton.org/u/mwl)
#### Post date: [August 7, 2019, 5:42pm UTC](https://discuss.tryton.org/t/running-trytond-admin-to-update-custom-module/1652/1 "2019-08-07T17:42:34Z")

</div>

I’m attempting to add a custom module to a stock docker tryton image for 5.2.2  
I’ve installed the module with python3 setup.py develop  
when I try to run ‘trytond-admin -d tryton -u the\_module’  
it reports

> OSError: Database “tryton.sqlite” doesn’t exist!

I don’t seem to be able to find the path of the trytond.config that has the postgres connection info in it  
How do I supply it so trytond-admin finds the correct DB?

---

<div class="post-metadata">

### Author: ![mwl](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@mwl](https://discuss.tryton.org/u/mwl)
#### Post date: [August 7, 2019, 6:36pm UTC](https://discuss.tryton.org/t/running-trytond-admin-to-update-custom-module/1652/2 "2019-08-07T18:36:00Z")

</div>

> [@mwl](#):
>
> trytond-admin -d tryton -u the\_module

This works - I misunderstood the -d switch  
trytond-admin -u edi\_test --activate-dependencies

Although,after the update my module does not appear in the modules list in sao, nor does my model appear in the list of models. No errors are reported at  
python3 setup.py develop  
or at  
trytond-admin -u edi\_test --activate-dependencies

Any ideas about why it could be missing?

---

<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: [August 7, 2019, 8:24pm UTC](https://discuss.tryton.org/t/running-trytond-admin-to-update-custom-module/1652/3 "2019-08-07T20:24:53Z")

</div>

You must use `--update-modules-list` option when you add a new module on an existing database.
