Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Odoo10 - OperationalError: could not obtain lock on row in relation "ir_sequence", How to resolve this?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
sequenceodooOperationalErrorodoo10
2 Antwoorden
12995 Weergaven
Avatar
Sebin Siby

I have created a sequence and it was working perfectly but now I'm getting the following error. While creating a new record I'm calling that sequence form the create method.

How can I resolve this?

I'm not able to do any actions with that sequence record from front end and from the database side also.



0
Avatar
Annuleer
Avatar
Midhun M M
Beste antwoord

Now we are in version 16 Enterprise,

 still i am facing the same problem


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/http.py", line 1633, in _serve_db

    return service_model.retrying(self._serve_ir_http, self.env)

  File "/home/odoo/src/odoo/odoo/service/model.py", line 133, in retrying

    result = func()

  File "/home/odoo/src/odoo/odoo/http.py", line 1660, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

  File "/home/odoo/src/odoo/odoo/http.py", line 1864, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 154, in _dispatch

    result = endpoint(**request.params)

  File "/home/odoo/src/odoo/odoo/http.py", line 697, in route_wrapper

    result = endpoint(self, *args, **params_ok)

  File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 46, in call_button

    action = self._call_kw(model, method, args, kwargs)

  File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/home/odoo/src/odoo/odoo/api.py", line 468, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

  File "/home/odoo/src/odoo/odoo/api.py", line 453, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  File "/home/odoo/src/user/sale_base_16/models/sale_approval.py", line 509, in get_approval

    self.action_confirm()

  File "/home/odoo/src/user/sale_base_16/models/sale_approval.py", line 430, in action_confirm

    return super(CustomSaleOrder, self).action_confirm()

  File "/home/odoo/src/user/sale_base_16/models/models.py", line 58, in action_confirm

    rec.name = rec.doc_type_id.sequence_id.next_by_id()

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_sequence.py", line 274, in next_by_id

    return self._next(sequence_date=sequence_date)

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_sequence.py", line 263, in _next

    return self._next_do()

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_sequence.py", line 204, in _next_do

    number_next = _update_nogap(self, self.number_increment)

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_sequence.py", line 57, in _update_nogap

    self._cr.execute("SELECT number_next FROM %s WHERE id=%%s FOR UPDATE NOWAIT" % self._table, [self.id])

  File "/home/odoo/src/odoo/odoo/sql_db.py", line 321, in execute

    res = self._obj.execute(query, params)

psycopg2.errors.LockNotAvailable: could not obtain lock on row in relation "ir_sequence"

 

 

The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    at makeErrorFromResponse (https://ltindia-ltindia.odoo.com/web/assets/19741-472c7f6/web.assets_backend.min.js:1000:163)

    at XMLHttpRequest. (https://ltindia-ltindia.odoo.com/web/assets/19741-472c7f6/web.assets_backend.min.js:1008:13)


0
Avatar
Annuleer
Avatar
La Jayuhni Yarsyah
Beste antwoord

Thats error message caused by postgresql failed to fetch some record because the record wich related to the action but the pgsql still processing (can be write command or etc) by another request at postgresql buffer.


If you use "No Gap" implementation then for a simple way to resolve your issue you can try change the implementation to "Standard"




But if you still require to use "No Gap" implementation maybe you must reconfigure your postgresql server configuration,, or you can optimize your server to speed up the performance

Further read:
https://www.postgresql.org/docs/9.1/explicit-locking.html


0
Avatar
Annuleer
Sebin Siby
Auteur

I have tried this already but the problem is I'm not able to save the record after that change. Both from the front end and from database also i tried. It's not saving. It's getting timeout.

La Jayuhni Yarsyah

Timeout means it execute heavy transaction, so you must debug it,,, and analyse why it so took long time...

Maybe you can see log (using --log-level=debug)

What postgresql version what you have ?Can you tell your server specification (CPU,RAM, OS, POstgresql)?

Is this happened on your production stage or you try in development stage??

If in production stage, are the database sizes big ??

You said that you also tried inserting data direct into database,, I think,, its trouble comes from your installed postgresql server..

Regards..

Sebin Siby
Auteur

Thanks for your support.

It's resolved after restarting the postgresql service.

It was in live server and the database is very big. I don't know why that error came. Anyway its resolved now after restarting postgresql.

La Jayuhni Yarsyah

Ok if my answers was helpful please vote up / accept my answers,, and i would like to say thanks.

Regards

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Can we use odoo as a ticket system and time management system in a certain facility
odoo odoo10
Avatar
0
aug. 22
3255
I had error in related field , did i miss something ? Opgelost
odoo odoo10
Avatar
Avatar
1
jul. 22
21076
How to solve dataCorrupted: could not read block in file ?
odoo odoo10
Avatar
0
apr. 22
3798
How to Ignore the Arguments in Products URL in Odoo 10?
odoo odoo10
Avatar
Avatar
Avatar
3
sep. 21
3943
how to connect local zktecho biometric (F19) device with odoo 10 installed in cloud server
odoo odoo10
Avatar
Avatar
Avatar
2
sep. 21
5366
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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