Closed luisgois closed 1 day ago
@luisgois I've never seen this failure mode before. "Fatal Python error: Cannot recover from stack overflow." in the Python traceback module suggests some sort of exception is being thrown that throws more exceptions. Line 31 of logging_util.py
is part of Zulip's exception reporting codebase that is supposed to talk to memcached, so my guess is at least part of your problem is that your memcached host is not up at the time this code is running (or not reachable from the zulip
host).
Can you talk about why you can't install docker-compose
in your environment?
Not having docker-compose is a decision beyond my control. I cannot install it or ask for it without a long wait.
Nevertheless, your comment was helpful. I've now started zulip with "-e SETTING_MEMCACHED_LOCATION=memcached:11211" and it passed past the point where it was failing. I assumed the entrypoint.sh was assuming the default values of the docker-compose.yml but it isn't. This is confusing and made me spend lots of time (docker newbie here) to figure out what was wrong and the command line options required.
Luis Gois
Eventually got over all errors by setting all environment variables mentioned in docker-compose.yml. however, still 2 problems, already after creating the organization:
How can I turn on additional logging? Couldn't find any error message.
@luisgois
Indeed, sorry for the misunderstanding. In the settings.py, the EMAIL_HOST contains the fully qualified hostname of the docker host.
I've used ./manage.py send_test_email email@mydomain and got the errror:
Traceback (most recent call last):
File "./manage.py", line 46, in <module>
execute_from_command_line(sys.argv)
File "/home/zulip/deployments/2018-11-20-04-17-50/zulip-py3-venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/home/zulip/deployments/2018-11-20-04-17-50/zulip-py3-venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/zulip/deployments/2018-11-20-04-17-50/zulip-py3-venv/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/zulip/deployments/2018-11-20-04-17-50/zulip-py3-venv/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/home/zulip/deployments/2018-11-20-04-17-50/zerver/management/commands/send_test_email.py", line 21, in handle
send_mail("Zulip email test", message, FromAddress.SUPPORT, kwargs['email'])
File "/home/zulip/deployments/2018-11-20-04-17-50/zulip-py3-venv/lib/python3.5/site-packages/django/core/mail/__init__.py", line 62, in send_mail
return mail.send()
File "/home/zulip/deployments/2018-11-20-04-17-50/zulip-py3-venv/lib/python3.5/site-packages/django/core/mail/message.py", line 348, in send
return self.get_connection(fail_silently).send_messages([self])
File "/home/zulip/deployments/2018-11-20-04-17-50/zulip-py3-venv/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 104, in send_messages
new_conn_created = self.open()
File "/home/zulip/deployments/2018-11-20-04-17-50/zulip-py3-venv/lib/python3.5/site-packages/django/core/mail/backends/smtp.py", line 64, in open
self.connection = self.connection_class(self.host, self.port, **connection_params)
File "/usr/lib/python3.5/smtplib.py", line 251, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python3.5/smtplib.py", line 335, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib/python3.5/smtplib.py", line 306, in _get_socket
self.source_address)
File "/usr/lib/python3.5/socket.py", line 711, in create_connection
raise err
File "/usr/lib/python3.5/socket.py", line 702, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
As an update, changed the email backend to the django console, asked for a password reset and now even the bot creation works. I'm just trying zulip out in a test environment. Do you know what might be going on? Next step is integration with JIRA and Jenkins.
In production we'll need ldap authentication and smtp. Maybe we won't use docker and go for installation on our servers, the problem is that we only use RedHat Enterprise, not Ubuntu.
I don't think there'a way to figure out what went wrong here, but it seems weird enough to not be worth further attention.
Hi.
I'm launching each container individually (I don't have docker-compose available):
When zulip is initializing the database I get a "Fatal Python error" as shown below: