Skip to content

Error in rocketchat_logger.js on startup, after "Checking for version updates" #9831

@TwizzyDizzy

Description

@TwizzyDizzy

Description:

On starting up, Rocket.Chat throws an exception right after it says "Checking for version updates". Since there is a 404 involved and given that context, I would assume, that you implemented some kind of version check to show something like "Your version of Rocket.Chat is outdated!!11", but the file on the Rocket.Chat infrastructure that provides the current version is not yet deployed.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.62.0-rc.0
  • Operating System: Oracle Linux 7
  • Deployment Method(snap/docker/tar/etc): tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: -
  • Node Version: 8.9.4
  • mongoDB Version: 2.6.12

Steps to Reproduce:

  1. Install Rocket.Chat 0.62.0-rc.0
  2. Start the server

Expected behavior:

  • start the server without exceptions (doh!)

Actual behavior:

  • exception is thrown, yet the server starts and operates as expected

Relevant logs:

Feb 22 11:12:47 dev-chat RocketChat: #033[34mVersionCheck ➔ info#033[39m Checking for version updates
Feb 22 11:12:48 dev-chat RocketChat: rocketchat_logger rocketchat_logger.js:278 #033[31mVersionCheck ➔ error#033[39m Failed to get version updates { Error: failed [404] Not Found
Feb 22 11:12:48 dev-chat RocketChat: at Object.exports.makeErrorByStatus (packages/http.js:176:10)
Feb 22 11:12:48 dev-chat RocketChat: at Request._callback (packages/http.js:140:24)
Feb 22 11:12:48 dev-chat RocketChat: at Request.self.callback (/opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/http/node_modules/request/request.js:186:22)
Feb 22 11:12:48 dev-chat RocketChat: at emitTwo (events.js:126:13)
Feb 22 11:12:48 dev-chat RocketChat: at Request.emit (events.js:214:7)
Feb 22 11:12:48 dev-chat RocketChat: at Request.<anonymous> (/opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/http/node_modules/request/request.js:1163:10)
Feb 22 11:12:48 dev-chat RocketChat: at emitOne (events.js:116:13)
Feb 22 11:12:48 dev-chat RocketChat: at Request.emit (events.js:211:7)
Feb 22 11:12:48 dev-chat RocketChat: at IncomingMessage.<anonymous> (/opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/http/node_modules/request/request.js:1085:12)
Feb 22 11:12:48 dev-chat RocketChat: at Object.onceWrapper (events.js:313:30)
Feb 22 11:12:48 dev-chat RocketChat: at emitNone (events.js:111:20)
Feb 22 11:12:48 dev-chat RocketChat: at IncomingMessage.emit (events.js:208:7)
Feb 22 11:12:48 dev-chat RocketChat: at endReadableNT (_stream_readable.js:1055:12)
Feb 22 11:12:48 dev-chat RocketChat: at _combinedTickCallback (internal/process/next_tick.js:138:11)
Feb 22 11:12:48 dev-chat RocketChat: at process._tickDomainCallback (internal/process/next_tick.js:218:9)
Feb 22 11:12:48 dev-chat RocketChat: response:
Feb 22 11:12:48 dev-chat RocketChat: { statusCode: 404,
Feb 22 11:12:48 dev-chat RocketChat: content: 'Not Found',
Feb 22 11:12:48 dev-chat RocketChat: headers:
Feb 22 11:12:48 dev-chat RocketChat: { 'content-length': '9',
Feb 22 11:12:48 dev-chat RocketChat: 'content-type': 'text/plain; charset=utf-8',
Feb 22 11:12:48 dev-chat RocketChat: date: 'Thu, 22 Feb 2018 10:12:47 GMT',
Feb 22 11:12:48 dev-chat RocketChat: connection: 'close' },
Feb 22 11:12:48 dev-chat RocketChat: data: null } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions