Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

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

Naroči se

Get notified when there's activity on this post

This question has been flagged
sequenceodooOperationalErrorodoo10
2 Odgovori
12984 Prikazi
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
Opusti
Avatar
Midhun M M
Best Answer

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
Opusti
Avatar
La Jayuhni Yarsyah
Best Answer

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
Opusti
Sebin Siby
Avtor

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
Avtor

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

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Can we use odoo as a ticket system and time management system in a certain facility
odoo odoo10
Avatar
0
avg. 22
3247
I had error in related field , did i miss something ? Solved
odoo odoo10
Avatar
Avatar
1
jul. 22
21064
How to solve dataCorrupted: could not read block in file ?
odoo odoo10
Avatar
0
apr. 22
3790
How to Ignore the Arguments in Products URL in Odoo 10?
odoo odoo10
Avatar
Avatar
Avatar
3
sep. 21
3940
how to connect local zktecho biometric (F19) device with odoo 10 installed in cloud server
odoo odoo10
Avatar
Avatar
Avatar
2
sep. 21
5339
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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