odoo deployment in auto-scaling scenario
I am trying to understand how to prepare a fresh server to deploy into a currently running cluster. Or as a replacement for a failed instance.
Other than the content of the source distribution (plus any added custom resources), what else needs to be deployed?
I have discovered images being served from the 'data_dir' filestore. Some resources like fontawesome files and certain icons are not being served.
Should the 'data_dir' location be shared between multiple instances in a cluster? And should it survive server failures?
Any other tips also appreciated?
See also questions close to this topic
- Export Form View to Excel in Odoo 14
-
Odoo 12 Database Restore
I am able to restore the Odoo database on one of our cloud Ubuntu instances. But while referring to that application in Odoo Conf file, we are getting the below error. Same database is working fine in local environment
File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use 2021-03-02 19:16:03,134 7351 ERROR ? odoo.sql_db: bad query: CREATE SEQUENCE base_registry_signaling INCREMENT BY 1 START WITH 1
ERROR: relation "base_registry_signaling" already exists
2021-03-02 19:16:03,278 7351 ERROR ? odoo.modules.registry: Failed to load registry
2021-03-02 19:16:03,281 7351 CRITICAL ? odoo.service.server: Failed to initialize database
databasename
. Traceback (most recent call last):File "/home/odoo2/odoo-12/odoo/service/server.py", line 1162, in preload_registries registry = Registry.new(dbname, update_module=update_module)
File "/home/odoo2/odoo-12/odoo/modules/registry.py", line 83, in new registry.setup_signaling()
File "/home/odoo2/odoo-12/odoo/modules/registry.py", line 378, in setup_signaling cr.execute("CREATE SEQUENCE base_registry_signaling INCREMENT BY 1 START WITH 1")
File "/home/odoo2/odoo-12/odoo/sql_db.py", line 148, in wrapper return f(self, *args, **kwargs)
File "/home/odoo2/odoo-12/odoo/sql_db.py", line 225, in execute res = self._obj.execute(query, params)
psycopg2.errors.DuplicateTable: relation "base_registry_signaling" already exists
-
How can i modify Time off module in a way that the user can create combination of leaves
I am using Odoo 13 and creating my custom module wherein i am inheriting Time off module to make changes to it, I want to create feature where the user can request combination of timeOff types for eg: he takes 1 day from sick leave and 1 day from paid leave which sums up to 2 days of total leave, now the leaves should be deducted from the respective time off types only. pls help.
model name : hr.leave view name : hr.leave.view.form
-
How to have highly available Moodle in Kubernetes?
Want to set up highly available Moodle in K8s (on-prem). I'm using Bitnami Moodle with helm charts.
After a successful Moodle installation, it becomes work. But when a K8s node down, Moodle web page displays/reverts/redirects to the Moodle installation web page. It's like a loop.
Persistence storage is rook-ceph. Moodle PVC is ReadriteMany where Mysql is ReadWriteOnce.
The following command was used to deploy Moodle.
helm install moodle --set global.storageClass=rook-cephfs,replicaCount=3,persistence.accessMode=ReadWriteMany,allowEmptyPassword=false,moodlePassword=Moodle123,mariadb.architecture=replication bitnami/moodle
Any help on this is appreciated.
Thanks.
-
High-Availability not working in Hadoop cluster
I am trying to move my non-HA namenode to HA. After setting up all the configurations for JournalNode by following the Apache Hadoop documentation, I was able to bring the namenodes up. However, the namenodes are crashing immediately and throwing the follwing error.
ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode. java.io.IOException: There appears to be a gap in the edit log. We expected txid 43891997, but got txid 45321534.
I tried to recover the edit logs, initialize the shared edits etc., but nothing works. I am not sure how to fix this problem without formatting namenode since I do not want to loose any data.
Any help is greatly appreciated. Thanking in advance.
-
Apache Kafka Consume from Slave/ISR node
I understand the concept of master/slave and data replication in Kafka, but i don't understand why consumers and producers will always be routed to a master node when writing/reading from a partition instead of being able to read from any ISR (in-sync replica)/slave.
The way i think about it, if all consumers are redirected to one single master node, then more hardware is required to handle read/write operations from large consumer groups/producers.
Is it possible to read and write in slave nodes or the consumers/producers will always reach out to the master node of that partition?
-
Issue when i install Odoo module
I have issue with installing the module "All In One Basic Import - Partner, Product, Sales, Purchase, Accounts, Inventory". hope someone help me in the following issue while I'm using Odoo CE 13. and in another case where I can know the issue with some file and what cause the issue in each error.
My error code is
Error:
Odoo Server Error Traceback (most recent call last): File "C:\inetpub\ARCOMERP\server\odoo\http.py", line 624, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "C:\inetpub\ARCOMERP\server\odoo\http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "C:\inetpub\ARCOMERP\server\odoo\tools\pycompat.py", line 14, in reraise raise value File "C:\inetpub\ARCOMERP\server\odoo\http.py", line 669, in dispatch result = self._call_function(**self.params) File "C:\inetpub\ARCOMERP\server\odoo\http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "C:\inetpub\ARCOMERP\server\odoo\service\model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "C:\inetpub\ARCOMERP\server\odoo\http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "C:\inetpub\ARCOMERP\server\odoo\http.py", line 915, in __call__ return self.method(*args, **kw) File "C:\inetpub\ARCOMERP\server\odoo\http.py", line 515, in response_wrap response = f(*args, **kw) File "C:\inetpub\ARCOMERP\server\odoo\addons\web\controllers\main.py", line 1331, in call_button action = self._call_kw(model, method, args, kwargs) File "C:\inetpub\ARCOMERP\server\odoo\addons\web\controllers\main.py", line 1319, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "C:\inetpub\ARCOMERP\server\odoo\api.py", line 387, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "C:\inetpub\ARCOMERP\server\odoo\api.py", line 374, in _call_kw_multi result = method(recs, *args, **kwargs) File "<decorator-gen-60>", line 2, in button_immediate_install File "C:\inetpub\ARCOMERP\server\odoo\addons\base\models\ir_module.py", line 72, in check_and_log return method(self, *args, **kwargs) File "C:\inetpub\ARCOMERP\server\odoo\addons\base\models\ir_module.py", line 463, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "C:\inetpub\ARCOMERP\server\odoo\addons\base\models\ir_module.py", line 573, in _button_immediate_function modules.registry.Registry.new(self._cr.dbname, update_module=True) File "C:\inetpub\ARCOMERP\server\odoo\modules\registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "C:\inetpub\ARCOMERP\server\odoo\modules\loading.py", line 423, in load_modules loaded_modules, update_module, models_to_check) File "C:\inetpub\ARCOMERP\server\odoo\modules\loading.py", line 315, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File "C:\inetpub\ARCOMERP\server\odoo\modules\loading.py", line 182, in load_module_graph load_openerp_module(package.name) File "C:\inetpub\ARCOMERP\server\odoo\modules\module.py", line 376, in load_openerp_module __import__('odoo.addons.' + module_name) File "C:\inetpub\ARCOMERP\server\odoo\addons\sh_all_in_one_basic_import\__init__.py", line 4, in <module> from . import sh_import_partner File "C:\inetpub\ARCOMERP\server\odoo\addons\sh_all_in_one_basic_import\sh_import_partner\__init__.py", line 4, in <module> from . import wizard File "C:\inetpub\ARCOMERP\server\odoo\addons\sh_all_in_one_basic_import\sh_import_partner\wizard\__init__.py", line 4, in <module> from . import import_partner_wizard File "C:\inetpub\ARCOMERP\server\odoo\addons\sh_all_in_one_basic_import\sh_import_partner\wizard\import_partner_wizard.py", line 20, in <module> class import_partner_wizard(models.TransientModel): File "C:\inetpub\ARCOMERP\server\odoo\addons\sh_all_in_one_basic_import\sh_import_partner\wizard\import_partner_wizard.py", line 158, in import_partner_wizard @api.multi AttributeError: module 'odoo.api' has no attribute 'multi'
-
How can remove header and footer from standard report in odoo 13
I try to add this code:
<template id="web_external_layout_iherited" inherit_id="web.external_layout_standard" customize_show="True" name="Automatic Header"> <xpath expr="//div[@class='header']" position="replace"> </xpath> </template>
but not work!!