formio / formio

A Form and Data Management Platform for Progressive Web Applications.

Home Page:https://form.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] More than one lock was found, terminating updates.

Trepliev opened this issue · comments

Environment

Formio.js version: 7.4.2
Backend: DocumentDB 4.0.0
Running on ec2 instance as docker containers.

When containers start, debug message is shown and the containers don't continue to start up.

Message: More than one lock was found, terminating updates.

2022-12-12T15:18:35.993Z formio:db Collections found: 61
2022-12-12T15:18:35.994Z formio:db Update found: 1.0.0.js
2022-12-12T15:18:35.994Z formio:db Update found: 1.1.0.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.0.0.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.0.1.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.1.0.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.2.0.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.2.1.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.2.2.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.3.0.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.3.1.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.3.2.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.4.0.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.4.1.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.4.2.js
2022-12-12T15:18:35.994Z formio:db Update found: 2.4.3.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.0.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.1.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.2.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.3.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.4.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.5.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.6.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.7.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.8.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.0.9.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.1.0.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.1.1.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.1.2.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.1.3.js
2022-12-12T15:18:35.994Z formio:db Update found: 3.1.4.js
2022-12-12T15:18:35.999Z formio:db Final updates
2022-12-12T15:18:36.002Z formio:db More than one lock was found, terminating updates.

How can I delete/remove the lock(s)?

Thank you for your help!

Hey @Trepliev, check out this entry from our documentation; it has to do with upgrading an enterprise version, but should help you resolve this locked problem (you have to access your database to remove the lock from the schema collection).

Hello @brendanbond
I tried to reset the isLocked flag but no luck.
I found this:

db.schema.find({key:'formio'}).pretty();


[
  {
    _id: ObjectId("611b6dc0a5f2271dde755a40"),
    key: 'formio',
    isLocked: false,
    version: '3.3.10'
  },
  {
    _id: ObjectId("6390e2d785f9079f0fa7ce99"),
    key: 'formio',
    isLocked: false,
    version: '3.3.14'
  }
]

The issue here is that you've got multiple documents in the schema collection, I would expect only one. Back up your database (always a good idea) and remove the schema with version 3.3.10, that should correct this issue when the API server starts up.

Also, I should have read your initial issue more carefully - it appears you're running our enterprise version, so please feel free to email support@form.io - you'll get quicker and more comprehensive support for the enterprise version than here on the OSS repository.