Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita 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
  • Proyectos
  • 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

Live chat messages aren't appear because of concurrency issue

Suscribirse

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

Se marcó esta pregunta
livechatbusconcurrency
5754 Vistas
Avatar
smilenastya23

Odoo version - 13 community

I am customizing live chat and sometimes get the error, that logined user who is operator of this live chat sends message as visitor and messages aren't loaded. After reload of the page messages appear but when enter new messages - they are not appear until other reload. Important notice: this user logged in several PC  and on some of them this bug is reproduced and on the others not. The same issue can happen with a visitor of website too.

At that time in logs there is error:

odoo.sql_db: bad query: UPDATE "bus_presence" SET "last_poll"='2021-02-10 15:12:23' WHERE id IN (1)

2021-02-11 11:37:44,858 11808 INFO prod odoo.service.model: SERIALIZATION_FAILURE, retry 1/5 in 0.9900 sec...

ERROR: could not serialize access due to concurrent update

In case with visitor error

 ERROR prod odoo.sql_db: bad query: UPDATE "mail_channel_partner" SET "write_uid"=2,"seen_message_id"=849,"fetched_message_id"=849,"write_date"=(now() at time zone 'UTC') WHERE id IN (632)

ERROR: could not serialize access due to concurrent update

2021-02-11 14:29:44,858 11808 INFO prod odoo.service.model: SERIALIZATION_FAILURE, retry 1/5 in 0.9900 sec...


When I go to BusService class I see docstring 


User Presence

        Its status is 'online', 'away' or 'offline'. This model should be a one2one, but is not

        attached to res_users to avoid database concurrence errors. Since the 'update' method is executed

        at each poll, if the user have multiple opened tabs, concurrence errors can happend, but are 'muted-logged'.

https://github.com/odoo/odoo/blob/5d9ed8b52b8f771b6f6a04aa4ec3ac7dbc6ffc42/addons/bus/models/bus_presence.py#L14

At the same time person who expiriencing this has JS console bug:

Service website_livechat.livechat_request already defined


My suggestion was that problem that at the same time several people logged in under the same user or that user as operator sends update on bus_presence as well as user sends it as visitor of the site. However when everybody logs out except one person who is experiences this problem - he still has this issue. 

I have found the similar issue on github

https://github.com/odoo/odoo/issues/2919 
And noticed that this error was muted and just appearing in logs, but because of this issue messages aren't appear in chat window even if it muted. From advice in github I tryed to settle max_cron_threads = 1, but this didn't solved problem completely.
Please advice ways of workaround this problem either by changing config or changing python or javascript code.

Thanks in advance.

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

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

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Live Chat & External System Intergation
livechat
Avatar
0
abr 25
1736
External Livechat integration throws console error
livechat
Avatar
0
nov 24
2244
Can I turn off live chat so I can only have the chatbot always on?
livechat
Avatar
0
may 24
21
Livechat mobile responsive bug
livechat
Avatar
0
feb 24
1937
Livechat widget not working
livechat
Avatar
Avatar
Avatar
2
feb 24
3537
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • 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 estar totalmente integrado.

Sitio web hecho con

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