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

Database Migration Problem on Heroku #6549

Closed
Syirrus opened this issue Mar 31, 2017 · 2 comments
Closed

Database Migration Problem on Heroku #6549

Syirrus opened this issue Mar 31, 2017 · 2 comments

Comments

@Syirrus
Copy link

Syirrus commented Mar 31, 2017

Rocket.Chat Version: 0.53.0
Running Instances: 1
DB Replicaset OpLog: Disabled
Node Version: v4.7.3
Database Migration: 90

I was previously running version 0.53 and when to upgrade to the latest on Heroku 0.54.2.
I encontered an error in Heroku and decided to try to build the rocket.chat again. It succeed. However, when I went to start my dyno it kept crashing with the following error:

Updating process.env.MAIL_URL
2017-03-31T13:17:44.178220+00:00 app[web.1]: Will load cache for rocketchat_permissions
2017-03-31T13:17:44.198566+00:00 app[web.1]: 67 records load from rocketchat_permissions
2017-03-31T13:17:46.056924+00:00 app[web.1]: ufs: store created at
2017-03-31T13:17:48.207101+00:00 app[web.1]: ufs: store created at
2017-03-31T13:17:55.844754+00:00 app[web.1]: Exception in callback of async function: Error: [Can't find migration version 90]

Any idea on how to fix this? I tried unlocking with the command:
db.migrations.update({_id: 'control'},{$set:{locked:false,version:90}})
but it didn't work. I was able to migrate back to my previous version. Any ideas? Could this be related to some of the problems people are experiencing here:

By problem I mean not the DB issue, but the initial fail to build on Heroku which lead to a DB issue:

Issue: 6452
Issue: 6444

@Syirrus
Copy link
Author

Syirrus commented Apr 4, 2017

UPDATE:
After the commits from last night (roughly 120 since yesterday morning), I was able to success build on Heroku.

@Syirrus Syirrus closed this as completed Apr 4, 2017
@jekuno
Copy link

jekuno commented Apr 4, 2017

Did you try a fresh deployment to Heroku and even didn't get the error as described in RocketChat/meteor-buildpack-horse#10?

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

No branches or pull requests

4 participants