signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.55k stars 2.64k forks source link

Unhandled Promise Rejection Error when updating to macOS 14.4 #6827

Closed KIMCHEE closed 6 months ago

KIMCHEE commented 6 months ago

Using a supported version?

Overall summary

Following error after installing macOS 14.4

Unhandled Promise Rejection Error: DBVersionFromFutureError: SQL: User version is 990 but the expected maximum version is 980. at updateSchema ([REDACTED]/ts/sql/migrations/index.js:1780:11) at Object.initialize ([REDACTED]/ts/sql/Server.js:422:40) at MessagePort. ([REDACTED]/ts/sql/mainWorker.js:84:35) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) at Worker. ([REDACTED]/ts/sql/main.js:62:26) at Worker.emit (node:events:517:28) at MessagePort. (node:internal/worker:242:53) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20) at exports.emitMessage (node:internal/per_context/messageport:23:28)

Steps to reproduce

1.) Updated to macOS 14.4 2.) Opened Signal, error occurs. 3.) Downloaded latest version of Signal and installed. 4.) Error reproduces

Signal will open for a few minutes sometimes and then the error will occur or sometimes error will occur right away after opening the app.

Expected result

Signal working as expected

Actual result

Unhandled Promise Rejection

Error: DBVersionFromFutureError: SQL: User version is 990 but the expected maximum version is 980. at updateSchema ([REDACTED]/ts/sql/migrations/index.js:1780:11) at Object.initialize ([REDACTED]/ts/sql/Server.js:422:40) at MessagePort. ([REDACTED]/ts/sql/mainWorker.js:84:35) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) at Worker. ([REDACTED]/ts/sql/main.js:62:26) at Worker.emit (node:events:517:28) at MessagePort. (node:internal/worker:242:53) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20) at exports.emitMessage (node:internal/per_context/messageport:23:28)

Screenshots

Screenshot 2024-03-13 at 2 51 24 PM

Signal version

6.48.1 and 7.1.1

Operating system

macOS 14.4

Version of Signal on your phone

NA

Link to debug log

https://debuglogs.org/desktop/7.1.1/5af811b1bdede2d05de90d61892c28062a17e9141c0c911e18a3dfa0e280fbef.gz

ayumi-signal commented 6 months ago

Hello, this is a normal error and it can show if you downgraded the app.

Migration 990 was introduced in 7.0. If you went from version 7 back to 6.48, then you might experience this error. Apologies for it, but we can only recommend you use version >= 7.0.0.

Please try to update to the latest version of the app, and hopefully that fixes the problem.

KIMCHEE commented 6 months ago

Error: DBVersionFromFutureError: SQL: User version is 1000 but the expected maximum version is 990. at updateSchema ([REDACTED]/ts/sql/migrations/index.js:1782:11) at Object.initialize ([REDACTED]/ts/sql/Server.js:424:40) at MessagePort. ([REDACTED]/ts/sql/mainWorker.js:84:35) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) at Worker. ([REDACTED]/ts/sql/main.js:62:26) at Worker.emit (node:events:517:28) at MessagePort. (node:internal/worker:242:53) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20) at exports.emitMessage (node:internal/per_context/messageport:23:28)

Same error when installing the new version. This is happening on all our Macs that have installed the newest Signal and macOS 14.4

ayumi-signal commented 6 months ago

@KIMCHEE Sorry this is still happening. Yesterday we released v7.2.0 and this version matches DB version 1000. You should be able to find it in the autoupdater or on https://signal.org/download/ .

Can you please confirm the app version (Help Menu -> About Signal Desktop)? A new debug log would also be helpful in case it still doesn't work after update.

KIMCHEE commented 6 months ago

We have people having the same issue. It says their DB mismatch is now 1000 to 980. Its almost like the app isnt updating everything.

KIMCHEE commented 6 months ago

Error: DBVersionFromFutureError: SQL: User version is 1000 but the expected maximum version is 980. at updateSchema ([REDACTED]/ts/sql/migrations/index.js:1780:11) at Object.initialize ([REDACTED]/ts/sql/Server.js:422:40) at MessagePort. ([REDACTED]/ts/sql/mainWorker.js:84:35) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) at Worker. ([REDACTED]/ts/sql/main.js:62:26) at Worker.emit (node:events:517:28) at MessagePort. (node:internal/worker:242:53) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20) at exports.emitMessage (node:internal/per_context/messageport:23:28)

ayumi-signal commented 6 months ago

Can you post more of the debug log? There is logging on app startup which references the platform and version number, this part is important for us.

Can you also clarify the events prior to this: Did you try to manually update by visiting the signal.org/download page or use the auto updater?

Regarding this comment "We have people having the same issue" -- for these people can you please provide details of the timeline of events and upgrades. As much information as possible would help us diagnose the issue.