Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

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

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
sequenceodooOperationalErrorodoo10
2 Respuestas
12992 Vistas
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
Descartar
Avatar
Midhun M M
Mejor respuesta

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
Descartar
Avatar
La Jayuhni Yarsyah
Mejor respuesta

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
Descartar
Sebin Siby
Autor

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
Autor

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

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Can we use odoo as a ticket system and time management system in a certain facility
odoo odoo10
Avatar
0
ago 22
3254
I had error in related field , did i miss something ? Resuelto
odoo odoo10
Avatar
Avatar
1
jul 22
21076
How to solve dataCorrupted: could not read block in file ?
odoo odoo10
Avatar
0
abr 22
3798
How to Ignore the Arguments in Products URL in Odoo 10?
odoo odoo10
Avatar
Avatar
Avatar
3
sept 21
3943
how to connect local zktecho biometric (F19) device with odoo 10 installed in cloud server
odoo odoo10
Avatar
Avatar
Avatar
2
sept 21
5366
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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