# Unable to init server: Could not connect: Connection refused

**URL:** https://discuss.tryton.org/t/unable-to-init-server-could-not-connect-connection-refused/4609
**Category:** User
**Created:** [September 10, 2021, 9:28am UTC](https://discuss.tryton.org/t/unable-to-init-server-could-not-connect-connection-refused/4609 "2021-09-10T09:28:55Z")
**Posts on this page:** 6
**Page:** 2

<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: [September 10, 2021, 1:24pm UTC](https://discuss.tryton.org/t/unable-to-init-server-could-not-connect-connection-refused/4609/21 "2021-09-10T13:24:09Z")

</div>

> [@Caroline](#):
>
> But this is my old version 5.0 , previously it works normally

I see, I think you have to downgrade or upgrade the `csb43` package with  
`pip install --upgrade csb43==<package version>`  
You can look at the history at [csb43 · PyPI](https://pypi.org/project/csb43/#history) , choose a version and try again. That’s the nice thing of `pip` 😄

> [@Caroline](#):
>
> so should i install again trytond version 5.0!

No, it’s a problem with your `csb43` package.

---

<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: [September 10, 2021, 1:40pm UTC](https://discuss.tryton.org/t/unable-to-init-server-could-not-connect-connection-refused/4609/22 "2021-09-10T13:40:19Z")

</div>

> [@edbo](#):
>
> No, it’s a problem with your `csb43` package.

Which may have been fixed here: [Bitbucket](https://bitbucket.org/wmj/csb43/commits/9ce13546699c448b7eb7e9f3b898171f704af9c3)

Which would suggest you need to be using a version of csb43 \>= 0.8.2

---

<div class="post-metadata">

### Author: ![Caroline](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/ba8739/32.png) [@Caroline](https://discuss.tryton.org/u/Caroline)
#### Post date: [September 10, 2021, 2:15pm UTC](https://discuss.tryton.org/t/unable-to-init-server-could-not-connect-connection-refused/4609/23 "2021-09-10T14:15:08Z")

</div>

> [@edbo](#):
>
> You can look at the history at [csb43 · PyPI](https://pypi.org/project/csb43/#history) , choose a version and try again. That’s the nice thing of `pip`

> [@dave](#):
>
> Which may have been fixed here: [wmj / csb43 / commit / 9ce13546699c — Bitbucket](https://bitbucket.org/wmj/csb43/commits/9ce13546699c448b7eb7e9f3b898171f704af9c3)

Thanks M.@edbo and M. @dave i have solve it \<3 and now after update the database it goes normally and no errors.  
But there was a thing i would to verify it, when i type `trytond --version` and `tryton --version` it gives me `command not found` in the virtual environment` 5.0`

If yes ,i want now to complete installing tryton version 6.0 in my another virtual environment so i have gone to the virtual enironment by` (workon project_tryton6.0)`where i already i have installed 6.0.0 this morning , but now when i put` trytond-admin -vv -c trytond.conf -d database_tryton6 --all`

Here it gives me `-bash: trytond-admin: command not found`,

This command become not workfull after uninstalling tryton globally, so  
should i reinstall tryton 6.0 or what i should do !!

---

<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: [September 10, 2021, 2:19pm UTC](https://discuss.tryton.org/t/unable-to-init-server-could-not-connect-connection-refused/4609/24 "2021-09-10T14:19:54Z")

</div>

I would normally install Tryton with the `pip` command, so in order to do that:

- go into your virtual environment
- activate it!
- `pip install trytond` (you are installing the most recent version, so no versioning is needed
- `pip install trytond-<module-name>` for every module you want to install

If you have installed Tryton the same as in your other virtual environment, use the same commands.

---

<div class="post-metadata">

### Author: ![Caroline](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/ba8739/32.png) [@Caroline](https://discuss.tryton.org/u/Caroline)
#### Post date: [September 10, 2021, 2:34pm UTC](https://discuss.tryton.org/t/unable-to-init-server-could-not-connect-connection-refused/4609/25 "2021-09-10T14:34:20Z")

</div>

> [@edbo](#):
>
> - go into your virtual environment
> - activate it!

Just for verifying about those two steps,so then i don’t complicate things for me;

Here in my linux server you mean should i do :

`workon projecttryton6.0` (to go to the virtual environment)

and then

`. bin/activate`

and after that i type `pip install trytond`

---

<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: [September 10, 2021, 2:39pm UTC](https://discuss.tryton.org/t/unable-to-init-server-could-not-connect-connection-refused/4609/26 "2021-09-10T14:39:41Z")

</div>

> [@Caroline](#):
>
> > [@edbo](#):
> >
> > - go into your virtual environment
> > 
> > > - activate it!
> 
> Just for verifying about those two steps,so then i don’t complicate things for me;
> 
> Here in my linux server you mean should i do :
> 
> `workon projecttryton6.0` (to go to the virtual environment)

I don’t know what you mean with `workon projecttryton6.0` Is this a command?

Imagine your virtual environment lives in `/home/caroline/venv/projecttryton6.0/`:

- cd into it `cd /home/caroline/venv/projecttryton6.0/`
- activate it `. bin/activate`

And now you can do everything you want with Python. It should stay in that virtual environment.

[Previous page](https://discuss.tryton.org/t/unable-to-init-server-could-not-connect-connection-refused/4609.md?page=1)
