Skip to content

VersionCheckJob fails to create due to Meteor environment issue #18915

@wreiske

Description

@wreiske

Description:

When setting up a brand new server/development environment, the scheduled job for update checks fails because it needs to bind the Meteor environment.

Steps to reproduce:

  1. git clone a fresh RC instance
  2. meteor npm install, meteor npm start, etc...
  3. Fill out setup wizard

Expected behavior:

No error on server console

Actual behavior:

Server console throws this error:

I20200915-14:53:12.557(-4)? Enrollment email URL: http://localhost:3000/#/enroll-account/zXwrRsxdtVik1ASJ4E7LdZrWnlcwGPsPzBmg2MrCs3c
W20200915-14:53:12.807(-4)? (STDERR) (node:92341) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
I20200915-14:53:57.080(-4)? Exception in callback of async function: Error: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.
I20200915-14:53:57.080(-4)?     at Object.Meteor._nodeCodeMustBeInFiber (packages/meteor.js:1186:11)
I20200915-14:53:57.080(-4)?     at Meteor.EnvironmentVariable.EVp.get (packages/meteor.js:1199:10)
I20200915-14:53:57.080(-4)?     at withoutInvocation (packages/meteor.js:544:40)
I20200915-14:53:57.081(-4)?     at bindAndCatch (packages/meteor.js:558:33)
I20200915-14:53:57.081(-4)?     at Object.Meteor.setTimeout (packages/meteor.js:573:21)
I20200915-14:53:57.081(-4)?     at scheduleTimeout (packages/littledata_synced-cron.js:356:18)
I20200915-14:53:57.081(-4)?     at Object.SyncedCron._laterSetTimeout (packages/littledata_synced-cron.js:331:3)
I20200915-14:53:57.081(-4)?     at Object.SyncedCron._laterSetInterval (packages/littledata_synced-cron.js:294:22)
I20200915-14:53:57.081(-4)?     at scheduleEntry (packages/littledata_synced-cron.js:128:16)
I20200915-14:53:57.081(-4)?     at Object.SyncedCron.add (packages/littledata_synced-cron.js:156:7)
I20200915-14:53:57.081(-4)?     at addVersionCheckJob (app/version-check/server/index.js:17:13)
I20200915-14:53:57.081(-4)?     at app/version-check/server/index.js:43:3
I20200915-14:53:57.082(-4)?     at later (/Users/wreiske/prj/Rocket.Chat/node_modules/underscore/underscore.js:888:31)
I20200915-14:53:57.082(-4)?     at Timeout._onTimeout (/Users/wreiske/prj/Rocket.Chat/node_modules/underscore/underscore.js:825:19)
I20200915-14:53:57.082(-4)?     at listOnTimeout (internal/timers.js:549:17)
I20200915-14:53:57.082(-4)?     at processTimers (internal/timers.js:492:7)
I20200915-14:58:41.399(-4)? LocalStore: store created at
I20200915-14:58:41.449(-4)? LocalStore: store created at
I20200915-14:58:41.450(-4)? LocalStore: store created at
I20200915-14:58:42.055(-4)? Setting default file store to GridFS

Server Setup Information:

  • Version of Rocket.Chat Server: 3.7.0-develop a25dd1a
  • Operating System: macOS
  • Deployment Method: git clone

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