Project

General

Profile

Bug #61951

fargo not starting, djangorestframework 3.12

Added by Guillaume Baffoin 4 months ago. Updated 4 months ago.

Status:
Fermé
Priority:
Normal
Target version:
-
Start date:
18 Feb 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No
Tags:

Description

Suite à la migration bullseye Fargo ne démarre pas :

févr. 18 10:21:29 dmzt-gru-publik systemd[1]: Starting Fargo...
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]: Traceback (most recent call last):
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/fargo/manage.py", line 10, in <module>
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     execute_from_command_line(sys.argv)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     utility.execute()
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 375, in execute
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     self.fetch_command(subcommand).run_from_argv(self.argv)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 323, in run_from_argv
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     self.execute(*args, **cmd_options)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 361, in execute
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     self.check()
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 387, in check
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     all_issues = self._run_checks(
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 377, in _run_checks
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     return checks.run_checks(**kwargs)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/core/checks/registry.py", line 72, in run_checks
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     new_errors = check(app_configs=app_configs)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/core/checks/urls.py", line 13, in check_url_config
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     return check_resolver(resolver)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/core/checks/urls.py", line 23, in check_resolver
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     return check_method()
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/urls/resolvers.py", line 403, in check
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     for pattern in self.url_patterns:
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in __get__
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     res = instance.__dict__[self.name] = self.func(instance)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/urls/resolvers.py", line 588, in url_patterns
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in __get__
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     res = instance.__dict__[self.name] = self.func(instance)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/django/urls/resolvers.py", line 581, in urlconf_module
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     return import_module(self.urlconf_name)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     return _bootstrap._gcd_import(name[level:], package, level)
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "<frozen importlib._bootstrap_external>", line 790, in exec_module
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/fargo/urls.py", line 21, in <module>
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     from .fargo.api_views import push_document, recent_documents, router
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:   File "/usr/lib/python3/dist-packages/fargo/fargo/api_views.py", line 248, in <module>
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]:     router.register(r'validation/(?P<document_type>[^/]*)', ValidationAPI, base_name='fargo-api-validation')
févr. 18 10:21:31 dmzt-gru-publik fargo-manage[23730]: TypeError: register() got an unexpected keyword argument 'base_name'
févr. 18 10:21:31 dmzt-gru-publik systemd[1]: fargo.service: Control process exited, code=exited, status=1/FAILURE
févr. 18 10:21:31 dmzt-gru-publik systemd[1]: fargo.service: Failed with result 'exit-code'.
févr. 18 10:21:31 dmzt-gru-publik systemd[1]: Failed to start Fargo.


Files

Associated revisions

Revision 715bbf97 (diff)
Added by Frédéric Péters 4 months ago

build: allow newer djangorestframework (#61951)

Revision 6bcdf1d8 (diff)
Added by Frédéric Péters 4 months ago

misc: update drf register call to use basename keyword arg (#61951)

History

#1

Updated by Frédéric Péters 4 months ago

  • Subject changed from migration bullseye : fargo not starting to fargo not starting, djangorestframework 3.12
#2

Updated by Frédéric Péters 4 months ago

0001 pour modifier le setup.py et 0002 pour fonctionner avec djangorestframework >= 3.11.

(jenkins n'a pas eu le temps de voir 0001 sans 0002 mais aurait été rouge).

#3

Updated by Paul Marillonnet 4 months ago

  • Status changed from Solution proposée to Solution validée
#4

Updated by Frédéric Péters 4 months ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 6bcdf1d8139173bb9c59939e14f513f6eb4dc14d
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Feb 18 10:29:47 2022 +0100

    misc: update drf register call to use basename keyword arg (#61951)

commit 715bbf97ae99956d5201c4dcc96a546ccfc2b6d4
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Feb 18 10:28:11 2022 +0100

    build: allow newer djangorestframework (#61951)
#5

Updated by Transition automatique 4 months ago

  • Status changed from Résolu (à déployer) to Solution déployée
#7

Updated by Transition automatique 2 months ago

Automatic expiration

Also available in: Atom PDF