Error run trytond-cron on container

When creating the cron container and reviewing the log, the following appears:

1 140648461731584 [2023-03-31 20:25:43,208] ERROR trytond.ir.cron <Cron 2@frigoecol ir.trigger|trigger_time> failed
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/trytond/ir/cron.py", line 164, in run
    cron.run_once()
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/descriptors.py", line 31, in newfunc
    return self.func(owner, [instance], *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/modelview.py", line 775, in wrapper
    return func(cls, records, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/trytond/modules/company/ir.py", line 106, in run_once
    if not cron.companies:
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/fields/field.py", line 344, in __get__
    return inst.__getattr__(self.name)
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/modelstorage.py", line 1647, in __getattr__
    read_data = self.read(list(index.keys()), list(ffields.keys()))
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/modelsql.py", line 795, in read
    raise RuntimeError("Undetected access error")
RuntimeError: Undetected access error

The second error message is related to the first, but it occurred in a separate thread:

Exception in thread Thread-13:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/trytond/ir/cron.py", line 172, in run
    cron.next_call = cron.compute_next_call(now)
  File "/usr/local/lib/python3.7/dist-packages/trytond/ir/cron.py", line 112, in compute_next_call
    + relativedelta(
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/fields/field.py", line 344, in __get__
    return inst.__getattr__(self.name)
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/modelstorage.py", line 1647, in __getattr__
    read_data = self.read(list(index.keys()), list(ffields.keys()))
  File "/usr/local/lib/python3.7/dist-packages/trytond/model/modelsql.py", line 795, in read
    raise RuntimeError("Undetected access error")
RuntimeError: Undetected access error

El error lo pude solucionar eliminando todas las tareas programadas que existían en la base de datos y volviendo a crearlas

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.