Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crashes when reloading the page on a public instance #124

Closed
astorije opened this issue Feb 28, 2016 · 3 comments · Fixed by #125
Closed

Server crashes when reloading the page on a public instance #124

astorije opened this issue Feb 28, 2016 · 3 comments · Fixed by #125
Assignees
Labels
Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors.
Milestone

Comments

@astorije
Copy link
Member

Not sure exactly what triggers this nor how to reproduce 100% of the time, but I got this error when doing the following:

  • Run server, public instanec
  • Access it on localhost
  • Connect to Freenode and another IRC network
  • Freenode is broken, got no channels open nor connection with it
  • Reload the page
  • Boom, error

The stack trace:

> node index "--port" "9001" "--home" "/tmp"


The Lounge is now running on http://0.0.0.0:9001/
Press ctrl-c to stop

Client#connect():
Error: connect ETIMEDOUT 185.30.166.38:6697
.../lounge/src/client.js:337
    var room = sockets.adapter.rooms[this.id] || [];
                              ^

TypeError: Cannot read property 'rooms' of undefined
    at Client.quit (.../lounge/src/client.js:337:28)
    at Socket.<anonymous> (.../lounge/src/server.js:189:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Socket.emit (.../lounge/node_modules/socket.io/lib/socket.js:129:10)
    at Socket.onclose (.../lounge/node_modules/socket.io/lib/socket.js:398:8)
    at Client.onclose (.../lounge/node_modules/socket.io/lib/client.js:204:12)
    at emitTwo (events.js:92:20)
    at Socket.emit (events.js:172:7)
    at Socket.onClose (.../lounge/node_modules/socket.io/node_modules/engine.io/lib/socket.js:240:10)

Let me know what additional info I can bring and I'll try to find that.

@astorije astorije added the Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors. label Feb 28, 2016
@astorije
Copy link
Member Author

Actually, no need to do all that, just run it from master, access it on localhost (public instance) and refresh the page whenever you want.

EDIT: master runs fine on private instance, I can only notice that on a public instance.

@astorije
Copy link
Member Author

@xPaw confirmed this bug, so let's not make a release until this gets fixed.

As a matter of fact, I am willing to re-purpose the priority badge and make it a sensible requirement for releases: can't release as long as there is a priority ticket (issue or PR) is open. At the moment the label is very opinion-based, everyone having preferences of things to be worked on. By re-purposing this, we make it so that important issue do get in the way of releasing and make it clear for everyone. Of course, I'll document that in the releasing process. That way, maintainers can mark a bug and make sure it doesn't get shipped by accident. Are @thelounge/maintainers OK with this? :-)

@astorije astorije self-assigned this Feb 29, 2016
@astorije astorije changed the title Weird issue when reloading the page Server crashes when reloading the page on a public instance Feb 29, 2016
@AlMcKinlay
Copy link
Member

As a matter of fact, I am willing to re-purpose the priority badge and make it a sensible requirement for releases: can't release as long as there is a priority ticket (issue or PR) is open.

Happy with this, but not sure "priority" is the right word for it. "Blocker" or "release-critical" or something like that would probably be better.

@xPaw xPaw closed this as completed in #125 Feb 29, 2016
@astorije astorije added this to the 1.3.0 milestone Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants