Configuration / error 405

I am a learner and I am stuck on the tryton setup.

I created a tryton user and a base with postgresql.

Configured the server:

trytond-5.6.conf >
    listen = *:8000
    hostname = tryton
    root = /home/pumontjm/Workspace/hg-trytond-5.6/sao/index.html

    uri = postgresql://tryton:tryton@
    path = /home/pumontjm/Workspace/hg-trytond-5.6-data
    list = True
    retry = 5
    language = fr

    model = 200
    record= 2000
    field = 100



    uri = smtp://localhost:25
    from =

    authentications = password
    #timeout = 600
    #max_attempt = 5

    length = 7
    #forbidden = /path/for/file/of/forbidden/passwords.txt
    #entropy = 0.75

    #unoconv = pipe,name=trytond;urp;StarOffice.ComponentContext

    #filestore = True
    #store_prefix = prefix
trytond-logconf.conf >



    format=%(asctime)s] %(levelname)s:%(name)s:%(message)s
    datefmt=%a %b %d %H:%M:%S %Y

    args=('/tmp/tryton.log', 'D', 1, 30)


when I load my local page I have the 405 error:

Tue Sep 22 09:30:15 2020] INFO:werkzeug: - - [22/Sep/2020 09:30:15] "GET / HTTP/1.1" 405 -
Tue Sep 22 09:30:15 2020] INFO:werkzeug: - - [22/Sep/2020 09:30:15] "GET /favicon.ico HTTP/1.1" 405 -

Unless there is a mistake
I imagine not to have finished the procedure but I do not know what remains to be done.

an idea ?

The [web] root value seems strange. You must define an absolute path to the sao folder.

PS: by the way, it is better to copy/paste plain text configuration than using screenshots that can not be parsed or searched and also which does not provide a good accessibility.

I updated my post by following your instructions.
For clarity I have also rewritten the path to the sao folder.

It must be the folder not the index.html path so:

root = /home/pumontjm/Workspace/hg-trytond-5.6/sao

sorry I had not seen. it was a test.
I tried with and without “/index.html”.
The problem is the same.

Are you sure the configuration is loaded when starting the server?


Tue Sep 22 12:31:29 2020] INFO:werkzeug: * Detected change in '/home/pumontjm/Asperience_Workspace/trytond-5.6.conf', reloading
Tue Sep 22 12:31:29 2020] INFO:werkzeug: * Restarting with stat
Tue Sep 22 12:31:29 2020] INFO:server:using ../../trytond-logconf.conf as logging configuration file

Is the directory readable by the trytond user?

I don’t know (I create user ‘tryton’)

ps: you mean postgresql user

I may have found the source of the problem.

In the conf file the path to the database is:

but “trytond-5.6-data” does not exist

I don’t know where postgresql databases are stored and how to generate the trytond-5.6-data file if necessary.

The path in [database] is used to store binary data and for SQLite backend. PostgreSQL stores its databases usually in /var/lib/postgresql.

sorry, but how do I know that?

As the user running trytond, can you read the content of the sao directory?

I don’t create a trytond user.
but there isn’t restriction on the sao directory.

By the way, which version is it?

This is version 5.6 …

I think I am missing the configuration on the customer side but I do not know how to do it.
Can you help me?

Did you installed sao without any issue ? Nodejs, npm --production and all these steps ?

npm audit fix returns me:

npm WARN grunt-po2json@0.3.0 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-xgettext@0.3.5 requires a peer of grunt@~0.4.5 but none is installed. You must install peer dependencies yourself.

    up to date in 2.361s

    9 packages are looking for funding
      run `npm fund` for details

    fixed 0 of 44 vulnerabilities in 616 scanned packages
      44 vulnerabilities required manual review and could not be updated

I think we are lost in helping you because we base the answers on the initial logging information. But we already pointed that the [web] root path was wrong and we had no new logging information with the corrected path.