Comments (12)
i allready changed email_host_password to email_password in zulip-secrets.conf, does not change anything
from zulip.
+1 to this issue. Couldn't figure out how to fix this either.
from zulip.
The issue seems to be with the lookup of the email_host_password in this file. I replaced:
EMAIL_HOST_PASSWORD = get_secret('email_password')
with
EMAIL_HOST_PASSWORD = #password#
And it worked. I don't recommend doing this. This was just to test to see where the issue was. Will definitely look into why this is happening!
from zulip.
File "/usr/lib/python2.7/socket.py", line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known
This indicates that the hostname specified for your mailserver cannot be resolved by Zulip. Ensure DNS is correctly configured in your VM and that the hostname is resolvable by the configured DNS server.
from zulip.
The problem is with the lookup of the email_host_password in this file. I replaced:
@AbhiAgarwal your issue is different from the main one on this thread.
For your issue, you can put "email_password = #password#" in /etc/zulip/zulip-secrets.conf instead.
@lfaraone where do you think would be a good place to document the resolution to the DNS issue? Maybe just an extension of the configuration comment?
from zulip.
I get error 500 at registration too, email arrives, i can set and reset password but after login, I'm constantly getting error 500, so some session is generated. Incognito mode doesn't help.
I have ping to smtp.mailgun.org, DNS resolve works, I get emails with register and password reset.
Part of my config:
/etc/zulip/settings.py
EXTERNAL_HOST = 'domain.com'
ZULIP_ADMINISTRATOR = '[email protected]'
ADMIN_DOMAIN = 'domain.com'
AUTHENTICATION_BACKENDS = (
'zproject.backends.EmailAuthBackend',
)
EMAIL_HOST = 'smtp.mailgun.org'
EMAIL_HOST_USER = '[email protected]'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = "User <[email protected]>"
NOREPLY_EMAIL_ADDRESS = "[email protected]"
/etc/zulip/zulip-secrets.conf
email_password = hardandlongpasswordhere
email_host_password = hardandlogpasswordhere
I tried both key names for email password just to make sure it works
from zulip.
Can you get the traceback from /var/log/zulip/errors.log (or one of the
other files in that directory)?
-Tim Abbott
On Mon, Sep 28, 2015 at 11:32 AM, Michał Frąckiewicz <
[email protected]> wrote:
I get error 500 at registration too, email arrives, i can set and reset
password but after login, I'm constantly getting error 500, so some session
is generated. Incognito mode doesn't help.
I have ping to smtp.mailgun.org, DNS resolve works, I get emails with
register and password reset.Part of my config:
/etc/zulip/settings.py
EXTERNAL_HOST = 'domain.com'
ZULIP_ADMINISTRATOR = '[email protected]'
ADMIN_DOMAIN = 'domain.com'
AUTHENTICATION_BACKENDS = (
'zproject.backends.EmailAuthBackend',
)
EMAIL_HOST = 'smtp.mailgun.org'
EMAIL_HOST_USER = '[email protected]'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = "User [email protected]"
NOREPLY_EMAIL_ADDRESS = "[email protected]"/etc/zulip/zulip-secrets.conf
email_password = hardandlongpasswordhere
email_host_password = hardandlogpasswordhereI tried both key names for email password just to make sure it works
—
Reply to this email directly or view it on GitHub
#67 (comment).
from zulip.
From /var/log/zulip/errors.log
ConnectionError: HTTPConnectionPool(host='localhost', port=9993): Max retries exceeded with url: /api/v1/events?dont_block=true&lifespan_secs=0&user_client=website&client=internal&narrow=%5B%5D&apply_mark$
2015-09-28 14:35:22,286 ERROR Internal Server Error: /register/
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 223, in get_response
response = middleware_method(request, response)
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/middleware.py", line 250, in process_response
error_content=content, error_content_iter=content_iter)
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/middleware.py", line 189, in write_log_line
queue_json_publish("slow_queries", "%s (%s)" % (logger_timing, email), lambda e: None)
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/lib/queue.py", line 259, in queue_json_publish
get_queue_client().json_publish(queue_name, event)
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/lib/queue.py", line 240, in get_queue_client
queue_client = SimpleQueueClient()
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/lib/queue.py", line 25, in __init__
self._connect()
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/lib/queue.py", line 29, in _connect
self.connection = pika.BlockingConnection(self._get_parameters())
File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 107, in __init__
super(BlockingConnection, self).__init__(parameters, None, False)
File "/usr/lib/python2.7/dist-packages/pika/adapters/base_connection.py", line 62, in __init__
on_close_callback)
File "/usr/lib/python2.7/dist-packages/pika/connection.py", line 590, in __init__
self.connect()
File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 206, in connect
if not self._adapter_connect():
File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 275, in _adapter_connect
raise exceptions.AMQPConnectionError(1)
AMQPConnectionError: 1
from zulip.
OK the problem there is that RabbitMQ is either not running or not
configured (probably not running).
This two threads have some debugging advice:
-Tim Abbott
On Mon, Sep 28, 2015 at 11:43 AM, Michał Frąckiewicz <
[email protected]> wrote:
From /var/log/zulip/errors.log
ConnectionError: HTTPConnectionPool(host='localhost', port=9993): Max retries exceeded with url: /api/v1/events?dont_block=true&lifespan_secs=0&user_client=website&client=internal&narrow=%5B%5D&apply_mark$
2015-09-28 14:35:22,286 ERROR Internal Server Error: /register/
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 223, in get_response
response = middleware_method(request, response)
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/middleware.py", line 250, in process_response
error_content=content, error_content_iter=content_iter)
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/middleware.py", line 189, in write_log_line
queue_json_publish("slow_queries", "%s (%s)" % (logger_timing, email), lambda e: None)
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/lib/queue.py", line 259, in queue_json_publish
get_queue_client().json_publish(queue_name, event)
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/lib/queue.py", line 240, in get_queue_client
queue_client = SimpleQueueClient()
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/lib/queue.py", line 25, in init
self._connect()
File "/home/zulip/deployments/2015-09-28-08-49-27/zerver/lib/queue.py", line 29, in _connect
self.connection = pika.BlockingConnection(self._get_parameters())
File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 107, in init
super(BlockingConnection, self).init(parameters, None, False)
File "/usr/lib/python2.7/dist-packages/pika/adapters/base_connection.py", line 62, in init
on_close_callback)
File "/usr/lib/python2.7/dist-packages/pika/connection.py", line 590, in init
self.connect()
File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 206, in connect
if not self._adapter_connect():
File "/usr/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 275, in _adapter_connect
raise exceptions.AMQPConnectionError(1)
AMQPConnectionError: 1—
Reply to this email directly or view it on GitHub
#67 (comment).
from zulip.
thanks for the advices, i had a DNS problem...
its working fine now.
i would close the issue (my question is answered), feel free to do so (because of other questions i'll let it open)
from zulip.
Yep, it's problem with rabbitmq-server in my case, it can't start. I'll write about it in #31
from zulip.
so i can close the issue
from zulip.
Related Issues (20)
- Improve text about searching public channels HOT 3
- Add more flexible information-density settings HOT 1
- Improve search typeahead for `has:` operator HOT 1
- Improve how current context is handled with search HOT 1
- Update icons for direct messages HOT 3
- Dialog box buttons remain the same size when switching b/w 14px and 16px HOT 1
- Improve zerver/webhooks/slack_incoming: mimic Slack response body HOT 2
- Feature Request: Ability to hide stream from all messages view HOT 3
- Fix internationalization for search typeahead HOT 4
- Remove &ignore_pull_request option from TravisCI integration HOT 2
- Backticks get inserted on Ctrl-V in too many situations HOT 4
- Document the difference between EMAIL_USE_TLS and EMAIL_USE_SSL HOT 2
- Use pills for users' names in Custom emoji settings panel HOT 4
- Renaming topics fails with error: stream_id is not an integer HOT 4
- Make post_save cache-flushing callbacks interact nicely with transaction.on_commit HOT 1
- Remove indentation in multi-line search typeahead suggestions with pills HOT 1
- Improve link colors in typeaheads HOT 6
- Thumbnailing for bad images and empty title images HOT 1
- Add a user setting to paste without formatting by default HOT 2
- Add setting for how animated images are played HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zulip.