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

CRITICAL: Fatal error starting develop - 69dd012: Exception in callback of async function: TypeError: Cannot read property 'isEnabled' of undefined #15023

Closed
bkraul opened this issue Jul 20, 2019 · 3 comments · Fixed by #15026
Assignees
Milestone

Comments

@bkraul
Copy link

bkraul commented Jul 20, 2019

Description:

Upon downloading the latest docker:develop image, (based on 69dd102) the container fails on startup with the following error:

Exception in callback of async function: TypeError: Cannot read property 'isEnabled' of undefined
    at Object._getStatistics [as get] (app/statistics/server/functions/get.js:148:17)
    at syncWorkspace (app/cloud/server/functions/syncWorkspace.js:17:27)
    at app/cloud/server/index.js:20:2
    at Function.time (/app/bundle/programs/server/profile.js:309:28)
    at /app/bundle/programs/server/boot.js:427:13
    at /app/bundle/programs/server/boot.js:472:5
    at Function.run (/app/bundle/programs/server/profile.js:510:12)
    at /app/bundle/programs/server/boot.js:470:11

The concerning part, is that I cannot go back to a previous version. (errors out with cannot find migration 148). This seems to be a critical issue.

Steps to reproduce:

  1. Download latest docker rocketchat:devel image (based on 69dd102)
  2. Attempt to start it with your docker-compose, etc.
  3. Server will halt upon startup with error mentioned above.

Expected behavior:

Server should start as normal.

Actual behavior:

Server halts on startup.

Server Setup Information:

  • Docker develop tag.
@reetp
Copy link

reetp commented Jul 20, 2019

First this is a development version. Errors should be expected....

The concerning part, is that I cannot go back to a previous version. (errors out with cannot find migration 148 ). This seems to be a critical issue.

This not unusual when you upgrade any database, and I believe particularly so with mongo.

https://rocket.chat/docs/administrator-guides/database-migration/#database-migration

The answer is to always make a backup before trying to upgrade.

@bkraul
Copy link
Author

bkraul commented Jul 20, 2019

@reetp I am aware this is a development version. That is why I actively report on it. Second, as stated, my environment is a testing environment for this very reason.

That aside, my suspicion is that the migration to 148 is not included in the current image. I went back to one that does have it and was able bring the server up. Will attempt to upgrade to latest again and report.

@bkraul
Copy link
Author

bkraul commented Jul 20, 2019

After the 148 migration, provided by docker build based on 422669f, I attempted moving up to 69dd102, to no avail. It failed with the same error described above. Tried latest build based on tag c4127e6, with same results. Have reverted back to 422669f.

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

Successfully merging a pull request may close this issue.

3 participants