# Web SAO access denied

**URL:** <https://discuss.tryton.org/t/web-sao-access-denied/5184>\
**Category:** Developer\
**Created:** [April 19, 2022, 10:52pm UTC](https://discuss.tryton.org/t/web-sao-access-denied/5184 "2022-04-19T22:52:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![notzippy](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/notzippy/32/1850_2.png) [@notzippy](https://discuss.tryton.org/u/notzippy)\
**Post date:** [April 19, 2022, 10:52pm UTC](https://discuss.tryton.org/t/web-sao-access-denied/5184/1 "2022-04-19T22:52:27Z")

</div>

Hi  
Having a small issue with the web setup, likely a setting thing. Database has been initialized and setup fully using the tryton client UI, no problems accessing the Tryton from it. But on the WEB after logging in I get an access is denied, after a few post calls. I can see the request / responses on the server, they end at a post to `model.ir.model.get_notification`, which returns a 403.

```auto
[Tue Apr 19 22:46:23 2022] INFO:trytond.wsgi:<JSONRequest 1@172.16.101.1 'http://nz:8100/yc/' [POST] model.res.user.device.renew>
[Tue Apr 19 22:46:23 2022] INFO:trytond.wsgi:<JSONRequest 1@172.16.101.1 'http://nz:8100/yc/' [POST] model.res.user.get_preferences>
[Tue Apr 19 22:46:24 2022] INFO:werkzeug:172.16.101.1 - - [19/Apr/2022 22:46:24] "POST /yc/ HTTP/1.1" 200 -
[Tue Apr 19 22:46:24 2022] INFO:trytond.wsgi:<JSONRequest 1@172.16.101.1 'http://nz:8100/yc/' [POST] model.res.user.get_preferences>
[Tue Apr 19 22:46:24 2022] INFO:werkzeug:172.16.101.1 - - [19/Apr/2022 22:46:24] "POST /yc/ HTTP/1.1" 200 -
[Tue Apr 19 22:46:24 2022] INFO:trytond.wsgi:<JSONRequest 1@172.16.101.1 'http://nz:8100/yc/' [POST] model.res.user.get_preferences>
[Tue Apr 19 22:46:24 2022] INFO:werkzeug:172.16.101.1 - - [19/Apr/2022 22:46:24] "POST /yc/ HTTP/1.1" 200 -
[Tue Apr 19 22:46:24 2022] INFO:trytond.wsgi:<JSONRequest 1@172.16.101.1 'http://nz:8100/yc/' [POST] model.ir.model.list_models>
[Tue Apr 19 22:46:24 2022] INFO:werkzeug:172.16.101.1 - - [19/Apr/2022 22:46:24] "POST /yc/ HTTP/1.1" 200 -
[Tue Apr 19 22:46:24 2022] INFO:werkzeug:172.16.101.1 - - [19/Apr/2022 22:46:24] "POST /yc/ HTTP/1.1" 200 -
[Tue Apr 19 22:46:24 2022] INFO:trytond.wsgi:<JSONRequest 1@172.16.101.1 'http://nz:8100/yc/' [POST] model.ir.ui.icon.list_icons>
[Tue Apr 19 22:46:24 2022] INFO:trytond.wsgi:<JSONRequest 1@172.16.101.1 'http://nz:8100/yc/' [POST] model.ir.model.list_history>
[Tue Apr 19 22:46:24 2022] INFO:trytond.wsgi:<JSONRequest 1@172.16.101.1 'http://nz:8100/yc/' [POST] model.ir.model.get_notification>
[Tue Apr 19 22:46:24 2022] INFO:werkzeug:172.16.101.1 - - [19/Apr/2022 22:46:24] "POST /yc/ HTTP/1.1" 403 -

```

---

<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:** [April 20, 2022, 7:09am UTC](https://discuss.tryton.org/t/web-sao-access-denied/5184/2 "2022-04-20T07:09:51Z")

</div>

It seems you are using the developement version of sao (where the `get_notification` function was added) with a server version that does not have this function implemented.

You should use the same series (two first version digits) on sao and on the server.

---

<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 20, 2022, 7:21am UTC](https://discuss.tryton.org/t/web-sao-access-denied/5184/3 "2022-04-20T07:21:12Z")

</div>

This happens too often so I created [Check server version (#11421) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue11421)

---

<div class="post-metadata">

**Author:** ![notzippy](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/notzippy/32/1850_2.png) [@notzippy](https://discuss.tryton.org/u/notzippy)\
**Post date:** [April 20, 2022, 2:49pm UTC](https://discuss.tryton.org/t/web-sao-access-denied/5184/4 "2022-04-20T14:49:20Z")

</div>

Thanks, I should have thought of that 🤦‍♂️ I used a specific version of tryton in the requirements, didn’t think to use a specific branch from github. I was going to use the docker image but I couldn’t figure how to use it for development and since I wanted to install custom packages it didn’t work. I ended up modifying my boot script to add the version to the repo checkout process, which solved the issue.

```auto
rm -rf /usr/share/tryton-sao/www
git clone -b "6.2" --single-branch https://github.com/tryton/sao /usr/share/tryton-sao/www
cd /usr/share/tryton-sao/www
npm install --legacy-peer-deps
./node_modules/grunt/bin/grunt dev

```

---

<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:** [May 20, 2022, 2:49pm UTC](https://discuss.tryton.org/t/web-sao-access-denied/5184/5 "2022-05-20T14:49:49Z")

</div>

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