ImportError when upgrading Mayan Docker container from version 3.2.6 to s4.6

Hi,

I am attempting to upgrade a Mayan EDMS Docker container from version 3.2.6 to s4.6. However, the upgrade is unsuccessful and reports an Import Error. The stacktrace has been copied below. Any help resolving this issue would be much appreciated.

Cheers

Operations to perform:
  Apply all migrations: acls, actstream, admin, announcements, appearance, auth, authentication_otp, authtoken, autoadmin, cabinets, checkouts, common, contenttypes, converter, credentials, django_celery_beat, django_gpg, document_comments, document_downloads, document_exports, document_indexing, document_parsing, document_signatures, document_states, documents, duplicates, dynamic_search, events, file_caching, file_metadata, linking, locales, lock_manager, logging, mailer, mayan_statistics, messaging, metadata, motd, ocr, permissions, quotas, sessions, signature_captures, sites, smart_settings, source_emails, source_periodic, source_sane_scanners, source_staging_folders, source_watch_folders, source_web_forms, sources, storage, tags, user_management, web_links
Running migrations:
  No migrations to apply.
mayan.apps.backends.model_mixins <27> [ERROR] "get_backend_class() line 50 ImportError while importing backend: ;  doesn't look like a module path"
Traceback (most recent call last):
  File "/opt/mayan-edms/lib/python3.11/site-packages/django/utils/module_loading.py", line 25, in import_string
    module_path, class_name = dotted_path.rsplit(".", 1)
    ^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/common/management/base.py", line 129, in do_perform_upgrade
    signal_post_upgrade.send(sender=self)
  File "/opt/mayan-edms/lib/python3.11/site-packages/django/dispatch/dispatcher.py", line 176, in send
    return [
           ^
  File "/opt/mayan-edms/lib/python3.11/site-packages/django/dispatch/dispatcher.py", line 177, in <listcomp>
    (receiver, receiver(signal=self, sender=sender, **named))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/sources/handlers.py", line 27, in handler_initialize_periodic_tasks
    backend_instance = source.get_backend_instance()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/backends/model_mixins.py", line 86, in get_backend_instance
    backend_class = self.get_backend_class()
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/backends/model_mixins.py", line 39, in get_backend_class
    return import_string(dotted_path=self.backend_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/mayan-edms/lib/python3.11/site-packages/django/utils/module_loading.py", line 27, in import_string
    raise ImportError("%s doesn't look like a module path" % dotted_path) from err
ImportError:  doesn't look like a module path

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/mayan-edms/bin/mayan-edms.py", line 22, in <module>
    main()
  File "/opt/mayan-edms/bin/mayan-edms.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/opt/mayan-edms/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/opt/mayan-edms/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/mayan-edms/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/mayan-edms/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/common/management/commands/common_perform_upgrade.py", line 18, in handle
    instance.do_perform_upgrade(
  File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/common/management/base.py", line 131, in do_perform_upgrade
    raise BaseCommonException(
mayan.apps.common.exceptions.BaseCommonException: Error during signal_post_upgrade signal.
1 Like

Sorry his majesty @roberto.rosario will not help you unless you pay.

Learn the lesson Mayan is not open source, use Paperless NGX instead and avoid these problem.