Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Socket closes immediately after connection #3

Open
JoKneeMo opened this issue Jul 11, 2019 · 0 comments
Open

Socket closes immediately after connection #3

JoKneeMo opened this issue Jul 11, 2019 · 0 comments

Comments

@JoKneeMo
Copy link

JoKneeMo commented Jul 11, 2019

I can't seem to figure out why the socket closes immediately after my test user connects to the gateway. It doesn't have an opportunity to talk to rocket.chat.

Any ideas?

debug logs

[2019-07-10 23:08:48 info] Starting rocketchat-irc-gateway
[2019-07-10 23:08:48 debug] Added packet handlers: AUTHENTICATE, CAP, JOIN, NAMES, NICK, PART, PASS, PING, PONG, PRIVMSG, WHO
[2019-07-10 23:08:48 debug] Added packet senders: error, noSuchChannelError, join, kill, namesReply, namesEnd, notice, part, passMismatchError, ping, pong, privmsg, topic, welcome, whoReply, whoEnd
[2019-07-10 23:08:48 info] Started insecure server on port 6667
[2019-07-10 23:08:48 info] Webserver listening on port 6660
[2019-07-10 23:08:52 info] Incoming connection ::ffff:192.168.1.5:61904
[2019-07-10 23:08:52 info] User testuser registered
[2019-07-10 23:08:52 debug] Added attachment handlers: file
[2019-07-10 23:08:52 debug] Added message handlers: room_changed_announcement, basic, room_changed_description, uj, ul, room_changed_topic
[2019-07-10 23:08:52 trace] Message {
  prefix: { server: null, nick: null, user: null, host: null ,
  command: 'QUIT',
  parameters: [ 'Leaving.', [length]: 1 ]
[2019-07-10 23:08:52 info] User testuser disconnecting (socket state: open)
[2019-07-10 23:08:52 info] User testuser disconnecting (socket state: closed)

.env config

LOG_LEVEL=trace

#RocketChat
ROCKETCHAT_HOST=rc.domain.com
ROCKETCHAT_PORT=443
ROCKETCHAT_SECURE=true

#IRC Gateway
SERVER_HOST=irc.rc.domain.com
SERVER_PORT=6667
#SERVER_SECURE=
#SERVER_SECURE_PORT=
#SERVER_KEY=
#SERVER_CERT=
#SERVER_CA=
#SERVER_SELF_SIGNED=

#Web Server, public NAT to 6660
WEBSERVER_URL=http://ircpub.rc.domain.com:5320 
WEBSERVER_PORT=6660

#Redis Server
REDIS_ENABLED=false
#REDIS_URL=
#FILE_CACHE_MAX_AGE=

EDIT: added trace results to log above

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant