Traceback (most recent call last):


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view

return view_func(*args, **kwargs)


 "./zerver/lib/rest.py", line 143, in rest_dispatch

return target_function(request, **kwargs)


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/django/utils/decorators.py", line 149, in _wrapped_view

response = view_func(request, *args, **kwargs)


 "./zerver/decorator.py", line 707, in _wrapped_view_func

return authenticate_log_and_execute_json(request, view_func, *args, **kwargs)


 "./zerver/decorator.py", line 686, in authenticate_log_and_execute_json

return limited_view_func(request, user_profile, *args, **kwargs)


 "./zerver/decorator.py", line 853, in wrapped_func

return func(request, *args, **kwargs)


 "./zerver/lib/request.py", line 220, in _wrapped_view_func

return view_func(request, *args, **kwargs)


 "./zerver/views/messages.py", line 771, in get_messages_backend

narrow,


 "./zerver/views/messages.py", line 694, in find_first_unread_anchor

first_unread_result = list(sa_conn.execute(first_unread_query).fetchall())


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 980, in execute

return meth(self, multiparams, params)


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/sqlalchemy/sql/elements.py", line 273, in _execute_on_connection

return connection._execute_clauseelement(self, multiparams, params)


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1099, in _execute_clauseelement

distilled_params,


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1240, in _execute_context

e, statement, parameters, cursor, context


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1458, in _handle_dbapi_exception

util.raise_from_cause(sqlalchemy_exception, exc_info)


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 296, in raise_from_cause

reraise(type(exception), exception, tb=exc_tb, cause=cause)


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 276, in reraise

raise value.with_traceback(tb)


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1236, in _execute_context

cursor, statement, parameters, context


 "/home/zulip/deployments/2019-02-18-04-38-59/zulip-py3-venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 536, in do_execute

cursor.execute(statement, parameters)


 "./zerver/lib/db.py", line 32, in execute

return wrapper_execute(self, super().execute, query, vars)


 "./zerver/lib/db.py", line 19, in wrapper_execute

return action(sql, params)
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) function ts_match_locs_array(unknown, text, tsquery) does not exist

Traceback (most recent call last):


 ".../distributed/2/8/1/dist/lib/python3.6/distributed/core.py", line 678, in send_recv_from_rpc

result = await send_recv(comm=comm, op=key, **kwargs)


 ".../distributed/2/8/1/dist/lib/python3.6/distributed/core.py", line 532, in send_recv

response = await comm.read(deserializers=deserializers)


 ".../distributed/2/8/1/dist/lib/python3.6/distributed/comm/tcp.py", line 204, in read

convert_stream_closed_error(self, e)


 ".../distributed/2/8/1/dist/lib/python3.6/distributed/comm/tcp.py", line 132, in convert_stream_closed_error

raise CommClosedError("in %s: %s" % (obj, exc))
distributed.comm.core.CommClosedError: in <closed TCP>: Stream is closed
