Giter Site home page Giter Site logo

benhutchins / docker-taiga Goto Github PK

View Code? Open in Web Editor NEW
287.0 287.0 153.0 57 KB

Docker container for Taiga https://taiga.io

Home Page: https://hub.docker.com/r/benhutchins/taiga/

License: GNU General Public License v3.0

Python 37.67% Shell 31.51% Dockerfile 30.82%

docker-taiga's People

Contributors

andrey013 avatar benhutchins avatar egv avatar mazafard avatar phdd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-taiga's Issues

Random problem with email & status updates

Hey, I have the strangest of issues with this taiga docker.

Emailing seems to work, as invitations are being sent, as well as the confirmation that follows up.

However, when I submit a comment on a US, with a mention in it for a user, an email is never sent. No other notifications seem to be emailed either.
Also, in the news feed not all these updates some to come up, and some randomness about when they do seems to occur. (i cant find any pattern)

My SMTP server isnt logging any activity, the docker logs dont show any error, what can I do to debug?

Specify DB Port

Hi,

How i can specify other port for database connection ? TAIGA_DB_PORT ?

Thanks

Missing env TAIGA_SSL_BY_REVERSE_PROXY in Dockerfile

When trying to build image got an error:

File "/usr/src/taiga-back/settings/docker.py", line 23, in <module>
    if os.getenv('TAIGA_SSL').lower() == 'true' or os.getenv('TAIGA_SSL_BY_REVERSE_PROXY').lower() == 'true':
AttributeError: 'NoneType' object has no attribute 'lower'

Adding to the Dockerfile
ENV TAIGA_SSL_BY_REVERSE_PROXY False
Solved the problem

MIT Keyserver request timeout causes `docker-compose up` to fail

Using Docker for Windows 18.03.1-ce-win65 (17513, Channel: stable)
Compose: 1.21.1

This is a weird error. I can access the actual Cryptonomicon MIT website via HTTPS normally.

Pinging the server doesn't work (they probably disabled that), but so does the request you're making in the Dockerfile. What can I do to troubleshoot?

First try:

...

Step 5/46 : RUN apt-key adv   --keyserver hkp://pgp.mit.edu:80   --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
 ---> Running in a5d011028e9c
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.LgcSAxYJiQ --no-auto-check-trustdb --trust-model always --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
gpg: requesting key 7BD9BF62 from hkp server pgp.mit.edu
gpgkeys: key 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
ERROR: Service 'taiga' failed to build: The command '/bin/sh -c apt-key adv   --keyserver hkp://pgp.mit.edu:80   --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' returned a non-zero code: 2

Second try:

...
Step 5/46 : RUN apt-key adv   --keyserver hkp://pgp.mit.edu:80   --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
 ---> Running in 171303a31df2
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.ujMfiwAD9L --no-auto-check-trustdb --trust-model always --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
gpg: requesting key 7BD9BF62 from hkp server pgp.mit.edu
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
ERROR: Service 'taiga' failed to build: The command '/bin/sh -c apt-key adv   --keyserver hkp://pgp.mit.edu:80   --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' returned a non-zero code: 2

Thanks!

(And thanks for maintaining this repository! You're saving us a TON of time when it works!)

Gitlab webhook not working

Hello,

I have used this image to run Taiga and tried integrating with Gitlab running in another container on the same host, following these instructions. Unfortunately Taiga throws an 500 error when Gitlab does a POST to it. WHen I inspect the logs with docker logs I see this:

Request repr():
<WSGIRequest
path:/api/v1/gitlab-hook,
GET:<QueryDict: {'project': ['1'], 'key': ['c105c81f35ea47b7bbe86dce8c180217']}>,
POST:<QueryDict: {}>,
COOKIES:{'csrftoken': 'ib6nXljqgcQvOFUTODWc1MZvdgv5l9VA',
 'sessionid': 'z68706z3wal7az1hk3sg37vd7lpiw24l'},
META:{'CONTENT_LENGTH': '1734',
 'CONTENT_TYPE': 'application/json',
 'DB_1_ENV_GOSU_VERSION': '1.7',
 'DB_1_ENV_LANG': 'en_US.utf8',
 'DB_1_ENV_PGDATA': '/var/lib/postgresql/data',
 'DB_1_ENV_PG_MAJOR': '9.5',
 'DB_1_ENV_PG_VERSION': '9.5.1-1.pgdg80+1',
 'DB_1_ENV_POSTGRES_PASSWORD': '{pass}',
 'DB_1_ENV_POSTGRES_USER': 'taiga',
 'DB_1_NAME': '/mid6_taiga_1/db_1',
 'DB_1_PORT': 'tcp://172.17.0.3:5432',
 'DB_1_PORT_5432_TCP': 'tcp://172.17.0.3:5432',
 'DB_1_PORT_5432_TCP_ADDR': '172.17.0.3',
 'DB_1_PORT_5432_TCP_PORT': '5432',
 'DB_1_PORT_5432_TCP_PROTO': 'tcp',
 'DB_ENV_GOSU_VERSION': '1.7',
 'DB_ENV_LANG': 'en_US.utf8',
 'DB_ENV_PGDATA': '/var/lib/postgresql/data',
 'DB_ENV_PG_MAJOR': '9.5',
 'DB_ENV_PG_VERSION': '9.5.1-1.pgdg80+1',
 'DB_ENV_POSTGRES_PASSWORD': '{pass}',
 'DB_ENV_POSTGRES_USER': 'taiga',
 'DB_NAME': '/mid6_taiga_1/db',
 'DB_PORT': 'tcp://172.17.0.3:5432',
 'DB_PORT_5432_TCP': 'tcp://172.17.0.3:5432',
 'DB_PORT_5432_TCP_ADDR': '172.17.0.3',
 'DB_PORT_5432_TCP_PORT': '5432',
 'DB_PORT_5432_TCP_PROTO': 'tcp',
 'DJANGO_SETTINGS_MODULE': 'settings',
 'EMAIL_HOST': 'smtp.gmail.com',
 'EMAIL_HOST_PASSWORD': 'casusMID6',
 'EMAIL_HOST_USER': '[email protected]',
 'EMAIL_PORT': '587',
 'EMAIL_USE_TLS': 'True',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'GPG_KEY': '97FC712E4C024BBEA48A61ED3A5CA953F73C700D',
 'HOME': '/root',
 'HOSTNAME': 'dev.wolk.local',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,nl;q=0.7,chrome://global/locale/intl.properties;q=0.3',
 'HTTP_CONNECTION': 'close',
 'HTTP_COOKIE': 'csrftoken=ib6nXljqgcQvOFUTODWc1MZvdgv5l9VA; '
                'sessionid=z68706z3wal7az1hk3sg37vd7lpiw24l',
 'HTTP_HOST': 'dev.wolk.local',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) '
                    'Gecko/20100101 Firefox/47.0',
 'HTTP_X_FORWARDED_FOR': '172.16.8.11, 172.17.0.6',
 'HTTP_X_FORWARDED_PROTO': 'http',
 'HTTP_X_REAL_IP': '172.17.0.6',
 'HTTP_X_SCHEME': 'http',
 'LANG': 'en_US.UTF-8',
 'LC_TYPE': 'en_US.UTF-8',
 'MID6_DB_1_ENV_GOSU_VERSION': '1.7',
 'MID6_DB_1_ENV_LANG': 'en_US.utf8',
 'MID6_DB_1_ENV_PGDATA': '/var/lib/postgresql/data',
 'MID6_DB_1_ENV_PG_MAJOR': '9.5',
 'MID6_DB_1_ENV_PG_VERSION': '9.5.1-1.pgdg80+1',
 'MID6_DB_1_ENV_POSTGRES_PASSWORD': '{pass}',
 'MID6_DB_1_ENV_POSTGRES_USER': 'taiga',
 'MID6_DB_1_NAME': '/mid6_taiga_1/mid6_db_1',
 'MID6_DB_1_PORT': 'tcp://172.17.0.3:5432',
 'MID6_DB_1_PORT_5432_TCP': 'tcp://172.17.0.3:5432',
 'MID6_DB_1_PORT_5432_TCP_ADDR': '172.17.0.3',
 'MID6_DB_1_PORT_5432_TCP_PORT': '5432',
 'MID6_DB_1_PORT_5432_TCP_PROTO': 'tcp',
 'NGINX_VERSION': '1.9.7-1~jessie',
 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
 'PATH_INFO': '/api/v1/gitlab-hook',
 'PWD': '/usr/src/taiga-back',
 'PYTHON_PIP_VERSION': '8.0.3',
 'PYTHON_VERSION': '3.4.4',
 'QUERY_STRING': 'project=1&key=c105c81f35ea47b7bbe86dce8c180217',
 'REMOTE_ADDR': '127.0.0.1',
 'REMOTE_HOST': '',
 'REQUEST_METHOD': 'POST',
 'RUN_MAIN': 'true',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'dev.wolk.local',
 'SERVER_PORT': '8000',
 'SERVER_PROTOCOL': 'HTTP/1.0',
 'SERVER_SOFTWARE': 'WSGIServer/0.2',
 'SHLVL': '0',
 'TAIGA_DB_HOST': 'db',
 'TAIGA_DB_NAME': 'taiga',
 'TAIGA_DB_PASSWORD': '{pass}',
 'TAIGA_DB_USER': 'taiga',
 'TAIGA_HOSTNAME': 'dev.wolk.local',
 'TAIGA_SECRET_KEY': '{key}',
 'TAIGA_SLEEP': '30',
 'TAIGA_SSL': 'False',
 'TZ': 'UTC',
 'VIRTUAL_HOST': 'dev.*,taiga.*',
 'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='ANSI_X3.4-1968'>,
 'wsgi.file_wrapper': <class 'wsgiref.util.FileWrapper'>,
 'wsgi.input': <_io.BufferedReader name=7>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>
-------------------------------------------------------------------------------
[17/Mar/2016 09:58:53] "POST /api/v1/gitlab-hook?project=1&key=c105c81f35ea47b7bbe86dce8c180217 HTTP/1.0" 500 37
ERROR:2016-03-17 09:58:54,292: Internal Server Error: /api/v1/gitlab-hook
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/django/core/handlers/base.py", line 164, in get_response
    response = response.render()
  File "/usr/local/lib/python3.4/site-packages/django/template/response.py", line 158, in render
    self.content = self.rendered_content
  File "/usr/src/taiga-back/taiga/base/response.py", line 98, in rendered_content
    ret = renderer.render(self.data, media_type, context)
  File "/usr/src/taiga-back/taiga/base/api/renderers.py", line 632, in render
    context = self.get_context(data, accepted_media_type, renderer_context)
  File "/usr/src/taiga-back/taiga/base/api/renderers.py", line 582, in get_context
    raw_data_post_form = self.get_raw_data_form(view, "POST", request)
  File "/usr/src/taiga-back/taiga/base/api/renderers.py", line 510, in get_raw_data_form
    if not self.show_form_for_method(view, method, request, obj):
  File "/usr/src/taiga-back/taiga/base/api/renderers.py", line 450, in show_form_for_method
    view.check_permissions(request)
  File "/usr/src/taiga-back/taiga/base/api/viewsets.py", line 133, in check_permissions
    return super().check_permissions(request, action=action, obj=obj)
  File "/usr/src/taiga-back/taiga/base/api/views.py", line 327, in check_permissions
    for permission in self.get_permissions():
  File "/usr/src/taiga-back/taiga/base/utils/iterators.py", line 29, in _decorator
    return list(function(*args, **kwargs))
  File "/usr/src/taiga-back/taiga/base/api/views.py", line 280, in get_permissions
    view=self)
TypeError: object() takes no parameters

I asked for help at the mailing lists but they said that I should try asking here.

Stuck at taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/ca/LC_MESSAGES

after docker-compose up

.
.
.
taiga_1     |   Applying userstories.0013_auto_20160722_1018... OK
taiga_1     |   Applying userstories.0014_auto_20160928_0540... OK
taiga_1     |   Applying votes.0001_initial... OK
taiga_1     |   Applying votes.0002_auto_20150805_1600... OK
taiga_1     |   Applying webhooks.0001_initial... OK
taiga_1     |   Applying webhooks.0002_webhook_name... OK
taiga_1     |   Applying webhooks.0003_auto_20150122_1021... OK
taiga_1     |   Applying webhooks.0004_auto_20150202_0834... OK
taiga_1     |   Applying webhooks.0005_auto_20150505_1639... OK
taiga_1     |   Applying wiki.0004_auto_20160928_0540... OK
taiga_1     | Trying import local.py settings...
taiga_1     | Installed 1 object(s) from 1 fixture(s)
taiga_1     | Trying import local.py settings...
taiga_1     | Trying import local.py settings...
taiga_1     | Installed 2 object(s) from 1 fixture(s)
taiga_1     | Trying import local.py settings...
taiga_1     | Trying import local.py settings...
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/it/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/nb/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/es/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/ru/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/fi/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/pt_BR/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/tr/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/en/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/nl/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/de/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/sv/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/fr/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/pl/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/zh-Hant/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/ca/LC_MESSAGES

any ideas?

Error checkdb.py

Hi,

first of all thanks for this repo! life saving :)!

But there is a small error in checkdb.py
in this line :
conn = psycopg2.connect("dbname='" + DB_NAME + "' user='" + DB_USER + "' host='" + DB_USER + "' password='" + DB_PASS + "'")

the host is filled with DB_USER instead of DB_HOST.

Thks @benhutchins!

ERROR: build path

Hello, after cloning the project, I run docker-compose up
and I have this :
ERROR: build path /home/kad/mytaiga/simple/benhutchins/taiga either does not exist, is not accessible, or is not a valid URL.

Thanks

ascii codec can't encode character

I'm getting this error when trying to comment on an issue.

--------
taiga_1     | ERROR:2018-04-11 12:35:32,519: Internal Server Error: /api/v1/issues/3
taiga_1     | Traceback (most recent call last):
taiga_1     |   File "/usr/local/lib/python3.5/site-packages/django/core/handlers/exception.py", line 42, in inner
taiga_1     |     response = get_response(request)
taiga_1     |   File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
taiga_1     |     response = self._get_response(request)
taiga_1     |   File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
taiga_1     |     response = self.process_exception_by_middleware(e, request)
taiga_1     |   File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
taiga_1     |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
taiga_1     |   File "/usr/src/taiga-back/taiga/base/api/viewsets.py", line 106, in view
taiga_1     |     return self.dispatch(request, *args, **kwargs)
taiga_1     |   File "/usr/local/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
taiga_1     |     return view_func(*args, **kwargs)
taiga_1     |   File "/usr/src/taiga-back/taiga/base/api/views.py", line 461, in dispatch
taiga_1     |     response = self.handle_exception(exc)
taiga_1     |   File "/usr/src/taiga-back/taiga/base/api/views.py", line 458, in dispatch
taiga_1     |     response = handler(request, *args, **kwargs)
taiga_1     |   File "/usr/src/taiga-back/taiga/base/api/mixins.py", line 207, in partial_update
taiga_1     |     return self.update(request, *args, **kwargs)
taiga_1     |   File "/usr/src/taiga-back/taiga/projects/issues/api.py", line 141, in update
taiga_1     |     return super().update(request, *args, **kwargs)
taiga_1     |   File "/usr/local/lib/python3.5/contextlib.py", line 30, in inner
taiga_1     |     return func(*args, **kwds)
taiga_1     |   File "/usr/src/taiga-back/taiga/base/decorators.py", line 60, in decorator
taiga_1     |     return func(self, *args, **kwargs)
taiga_1     |   File "/usr/src/taiga-back/taiga/base/api/mixins.py", line 200, in update
taiga_1     |     self.post_save(self.object, created=False)
taiga_1     |   File "/usr/src/taiga-back/taiga/projects/occ/mixins.py", line 85, in post_save
taiga_1     |     super().post_save(obj, created)
taiga_1     |   File "/usr/src/taiga-back/taiga/projects/history/mixins.py", line 80, in post_save
taiga_1     |     super().post_save(obj, created=created)
taiga_1     |   File "/usr/src/taiga-back/taiga/projects/notifications/mixins.py", line 96, in post_save
taiga_1     |     self.send_notifications(obj)
taiga_1     |   File "/usr/src/taiga-back/taiga/projects/notifications/mixins.py", line 93, in send_notifications
taiga_1     |     services.send_notifications(obj, history=history)
taiga_1     |   File "/usr/local/lib/python3.5/contextlib.py", line 30, in inner
taiga_1     |     return func(*args, **kwds)
taiga_1     |   File "/usr/src/taiga-back/taiga/projects/notifications/services.py", line 234, in send_notifications
taiga_1     |     send_sync_notifications(notification.id)
taiga_1     |   File "/usr/local/lib/python3.5/contextlib.py", line 30, in inner
taiga_1     |     return func(*args, **kwds)
taiga_1     |   File "/usr/src/taiga-back/taiga/projects/notifications/services.py", line 294, in send_sync_notifications
taiga_1     |     email.send(user.email, context, headers=headers)
taiga_1     |   File "/usr/local/lib/python3.5/site-packages/djmail/template_mail.py", line 122, in send
taiga_1     |     return email.send()
taiga_1     |   File "/usr/local/lib/python3.5/site-packages/django/core/mail/message.py", line 342, in send
taiga_1     |     return self.get_connection(fail_silently).send_messages([self])
taiga_1     |   File "/usr/local/lib/python3.5/site-packages/django/core/mail/backends/console.py", line 36, in send_messages
taiga_1     |     self.write_message(message)
taiga_1     |   File "/usr/local/lib/python3.5/site-packages/django/core/mail/backends/console.py", line 23, in write_message
taiga_1     |     self.stream.write('%s\n' % msg_data)
taiga_1     | UnicodeEncodeError: 'ascii' codec can't encode character '\xe1' in position 783: ordinal not in range(128)

Can't create items cause rabbit complains

Hi,

I've used your install summary to run taiga as described. I can login and create a project. But when I try to create an item nothing happens.

Taiga shows the following traceback:

ERROR:2015-12-18 11:04:24,896: Internal Server Error: /api/v1/userstories
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/src/taiga-back/taiga/base/api/viewsets.py", line 81, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.4/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/src/taiga-back/taiga/base/api/views.py", line 420, in dispatch
    response = self.handle_exception(exc)
  File "/usr/src/taiga-back/taiga/base/api/views.py", line 417, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.4/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/usr/local/lib/python3.4/site-packages/django/db/transaction.py", line 271, in __exit__
    connection.set_autocommit(True)
  File "/usr/local/lib/python3.4/site-packages/transaction_hooks/mixin.py", line 58, in set_autocommit
    self.run_and_clear_commit_hooks()
  File "/usr/local/lib/python3.4/site-packages/transaction_hooks/mixin.py", line 38, in run_and_clear_commit_hooks
    func()
  File "/usr/src/taiga-back/taiga/events/signal_handlers.py", line 44, in <lambda>
    emit_event = lambda: events.emit_event_for_model(instance, sessionid=sesionid, type=type)
  File "/usr/src/taiga-back/taiga/events/events.py", line 78, in emit_event_for_model
    data=data)
  File "/usr/src/taiga-back/taiga/events/events.py", line 47, in emit_event
    channel=channel)
  File "/usr/src/taiga-back/taiga/events/backends/rabbitmq.py", line 51, in emit_event
    connection = _make_rabbitmq_connection(self.url)
  File "/usr/src/taiga-back/taiga/events/backends/rabbitmq.py", line 43, in _make_rabbitmq_connection
    password=password, virtual_host=vhost[1:])
  File "/usr/local/lib/python3.4/site-packages/amqp/connection.py", line 183, in __init__
    return self._x_open(virtual_host)
  File "/usr/local/lib/python3.4/site-packages/amqp/connection.py", line 627, in _x_open
    (10, 41),    # Connection.open_ok
  File "/usr/local/lib/python3.4/site-packages/amqp/abstract_channel.py", line 67, in wait
    self.channel_id, allowed_methods)
  File "/usr/local/lib/python3.4/site-packages/amqp/connection.py", line 240, in _wait_method
    self.method_reader.read_method()
  File "/usr/local/lib/python3.4/site-packages/amqp/method_framing.py", line 189, in read_method
    raise m
  File "/usr/local/lib/python3.4/site-packages/amqp/method_framing.py", line 107, in _next_method
    frame_type, channel, payload = read_frame()
  File "/usr/local/lib/python3.4/site-packages/amqp/transport.py", line 154, in read_frame
    frame_header = read(7, True)
  File "/usr/local/lib/python3.4/site-packages/amqp/transport.py", line 277, in _read
    s = recv(n - len(rbuf))
ConnectionResetError: [Errno 104] Connection reset by peer
[18/Dec/2015 11:04:24] "POST /api/v1/userstories HTTP/1.0" 500 37
192.168.99.1 - - [18/Dec/2015:11:04:24 +0000] "POST /api/v1/userstories HTTP/1.1" 500 48 "http://192.168.99.100/project/admin-kanban
1/kanban" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36" "-"

And rabbitmq shows the following error:

=ERROR REPORT==== 18-Dec-2015::11:04:24 ===
closing AMQP connection <0.588.0> (172.17.0.7:53612 -> 172.17.0.4:5672):
{handshake_error,opening,0,
                 {amqp_error,access_refused,
                             "access to vhost '' refused for user 'guest'",
                             'connection.open'}}

Any hint what went wrong ?

Thx

Jürgen

[Django] Upgrading to 1.9 ?

Hi Benjamin,

First of all, thank you for your work.
I encountered some issues when trying to use Taiga api ('/api/v1/') and it seems that it can be partially fixed by upgrading django to 1.9 version.

When I try to perform a pip3.4 install -U Django command, it crashes my container.

Have you ever tried to do this?

docker-compose up errors and Initial login cred ?

What are the credentials for initial login after docker-compose?
username/pass...

Also i see this error...

Trying import local.py settings...
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.4/site-packages/django/core/management/__init__.py", line 328, in execute
    django.setup()
  File "/usr/local/lib/python3.4/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.4/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/usr/local/lib/python3.4/site-packages/django/apps/config.py", line 112, in create
    mod = import_module(mod_path)
  File "/usr/local/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/usr/src/taiga-back/taiga/projects/apps.py", line 22, in <module>
    from . import signals as handlers
  File "/usr/src/taiga-back/taiga/projects/signals.py", line 21, in <module>
    from taiga.projects.services.tags_colors import update_project_tags_colors_handler, remove_unused_tags
  File "/usr/src/taiga-back/taiga/projects/services/__init__.py", line 21, in <module>
    from .bulk_update_order import update_projects_order_in_bulk
  File "/usr/src/taiga-back/taiga/projects/services/bulk_update_order.py", line 21, in <module>
    from taiga.projects import models
  File "/usr/src/taiga-back/taiga/projects/models.py", line 44, in <module>
    from taiga.projects.notifications.services import (
  File "/usr/src/taiga-back/taiga/projects/notifications/services.py", line 36, in <module>
    from taiga.projects.history.services import (make_key_from_model_object,
  File "/usr/src/taiga-back/taiga/projects/history/services.py", line 42, in <module>
    from taiga.mdrender.service import render as mdrender
  File "/usr/src/taiga-back/taiga/mdrender/__init__.py", line 18, in <module>
    from .service import *
  File "/usr/src/taiga-back/taiga/mdrender/service.py", line 20, in <module>
    import bleach
  File "/usr/local/lib/python3.4/site-packages/bleach/__init__.py", line 8, in <module>
    from html5lib.sanitizer import HTMLSanitizer
ImportError: No module named 'html5lib.sanitizer'
ERROR: Service 'taiga' failed to build: The command '/bin/sh -c python manage.py collectstatic --noinput' returned a non-zero code: 1


[ FAILURE ] docker-compose up trouble

Step 20 : RUN ln -s /taiga/conf.json /usr/src/taiga-front-dist/dist/conf.json
 ---> Running in 33360a74469e
ln: failed to create symbolic link ‘/usr/src/taiga-front-dist/dist/conf.json’: No such file or directory
ERROR: Service 'taiga' failed to build: The command '/bin/sh -c ln -s /taiga/conf.json /usr/src/taiga-front-dist/dist/conf.json' returned a non-zero code: 1

Can you help to fix it?

Error in docker run TAIGA_DB_PASSWORD

Hi !
Thank you for your work !

I followed the summarize , I run :

docker run --name taiga-postgres -e POSTGRES_PASSWORD=password -d postgres
docker run --name taiga-redis -d redis:3
docker run --name taiga-rabbit -d --hostname taiga rabbitmq:3
docker run --name taiga-celery -d --link taiga-rabbit:rabbit celery
docker run --name taiga-events -d --link taiga-rabbit:rabbit benhutchins/taiga-events

Then :

docker run -itd
--name taiga
--link taiga-postgres:postgres
--link taiga-redis:redis
--link taiga-rabbit:rabbit
--link taiga-events:events
-p 80:80
-v /my/own/media:/usr/src/taiga-back/media
benhutchins/taiga

The last container is exited and after a "docker logs":

Running database check
Traceback (most recent call last):
File "/checkdb.py", line 12, in
"' password='" + DB_PASS + "'")
TypeError: Can't convert 'NoneType' object to str implicitly
Failed to connect to database server or database does not exist.

I tried to pass variable with -e TAIGA_DB_PASSWORD=password in the last container but still.

regards,

docker-compose fails with error when trying to pip install taiga-contrib-slack

Trying to run docker-compose with pretty much exactly what is given by your example yields:

Step 3/7 : RUN LC_ALL=C pip install --no-cache-dir taiga-contrib-slack ---> Running in 54c324dc61ae standard_init_linux.go:187: exec user process caused "exec format error" ERROR: Service 'taiga' failed to build: The command '/bin/sh -c LC_ALL=C pip install --no-cache-dir taiga-contrib-slack' returned a non-zero code: 1

Environment: Raspberry Pi 1
OS: Arch Linux
Kerne: 4.9.37-1-ARCH

Does this relate to the cryptic issue #23?

I think standard_init_linux.go:187: exec user process caused "exec format error" indicates issues with ARM architecture.

I am quite new to docker and it took me some while to understand this.

no valid OpenPGP data found

Im having an issue with the gpg-key

xecuting: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.Wi6ER4R03O --no-auto-check-trustdb --trust-model always --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
gpg: requesting key 7BD9BF62 from hkp server pgp.mit.edu
gpgkeys: key 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
ERROR: Service 'taiga' failed to build: The command '/bin/sh -c apt-key adv   --keyserver hkp://pgp.mit.edu:80   --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' returned a non-zero code: 2

Taiga error but nothing wrong in stdout

Hello,

I'm trying to run Taiga through Synology Docker interface. After some tests the system launch, connect to postgresql container and land me to the discover page. Unfortunatly I have an error message "Something happened and our Oompa Loompas are working on it." and don't know how to debug it.

Synology provide to me logs and terminal output but nothing seams wrong. What can I do from here ? Is there a way to enable a more verbose debug mode ? Or perhaps enable debug directly in Django ?

Thanks in advance for your help.

Docker compose failed

I'm getting this exception. Anyone has any idea why?

Step 21/46 : RUN ln -s /taiga/conf.json /usr/src/taiga-front-dist/dist/conf.json
 ---> Running in 94168ce7e08f
ln: failed to create symbolic link ‘/usr/src/taiga-front-dist/dist/conf.json’: No such file or directory
ERROR: Service 'taiga' failed to build: The command '/bin/sh -c ln -s /taiga/conf.json /usr/src/taiga-front-dist/dist/conf.json' returned a non-zero code: 1

Handling of different nginx configurations

There are four nginx configuartions loaded in the taiga container:

  • nginx.conf
  • taiga.conf
  • ssl.conf
  • taiga-events.conf

as far as I could see only taiga.conf and ssl.conf are used. If events are enabled the taiga-events.conf is not being loaded, which is required for the events to work correctly. Also if you would load the taiga-events.conf and want ssl to work there is no configuration for it. Have I overlooked anything obvious?

Install stuck at this point

taiga_1 | OK
taiga_1 | Trying import local.py settings...
taiga_1 | Installed 1 object(s) from 1 fixture(s)
taiga_1 | Trying import local.py settings...
taiga_1 | Installed 2 object(s) from 1 fixture(s)
taiga_1 | Trying import local.py settings...
taiga_1 | CommandError: No fixture named 'initial_role' found.
taiga_1 | Trying import local.py settings...
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/nl/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/tr/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/fi/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/de/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/ca/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/zh-Hans/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/ko/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/sv/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/ru/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/pt_BR/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/en/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/nb/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/es/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/zh-Hant/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/it/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/fr/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/pl/LC_MESSAGES
taiga_1 | processing file django.po in /usr/src/taiga-back/taiga/locale/ja/LC_MESSAGES

After this, no progress in the install process... any ideas to solve it?

Thanks!!

Fix SSL configuration

Currently, when using SSL, this warning is thrown:

[warn] 19#19: "ssl_stapling" ignored, issuer certificate not found

taiga-events WebSocket errors

Hi @benhutchins ,

Thank you very much for this image.

I'm having troubles with taiga-event. I'm using taiga behind a reverse proxy and I keep receiving WebSocket errors:

WebSocket connection to 'wss://taiga.hulab.co/events' failed: Error during WebSocket handshake: Unexpected response code: 200
WebSocket error: [object Event]
WebSocket connection to 'wss://taiga.hulab.co/events' failed: WebSocket is closed before the connection is established.

Here my docker-compose.yml :

version: '3'

services:

  taiga:
    build: .
    container_name: taiga
    ports:
      - 1000:80
    depends_on:
      - taiga-db
      - taiga-events
      - taiga-rabbit
      - taiga-redis
    links:
      - taiga-db:postgres
      - taiga-rabbit:rabbit
      - taiga-redis:redis
      - taiga-events:events
    environment:
      TAIGA_HOSTNAME: taiga.hulab.co
      TAIGA_DB_HOST: postgres
      TAIGA_DB_NAME: xxx
      TAIGA_DB_USER: xxx
      TAIGA_DB_PASSWORD: xxx
      TAIGA_SSL_BY_REVERSE_PROXY: 'True'
      VIRTUAL_HOST: taiga.hulab.co
      LETSENCRYPT_HOST: taiga.hulab.co
      LETSENCRYPT_EMAIL: xxx
    volumes:
      - ./media:/usr/src/taiga-back/media
      - ./conf:/taiga

  taiga-db:
    image: postgres
    container_name: taiga-db
    environment:
      POSTGRES_DB: xxx
      POSTGRES_USER: xxx
      POSTGRES_PASSWORD: xxx
    ports:
      - 5432
    volumes:
      - ./data:/var/lib/postgresql/data

  taiga-rabbit:
    image: rabbitmq:3
    container_name: taiga-rabbit
    hostname: rabbit

  taiga-redis:
    image: redis:3
    container_name: taiga-redis

  taiga-celery:
    image: celery
    container_name: taiga-celery
    links:
      - taiga-rabbit:rabbit

  taiga-events:
    image: benhutchins/taiga-events
    container_name: taiga-events
    links:
      - taiga-rabbit:rabbit

networks:
  default:
    external:
      name: proxy

Any idea how to fix this?

Thanks a lot

Update to the latest Taiga version

Hello,

I'm using your image on my server. How could I upgrade to the latest Taiga version (which has new important features to me)?

Thanks a lot

Error on docker-compose up

Unfortunately I always get an error at build step 7 when I fire up the docker-compose up command.
Any Idea how to fix that?

I'm running this under linux Manjaro with docker 18.06.1-ce

Here is the log:

[johannes-pc docker-taiga]# docker-compose up
Building taiga
Step 1/46 : FROM python:3.5
 ---> 1419e5e87f7c
Step 2/46 : MAINTAINER Benjamin Hutchins <[email protected]>
 ---> Using cache
 ---> 584cd9e8b503
Step 3/46 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> ccdd6932248d
Step 4/46 : ENV NGINX_VERSION 1.9.7-1~jessie
 ---> Using cache
 ---> df4d7b2a7c7e
Step 5/46 : RUN apt-key adv   --keyserver hkp://pgp.mit.edu:80   --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
 ---> Using cache
 ---> d5a44b51e4b8
Step 6/46 : RUN echo "deb http://nginx.org/packages/mainline/debian/ jessie nginx" >> /etc/apt/sources.list
 ---> Using cache
 ---> 1ffe2e0b7c23
Step 7/46 : RUN set -x;     apt-get update     && apt-get install -y --no-install-recommends         locales         gettext         ca-certificates         nginx=${NGINX_VERSION}     && rm -rf /var/lib/apt/lists/*
 ---> Running in 5a860d78966e
+ apt-get update
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:6 http://nginx.org/packages/mainline/debian jessie InRelease [2865 B]
Get:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [454 kB]
Get:8 http://deb.debian.org/debian stretch-updates/main amd64 Packages [5152 B]
Get:9 http://deb.debian.org/debian stretch/main amd64 Packages [7099 kB]
Get:10 http://nginx.org/packages/mainline/debian jessie/nginx amd64 Packages [52.9 kB]
Fetched 7919 kB in 5s (1511 kB/s)
Reading package lists...
+ apt-get install -y --no-install-recommends locales gettext ca-certificates nginx=1.9.7-1~jessie
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20161130+nmu1+deb9u1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nginx : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
ERROR: Service 'taiga' failed to build: The command '/bin/sh -c set -x;     apt-get update     && apt-get install -y --no-install-recommends         locales         gettext         ca-certificates         nginx=${NGINX_VERSION}     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

ARM Architecture

Unconfirmed. Got an email about a potential ARM architecture. Need to confirm, then fix if it is an issue.

Error on docker-compose up -d

Error on docker-compose up -d

Building taiga
Step 1 : FROM benhutchins/taiga
 ---> 6ed4caccab5a
Step 2 : MAINTAINER Benjamin Hutchins <[email protected]>
 ---> Using cache
 ---> d82557f3010d
Step 3 : RUN pip install --no-cache-dir       taiga-contrib-slack       taiga-contrib-ldap-auth
 ---> Using cache
 ---> f87d806e491f
Step 4 : COPY slack.js /usr/src/taiga-front-dist/dist/js/slack.js
ERROR: Service 'taiga' failed to build: stat slack.js: no such file or directory

I attempted to comment out the slack plugin as I won't be needing slack integration to remedy the issue to no avail.

Error on docker-compose up -d ln: failed to create symbolic link

Hi
someone know how fit it?
regards,

Removing intermediate container 5594f720abf1
Step 21 : RUN ln -s /taiga/conf.json /usr/src/taiga-front-dist/dist/conf.json
 ---> Running in 2c743b52996a
ln: failed to create symbolic link ‘/usr/src/taiga-front-dist/dist/conf.json’: No such file or directory
ERROR: Service 'taiga' failed to build: The command '/bin/sh -c ln -s /taiga/conf.json /usr/src/taiga-front-dist/dist/conf.json' returned a non-zero code: 1

Install msgfmt, part of GNU get text tools.

When running python manage.py compile messages as part of the initial database setup, it fails because it's missing a required dependency. Error thrown:

CommandError: Can't find msgfmt. Make sure you have GNU gettext tools 0.15 or newer installed.

Container uses Django development webserver

I noticed that this container uses the out-of-the-box Django webserver instead of using a dedicated web server. According to the Django documentation:

Don’t use this server in anything resembling a production environment. It’s intended only for use while developing. (We’re in the business of making Web frameworks, not Web servers.)

The Taiga documentation suggests installing it with a Gunicorn webserver. It seems that it would be best to do something like that instead of using the development server. I am using this container in production, so I would rather have a production quality webserver. If @benhutchins agrees with using Gunicorn I may try to install it and make a pull request for it.

Container won't start

Hi, I tried to use existing image and build one but when the container starts I always got an error:

Running database check
Connecting to database:
dbname='***' user='***' host='***' password='***'
Database does not appear to be setup.
Configuring initial database
python: can't open file 'manage.py': [Errno 2] No such file or directory

Troubleshooting server

Where are the logs written at? I've looked at the official taiga troubleshooting logs but none of the items there are found in the container.

I believe this is because its using the django dev server.

How to troubleshoot it?

emails can't go out of my container.

Hi, im not docker guru so it's might be(probably) on my side.

my instance of taiga can't send emails.

This is the error it give when it try:

[05/Dec/2017 19:21:23] "PATCH /api/v1/users/5 HTTP/1.0" 500 135988
ERROR:2017-12-05 19:21:25,753: Internal Server Error: /api/v1/users/5
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/django/core/handlers/exception.py", line 42, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/src/taiga-back/taiga/base/api/viewsets.py", line 106, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/src/taiga-back/taiga/base/api/views.py", line 461, in dispatch
    response = self.handle_exception(exc)
  File "/usr/src/taiga-back/taiga/base/api/views.py", line 458, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/src/taiga-back/taiga/users/api.py", line 147, in partial_update
    email.send()
  File "/usr/local/lib/python3.5/site-packages/django/core/mail/message.py", line 342, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/usr/local/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/usr/local/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/local/lib/python3.5/smtplib.py", line 251, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/local/lib/python3.5/smtplib.py", line 336, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/local/lib/python3.5/smtplib.py", line 307, in _get_socket
    self.source_address)
  File "/usr/local/lib/python3.5/socket.py", line 694, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/local/lib/python3.5/socket.py", line 733, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

This is the docker network connected to the container:

docker network inspect 4f22daa9df2f
[
    {
        "Name": "mytaiga_taiganw",
        "Id": "4f22daa9df2f325e4fcaa259e99ba93deb370d629fe4f9bd371cb3e842603afa",
        "Created": "2017-12-05T13:43:44.406590674-05:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.29.0.0/16",
                    "Gateway": "172.29.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "0d920ba57672603becaa5c2e06090307d0a078320bf29d641bc01abfa3abf61b": {
                "Name": "mytaiga_postgres_1",
                "EndpointID": "58ad8c5b89414424a9194903671ebc0eb6846cddf06ce2826476f9a48527d883",
                "MacAddress": "02:42:ac:1d:00:02",
                "IPv4Address": "172.29.0.2/16",
                "IPv6Address": ""
            },
            "eabd298f5af66f9dd119bdaec2eeac7acb57120cee8d3f50fa9310108c26a9ed": {
                "Name": "mytaiga_taiga_1",
                "EndpointID": "8945eea789e8f2a1be497a40bca064aef85e63896e63dda4f9a099b5b1f24299",
                "MacAddress": "02:42:ac:1d:00:03",
                "IPv4Address": "172.29.0.3/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

From inside the container I can't either ping google.com and 8.8.8.8 witch is probably the source of the problem.

Update taiga does not work

If taiga is updated e.g. because someone updated it in the docker image you generate, the database migration is not executed. You can do this by hand by entering the container, but it would be great if this would happen automatically.

TypeError: Can't convert 'NoneType' object to str implicitly

$ docker run --name mytaiga -e TAIGA_DB_HOST=localhost -e TAIGA_DB_USER=myuser -e TAIGA_DB_PASSWORD=mypass -e DB_PASS=mypass -itd benhutchins/taiga
340c32c9aad2edce9c99676512f4ba3e106f2614cc7b296f5381deedc8d08ce3
$ docker logs mytaiga
Running database check
Traceback (most recent call last):
  File "/checkdb.py", line 12, in <module>
    "' password='" + DB_PASS + "'")
TypeError: Can't convert 'NoneType' object to str implicitly
Failed to connect to database server or database does not exist.

https://github.com/benhutchins/docker-taiga/blob/6e597d6f078f759a7c222b59e5de2263294fccbf/checkdb.py

Update to 3.3.1 (and over 2018)

Hi !

I would like to update my taiga instance to 3.3.1 as it adds quite a load of cool features such as live notifications:

https://github.com/taigaio/taiga-back/blob/master/CHANGELOG.md

The issue is that I'm using this docker template and I have no idea how to update it. Any help would be greatly appreciated @benhutchins ! 😉

Beside, the Taiga dev team planned quite some cool stuff for 2018 and I'm wondering if this docker template will follow the pace of the releases over the year.

Thanks!

Admin URL scheme for resources doesn't change when using a reverse proxy.

When setting only TAIGA_SSL_BY_REVERSE_PROXY=True, the admin URL scheme for resources remains http. Setting TAIGA_SSL=True in addition to the aforementioned environment variable seems to make them work.

I'd like to recommend either a change to the readme, or an update to make it work as currently documented.

Docker Compose UP - DB Issue

I cloned , went to advanced , then docker-compose build then docker-compose up and i get the following

image

taiga_1 | Running database check
taiga_1 | Traceback (most recent call last):
taiga_1 | File "/checkdb.py", line 12, in
taiga_1 | "' password='" + DB_PASS + "'")
taiga_1 | TypeError: Can't convert 'NoneType' object to str implicitly
taiga_1 | Failed to connect to database server or database does not exist.
advanced_taiga_1 exited with code 1

Mixed content with images

Hi !

I installed Taiga on behind my Apache proxy. Everything is working great except I get mixed content warnings for images:

Mixed Content: The page at 'https://tg.website.com/project/myproject/' was loaded over HTTPS,
but requested an insecure image 'http://tg.website.com/media/user/1/4/5/6/719044330acb4fc76d85b27bc29cd4a4aa546e0d82e5d6db0ea35a6e75a8/t0255bcgs-u0255bcgw-8b381fb14cd9-512.png.80x80_q85_crop.jpg'.
This content should also be served over HTTPS.

The image is my profil picture on the taiga, but I was able to reproduce the same warning with an image attachment and the project image. Images still load, but this is not ideal as this is a production taiga so the HTTPS must be rock solid.

This is my docker SSL config (I used the docker-compose script to install it):

TAIGA_SSL: 'True' # I also tested it to false with only TAIGA_SSL_BY_REVERSE_PROXY: 'True'
TAIGA_SSL_BY_REVERSE_PROXY: 'True'

The SSL is then entirely handled by the apache config with Let's Encrypt.

<IfModule mod_ssl.c>
<VirtualHost *:443>
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
	
	ServerName tg.website.com
	
	RequestHeader set X-Forwarded-Proto "https"
	
	RewriteEngine On
	
	ProxyPreserveHost On
	ProxyRequests Off
	
	ProxyPass / http://127.0.0.1:1337/
	ProxyPassReverse / http://127.0.0.1:1337/
	
	SSLCertificateFile "/etc/letsencrypt/live/tg.website.com/fullchain.pem"
	SSLCertificateKeyFile "/etc/letsencrypt/live/tg.website.com/privkey.pem"
	Include "/etc/letsencrypt/options-ssl-apache.conf"
</VirtualHost>
</IfModule>

<VirtualHost *:80>
	ServerName tg.website.com
	
	RewriteEngine On
	
	RewriteCond %{HTTPS} !=on
	RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
	RewriteCond %{SERVER_NAME} =tg.website.com
	RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
	
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

The readme states that if I set TAIGA_SSL_BY_REVERSE_PROXY to True, The value of TAIGA_SSL will then be ignored and taiga will not handle https, it will however set all links to https. It's true the links are indeed https, however it seems like some images are loaded with hardcoded http links. Am I missing something?

Docker container not correctly starting up

When trying to run a docker container on a synology server it seems to me the installation does not successfully complete. When the browser connects to Taiga you see "Something happened and our Oompa Loompas are working on it."

I start it with docker-compose up and no changes to the docker-compose.yml
I need to start it twice, the first time the database is not yet and the taiga container complains about is.

Output of the console:

taiga_1     | Running database check
taiga_1     | Connecting to database:
taiga_1     | dbname='taigadb' user='taiga' host='postgres' password='password'
taiga_1     | Database does not appear to be setup.
taiga_1     | Configuring initial database
taiga_1     | Operations to perform:
taiga_1     |   Apply all migrations: admin, attachments, auth, bitbucket, contact, contenttypes, custom_attributes, djmail, easy_thumbnails, epics, external_apps, feedback, github, gitlab, gogs, history, issues, likes, milestones, notifications, projects, references, sessions, taiga_contrib_slack, tasks, timeline, users, userstorage, userstories, votes, webhooks, wiki
taiga_1     | Running migrations:
taiga_1     |   Applying contenttypes.0001_initial... OK
//.... (a huge amount of this lines)
taiga_1     |   Applying wiki.0005_auto_20161201_1628... OK
taiga_1     | Trying import local.py settings...
taiga_1     | Trying import local.py settings...
taiga_1     | Installed 1 object(s) from 1 fixture(s)
taiga_1     | Trying import local.py settings...
taiga_1     | Installed 2 object(s) from 1 fixture(s)
taiga_1     | Trying import local.py settings...
taiga_1     | CommandError: No fixture named 'initial_role' found.
taiga_1     | Trying import local.py settings...
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/pl/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/nb/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/zh-Hans/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/fi/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/de/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/fr/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/nl/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/es/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/zh-Hant/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/ca/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/ru/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/pt_BR/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/it/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/ja/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/sv/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/en/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/ko/LC_MESSAGES
taiga_1     | processing file django.po in /usr/src/taiga-back/taiga/locale/tr/LC_MESSAGES
taiga_1     | Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f5bcba940d0>
taiga_1     | Traceback (most recent call last):
taiga_1     |   File "/usr/local/lib/python3.5/weakref.py", line 117, in remove
taiga_1     | TypeError: 'NoneType' object is not callable
taiga_1     | Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f5bcba940d0>
taiga_1     | Traceback (most recent call last):
taiga_1     |   File "/usr/local/lib/python3.5/weakref.py", line 117, in remove
taiga_1     | TypeError: 'NoneType' object is not callable

What's going wrong here?

django.db.utils.ProgrammingError: type "jsonb" does not exist

When I directto run:
docker run -itd --name mytaiga -p 90:80 -e TAIGA_HOSTNAME=asura.xin -v /media:/usr/src/taiga-back/media -e TAIGA_DB_NAME=postgres -e TAIGA_DB_HOST="myhost" -e TAIGA_DB_USER=postgres -e TAIGA_DB_PASSWORD="mypasswd" benhutchins/taiga
It error:
image
I need help!

Error using docker-compose

Hi,
I'm trying to install your taiga on centos 7 using docker-compose.
When running the installation I have this:

[taiga@localhost mytaiga]$ sudo docker-compose up -d
Building taiga
Step 1/7 : FROM benhutchins/taiga
latest: Pulling from benhutchins/taiga
aa18ad1a0d33: Pull complete
90f6d19ae388: Pull complete
94273a890192: Pull complete
c9110c904324: Downloading [================>                                  ]  45.66MB/134.7MB
0410355a85e9: Download complete
769203a1026d: Download complete
fe3d5c50a32e: Download complete
8805b8354b22: Download complete
a79d7ff3eeed: Download complete
937cd6e4b505: Download complete
661add5e1006: Downloading [===============================================>   ]  9.764MB/10.26MB
27818c26348c: Downloading
dae8d6288cb6: Waiting
19bc37cd7e5f: Waiting
699e8bea5869: Waiting
833fd56aa5f1: Waiting
35e49a9d8a44: Waiting
c880b5fb4283: Waiting
15f9c115e62e: Waiting
183d48edc1dd: Waiting
4dd7d04f6da9: Waiting
7e83fb4c6fff: Waiting
782e54d86320: Waiting
eb9a1d45a0e5: Waiting
417a9d437362: Waiting
7233315a98e0: Waiting
4b68b27455ed: Waiting
029cddbbebef: Waiting
f747d3cec453: Waiting
a400c1c6f00a: Waiting
30801840c9b3: Waiting
eb9619665a7e: Waiting
b721ccac7f5b: Waiting
94e19bcc7ee2: Waiting
3f322b92101f: Waiting
dbfb63b0c857: Waiting
59431ba1cb8a: Waiting
ERROR: Service 'taiga' failed to build: unauthorized: authentication required

I have configured my docker for login

[taiga@localhost mytaiga]$ sudo docker login
Authenticating with existing credentials...
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
[taiga@localhost mytaiga]$ 

So I've tryed to install single package and this is the result

[taiga@localhost mytaiga]$ sudo docker pull 27818c26348c
Using default tag: latest
Error response from daemon: pull access denied for 27818c26348c, repository does not exist or may require 'docker login'

But using the docker-compose up (no -d option) I have this

[taiga@localhost mytaiga]$ sudo docker-compose up
[sudo] password di taiga: 
Building taiga
Step 1/7 : FROM benhutchins/taiga
latest: Pulling from benhutchins/taiga
aa18ad1a0d33: Pull complete
90f6d19ae388: Pull complete
94273a890192: Pull complete
c9110c904324: Downloading [===============>                                   ]  41.71MB/134.7MB
0410355a85e9: Download complete
769203a1026d: Download complete
fe3d5c50a32e: Download complete
8805b8354b22: Download complete
a79d7ff3eeed: Download complete
937cd6e4b505: Download complete
661add5e1006: Download complete
27818c26348c: Download complete
dae8d6288cb6: Downloading [=======================>                           ]  944.9kB/2.044MB
19bc37cd7e5f: Downloading
699e8bea5869: Waiting
833fd56aa5f1: Waiting
35e49a9d8a44: Waiting
c880b5fb4283: Waiting
15f9c115e62e: Waiting
183d48edc1dd: Waiting
4dd7d04f6da9: Waiting
7e83fb4c6fff: Waiting
782e54d86320: Waiting
eb9a1d45a0e5: Waiting
417a9d437362: Waiting
7233315a98e0: Waiting
4b68b27455ed: Waiting
029cddbbebef: Waiting
f747d3cec453: Waiting
a400c1c6f00a: Waiting
30801840c9b3: Waiting
eb9619665a7e: Waiting
b721ccac7f5b: Waiting
94e19bcc7ee2: Waiting
3f322b92101f: Waiting
dbfb63b0c857: Waiting
59431ba1cb8a: Waiting
ERROR: Service 'taiga' failed to build: unauthorized: authentication required

So it goes on and stops to the package 19bc37cd7e5f.
What I'm doing wrong?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.