Mastodon: Timeline streaming stopped after #10210

Created on 9 Mar 2019  路  5Comments  路  Source: tootsuite/mastodon

Actual behaviour

Streaming stopped because connection from node to postgresql become SSL even if DB_SSLMODE is not set. (regression from #10210)

Steps to reproduce the problem


Start streaming service with postgresql which works non ssl connections. I got error log, and streaming stopped.

ERR! Error: The server does not support SSL connections

There is not DB_SSLMODE in my .env.production. As far as I investigate, "ssl" option of pg.Pool() of node not has "sslmode" option. Probabry, just only add "ssl" key, and even if it is empty, connection to postgresql become SSL.

Specifications

  • mastodon: master (3f4a6d4)
  • My server is all-in-one that is contains web, streaming, sidekiq, redis and postgresql in single.

Most helpful comment

Ah yeah, I knew we'd be better off checking for node weirdness. The sslmode property is not actually documented but used in quite of lot of searchable code on GitHub.

All 5 comments

The nodejs which I use is v8.

@sascha-sl

Looks like y'all are all over it but it broke for me as well.
Screenshot 2019-03-09 10 12 44

yes, this issue occurs timing when probably log "verb..." if server as usual, I think.

Ah yeah, I knew we'd be better off checking for node weirdness. The sslmode property is not actually documented but used in quite of lot of searchable code on GitHub.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

psychicteeth picture psychicteeth  路  3Comments

svetlik picture svetlik  路  3Comments

almafeta picture almafeta  路  3Comments

selfagency picture selfagency  路  3Comments

golbette picture golbette  路  3Comments