# Unable to install tryton-server on debian 10

**URL:** <https://discuss.tryton.org/t/unable-to-install-tryton-server-on-debian-10/3237>\
**Category:** Developer\
**Created:** [September 18, 2020, 3:07pm UTC](https://discuss.tryton.org/t/unable-to-install-tryton-server-on-debian-10/3237 "2020-09-18T15:07:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/simon/32/1150_2.png) [@Simon](https://discuss.tryton.org/u/Simon)\
**Post date:** [September 18, 2020, 3:07pm UTC](https://discuss.tryton.org/t/unable-to-install-tryton-server-on-debian-10/3237/1 "2020-09-18T15:07:46Z")

</div>

Hi,

I’m currently trying to install tryton-server, on a distant machine still without success, and following this as a guide:  
[http://blog.accendero.com/open-source-erp-solutions-part-four-tryton/](http://blog.accendero.com/open-source-erp-solutions-part-four-tryton/)

I had few errors during the install process, I list them below for information:

**1) when trying to install the database:**

```
root@sda-tryton:/var/www# sudo trytond-admin -c /etc/tryton/trytond.conf -d tryton --all
3178 139789022312256 [2020-09-18 14:07:02,489] ERROR trytond.convert Error while parsing xml file:
In tag record model ir.lang with id ir.lang_bg.

```

Which I solved creating a database with UTF-8 encoding:  
`CREATE DATABASE tryton WITH OWNER = postgres ENCODING = 'UTF8' TEMPLATE template0;`

Tell me if this is not recommended.

**2) with sao client install**

```
git clone https://github.com/tryton/sao.git
npm install --production
npx bower install --allow-root

```

Grunt give an error complaining about a missing library `grunt-po2json` which I solved using `npm install grunt-po2json`.

Now grunt still fail:

```
Running "default" task

Running "concat:dist" (concat) task

Running "jshint:dist" (jshint) task
>> 1 file lint free.

Running "jshint:grunt" (jshint) task
>> 1 file lint free.

Running "jshint:tests" (jshint) task
>> 1 file lint free.

Running "uglify:dist" (uglify) task
>> 1 file created 967.86 kB → 424.73 kB

Running "less:dev" (less) task
>> 1 stylesheet created.

Running "less:default" (less) task
>> src/sao.less: [L5:C0] '_tempusdominus-bootstrap-3' wasn't found. Tried - src/_tempusdominus-bootstrap-3.less,src/_tempusdominus-bootstrap-3.less,bower_components/_tempusdominus-bootstrap-3.less,bower_components/bootstrap/less/_tempusdominus-bootstrap-3.less,bower_components/bootstrap-rtl-ondemand/less/_tempusdominus-bootstrap-3.less,bower_components/eonasdan-bootstrap-datetimepicker/src/less/_tempusdominus-bootstrap-3.less,npm://_tempusdominus-bootstrap-3,npm://_tempusdominus-bootstrap-3.less,_tempusdominus-bootstrap-3.less
Warning: Error compiling src/sao.less Use --force to continue.

Aborted due to warnings.

```

Here I can’t find any working solution. Can you help?

---

<div class="post-metadata">

**Author:** ![Simon](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/simon/32/1150_2.png) [@Simon](https://discuss.tryton.org/u/Simon)\
**Post date:** [September 18, 2020, 3:22pm UTC](https://discuss.tryton.org/t/unable-to-install-tryton-server-on-debian-10/3237/2 "2020-09-18T15:22:27Z")

</div>

Ok I’ve switched to branch 5.0, and install is successful.  
But maybe this should be documented somewhere.  
What about the database encoding problem?

---

<div class="post-metadata">

**Author:** ![timitos](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/timitos/32/323_2.png) [@timitos](https://discuss.tryton.org/u/timitos)\
**Post date:** [September 18, 2020, 3:24pm UTC](https://discuss.tryton.org/t/unable-to-install-tryton-server-on-debian-10/3237/3 "2020-09-18T15:24:19Z")

</div>

> [@Simon](#):
>
> ```
> Running "less:dev" (less) task
> >> 1 stylesheet created.
> 
> Running "less:default" (less) task
> >> src/sao.less: [L5:C0] '_tempusdominus-bootstrap-3' wasn't found. Tried - src/_tempusdominus-bootstrap-3.less,src/_tempusdominus-bootstrap-3.less,bower_components/_tempusdominus-bootstrap-3.less,bower_components/bootstrap/less/_tempusdominus-bootstrap-3.less,bower_components/bootstrap-rtl-ondemand/less/_tempusdominus-bootstrap-3.less,bower_components/eonasdan-bootstrap-datetimepicker/src/less/_tempusdominus-bootstrap-3.less,npm://_tempusdominus-bootstrap-3,npm://_tempusdominus-bootstrap-3.less,_tempusdominus-bootstrap-3.less
> Warning: Error compiling src/sao.less Use --force to continue.
> 
> Aborted due to warnings.
> 
> ```
> 
> Here I can’t find any working solution. Can you help?

I stumbled over the same issue and could solve it by adapting Gruntfile.js

```
diff --git a/Gruntfile.js b/Gruntfile.js
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -113,19 +113,20 @@ module.exports = function(grunt) {
                 'dist/<%= pkg.name %>.css': 'src/sao.less'
             }
         },
         'default': {
             options: {
                 paths: [
                     'src',
                     'bower_components',
+ 'bower_components/bootstrap',
                     'bower_components/bootstrap/less',
                     'bower_components/bootstrap-rtl-ondemand/less',
- 'bower_components/eonasdan-bootstrap-datetimepicker/src/less',
+ 'bower_components/tempusdominus-bootstrap-3/src/less',
                 ],
                 yuicompress: true
             },
             files: {
                 'dist/<%= pkg.name %>.min.css': 'src/sao.less'
             }
         }
     },

```

But I did not yet find time to dig into why I needed to change this.

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [September 18, 2020, 3:24pm UTC](https://discuss.tryton.org/t/unable-to-install-tryton-server-on-debian-10/3237/4 "2020-09-18T15:24:43Z")

</div>

> [@Simon](#):
>
> **2) with sao client install**
> 
> ```auto
> git clone https://github.com/tryton/sao.git
> npm install --production
> npx bower install --allow-root
> 
> ```

If you are installing tryton from packages you should probably have a diferent version that the one from sources. So you should update the sao version to match the first two digits (series) of your trytond server. You can know your server version with:

`trytond --version`

Before building sao you should checkout the compatible branch. So if your tryton version is `5.0.21` you should checkout the `5.0` branch of sao before building it.
