Fix Connection Lost and Connection Restored Error Odoo || Odoo Workers
Aug 15, 2023
Fix Connection Lost and Connection Restored Error Odoo || Odoo Workers
How to fix connection lost and connection restored error in Odoo. How to configure workers in Odoo. Connection lost and restore error in Odoo. Odoo connection lost. Odoo connection restored. Set up workers in Odoo. Odoo multi processing. Install Odoo15: • Install Odoo 15 In Cloud Server || Od… Configure Nginx: • Configure Odoo With Nginx As a Revers… Get Free 100$ in Digital Ocean: • 200$ Free Credits | Digital Ocean Fre… 𝐉𝐨𝐢𝐧 𝐭𝐡𝐢𝐬 𝐜𝐡𝐚𝐧𝐧𝐞𝐥: / @odoomates Odoo Deployment Documentation: https://www.odoo.com/documentation/15 … 𝐎𝐝𝐨𝐨 𝟏𝟓 𝐏𝐥𝐚𝐲𝐥𝐢𝐬𝐭: • How To Configure Odoo15 With Pycharm … Sponsor Us: https://github.com/sponsors/odoomates 𝐖𝐞𝐛𝐬𝐢𝐭𝐞: https://www.odoomates.tech/ 𝐈𝐧𝐬𝐭𝐠𝐫𝐚𝐦: https://www.instagram.com/odoomates/ 𝐆𝐢𝐭𝐡𝐮𝐛: https://github.com/odoomates 𝐄𝐦𝐚𝐢𝐥 : [email protected] 𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: https://www.facebook.com/odoomate/ 𝐓𝐰𝐢𝐭𝐭𝐞𝐫: https://twitter.com/odoomates 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐔𝐬 𝐢𝐧 𝐊𝐨 𝐅𝐢 : https://ko-fi.com/odoomates
Content
1.76 -> hello good morning all today in this
video we are going to discuss regarding
7.28 -> how to fix connection lost and connection
restore issue once we configure nginx
14.24 -> with odoo so currently in the screen you
are seeing version 15 community edition
19.36 -> which we have hosted in digital ocean droplet and
recently we have shown you how we can configure
25.68 -> engines with odoo so once we configure engines
and if i try to access my odoo instance
32.88 -> you can see connection lost trying to
reconnect connection restored you are
37.76 -> back only so you you have seen that message
and you will be seeing that once in a while
43.28 -> when you navigate to different screen or it will
be showing like repeatedly so if i refresh again
51.44 -> you can see the message is coming again so i have
seen people are asking how we can solve these keys
58.56 -> so what happens is once you enable the proxy mode
in the url configuration file you have to set the
65.28 -> workers for odoo also so by default the worker is
set as 0 in audio configuration file and odoo is
72.64 -> capable of working in multi-processing environment
so according to your system configuration or your
79.52 -> system specification server specification
you can configure your workers in odoo
85.44 -> so here before we making any change upon
refreshing the screen you are receiving this
91.76 -> message now let's go to our server so i have
opened our server so if i clear all the things
99.84 -> that i have entered let me clear ls and let me
open my odoo configuration file cd slash etc
111.2 -> ms sudo nano
116.08 -> odoo server dot conf so this is my
configuration file and we have added
120.96 -> proxy mod equal to true here and here
i'll set my workers count as 4 so the
131.28 -> there is a logic to compute or to get this
value so the workers count should be maximum
139.04 -> as follows the number of cpu core you have in your
machine multiplied by 2 plus 1 so it has to be the
146.24 -> maximum so it is well written in odoo official
documentation so i'll try to share its link in
152.24 -> the video description so that you can read and
understand so here i will set the workers count as
157.68 -> for control x y and i'll save this file so i have
saved the file with adding workers count as four
168.64 -> you can see workers is set as for
control z and if you check ph of graph
177.28 -> check px of graph odoo currently if you
check here in the running process you will
184 -> see only a single thread single process is running
odoo here you can see only a single order process
191.6 -> is running so once we enable you will see
multiple process is running currently we don't
197.12 -> set workers so this is just before i restart i'm
not i haven't restarted yet so once you restarted
204 -> you will see multiple odoo process running here so
let's stop this process so let's stop odoo service
212.72 -> so i have stopped odoo and if i come here and if
i try to access you can see 502 bad gateway odoo
221.44 -> is not accessible and if i restart my if i start
my audio service through service oral server start
233.28 -> and if you come here
236.96 -> and if you refresh you will not see that
connection lost message you can see lowering
243.76 -> and you will not see that correction lost and
connection restored so you can navigate freely
249.52 -> in along any screen forex and if you refresh you
will not see that message again so the message
257.76 -> appears when the workers count is set as zero
so we have to just find out the workers count
263.84 -> and set it in the configuration file we start
odoo service and it's done so that's okay now
270.16 -> we don't have that error message now if you come
to the log and if you check the running services
277.68 -> here you can see you have multiple odoo process
is running at a single time so this is happened
285.04 -> once we configure workers so you will be receiving
a better performance the otherwise single process
291.2 -> has to be handled all the users so it will be like
what i can see it will be hard system will be slow
297.6 -> down so once you configure the worker there will
be multiple process to handle the incoming request
303.44 -> so i hope you understood how we can solve that
issue just configure the workers count in odoo
310.24 -> configuration file so that's it for the video if
you like the video please do click the like button
315.28 -> and support us by joining the channel and also
we have recently received sponsorship in github
322.64 -> also you can feel free to sponsor as in github so
that's it for the day have a nice day thank you
Source: https://www.youtube.com/watch?v=Q1c5XpG85OE