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

Livechat history migration error on update: 0.65.2 -> 0.66.0-rc.1 #11231

Closed
TwizzyDizzy opened this issue Jun 22, 2018 · 0 comments · Fixed by #11232
Closed

Livechat history migration error on update: 0.65.2 -> 0.66.0-rc.1 #11231

TwizzyDizzy opened this issue Jun 22, 2018 · 0 comments · Fixed by #11232

Comments

@TwizzyDizzy
Copy link

Description:

The error seems to have no impact, yet I wanted to report it. It seems to be connected with the update of livechat history (disclaimer: I have never used livechat)

Steps to reproduce:

  1. Update Rocket.Chat
  2. see logfiles

Expected behavior:

No errors

Actual behavior:

Jun 22 13:49:03 dev-chat RocketChat: {"line":"160","file":"rocketchat_migrations.js","message":"Migrations: Migrating from version 121 -> 128","time":{"$date":1529668143771},"level":"info"}
Jun 22 13:49:03 dev-chat RocketChat: {"line":"160","file":"rocketchat_migrations.js","message":"Migrations: Running up() on version 122","time":{"$date":1529668143772},"level":"info"}
Jun 22 13:49:03 dev-chat RocketChat: Fixing ChatSubscription u._id_1_name_1_t_1_code_1
Jun 22 13:49:03 dev-chat RocketChat: {"line":"160","file":"rocketchat_migrations.js","message":"Migrations: Running up() on version 123","time":{"$date":1529668143776},"level":"info"}
Jun 22 13:49:03 dev-chat RocketChat: {"line":"160","file":"rocketchat_migrations.js","message":"Migrations: Running up() on version 124","time":{"$date":1529668143779},"level":"info"}
Jun 22 13:49:03 dev-chat RocketChat: #033[34mSearch Logger ➔ debug#033[39m Error on event 'user.save' with id 'mFFfETbmt3gxcFk2G'
Jun 22 13:49:03 dev-chat RocketChat: {"line":"160","file":"rocketchat_migrations.js","message":"Migrations: Running up() on version 125","time":{"$date":1529668143789},"level":"info"}
Jun 22 13:49:03 dev-chat RocketChat: #033[34mSearch Logger ➔ debug#033[39m Error on event 'user.save' with id '42YZ6DgBpQRXpvbHW'
Jun 22 13:49:03 dev-chat RocketChat: #033[34mSearch Logger ➔ debug#033[39m Error on event 'user.save' with id '8QQRbbkXMqRg2wTXt'
Jun 22 13:49:03 dev-chat RocketChat: #033[34mSearch Logger ➔ debug#033[39m Error on event 'user.save' with id 'BZTwuj4KoNT39mYmQ'
Jun 22 13:49:03 dev-chat RocketChat: #033[34mSearch Logger ➔ debug#033[39m Error on event 'user.save' with id 'dYYAS7uEpRF5wxAbu'
Jun 22 13:49:03 dev-chat RocketChat: #033[34mSearch Logger ➔ debug#033[39m Error on event 'user.save' with id 'jAv4aJ4xGGKbbnJQX'
Jun 22 13:49:03 dev-chat RocketChat: #033[34mSearch Logger ➔ debug#033[39m Error on event 'user.save' with id 'mFFfETbmt3gxcFk2G'
Jun 22 13:49:03 dev-chat RocketChat: #033[34mSearch Logger ➔ debug#033[39m Error on event 'user.save' with id 'rocket.cat'
Jun 22 13:49:03 dev-chat RocketChat: {"line":"160","file":"rocketchat_migrations.js","message":"Migrations: Running up() on version 126","time":{"$date":1529668143800},"level":"info"}
Jun 22 13:49:03 dev-chat RocketChat: {"line":"160","file":"rocketchat_migrations.js","message":"Migrations: Running up() on version 127","time":{"$date":1529668143833},"level":"info"}
Jun 22 13:49:03 dev-chat RocketChat: {"line":"160","file":"rocketchat_migrations.js","message":"Migrations: Running up() on version 128","time":{"$date":1529668143840},"level":"info"}
Jun 22 13:49:03 dev-chat RocketChat: {"line":"160","file":"rocketchat_migrations.js","message":"Migrations: Finished migrating.","time":{"$date":1529668143849},"level":"info"}
Jun 22 13:49:04 dev-chat RocketChat: Migrating livechat visitors navigation history to livechat messages. This might take a long time ...
Jun 22 13:49:04 dev-chat RocketChat: Livechat history migration 0/0
Jun 22 13:49:04 dev-chat RocketChat: (node:4738) UnhandledPromiseRejectionWarning: MongoError: Invalid Operation, no operations specified
Jun 22 13:49:04 dev-chat RocketChat: at Function.MongoError.create (/opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/error.js:31:11)
Jun 22 13:49:04 dev-chat RocketChat: at toError (/opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:139:22)
Jun 22 13:49:04 dev-chat RocketChat: at OrderedBulkOperation.execute (/opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/bulk/ordered.js:508:27)
Jun 22 13:49:04 dev-chat RocketChat: at bulkWrite (/opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/collection.js:663:8)
Jun 22 13:49:04 dev-chat RocketChat: at /opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/collection.js:540:5
Jun 22 13:49:04 dev-chat RocketChat: at new Promise (<anonymous>:null:null)
Jun 22 13:49:04 dev-chat RocketChat: at Collection.insertMany (/opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/collection.js:539:10)
Jun 22 13:49:04 dev-chat RocketChat: at Promise.asyncApply (/opt/rocketchat/bundle/programs/server/app/app.js:7273:50)
Jun 22 13:49:04 dev-chat RocketChat: at /opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
Jun 22 13:49:04 dev-chat RocketChat: => awaited here:
Jun 22 13:49:04 dev-chat RocketChat: at Function.Promise.await (/opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
Jun 22 13:49:04 dev-chat RocketChat: at Promise.asyncApply (/opt/rocketchat/bundle/programs/server/app/app.js:7304:20)
Jun 22 13:49:04 dev-chat RocketChat: at /opt/rocketchat/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
Jun 22 13:49:04 dev-chat RocketChat: (node:4738) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)

Server Setup Information:

  • Version of Rocket.Chat Server: 0.66.0-rc.1
  • Operating System: Oracle Linux 7.5
  • Deployment Method: tar (via Ansible)
  • Number of Running Instances: 1
  • DB Replicaset Oplog: disabled
  • NodeJS Version: 8.11.3
  • MongoDB Version: 2.6.12

Additional context

n/a

Relevant logs:

see above

Cheers
Thomas

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.

1 participant