Server migrate

287 views
Skip to first unread message

Greg

unread,
Mar 30, 2015, 10:52:38 PM3/30/15
to tai...@googlegroups.com
Good night,

I installed taiga using the how to without ´taiga-scripts´ and I had troubles to upgrade for new version.

I decided to reinstall taiga using the taiga-scripts but now I have a question: how can I migrate my data from the old server for the new one?

Thank you!

Alejandro Alonso

unread,
Mar 31, 2015, 2:30:43 AM3/31/15
to Greg, tai...@googlegroups.com
Hello Greg,

You just need to restore a dump from your database and copy the content of your MEDIA_ROOT path.

Regards,

--
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 post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/CAP10_gjLcXRy5kA0qKXZ_9Ft7ofyFh6g85QaNN26iaKeOX%3Dvww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--

  
Alejandro Alonso Fernández  
CIO & Co-founder

www.kaleidos.net/FC8EAC/

Alejandro Alonso

unread,
Apr 7, 2015, 2:49:40 AM4/7/15
to Greg, tai...@googlegroups.com
Hello Greg,

The database you loaded has moldes older than your taiga code. Executing a "python manage.py migrate" should update the database.

Regards!,

2015-04-07 1:20 GMT+02:00 Greg <gregorio...@gmail.com>:
Good night Alejandro,

I did the migration now taiga in a test environment by running the following:

production server:

$ pg_dump taiga > /tmp/taiga

$ tar cvf /tmp/media.tar /home/taiga/taiga-back/media/

new server:

$ dropdb taiga
$ createdb -O taiga taiga
$ psql taiga < /tmp/taiga
$ tar -C media.tar /home/taiga/taiga-back

After I restarted the server and enter at taiga with a user and password, but none of projects appeared.

I have this error at gunicorn.stderr.log:

root@taiga:/home/taiga/logs# cat gunicorn.stderr.log
ERROR:2015-04-06 23:11:07,843: Internal Server Error: /api/v1/projects
Traceback (most recent call last):
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: column projects_project.userstories_csv_uuid does not exist
LINE 1: ...ic_permissions", "projects_project"."is_private", "projects_...
                                                             ^


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

Traceback (most recent call last):
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/viewsets.py", line 81, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/views.py", line 418, in dispatch
    response = self.handle_exception(exc)
  File "/home/taiga/taiga-back/taiga/base/api/views.py", line 415, in dispatch
    response = handler(request, *args, **kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/mixins.py", line 114, in list
    return response.Ok(serializer.data)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/rest_framework/serializers.py", line 571, in data
    self._data = [self.to_native(item) for item in obj]
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/models/query.py", line 141, in __iter__
    self._fetch_all()
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/models/query.py", line 966, in _fetch_all
    self._result_cache = list(self.iterator())
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/models/query.py", line 265, in iterator
    for row in compiler.results_iter():
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 700, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/models/sql/compiler.py", line 786, in execute_sql
    cursor.execute(sql, params)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/backends/utils.py", line 81, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/utils/six.py", line 658, in reraise
    raise value.with_traceback(tb)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: column projects_project.userstories_csv_uuid does not exist
LINE 1: ...ic_permissions", "projects_project"."is_private", "projects_...

Greg

unread,
Apr 7, 2015, 10:18:04 AM4/7/15
to Alejandro Alonso, tai...@googlegroups.com
Alejandro,

Perfecto!

Fixing the migration checklist:


production server:

$ pg_dump taiga > /tmp/taiga

$ tar cvf /tmp/media.tar /home/taiga/taiga-back/media/

new server:

$ dropdb taiga
$ createdb -O taiga taiga
$ psql taiga < /tmp/taiga
$ tar -C media.tar /home/taiga/taiga-back
$ workon taiga
$ cd taiga-back
$ python manage.py migrate

Tested and all is correct!

Can I use this checklist to my Knowledge Database Alejandro? :)

Thanks for your attention!

Alejandro Alonso

unread,
Apr 8, 2015, 1:51:03 AM4/8/15
to Greg, tai...@googlegroups.com
Sure!,

You are welcome :)

Greg

unread,
Apr 13, 2015, 7:24:01 PM4/13/15
to Alejandro Alonso, tai...@googlegroups.com
Alejandro,

Today was the change day of my production ambient, I executed those stepts, but I have this error:

OBS: I configured my local.py

root@taiga:/home/taiga/logs# cat gunicorn.stderr.log
Trying import local.py settings...
Monkey patching...
WARNING Property: Unknown Property name. [6:51: -webkit-text-size-adjust]
WARNING Property: Unknown Property name. [6:82: -ms-text-size-adjust]
WARNING Property: Unknown Property name. [7:23: mso-table-lspace]
WARNING Property: Unknown Property name. [7:45: mso-table-rspace]
WARNING Property: Unknown Property name. [8:17: -ms-interpolation-mode]
ERROR   Property: Invalid value for "CSS Level 2.1" property: 0.8rem 3rem [178:17: padding]
WARNING Property: Unknown Property name. [277:55: -webkit-text-size-adjust]
WARNING Property: Unknown Property name.
Raven is not configured (logging is disabled). Please see the documentation for more information.
ERROR:2015-04-13 23:16:58,393: Internal Server Error: /api/v1/userstories

Traceback (most recent call last):
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/viewsets.py", line 81, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/views.py", line 418, in dispatch
    response = self.handle_exception(exc)
  File "/home/taiga/taiga-back/taiga/base/api/views.py", line 415, in dispatch
    response = handler(request, *args, **kwargs)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/transaction.py", line 394, in inner
    return func(*args, **kwargs)
  File "/home/taiga/taiga-back/taiga/projects/userstories/api.py", line 177, in create
    self.send_notifications(self.object.generated_from_issue, history)
  File "/home/taiga/taiga-back/taiga/projects/notifications/mixins.py", line 65, in send_notifications
    services.send_notifications(obj, history=history)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/transaction.py", line 394, in inner
    return func(*args, **kwargs)
  File "/home/taiga/taiga-back/taiga/projects/notifications/services.py", line 238, in send_notifications
    send_sync_notifications(notification.id)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/transaction.py", line 394, in inner
    return func(*args, **kwargs)
  File "/home/taiga/taiga-back/taiga/projects/notifications/services.py", line 272, in send_sync_notifications
    email.send(user.email, context)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/djmail/template_mail.py", line 150, in send
    return email.send()
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/mail/backends/smtp.py", line 92, in send_messages
    new_conn_created = self.open()
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/mail/backends/smtp.py", line 50, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python3.4/smtplib.py", line 242, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python3.4/smtplib.py", line 321, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python3.4/smtplib.py", line 292, in _get_socket
    self.source_address)
  File "/usr/lib/python3.4/socket.py", line 491, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.4/socket.py", line 530, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not knownday,

David Barragán

unread,
Apr 13, 2015, 7:50:24 PM4/13/15
to Greg, Alejandro Alonso, tai...@googlegroups.com
What is the configuration of your smtp server in your taiga local settings? check this params: 

EMAIL_USE_TLS
EMAIL_HOST
EMAIL_HOST_USER
EMAIL_HOST_PASSWORD
EMAIL_PORT

I think the error is there. 

Regards




---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

Greg

unread,
Apr 13, 2015, 9:42:10 PM4/13/15
to David Barragán, Alejandro Alonso, tai...@googlegroups.com
Good night,

Thank you for your attention!

Check my configurations:

from .common import *

MEDIA_URL = "http://taiga.xxx.com.br/media/"
STATIC_URL = "http://taiga.xxx.com.br/static/"
ADMIN_MEDIA_PREFIX = "http://taiga.xxx.com.br/static/admin/"

# This should change if you want generate urls in emails
# for external dns.
SITES["front"]["domain"] = "taiga.xxx.com.br:8000"

DEBUG = False
TEMPLATE_DEBUG = False
PUBLIC_REGISTER_ENABLED = True

DEFAULT_FROM_EMAIL = "al...@xxx.com.br"
SERVER_EMAIL = DEFAULT_FROM_EMAIL

EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_USE_TLS = True
EMAIL_HOST = "smtp.google.com.br"
EMAIL_HOST_USER = "al...@xxx.com.br"
EMAIL_HOST_PASSWORD = "xxx@mail"
EMAIL_PORT = 587

REST_FRAMEWORK["DEFAULT_RENDERER_CLASSES"] = (
    "rest_framework.renderers.JSONRenderer",
)

Greg

unread,
Apr 13, 2015, 10:01:18 PM4/13/15
to David Barragán, Alejandro Alonso, tai...@googlegroups.com
I changed to this:

root@taiga:/home/taiga/logs# cat ../taiga-back/settings/local.py

from .common import *

MEDIA_URL = "http://taiga.xxx.com.br/media/"
STATIC_URL = "http://taiga.xxx.com.br/static/"
ADMIN_MEDIA_PREFIX = "http://taiga.xxx.com.br/static/admin/"

# This should change if you want generate urls in emails
# for external dns.
SITES["front"]["domain"] = "taiga.xxx.com.br"

DEBUG = False
TEMPLATE_DEBUG = False
PUBLIC_REGISTER_ENABLED = True

DEFAULT_FROM_EMAIL = "al...@xxxmail.com.br"

SERVER_EMAIL = DEFAULT_FROM_EMAIL

EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_USE_TLS = True
EMAIL_HOST = "smtp.gmail.com.br"
EMAIL_HOST_USER = "al...@xxxmail.com.br"
EMAIL_HOST_PASSWORD = "xxx@xxxmail"

EMAIL_PORT = 587

REST_FRAMEWORK["DEFAULT_RENDERER_CLASSES"] = (
    "rest_framework.renderers.JSONRenderer",
)

Alejandro Alonso

unread,
Apr 14, 2015, 12:51:57 AM4/14/15
to Greg, David Barragán, tai...@googlegroups.com
Hello Greg,

The error seems related to your email server (gmail), you are trying to send email to an account with a servername that python can't resolve ("Name or service not knownday"), could you check your user emails? (if user admin is trying to be notified too it will fail because he hasn't a real email). 

Another option could be using a local server (like postftix) and use it just as a relay for gmail, this way mailing fails won't affect to the django app and you could check email problems in /var/log/mail.log

Regards,

Greg

unread,
Apr 14, 2015, 10:26:28 AM4/14/15
to Alejandro Alonso, David Barragán, tai...@googlegroups.com
Hi friends,

About my mail configs, in my production server, I have the same configuration to use gmail and works fine!

Everything seems to be fine, but I can generate some problems like this:

Access the XXX project;
After issues, click at #288 issue, after click at "promote to user story" then "accept", Taiga shows this error:

"Oops, something happened...
Our Oompa Loompas are sad, your changes were not saved!"

At my error logs, I can check this:

gunicorn.sterr.log


Trying import local.py settings...
Monkey patching...
WARNING Property: Unknown Property name. [6:51: -webkit-text-size-adjust]
WARNING Property: Unknown Property name. [6:82: -ms-text-size-adjust]
WARNING Property: Unknown Property name. [7:23: mso-table-lspace]
WARNING Property: Unknown Property name. [7:45: mso-table-rspace]
WARNING Property: Unknown Property name. [8:17: -ms-interpolation-mode]
ERROR   Property: Invalid value for "CSS Level 2.1" property: 0.8rem 3rem [178:17: padding]
WARNING Property: Unknown Property name. [277:55: -webkit-text-size-adjust]
WARNING Property: Unknown Property name.
Raven is not configured (logging is disabled). Please see the documentation for more information.

nginx.error.log

2015/04/14 11:23:17 [error] 1017#0: *95 upstream prematurely closed connection while reading response header from upstream, client: 192.168.4.6, server: _, request: "POST /api/v1/userstories HTTP/1.1", upstream: "http://127.0.0.1:8001/api/v1/userstories", host: "192.168.4.19", referrer: "http://192.168.4.19/project/sigma-9/issue/288"

Help! :)

Alejandro Alonso

unread,
Apr 15, 2015, 2:46:55 AM4/15/15
to Greg, David Barragán, tai...@googlegroups.com
Hello Greg,

Those errors are warning from the library we are using for build the html emails, if there are no more error lines it seems the email part is working properly. We could do one more test: in your setting/local.py write something like "CHANGE_NOTIFICATIONS_MIN_INTERVAL=10", this will make your email notifications to be sent just when you execute "python manage.py send_notifications". Remember to reload the circus apps when updating your local.py.

Regards,

Greg

unread,
Apr 15, 2015, 2:08:44 PM4/15/15
to Alejandro Alonso, David Barragán, tai...@googlegroups.com
Alejandro,

I changed the file as you said, and the error when the "Promote to user story" button was pressed not appeared, nice! But when I execute  (taiga)$ python manage.py send_notifications, returned this error:


Trying import local.py settings...
Monkey patching...
WARNING Property: Unknown Property name. [6:51: -webkit-text-size-adjust]
WARNING Property: Unknown Property name. [6:82: -ms-text-size-adjust]
WARNING Property: Unknown Property name. [7:23: mso-table-lspace]
WARNING Property: Unknown Property name. [7:45: mso-table-rspace]
WARNING Property: Unknown Property name. [8:17: -ms-interpolation-mode]
ERROR   Property: Invalid value for "CSS Level 2.1" property: 0.8rem 3rem [178:17: padding]
WARNING Property: Unknown Property name. [277:55: -webkit-text-size-adjust]
WARNING Property: Unknown Property name.
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/home/taiga/taiga-back/taiga/projects/notifications/management/commands/send_notifications.py", line 29, in handle
    send_sync_notifications(change_notification.pk)

  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/transaction.py", line 394, in inner
    return func(*args, **kwargs)
  File "/home/taiga/taiga-back/taiga/projects/notifications/services.py", line 272, in send_sync_notifications
    email.send(user.email, context)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/djmail/template_mail.py", line 150, in send
    return email.send()
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/mail/backends/smtp.py", line 92, in send_messages
    new_conn_created = self.open()
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/mail/backends/smtp.py", line 50, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python3.4/smtplib.py", line 242, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python3.4/smtplib.py", line 321, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python3.4/smtplib.py", line 292, in _get_socket
    self.source_address)
  File "/usr/lib/python3.4/socket.py", line 491, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.4/socket.py", line 530, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

I have this configuration at my local.py now:


from .common import *

MEDIA_URL = "http://taiga.xxx.com.br/media/"
STATIC_URL = "http://taiga.
xxx.com.br/static/"
ADMIN_MEDIA_PREFIX = "http://taiga.
xxx.com.br/static/admin/"

# This should change if you want generate urls in emails
# for external dns.
SITES["front"]["domain"] = "taiga.
xxx.com.br"


DEBUG = False
TEMPLATE_DEBUG = False
PUBLIC_REGISTER_ENABLED = True

DEFAULT_FROM_EMAIL = "alert@xxx.com.br"

SERVER_EMAIL = DEFAULT_FROM_EMAIL

EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_USE_TLS = True
EMAIL_HOST = "smtp.gmail.com.br"
EMAIL_HOST_USER = "alert@xxx.com.br"
EMAIL_HOST_PASSWORD = "
xxx@xxx"
EMAIL_PORT = 587
CHANGE_NOTIFICATIONS_MIN_INTERVAL=10


REST_FRAMEWORK["DEFAULT_RENDERER_CLASSES"] = (
    "rest_framework.renderers.JSONRenderer",
)


Just to remember, the gmail configurations are the same of my production environment, and works fine!

My migration was based on the checklist mentioned earlier by me:

production server:

$ pg_dump taiga > /tmp/taiga

$ tar cvf /tmp/media.tar /home/taiga/taiga-back/media/

new server:

$ dropdb taiga
$ createdb -O taiga taiga
$ psql taiga < /tmp/taiga
$ tar -C media.tar /home/taiga/taiga-back
$ workon taiga
$ cd taiga-back
$ python manage.py migrate


Changed my local.py to this quoted in the email.

The new ambient was maded using taiga-scripts and the production step by step manual.

Thank you!


David Barragán

unread,
Apr 15, 2015, 2:24:20 PM4/15/15
to Greg, Alejandro Alonso, tai...@googlegroups.com
I try this:

> ping smtp.gmail.com.br
ping: unknown host smtp.gmail.com.br 

Then I try:

> ping smtp.gmail.com
PING gmail-smtp-msa.l.google.com (64.233.167.108) 56(84) bytes of data.
64 bytes from 64.233.167.108: icmp_seq=1 ttl=45 time=24.0 ms
64 bytes from 64.233.167.108: icmp_seq=2 ttl=45 time=24.3 ms
64 bytes from 64.233.167.108: icmp_seq=3 ttl=45 time=24.1 ms
64 bytes from 64.233.167.108: icmp_seq=4 ttl=45 time=24.1 ms
64 bytes from 64.233.167.108: icmp_seq=5 ttl=45 time=24.3 ms
64 bytes from 64.233.167.108: icmp_seq=6 ttl=45 time=23.8 ms
64 bytes from 64.233.167.108: icmp_seq=7 ttl=45 time=24.0 ms
64 bytes from 64.233.167.108: icmp_seq=8 ttl=45 time=24.3 ms

--- gmail-smtp-msa.l.google.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7010ms
rtt min/avg/max/mdev = 23.884/24.165/24.354/0.176 ms


Could you change 

EMAIL_HOST = "smtp.gmail.com.br" 

to 

EMAIL_HOST = "smtp.gmail.com" 

and try it again please? 


Regards


---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

Greg

unread,
Apr 15, 2015, 3:23:12 PM4/15/15
to David Barragán, Alejandro Alonso, tai...@googlegroups.com
David,

Thank you for the answer.

Well, I changed the smtp configurations and than Circus was restarted.

But unsucessful, I got the same errors:

gunicorn.stderr:


Trying import local.py settings...
Monkey patching...
WARNING Property: Unknown Property name. [6:51: -webkit-text-size-adjust]
WARNING Property: Unknown Property name. [6:82: -ms-text-size-adjust]
WARNING Property: Unknown Property name. [7:23: mso-table-lspace]
WARNING Property: Unknown Property name. [7:45: mso-table-rspace]
WARNING Property: Unknown Property name. [8:17: -ms-interpolation-mode]
ERROR   Property: Invalid value for "CSS Level 2.1" property: 0.8rem 3rem [178:17: padding]
WARNING Property: Unknown Property name. [277:55: -webkit-text-size-adjust]
WARNING Property: Unknown Property name.
Raven is not configured (logging is disabled). Please see the documentation for more information.

nginx.error.log:

2015/04/15 16:17:01 [error] 1009#0: *37 upstream prematurely closed connection while reading response header from upstream, client: 192.168.4.6, server: taiga.xxx.com.br, request: "POST /api/v1/userstories HTTP/1.1", upstream: "http://127.0.0.1:8001/api/v1/userstories", host: "taiga.xxx.com.br", referrer: "http://taiga.xxx.com.br/project/xxxa-9/issue/288"

:(

David Barragán

unread,
Apr 15, 2015, 4:09:40 PM4/15/15
to Greg, Alejandro Alonso, tai...@googlegroups.com
This message

Trying import local.py settings...
Monkey patching...
WARNING Property: Unknown Property name. [6:51: -webkit-text-size-adjust]
WARNING Property: Unknown Property name. [6:82: -ms-text-size-adjust]
WARNING Property: Unknown Property name. [7:23: mso-table-lspace]
WARNING Property: Unknown Property name. [7:45: mso-table-rspace]
WARNING Property: Unknown Property name. [8:17: -ms-interpolation-mode]
ERROR   Property: Invalid value for "CSS Level 2.1" property: 0.8rem 3rem [178:17: padding]
WARNING Property: Unknown Property name. [277:55: -webkit-text-size-adjust]
WARNING Property: Unknown Property name.
Raven is not configured (logging is disabled). Please see the documentation for more information.

it's not an error, it's "normal". They are warnings about the css of the email and about the raven app (for debug purpose). 

Are you sure your username and password are correct? Are there something more in gunicorn.stder?


---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

David Barragán

unread,
Apr 15, 2015, 4:13:08 PM4/15/15
to Greg, Alejandro Alonso, tai...@googlegroups.com
This message

Trying import local.py settings...
Monkey patching...
WARNING Property: Unknown Property name. [6:51: -webkit-text-size-adjust]
WARNING Property: Unknown Property name. [6:82: -ms-text-size-adjust]
WARNING Property: Unknown Property name. [7:23: mso-table-lspace]
WARNING Property: Unknown Property name. [7:45: mso-table-rspace]
WARNING Property: Unknown Property name. [8:17: -ms-interpolation-mode]
ERROR   Property: Invalid value for "CSS Level 2.1" property: 0.8rem 3rem [178:17: padding]
WARNING Property: Unknown Property name. [277:55: -webkit-text-size-adjust]
WARNING Property: Unknown Property name.
Raven is not configured (logging is disabled). Please see the documentation for more information.

it's not an error, They are warnings about the css of the email and about the raven app (for debug purpose). 

Are you sure your username and password are correct?

---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

On Wed, Apr 15, 2015 at 9:23 PM, Greg <gregorio...@gmail.com> wrote:

David Barragán

unread,
Apr 15, 2015, 4:19:35 PM4/15/15
to Greg, Alejandro Alonso, tai...@googlegroups.com
Does this error happens after the change too?

socket.gaierror: [Errno -2] Name or service not known

---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

Greg

unread,
Apr 15, 2015, 5:04:25 PM4/15/15
to David Barragán, Alejandro Alonso, tai...@googlegroups.com
Yes, and the error messages "Something happened and our Oompa Loompas are working on it. Try reloading again soon." continue, and the mail is not sent.

I really don't know what is happening.

The message of nginx.access.log is:

192.168.4.6 - - [15/Apr/2015:18:01:14 -0300] "POST /api/v1/userstories HTTP/1.1" 502 181 "http://192.168.4.19/project/xxx-9/issue/288" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"

nginx.error.log

2015/04/15 18:01:14 [error] 1010#0: *114 upstream prematurely closed connection while reading response header from upstream, client: 192.168.4.6, server: taiga.xxx.com.br, request: "POST /api/v1/userstories HTTP/1.1", upstream: "http://127.0.0.1:8001/api/v1/userstories", host: "taiga.xxx.com.br", referrer: "http://192.168.4.19/project/xxx-9/issue/288"

gunicorn.stderr.log


WARNING Property: Unknown Property name. [6:51: -webkit-text-size-adjust]
WARNING Property: Unknown Property name. [6:82: -ms-text-size-adjust]
WARNING Property: Unknown Property name. [7:23: mso-table-lspace]
WARNING Property: Unknown Property name. [7:45: mso-table-rspace]
WARNING Property: Unknown Property name. [8:17: -ms-interpolation-mode]
ERROR   Property: Invalid value for "CSS Level 2.1" property: 0.8rem 3rem [178:17: padding]
WARNING Property: Unknown Property name. [277:55: -webkit-text-size-adjust]
WARNING Property: Unknown Property name.

:/

Greg

unread,
Apr 15, 2015, 5:08:09 PM4/15/15
to David Barragán, Alejandro Alonso, tai...@googlegroups.com
Question:

When I do any change in local.py, I have to execute the reload at circus and restart, like:

workon taiga
circusctl reloadconfig
circusctl restart taiga

This is the correct way to do?

David Barragán

unread,
Apr 15, 2015, 5:19:24 PM4/15/15
to Greg, Alejandro Alonso, tai...@googlegroups.com
only need 

`circusctl restart taiga` 
`circusctl restart taiga-celery`    # only if you use celery


`workon taiga` - is for activate taiga virtual env and is not necessary
`circusctl reloadconfig` - is for reload circus configuration



---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

Greg

unread,
Apr 15, 2015, 5:49:49 PM4/15/15
to David Barragán, Alejandro Alonso, tai...@googlegroups.com
David,

Nothing has changed, the same errors.

Well, even the environment being the same production, I will set up the emails to go out for sendmail, and he doing relay with gmail.

Let's see.

Alejandro Alonso

unread,
Apr 16, 2015, 1:16:03 AM4/16/15
to Greg, David Barragán, tai...@googlegroups.com
Hello Greg,

The error "socket.gaierror: [Errno -2] Name or service not known" is because django is trying to send email to an invalid account (one with an invalid domain name). Check the project member emails (including admin).

A cleaner way for working with email is delegating it into a local email server (for example postfix). It could be configured as a relay that just sends email through gmail. This way email sending is faster and the errors are by the email server and doesn't affect Taiga.

Regards. 


For more options, visit https://groups.google.com/d/optout.

Greg

unread,
Apr 16, 2015, 11:18:34 AM4/16/15
to Alejandro Alonso, David Barragán, tai...@googlegroups.com
Hello friends,

I setup a sendmail server, configure local.py without my gmail infos, and all is allright!

Thank you!

David Barragán

unread,
Apr 16, 2015, 11:21:38 AM4/16/15
to Greg, Alejandro Alonso, tai...@googlegroups.com
\o/ \o/ \o/ Great!!! \o/ \o/ \o/ 


---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7

Reply all
Reply to author
Forward
0 new messages