Code Monkey home page Code Monkey logo

Comments (12)

paundl avatar paundl commented on July 22, 2024

i allready changed email_host_password to email_password in zulip-secrets.conf, does not change anything

from zulip.

AbhiAgarwal avatar AbhiAgarwal commented on July 22, 2024

+1 to this issue. Couldn't figure out how to fix this either.

from zulip.

AbhiAgarwal avatar AbhiAgarwal commented on July 22, 2024

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.

lfaraone avatar lfaraone commented on July 22, 2024
  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.

timabbott avatar timabbott commented on July 22, 2024

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.

SystemZ avatar SystemZ commented on July 22, 2024

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.

timabbott avatar timabbott commented on July 22, 2024

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 = hardandlogpasswordhere

I 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.

SystemZ avatar SystemZ commented on July 22, 2024

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.

timabbott avatar timabbott commented on July 22, 2024

OK the problem there is that RabbitMQ is either not running or not
configured (probably not running).

This two threads have some debugging advice:

#31
#53

    -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.

paundl avatar paundl commented on July 22, 2024

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.

SystemZ avatar SystemZ commented on July 22, 2024

Yep, it's problem with rabbitmq-server in my case, it can't start. I'll write about it in #31

from zulip.

paundl avatar paundl commented on July 22, 2024

so i can close the issue

from zulip.

Related Issues (20)

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.