BurtonAlgorithms / weMessage

An app that brings iMessage to Android devices.
https://wemessageapp.com
GNU Affero General Public License v3.0
206 stars 28 forks source link

Database has been closed error #39

Open vatche-k3 opened 3 years ago

vatche-k3 commented 3 years ago

[!!! ERROR !!!] [weServer Database Service] An error occurred while connecting to the Messages Chat database. Shutting down!

java.sql.SQLException: The database has been closed at org.sqlite.core.NativeDB.throwex(NativeDB.java:471) at org.sqlite.core.NativeDB.errmsg_utf8(Native Method) at org.sqlite.core.NativeDB.errmsg(NativeDB.java:137) at org.sqlite.core.DB.newSQLException(DB.java:921) at org.sqlite.core.DB.throwex(DB.java:886) at org.sqlite.core.NativeDB._open_utf8(Native Method) at org.sqlite.core.NativeDB._open(NativeDB.java:71) at org.sqlite.core.DB.open(DB.java:174) at org.sqlite.core.CoreConnection.open(CoreConnection.java:220) at org.sqlite.core.CoreConnection.(CoreConnection.java:76) at org.sqlite.jdbc3.JDBC3Connection.(JDBC3Connection.java:25) at org.sqlite.jdbc4.JDBC4Connection.(JDBC4Connection.java:24) at org.sqlite.SQLiteConnection.(SQLiteConnection.java:45) at org.sqlite.JDBC.createConnection(JDBC.java:114) at org.sqlite.JDBC.connect(JDBC.java:88) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:251) at scott.wemessage.server.c.a.(SourceFile:120) at scott.wemessage.server.a.(SourceFile:79) at scott.wemessage.server.ServerLauncher.main(SourceFile:8)

The email and password provided in config.json are invalid!

Please enter a new email and password for devices to connect with! Your email must be the same as the one you are using iMessage with.

nathan-jobrain commented 3 years ago

Same issue, looks like a bug.

Build 1.2 (downloaded at: April 3, 2021 at 3:23 PM) According to reference from official tutorial from weMessage Expected result: After user execute file run.command.sh in folder WeServer - User navigation switched to the Terminal window. And in the terminal following text should appear:

The email and password provided in config.json are invalid! Please enter a new email and password for devices to connect with! Your email must be the same as the one you are using iMessage with.

After which user - have ability/can enter - their email in the terminal line

Actual result: After user executed file run.command.sh It shows:

The email and password provided in config.json are invalid! Please enter a new email and password for devices to connect with! Your email must be the same as the one you are using iMessage with.

- comment - After which prompt error message: `[!!! ERROR !!!] [weServer Database Service] An error occurred while connecting to the Messages Chat database. Shutting down!

[04-04-2021 00:10:50] java.sql.SQLException: The database has been closed at org.sqlite.core.NativeDB.throwex(NativeDB.java:471) at org.sqlite.core.NativeDB.errmsg_utf8(Native Method) at org.sqlite.core.NativeDB.errmsg(NativeDB.java:137) at org.sqlite.core.DB.newSQLException(DB.java:921) at org.sqlite.core.DB.throwex(DB.java:886) at org.sqlite.core.NativeDB._open_utf8(Native Method) at org.sqlite.core.NativeDB._open(NativeDB.java:71) at org.sqlite.core.DB.open(DB.java:174) at org.sqlite.core.CoreConnection.open(CoreConnection.java:220) at org.sqlite.core.CoreConnection.(CoreConnection.java:76) at org.sqlite.jdbc3.JDBC3Connection.(JDBC3Connection.java:25) at org.sqlite.jdbc4.JDBC4Connection.(JDBC4Connection.java:24) at org.sqlite.SQLiteConnection.(SQLiteConnection.java:45) at org.sqlite.JDBC.createConnection(JDBC.java:114) at org.sqlite.JDBC.connect(JDBC.java:88) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:270) at scott.wemessage.server.c.a.(SourceFile:120) at scott.wemessage.server.a.(SourceFile:79) at scott.wemessage.server.ServerLauncher.main(SourceFile:8)

[04-04-2021 00:10:52] The email and password provided in config.json are invalid!

[04-04-2021 00:10:52] Please enter a new email and password for devices to connect with! [04-04-2021 00:10:52] Your email must be the same as the one you are using iMessage with.`

Comment: And user can't enter their email

Device details: OS: MacOs Big Sur Version 11.2.3, Firefox 87.0

ceciljchen commented 3 years ago

Experiencing the same issue. OS X 10.15.7 Java V8 Update 281 (build 1.8.0_281-b09) WeServer 1.2

A config.json file is created upon first run that contains a default e-mail and password that wasn't input by user.

ceciljchen commented 3 years ago

23 Comment here worked for me. Full Disk Access

mlaskin commented 3 years ago

Experiencing the same issue. OS X 10.15.7 Java V8 Update 281 (build 1.8.0_281-b09) WeServer 1.2

A config.json file is created upon first run that contains a default e-mail and password that wasn't input by user.

Same here OS X 10.15.7 Java V7 1.7.0_25-b15 WeServer 1.2

Pretty stuck on this - any advice?

Thanks!

mlaskin commented 3 years ago

https://github.com/BurtonAlgorithms/weMessage/issues/27#issuecomment-572307135 explains that you need to give Full Disk Access to java Once that's done it worked.

nathan-jobrain commented 3 years ago

Thank you, will try. And let you know.

On Jul 18, 2021, at 6:27 AM, mlaskin @.***> wrote:

27 (comment) https://github.com/BurtonAlgorithms/weMessage/issues/27#issuecomment-572307135

explains that you need to give Full Disk Access to java Once that's done it worked.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BurtonAlgorithms/weMessage/issues/39#issuecomment-882056482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDUQDRT5VUJZMAIYHGYPSTTYLJCJANCNFSM4ZFVNIEA.