Can't create new projects in Taiga since upgrade

356 views
Skip to first unread message

r.ko...@amsterdamumc.nl

unread,
Dec 2, 2019, 5:09:18 AM12/2/19
to taigaio
Hi,

Since we upgraded to Taiga 4.2.14 in november, we haven't been able to create new projects.
When we create a new project the site just hangs and does nothing.
You can reload but the porject is not created.

If we look in Django, we see the project but it has no roles or other things and can't be used.

After some searching we found the following eror in gunicorn.stderr.log

-
ERROR:2019-12-02 09:37:37,855: Internal Server Error: /api/v1/projects
Traceback (most recent call last):
  File "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/viewsets.py", line 106, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/views.py", line 460, in dispatch
    response = self.handle_exception(exc)
  File "/home/taiga/taiga-back/taiga/base/api/views.py", line 458, in dispatch
    response = handler(request, *args, **kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/mixins.py", line 100, in create
    self.object = validator.save(force_insert=True)
  File "/home/taiga/taiga-back/taiga/base/api/serializers.py", line 1116, in save
    self.object = super().save(**kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/serializers.py", line 649, in save
    self.save_object(self.object, **kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/serializers.py", line 1134, in save_object
    obj.save(**kwargs)
  File "/home/taiga/taiga-back/taiga/projects/models.py", line 301, in save
    super().save(*args, **kwargs)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/db/models/base.py", line 808, in save
    force_update=force_update, update_fields=update_fields)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/db/models/base.py", line 848, in save_base
    update_fields=update_fields, raw=raw, using=using,
  File "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 193, in send
    for receiver in self._live_receivers(sender)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 193, in <listcomp>
    for receiver in self._live_receivers(sender)
  File "/home/taiga/taiga-back/taiga/projects/signals.py", line 72, in project_post_save
    template.apply_to_project(instance)
  File "/home/taiga/taiga-back/taiga/projects/models.py", line 1106, in apply_to_project
    for us_duedate in self.us_duedates:
TypeError: 'NoneType' object is not iterable

-

We tried updating again today ( 2nd of December ) but it didn't help.
I think the current version is now 5.0.2 or 5.0.3 ?
We always use the following upgrade instructions: https://taigaio.github.io/taiga-doc/dist/upgrades.html

Have any of you encountered this issue before and have any suggestions on what to do?

Miguel González Álvarez

unread,
Dec 2, 2019, 11:08:38 AM12/2/19
to r.ko...@amsterdamumc.nl, taigaio
Hi!

It seems to me that the project template is missing a value for `Us duedates`.

Locate your project template in the admin https://your-taiga/admin/projects/projecttemplate/ and fill this field with and empty list, something like []

Hope it helps.


--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/df866dba-a9bb-463c-9a33-130ae741ce5c%40googlegroups.com.


--
Miguel González
Reply all
Reply to author
Forward
0 new messages