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

[BUG]选择MacOS登录方式时无法连接,使用内置SQLLite时无法连接数据库 #292

Closed
hiyoungshen opened this issue Sep 7, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@hiyoungshen
Copy link

Describe the bug / 描述
A clear and concise description of what the bug is. / 请简要描述出现的 bug

选择MacOS登录方式时无法连接,使用内置SQLLite时无法连接数据库。

To Reproduce / 复现过程

打开登录界面登录即可。

Expected behavior / 预期的结果

登录成功

Screenshots / 截图
If applicable, add screenshots to help explain your problem. / 如果可能的话,请附上相关截图

image

System information / 系统信息

  • OS: [e.g. Arch Linux]
  • Version [e.g. 2.1.4]

Linux version 5.15.0-46-generic (buildd@lcy02-amd64-007) (gcc (Ubuntu 9.4.0-1ubuntu120.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #4920.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022

Additional context / 附加信息
Add any other context about the problem here. / 如果有什么额外信息,可以写在这里

@hiyoungshen hiyoungshen added the bug Something isn't working label Sep 7, 2022
@welcome
Copy link

welcome bot commented Sep 7, 2022

Thanks for opening your first issue here! Be sure to follow the issue template!

@Icalinguaplusplus
Copy link
Member

看看終端有什麽日志?

@hiyoungshen
Copy link
Author

看看終端有什麽日志?

日志如下

Cannot find an external media player
icalingua> [44375:0909/094950.212001:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
(node:44344) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `icalingua --trace-warnings ...` to show where the warning was created)
info 正在升级数据库
[Error: alter table `messages` add column `anonymousId` varchar(255) null - SQLITE_ERROR: duplicate column name: anonymousId] {
  errno: 1,
  code: 'SQLITE_ERROR'
}
(node:44344) UnhandledPromiseRejectionWarning: Error: ERR_FAILED (-2) loading 'file:///opt/Icalingua++/resources/app.asar/dist/electron/index.html#/main'
    at rejectAndCleanup (node:electron/js2c/browser_init:161:7647)
    at EventEmitter.stopLoadingListener (node:electron/js2c/browser_init:161:8022)
    at EventEmitter.emit (node:events:390:28)
    at EventEmitter.emit (node:domain:475:12)
    at EventEmitter.topLevelDomainCallback (node:domain:152:15)
    at EventEmitter.callbackTrampoline (node:internal/async_hooks:128:24)
(node:44344) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

1 similar comment
@hiyoungshen
Copy link
Author

看看終端有什麽日志?

日志如下

Cannot find an external media player
icalingua> [44375:0909/094950.212001:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
(node:44344) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `icalingua --trace-warnings ...` to show where the warning was created)
info 正在升级数据库
[Error: alter table `messages` add column `anonymousId` varchar(255) null - SQLITE_ERROR: duplicate column name: anonymousId] {
  errno: 1,
  code: 'SQLITE_ERROR'
}
(node:44344) UnhandledPromiseRejectionWarning: Error: ERR_FAILED (-2) loading 'file:///opt/Icalingua++/resources/app.asar/dist/electron/index.html#/main'
    at rejectAndCleanup (node:electron/js2c/browser_init:161:7647)
    at EventEmitter.stopLoadingListener (node:electron/js2c/browser_init:161:8022)
    at EventEmitter.emit (node:events:390:28)
    at EventEmitter.emit (node:domain:475:12)
    at EventEmitter.topLevelDomainCallback (node:domain:152:15)
    at EventEmitter.callbackTrampoline (node:internal/async_hooks:128:24)
(node:44344) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

@Icalinguaplusplus
Copy link
Member

Icalinguaplusplus commented Sep 9, 2022

升級之前使用的是什麽版本?
是不是手動修改過數據庫中的 dbVersion?

@hiyoungshen
Copy link
Author

升級之前使用的是什麽版本? 是不是手動修改過數據庫中的 dbVersion?

记不清升级之前用的版本了。升级之前用的是Icalingua,而非Icalingua++。

没有修改过数据库中的dbVersion。

目前这种情况有什么解决办法吗?

@Icalinguaplusplus
Copy link
Member

原因是之前使用的 Icalingua 版本過低,development 已經解決數據庫升級的相關問題,但已升級的數據庫無法解決,只能自行將 dbVersion 改爲 10,或者直接刪除聊天記錄數據庫。
數據庫文件在 ~/.config/icalingua/databases/ 中,以 eqq 開頭

@hiyoungshen
Copy link
Author

原因是之前使用的 Icalingua 版本過低,development 已經解決數據庫升級的相關問題,但已升級的數據庫無法解決,只能自行將 dbVersion 改爲 10,或者直接刪除聊天記錄數據庫。 數據庫文件在 ~/.config/icalingua/databases/ 中,以 eqq 開頭

感谢,已解决,可以关闭 此issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants