Bug #40497
cron, ValueError: The 'ics_file' attribute has no file associated with it.
Début:
06 mars 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
/etc/cron.hourly/chrono: Tenant object: ValueError: The 'ics_file' attribute has no file associated with it. Tenant object: ValueError: The 'ics_file' attribute has no file associated with it. Tenant object: ValueError: The 'ics_file' attribute has no file associated with it.
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 4 ans
La trace obtenue en exécutant le job manuellement :
Traceback (most recent call last): File "/usr/lib/chrono/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python3/dist-packages/hobo/multitenant/management/commands/tenant_command.py", line 140, in run_from_argv klass.run_from_argv(args) File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 330, in execute output = self.handle(*args, **options) File "/usr/lib/python3/dist-packages/chrono/agendas/management/commands/sync_desks_timeperiod_exceptions.py", line 40, in handle source.desk.import_timeperiod_exceptions_from_ics_file(source.ics_file, source=source) File "/usr/lib/python3/dist-packages/chrono/agendas/models.py", line 600, in import_timeperiod_exceptions_from_ics_file return self._import_timeperiod_exceptions_from_ics(source=source, data=force_text(ics_file.read())) File "/usr/lib/python3/dist-packages/django/core/files/utils.py", line 16, in <lambda> read = property(lambda self: self.file.read) File "/usr/lib/python3/dist-packages/django/db/models/fields/files.py", line 49, in _get_file self._require_file() File "/usr/lib/python3/dist-packages/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'ics_file' attribute has no file associated with it.
Mis à jour par Lauréline Guérin il y a environ 4 ans
- Fichier 0001-agenda-fix-sync_desks_timeperiod_exceptions-command-.patch 0001-agenda-fix-sync_desks_timeperiod_exceptions-command-.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Lauréline Guérin il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 7062e587fb1adba7f22bcc94aefd0c5ba92bbf60 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Fri Mar 6 14:12:14 2020 +0100 agenda: fix sync_desks_timeperiod_exceptions command (#40497)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
agenda: fix sync_desks_timeperiod_exceptions command (#40497)