Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Odoo Locust and Postgres: canceling statement due to lock timeout

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
v14OdooLocustodoo16features
1 Répondre
9777 Vues
Avatar
Md Mahbubur Rahman

I was trying a reading operation with OdooLocust module on product.template. User was 40 and spawn rate were 1. 
After few minute locust rps gets 0 

I went to check from UI and saw that server stopped responding. The server was running on a linux vm with docker environment but the database was in AWS. 

I restarted the docker with docker compose but next what I see was like this

```

| Traceback (most recent call last):

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_cron.py", line 115, in _process_jobs

odoo-16-docker-odoo-1  |     registry = odoo.registry(db_name)

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/__init__.py", line 104, in registry

odoo-16-docker-odoo-1  |     return modules.registry.Registry(database_name)

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 67, in __new__

odoo-16-docker-odoo-1  |     return cls.new(db_name)

odoo-16-docker-odoo-1  |   File "", line 2, in new

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked

odoo-16-docker-odoo-1  |     return func(inst, *args, **kwargs)

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 91, in new

odoo-16-docker-odoo-1  |     odoo.modules.load_modules(registry, force_demo, status, update_module)

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 478, in load_modules

odoo-16-docker-odoo-1  |     processed_modules += load_marked_modules(cr, graph,

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 371, in load_marked_modules

odoo-16-docker-odoo-1  |     loaded, processed = load_module_graph(

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 207, in load_module_graph

odoo-16-docker-odoo-1  |     registry.init_models(cr, model_names, {'module': package.name}, new_install)

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 453, in init_models

odoo-16-docker-odoo-1  |     model._auto_init()

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/models.py", line 2591, in _auto_init

odoo-16-docker-odoo-1  |     self._check_removed_columns(log=False)

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/models.py", line 2514, in _check_removed_columns

odoo-16-docker-odoo-1  |     tools.drop_not_null(cr, self._table, row['attname'])

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/tools/sql.py", line 189, in drop_not_null

odoo-16-docker-odoo-1  |     cr.execute('ALTER TABLE "{}" ALTER COLUMN "{}" DROP NOT NULL'.format(tablename, columnname))

odoo-16-docker-odoo-1  |   File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 315, in execute

odoo-16-docker-odoo-1  |     res = self._obj.execute(query, params)

odoo-16-docker-odoo-1  | psycopg2.errors.LockNotAvailable: canceling statement due to lock timeout


```

I suspect this is something with postgres. Is there any workaround for this. 
Any help is appreciated. 


0
Avatar
Ignorer
Avatar
Rishabh Gupta
Meilleure réponse

Please log_lock_waits = on in postgresql.conf and restart the posrgres

0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Hide sensitive Contacts from specific users
v14 odoo16features
Avatar
Avatar
1
févr. 24
2704
Problem Uninstalling Modules During Upgrade Résolu
v14 odoo16features
Avatar
Avatar
Avatar
3
avr. 23
3980
Can I prevent an operator from starting multiple work orders simultaneously?
v14 odoo16features
Avatar
0
nov. 22
2680
Error upgrading from Odoo 14 to Odoo 16 - Style Compilation Failure
upgrading v14 odoo16features
Avatar
0
janv. 24
161
Credited invoices appear again in "To Invoice". Résolu
invoice creditnotes v14 odoo16features
Avatar
Avatar
2
mai 25
2039
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now