# Can't activate new modules (Debian)

**URL:** <https://discuss.tryton.org/t/cant-activate-new-modules-debian/1311>\
**Category:** User\
**Created:** [April 10, 2019, 2:42pm UTC](https://discuss.tryton.org/t/cant-activate-new-modules-debian/1311 "2019-04-10T14:42:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamBull](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@SamBull](https://discuss.tryton.org/u/SamBull)\
**Post date:** [April 10, 2019, 2:42pm UTC](https://discuss.tryton.org/t/cant-activate-new-modules-debian/1311/1 "2019-04-10T14:42:30Z")

</div>

I’ve installed Tryton 5.0 with the Debian package in buster, and manually installed the web interface. I then installed the accounts module with:

```
apt install tryton-modules-account
sudo -u tryton trytond-admin -c /etc/tryton/trytond.conf -d tryton --update-modules-list

```

The modules appear in the admin, and I marked it for activation. After clicking ‘Perform pending activations’, I get a message saying that the modules activated successfully and a tab opens up saying that module configuration is complete.

Then the page reloads, and nothing has changed. The modules are still marked for activation, and I can repeat the process of activating them as many times as I like, with no results. I see no errors in any of the logs, no indication that anything is failing.

---

<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 10, 2019, 3:01pm UTC](https://discuss.tryton.org/t/cant-activate-new-modules-debian/1311/2 "2019-04-10T15:01:36Z")

</div>

For me, it seems related to [Connection closed every couple of minutes](https://discuss.tryton.org/t/connection-closed-every-couple-of-minutes/1309) if the connection is not commit nothing can be stored.

---

<div class="post-metadata">

**Author:** ![SamBull](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@SamBull](https://discuss.tryton.org/u/SamBull)\
**Post date:** [April 10, 2019, 3:10pm UTC](https://discuss.tryton.org/t/cant-activate-new-modules-debian/1311/3 "2019-04-10T15:10:50Z")

</div>

Hmm, but that error didn’t appear while activating, so I assumed it to be unrelated.

---

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [April 10, 2019, 3:23pm UTC](https://discuss.tryton.org/t/cant-activate-new-modules-debian/1311/4 "2019-04-10T15:23:42Z")

</div>

In such a situation I’m doing a manual update. Because Tryton knows which modules should be installed.

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

```

Using `-v` will give you more information what is going on adn `--all` updates everything in the database. It can be a wrong configured module or something.

---

<div class="post-metadata">

**Author:** ![SamBull](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@SamBull](https://discuss.tryton.org/u/SamBull)\
**Post date:** [April 10, 2019, 3:47pm UTC](https://discuss.tryton.org/t/cant-activate-new-modules-debian/1311/5 "2019-04-10T15:47:59Z")

</div>

Running that command has successfully activated the modules. If the web interface is failing due to the DB timeout, then there should probably be some better error handling, rather than a success message when it’s not actually done anything.
