signalapp / Signal-Desktop

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

DB problem on startup of Windows desktop app #7019

Closed DrAdrianJones closed 2 months ago

DrAdrianJones commented 2 months ago

Using a supported version?

Overall summary

here's the error message:

Database startup error:

Error: DBVersionFromFutureError: SQL: User version is 1190 but the expected maximum version is 1140.
    at updateSchema ([REDACTED]\ts\sql\migrations\index.js:1812:11)
    at initialize ([REDACTED]\ts\sql\Server.js:488:42)
    at MessagePort.<anonymous> ([REDACTED]\ts\sql\mainWorker.js:89:41)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
    at Worker.<anonymous> ([REDACTED]\ts\sql\main.js:249:26)
    at Worker.emit (node:events:519:28)
    at MessagePort.<anonymous> (node:internal/worker:262:53)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)

Steps to reproduce

boot windows with Signal set to auto start link device error on next boot

Expected result

normal application start

Actual result

error as above

Screenshots

No response

Signal version

7.25

Operating system

windows 10

Version of Signal on your phone

No response

Link to debug log

No response

jamiebuilds-signal commented 2 months ago

This error happens when you are using a database file from a newer version of the app with an older version of the app. There are a couple ways this could happen:

I would recommend installing the latest version of Signal from the website over the existing installed Signal app (without uninstalling it which will delete your local user data)

DrAdrianJones commented 2 months ago

This error happens when you are using a database file from a newer version of the app with an older version of the app. There are a couple ways this could happen:

* You installed an older copy of the app over a newer one

* You made a copy of the database file from another device running a newer version of the app

  * This could be any sort of file syncing or backup service (Example: Dropbox)
  * You shouldn't do this, it will break things, you should have multiple separately linked devices

I would recommend installing the latest version of Signal from the website over the existing installed Signal app (without uninstalling it which will delete your local user data)

Hi there,

I have not installed any other versions or copied the database.

I have tried installing the latest version but the problem persists. I have Signal desktop running on another machine without a problem

indutny-signal commented 2 months ago

Hello again!

I took another look at your report and I see that the migration 1190 that your database on is in 7.25 release, and interestingly enough the error that you pasted doesn't include the application version number which we added in 7.24. My guess is that it is possible that you are somehow running older Signal version.

When you included "7.25.0" as an app version in your initial report. How did you determine it?

Could you in the explorer go to %AppData\Signal, compress the logs into a .zip archive, and send them to support@signal.org (please mention this github issue). Thank you!

DrAdrianJones commented 1 month ago

Hello again!

I took another look at your report and I see that the migration 1190 that your database on is in 7.25 release, and interestingly enough the error that you pasted doesn't include the application version number which we added in 7.24. My guess is that it is possible that you are somehow running older Signal version.

When you included "7.25.0" as an app version in your initial report. How did you determine it?

Could you in the explorer go to %AppData\Signal, compress the logs into a .zip archive, and send them to support@signal.org (please mention this github issue). Thank you!

I got the app version from the "About Signal" in the application

indutny-signal commented 1 month ago

Thank you for the logs. I see now that when you originally got the error message you were actually running 7.20.0, and now it appears that you are running 7.25.0. Furthermore, I don't see any database error from the latest startup. Do you experience any issues currently?

DrAdrianJones commented 1 month ago

Thank you for the logs. I see now that when you originally got the error message you were actually running 7.20.0, and now it appears that you are running 7.25.0. Furthermore, I don't see any database error from the latest startup. Do you experience any issues currently?

Yes, I still have exactly the same problem

indutny-signal commented 1 month ago

I see. It sounds like you have two separate versions of Signal Desktop installed on your machine. Before I say anything else, though, please be mindful of the uninstall because it will erase the chat history.

When you run the installer from the https://signal.org/, it finishes and opens the app - does that work?

DrAdrianJones commented 1 month ago

I see. It sounds like you have two separate versions of Signal Desktop installed on your machine. Before I say anything else, though, please be mindful of the uninstall because it will erase the chat history.

When you run the installer from the https://signal.org/, it finishes and opens the app - does that work?

I have uninstalled signal but still get the same error when windows starts! How do I completely remove Signal?

indutny-signal commented 1 month ago

@DrAdrianJones sadly this confirms my guess and somehow you have two installations of signal. If you have a shortcut to the Signal installation - you should be able to right-click it and open the folder in explorer. From there you could try executing uninstall.exe