Erreur mise Ă  jour: 'Meta: WebsiteTheme' object has no attribute '_table_fields'

Bonjour,
C’est la deuxième fois que je tente (désespérement) de mettre à jour ma version de dokos, qui est toujours en v3.11.2.

Ma procédure:

export LC_ALL=C.UTF-8
cd /var/dokos
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install --upgrade dokos-cli
cd /var/dokos/dokos-erp
bench update --reset --restart-supervisor

1er problème: Dépendances manquantes d’un paquet dans yarn:

yarn install v1.22.18
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning " > @frappe/esbuild-plugin-postcss2@0.1.3" has unmet peer dependency "less@^4.x".
warning " > @frappe/esbuild-plugin-postcss2@0.1.3" has unmet peer dependency "stylus@^0.x".

Ca n’a pas l’air trop méchant, je pense déjà l’avoir vu plusieurs fois.

2eme problème, impossible de mettre à jour les doctypes de dokos:

Updating DocTypes for frappe        : [====================] 100%
Updating DocTypes for erpnext       : [================    ] 83%Queued rebuilding of search index for erp.mondomaine.tld

Traceback with variables (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
      mod_name = 'frappe.utils.bench_helper'
      alter_argv = True
      mod_spec = ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7eff1e673430>, origin='/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py')
      code = <code object <module> at 0x7eff176b5370, file "/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py", line 1>
      main_globals = {'__name__': '__main__', '__doc__': None, '__package__': 'frappe.utils', '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7eff1e673430>, '__spec__': ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7eff1e673430>, origin='/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py', '__cached__': '/var/dokos/dokos-erp/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-310.pyc', 'importlib': <module 'importlib' from '/usr/local/lib/python3.10/importlib/__init__.py'>, 'json': <module 'json' from '/usr/local/lib/python3.10/json/__init__.py'>, 'os': <module 'os' from '/usr/local/lib/python3.10/os.py'>, 'traceback': <module 'traceback' from '/usr/local/lib/python3.10/traceback.py'>, 'warnings': <module 'warnings' from '/usr/local/lib/python3.10/warnings.py...
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
      code = <code object <module> at 0x7eff176b5370, file "/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py", line 1>
      run_globals = {'__name__': '__main__', '__doc__': None, '__package__': 'frappe.utils', '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7eff1e673430>, '__spec__': ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7eff1e673430>, origin='/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py'), '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py', '__cached__': '/var/dokos/dokos-erp/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-310.pyc', 'importlib': <module 'importlib' from '/usr/local/lib/python3.10/importlib/__init__.py'>, 'json': <module 'json' from '/usr/local/lib/python3.10/json/__init__.py'>, 'os': <module 'os' from '/usr/local/lib/python3.10/os.py'>, 'traceback': <module 'traceback' from '/usr/local/lib/python3.10/traceback.py'>, 'warnings': <module 'warnings' from '/usr/local/lib/python3.10/warnings.py...
      init_globals = None
      mod_name = '__main__'
      mod_spec = ModuleSpec(name='frappe.utils.bench_helper', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7eff1e673430>, origin='/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py')
      pkg_name = 'frappe.utils'
      script_name = None
      loader = <_frozen_importlib_external.SourceFileLoader object at 0x7eff1e673430>
      fname = '/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py'
      cached = '/var/dokos/dokos-erp/apps/frappe/frappe/utils/__pycache__/bench_helper.cpython-310.pyc'
  File "/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py", line 108, in <module>
    main()
      ...skipped... 26 vars
  File "/var/dokos/dokos-erp/apps/frappe/frappe/utils/bench_helper.py", line 19, in main
    click.Group(commands=commands)(prog_name="bench")
      commands = {'frappe': <Group frappe>, 'get-frappe-commands': <Command get-frappe-commands>, 'get-frappe-help': <Command get-frappe-help>}
  File "/var/dokos/dokos-erp/env/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
      self = <Group None>
      args = ()
      kwargs = {'prog_name': 'bench'}
  File "/var/dokos/dokos-erp/env/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
      self = <Group None>
      args = ['frappe', '--site', 'erp.mondomaine.tld', 'migrate']
      prog_name = 'bench'
      complete_var = None
      standalone_mode = True
      windows_expand_args = True
      extra = {}
      ctx = <click.core.Context object at 0x7eff1e56a9b0>
  File "/var/dokos/dokos-erp/env/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
      _process_result = <function MultiCommand.invoke.<locals>._process_result at 0x7eff176f0d30>
      args = ['migrate']
      cmd_name = 'frappe'
      cmd = <Group frappe>
      sub_ctx = <click.core.Context object at 0x7eff17da3c40>
      ctx = <click.core.Context object at 0x7eff1e56a9b0>
      self = <Group None>
      __class__ = <class 'click.core.MultiCommand'>
  File "/var/dokos/dokos-erp/env/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
      _process_result = <function MultiCommand.invoke.<locals>._process_result at 0x7eff17756710>
      args = []
      cmd_name = 'migrate'
      cmd = <Command migrate>
      sub_ctx = <click.core.Context object at 0x7eff17da2d40>
      ctx = <click.core.Context object at 0x7eff17da3c40>
      self = <Group frappe>
      __class__ = <class 'click.core.MultiCommand'>
  File "/var/dokos/dokos-erp/env/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
      self = <Command migrate>
      ctx = <click.core.Context object at 0x7eff17da2d40>
  File "/var/dokos/dokos-erp/env/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
      _Context__self = <click.core.Context object at 0x7eff17da2d40>
      _Context__callback = <function migrate at 0x7eff17736f80>
      args = ()
      kwargs = {'skip_failing': False, 'skip_search_index': False}
      ctx = <click.core.Context object at 0x7eff17da2d40>
  File "/var/dokos/dokos-erp/env/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
      args = ()
      kwargs = {'skip_failing': False, 'skip_search_index': False}
      f = <function migrate at 0x7eff17736d40>
  File "/var/dokos/dokos-erp/apps/frappe/frappe/commands/__init__.py", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
      ctx = <click.core.Context object at 0x7eff17da2d40>
      args = ()
      kwargs = {'skip_failing': False, 'skip_search_index': False}
      profile = False
      f = <function migrate at 0x7eff17736cb0>
  File "/var/dokos/dokos-erp/apps/frappe/frappe/commands/site.py", line 575, in migrate
    SiteMigration(
      context = {'sites': ['erp.mondomaine.tld'], 'force': False, 'verbose': False, 'profile': False}
      skip_failing = False
      skip_search_index = False
      activate_by_import = <module 'traceback_with_variables.activate_by_import' from '/var/dokos/dokos-erp/env/lib/python3.10/site-packages/traceback_with_variables/activate_by_import.py'>
      SiteMigration = <class 'frappe.migrate.SiteMigration'>
      site = 'erp.mondomaine.tld'
  File "/var/dokos/dokos-erp/apps/frappe/frappe/migrate.py", line 175, in run
    self.run_schema_updates()
      self = <frappe.migrate.SiteMigration object at 0x7eff17da10c0>
      site = 'erp.mondomaine.tld'
  File "/var/dokos/dokos-erp/apps/frappe/frappe/migrate.py", line 41, in wrapper
    ret = method(*args, **kwargs)
      args = (<frappe.migrate.SiteMigration object at 0x7eff17da10c0>,)
      kwargs = {}
      method = <function SiteMigration.run_schema_updates at 0x7eff09fd9c60>
  File "/var/dokos/dokos-erp/apps/frappe/frappe/migrate.py", line 113, in run_schema_updates
    frappe.model.sync.sync_all()
      self = <frappe.migrate.SiteMigration object at 0x7eff17da10c0>
  File "/var/dokos/dokos-erp/apps/frappe/frappe/model/sync.py", line 21, in sync_all
    sync_for(app, force, reset_permissions=reset_permissions)
      force = 0
      reset_permissions = False
      app = 'erpnext'
  File "/var/dokos/dokos-erp/apps/frappe/frappe/model/sync.py", line 87, in sync_for
    import_file_by_path(
      app_name = 'erpnext'
      force = 0
      reset_permissions = False
      files = ['/var/dokos/dokos-erp/apps/erpnext/erpnext/accounts/doctype/account/account.json', '/var/dokos/dokos-erp/apps/erpnext/erpnext/accounts/doctype/accounting_dimension/accounting_dimension.json', '/var/dokos/dokos-erp/apps/erpnext/erpnext/accounts/doctype/accounting_dimension_detail/accounting_dimension_detail.json', '/var/dokos/dokos-erp/apps/erpnext/erpnext/accounts/doctype/accounting_dimension_filter/accounting_dimension_filter.json', '/var/dokos/dokos-erp/apps/erpnext/erpnext/accounts/doctype/accounting_journal/accounting_journal.json', '/var/dokos/dokos-erp/apps/erpnext/erpnext/accounts/doctype/accounting_journal_rule/accounting_journal_rule.json', '/var/dokos/dokos-erp/apps/erpnext/erpnext/accounts/doctype/accounting_period/accounting_period.json', '/var/dokos/dokos-erp/apps/erpnext/erpnext/accounts/doctype/accounts_settings/accounts_settings.json', '/var/dokos/dokos-erp/apps/erpnext/erpnext/accounts/doctype/adjustment_entry/adjustment_entry.json', '/var/dokos/dokos-erp/apps/erpnext...
      module_name = 'subcontracting'
      folder = '/var/dokos/dokos-erp/apps/erpnext/erpnext/subcontracting'
      l = 911
      i = 765
      doc_path = '/var/dokos/dokos-erp/apps/erpnext/erpnext/portal/website_theme/dokos/dokos.json'
  File "/var/dokos/dokos-erp/apps/frappe/frappe/modules/import_file.py", line 149, in import_file_by_path
    import_doc(
      path = '/var/dokos/dokos-erp/apps/erpnext/erpnext/portal/website_theme/dokos/dokos.json'
      force = 0
      data_import = False
      pre_process = None
      ignore_version = True
      reset_permissions = False
      docs = [{'button_gradients': 0, 'button_rounded_corners': 1, 'button_shadows': 0, 'creation': '2020-09-16 17:58:16.283764', 'custom': 0, 'custom_overrides': '', 'custom_scss': '', 'docstatus': 0, 'doctype': 'Website Theme', 'font_properties': 'wght@300;400;500;600;700;800', 'google_font': 'Varela Round', 'idx': 0, 'ignored_apps': [], 'modified': '2023-03-17 15:13:56.537355', 'modified_by': 'Administrator', 'module': 'Portal', 'name': 'Dokos', 'owner': 'Administrator', 'theme': 'Dokos', 'theme_scss': '\n@import url("https://fonts.googleapis.com/css2?family=Varela+Round:wght@300;400;500;600;700;800&display=swap");\n$font-family-sans-serif: "Varela Round", -apple-system, BlinkMacSystemFont,\n\t"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",\n\t"Droid Sans", "Helvetica Neue", sans-serif;\n$enable-shadows: false;\n$enable-gradients: false;\n$enable-rounded: true;\n\n// Bootstrap Variable Overrides\n\n\n// Import themes from installed apps\n@import "frappe/public/scss/website.bu...
      calculated_hash = 'dc374a7fb9b89a1f23a25fa899da74f7'
      doc = {'button_gradients': 0, 'button_rounded_corners': 1, 'button_shadows': 0, 'creation': '2020-09-16 17:58:16.283764', 'custom': 0, 'custom_overrides': '', 'custom_scss': '', 'docstatus': 0, 'doctype': 'Website Theme', 'font_properties': 'wght@300;400;500;600;700;800', 'google_font': 'Varela Round', 'idx': 0, 'ignored_apps': [], 'modified': '2023-03-17 15:13:56.537355', 'modified_by': 'Administrator', 'module': 'Portal', 'name': 'Dokos', 'owner': 'Administrator', 'theme': 'Dokos', 'theme_scss': '\n@import url("https://fonts.googleapis.com/css2?family=Varela+Round:wght@300;400;500;600;700;800&display=swap");\n$font-family-sans-serif: "Varela Round", -apple-system, BlinkMacSystemFont,\n\t"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",\n\t"Droid Sans", "Helvetica Neue", sans-serif;\n$enable-shadows: false;\n$enable-gradients: false;\n$enable-rounded: true;\n\n// Bootstrap Variable Overrides\n\n\n// Import themes from installed apps\n@import "frappe/public/scss/website.bun...
      db_modified_timestamp = datetime.datetime(2022, 12, 12, 16, 6, 9, 5344)
      is_db_timestamp_latest = False
      stored_hash = None
  File "/var/dokos/dokos-erp/apps/frappe/frappe/modules/import_file.py", line 226, in import_doc
    doc = frappe.get_doc(docdict)
      docdict = {'button_gradients': 0, 'button_rounded_corners': 1, 'button_shadows': 0, 'creation': '2020-09-16 17:58:16.283764', 'custom': 0, 'custom_overrides': '', 'custom_scss': '', 'docstatus': 0, 'doctype': 'Website Theme', 'font_properties': 'wght@300;400;500;600;700;800', 'google_font': 'Varela Round', 'idx': 0, 'ignored_apps': [], 'modified': '2023-03-17 15:13:56.537355', 'modified_by': 'Administrator', 'module': 'Portal', 'name': 'Dokos', 'owner': 'Administrator', 'theme': 'Dokos', 'theme_scss': '\n@import url("https://fonts.googleapis.com/css2?family=Varela+Round:wght@300;400;500;600;700;800&display=swap");\n$font-family-sans-serif: "Varela Round", -apple-system, BlinkMacSystemFont,\n\t"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",\n\t"Droid Sans", "Helvetica Neue", sans-serif;\n$enable-shadows: false;\n$enable-gradients: false;\n$enable-rounded: true;\n\n// Bootstrap Variable Overrides\n\n\n// Import themes from installed apps\n@import "frappe/public/scss/website.bun...
      data_import = False
      pre_process = None
      ignore_version = True
      reset_permissions = False
      path = '/var/dokos/dokos-erp/apps/erpnext/erpnext/portal/website_theme/dokos/dokos.json'
      controller = <class 'frappe.website.doctype.website_theme.website_theme.WebsiteTheme'>
  File "/var/dokos/dokos-erp/apps/frappe/frappe/__init__.py", line 1210, in get_doc
    doc = frappe.model.document.get_doc(*args, **kwargs)
      args = ({'button_gradients': 0, 'button_rounded_corners': 1, 'button_shadows': 0, 'creation': '2020-09-16 17:58:16.283764', 'custom': 0, 'custom_overrides': '', 'custom_scss': '', 'docstatus': 0, 'doctype': 'Website Theme', 'font_properties': 'wght@300;400;500;600;700;800', 'google_font': 'Varela Round', 'idx': 0, 'ignored_apps': [], 'modified': '2023-03-17 15:13:56.537355', 'modified_by': 'Administrator', 'module': 'Portal', 'name': 'Dokos', 'owner': 'Administrator', 'theme': 'Dokos', 'theme_scss': '\n@import url("https://fonts.googleapis.com/css2?family=Varela+Round:wght@300;400;500;600;700;800&display=swap");\n$font-family-sans-serif: "Varela Round", -apple-system, BlinkMacSystemFont,\n\t"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",\n\t"Droid Sans", "Helvetica Neue", sans-serif;\n$enable-shadows: false;\n$enable-gradients: false;\n$enable-rounded: true;\n\n// Bootstrap Variable Overrides\n\n\n// Import themes from installed apps\n@import "frappe/public/scss/website.bu...
      kwargs = {}
      frappe = <module 'frappe' from '/var/dokos/dokos-erp/apps/frappe/frappe/__init__.py'>
  File "/var/dokos/dokos-erp/apps/frappe/frappe/model/document.py", line 75, in get_doc
    return controller(*args, **kwargs)
      args = ({'button_gradients': 0, 'button_rounded_corners': 1, 'button_shadows': 0, 'creation': '2020-09-16 17:58:16.283764', 'custom': 0, 'custom_overrides': '', 'custom_scss': '', 'docstatus': 0, 'doctype': 'Website Theme', 'font_properties': 'wght@300;400;500;600;700;800', 'google_font': 'Varela Round', 'idx': 0, 'ignored_apps': [], 'modified': '2023-03-17 15:13:56.537355', 'modified_by': 'Administrator', 'module': 'Portal', 'name': 'Dokos', 'owner': 'Administrator', 'theme': 'Dokos', 'theme_scss': '\n@import url("https://fonts.googleapis.com/css2?family=Varela+Round:wght@300;400;500;600;700;800&display=swap");\n$font-family-sans-serif: "Varela Round", -apple-system, BlinkMacSystemFont,\n\t"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",\n\t"Droid Sans", "Helvetica Neue", sans-serif;\n$enable-shadows: false;\n$enable-gradients: false;\n$enable-rounded: true;\n\n// Bootstrap Variable Overrides\n\n\n// Import themes from installed apps\n@import "frappe/public/scss/website.bu...
      kwargs = {'button_gradients': 0, 'button_rounded_corners': 1, 'button_shadows': 0, 'creation': '2020-09-16 17:58:16.283764', 'custom': 0, 'custom_overrides': '', 'custom_scss': '', 'docstatus': 0, 'doctype': 'Website Theme', 'font_properties': 'wght@300;400;500;600;700;800', 'google_font': 'Varela Round', 'idx': 0, 'ignored_apps': [], 'modified': '2023-03-17 15:13:56.537355', 'modified_by': 'Administrator', 'module': 'Portal', 'name': 'Dokos', 'owner': 'Administrator', 'theme': 'Dokos', 'theme_scss': '\n@import url("https://fonts.googleapis.com/css2?family=Varela+Round:wght@300;400;500;600;700;800&display=swap");\n$font-family-sans-serif: "Varela Round", -apple-system, BlinkMacSystemFont,\n\t"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",\n\t"Droid Sans", "Helvetica Neue", sans-serif;\n$enable-shadows: false;\n$enable-gradients: false;\n$enable-rounded: true;\n\n// Bootstrap Variable Overrides\n\n\n// Import themes from installed apps\n@import "frappe/public/scss/website.bun...
      doctype = 'Website Theme'
      controller = <class 'frappe.website.doctype.website_theme.website_theme.WebsiteTheme'>
  File "/var/dokos/dokos-erp/apps/frappe/frappe/model/document.py", line 118, in __init__
    super().__init__(kwargs)
      self = <WebsiteTheme: unsaved>
      args = ({'button_gradients': 0, 'button_rounded_corners': 1, 'button_shadows': 0, 'creation': '2020-09-16 17:58:16.283764', 'custom': 0, 'custom_overrides': '', 'custom_scss': '', 'docstatus': 0, 'doctype': 'Website Theme', 'font_properties': 'wght@300;400;500;600;700;800', 'google_font': 'Varela Round', 'idx': 0, 'ignored_apps': [], 'modified': '2023-03-17 15:13:56.537355', 'modified_by': 'Administrator', 'module': 'Portal', 'name': 'Dokos', 'owner': 'Administrator', 'theme': 'Dokos', 'theme_scss': '\n@import url("https://fonts.googleapis.com/css2?family=Varela+Round:wght@300;400;500;600;700;800&display=swap");\n$font-family-sans-serif: "Varela Round", -apple-system, BlinkMacSystemFont,\n\t"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",\n\t"Droid Sans", "Helvetica Neue", sans-serif;\n$enable-shadows: false;\n$enable-gradients: false;\n$enable-rounded: true;\n\n// Bootstrap Variable Overrides\n\n\n// Import themes from installed apps\n@import "frappe/public/scss/website.bu...
      kwargs = {'button_gradients': 0, 'button_rounded_corners': 1, 'button_shadows': 0, 'creation': '2020-09-16 17:58:16.283764', 'custom': 0, 'custom_overrides': '', 'custom_scss': '', 'docstatus': 0, 'doctype': 'Website Theme', 'font_properties': 'wght@300;400;500;600;700;800', 'google_font': 'Varela Round', 'idx': 0, 'ignored_apps': [], 'modified': '2023-03-17 15:13:56.537355', 'modified_by': 'Administrator', 'module': 'Portal', 'name': 'Dokos', 'owner': 'Administrator', 'theme': 'Dokos', 'theme_scss': '\n@import url("https://fonts.googleapis.com/css2?family=Varela+Round:wght@300;400;500;600;700;800&display=swap");\n$font-family-sans-serif: "Varela Round", -apple-system, BlinkMacSystemFont,\n\t"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",\n\t"Droid Sans", "Helvetica Neue", sans-serif;\n$enable-shadows: false;\n$enable-gradients: false;\n$enable-rounded: true;\n\n// Bootstrap Variable Overrides\n\n\n// Import themes from installed apps\n@import "frappe/public/scss/website.bun...
      __class__ = <class 'frappe.model.document.Document'>
  File "/var/dokos/dokos-erp/apps/frappe/frappe/model/base_document.py", line 105, in __init__
    self._table_fieldnames = {df.fieldname for df in self._get_table_fields()}
      self = <WebsiteTheme: unsaved>
      d = {'button_gradients': 0, 'button_rounded_corners': 1, 'button_shadows': 0, 'creation': '2020-09-16 17:58:16.283764', 'custom': 0, 'custom_overrides': '', 'custom_scss': '', 'docstatus': 0, 'doctype': 'Website Theme', 'font_properties': 'wght@300;400;500;600;700;800', 'google_font': 'Varela Round', 'idx': 0, 'ignored_apps': [], 'modified': '2023-03-17 15:13:56.537355', 'modified_by': 'Administrator', 'module': 'Portal', 'name': 'Dokos', 'owner': 'Administrator', 'theme': 'Dokos', 'theme_scss': '\n@import url("https://fonts.googleapis.com/css2?family=Varela+Round:wght@300;400;500;600;700;800&display=swap");\n$font-family-sans-serif: "Varela Round", -apple-system, BlinkMacSystemFont,\n\t"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",\n\t"Droid Sans", "Helvetica Neue", sans-serif;\n$enable-shadows: false;\n$enable-gradients: false;\n$enable-rounded: true;\n\n// Bootstrap Variable Overrides\n\n\n// Import themes from installed apps\n@import "frappe/public/scss/website.bun...
  File "/var/dokos/dokos-erp/apps/frappe/frappe/model/base_document.py", line 294, in _get_table_fields
    return self.meta.get_table_fields()
      self = <WebsiteTheme: unsaved>
  File "/var/dokos/dokos-erp/apps/frappe/frappe/model/meta.py", line 210, in get_table_fields
    return self._table_fields
      self = <Meta: Website Theme>
builtins.AttributeError: 'Meta' object has no attribute '_table_fields'

Que puis-je faire Ă  ce niveau ?

Bonjour @ozy,

Apparemment le message d’erreur est le même qu’ici: Problème lors de la dernière mise à jour

Pouvez-vous essayer de lancer bench restart puis bench update --reset ?

Côté yarn c’est juste un warning qui peut être ignoré.

Bonne journée

Bon, et bien j’ai honte de ne pas avoir cherché sur le forum… J’ai simplement utilisé google pour chercher le message d’erreur, sans trouver quelque chose de bien probant…

Bref, la méthode bench restart ne fonctionne pas, même erreur, pourtant, tout semble avoir été exécuté proprement:

[dokos@erp dokos-erp]$ bench restart
$ supervisorctl restart dokos-erp-workers: dokos-erp-web:
dokos-erp-workers:dokos-erp-frappe-schedule: stopped
dokos-erp-workers:dokos-erp-frappe-default-worker-0: stopped
dokos-erp-workers:dokos-erp-frappe-short-worker-0: stopped
dokos-erp-workers:dokos-erp-frappe-long-worker-0: stopped
dokos-erp-web:dokos-erp-node-socketio: stopped
dokos-erp-web:dokos-erp-frappe-web: stopped
dokos-erp-workers:dokos-erp-frappe-schedule: started
dokos-erp-workers:dokos-erp-frappe-default-worker-0: started
dokos-erp-workers:dokos-erp-frappe-short-worker-0: started
dokos-erp-workers:dokos-erp-frappe-long-worker-0: started
dokos-erp-web:dokos-erp-frappe-web: started
dokos-erp-web:dokos-erp-node-socketio: started

Par contre la méthode du reboot a bien fonctionnée :wink:

Merci de votre aide.

1 « J'aime »

Super, ravi que ça ait pu être résolu facilement :slight_smile:

Bonne journée !