# Getting FORBIDDEN on sao

**URL:** <https://discuss.tryton.org/t/getting-forbidden-on-sao/7865>\
**Category:** System Administrator\
**Created:** [September 17, 2024, 3:19pm UTC](https://discuss.tryton.org/t/getting-forbidden-on-sao/7865 "2024-09-17T15:19:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![finals\_mvp](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/f/43a26b/32.png) [@finals\_mvp](https://discuss.tryton.org/u/finals_mvp)\
**Post date:** [September 17, 2024, 3:19pm UTC](https://discuss.tryton.org/t/getting-forbidden-on-sao/7865/1 "2024-09-17T15:19:18Z")

</div>

Hi all, I successfully installed tryton on Docker, pretty straightforward. This time I tried installing on my local Debian. tryton Desktop client is running with no problems. and trytond server is running. I downloaded sao source code and when I launch localhost:8000 on the browser I get Application Error: FORBIDDEN. I tried to debug and could find something in `trytond/protocols/dispatcher.py` line 166:

```auto
@app.auth_required
@with_pool
def _dispatch(request, pool, *args, **kwargs):
    obj, method = get_object_method(request, pool)
# Added this here to ignore obj = 'get_search'
    if method == 'get_search':     
        response = app.make_response(request, [])
        return response
    
    if method in obj. __rpc__ :
        rpc = obj. __rpc__ [method]
    else:
        abort(HTTPStatus.FORBIDDEN)

```

So, I think I’m missing a module here, which has the method get\_search?

---

<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:** [September 17, 2024, 3:22pm UTC](https://discuss.tryton.org/t/getting-forbidden-on-sao/7865/2 "2024-09-17T15:22:22Z")

</div>

You probably did not setup the [`[web] root`](https://docs.tryton.org/latest/server/topics/configuration.html#root) path correctly.

---

<div class="post-metadata">

**Author:** ![finals\_mvp](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/f/43a26b/32.png) [@finals\_mvp](https://discuss.tryton.org/u/finals_mvp)\
**Post date:** [September 17, 2024, 3:51pm UTC](https://discuss.tryton.org/t/getting-forbidden-on-sao/7865/3 "2024-09-17T15:51:42Z")

</div>

This is my tryton.conf, with root path set as following. But if the root path was not setup correctly, it shouldn’t work at all even with the tweak I did by adding that if block. I mean after adding that I could get past through that Application Error: FORBIDDEN

```auto
[web]
listen=127.0.0.1:8000
root=/home/amrit/Documents/tryton/sao-6.2.3/

```

---

<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:** [September 17, 2024, 4:03pm UTC](https://discuss.tryton.org/t/getting-forbidden-on-sao/7865/4 "2024-09-17T16:03:45Z")

</div>

Please provide more detailed information about what you are doing and when is the error happening.  
For now I understand that the error happens when you open the URL.

---

<div class="post-metadata">

**Author:** ![finals\_mvp](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/f/43a26b/32.png) [@finals\_mvp](https://discuss.tryton.org/u/finals_mvp)\
**Post date:** [September 17, 2024, 5:39pm UTC](https://discuss.tryton.org/t/getting-forbidden-on-sao/7865/5 "2024-09-17T17:39:39Z")

</div>

Did this for trytond

- `python -m venv venv`
- `pip install trytond`
- `mkdir ~/db && touch ~/db/test_db.sqlite`
- `trytond-admin -c ./trytond.conf -d test_db --all`
- `trytond -c ./trytond.conf -d test_db`  
I’m trying install web client. I followed the following steps:
- `tar -xf tryton-last.tar.gz `
- `mv package sao-6.2.3`

Okay, I was using sao-6.2.3 with trytond-last. I changed sao to the latest build. And now I’m able to access the URL without any problem.

Yes, your understanding it correct, the error happens when I open the URL, and I added that `if method == 'get_search':`, so I could skip through the error. Updating my sao build to the latest fixed the issue.

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [September 18, 2024, 7:33am UTC](https://discuss.tryton.org/t/getting-forbidden-on-sao/7865/6 "2024-09-18T07:33:24Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
