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: manual download & update is OK, but auto update is dead, and still think I am stuck with the old version. #2172

Open
CapitainFlam opened this issue May 7, 2024 · 1 comment
Labels
Type ◦ Bug Something isn't working

Comments

@CapitainFlam
Copy link

CapitainFlam commented May 7, 2024

Priority

Low

Version: KeeWeb

KeeWeb v1.18.7 (dfc6201, 2021-07-18)

Environment

Desktop

Operating System

Windows

Range of issue

The issue only occurs on my own setup, demo site works correctly

Database Type

None

Environment Copy/Paste

KeeWeb v1.18.7 (dfc6201, 2021-07-18)
Environment: electron v12.0.7
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) KeeWeb/1.18.7 Chrome/89.0.4389.128 Electron/12.0.7 Safari/537.36

Description

No big deal, but I had a issue with Keeweb desktop app. So I tried to autodate. Nope, doesn't work. No problem, I downloaded and installed manually the last version. So far, so good. But the autoupdater A/ still doesn't work, and B/ still consider that I have the old Keeweb version.

After reading the logs, it seems that the certificate has expired ?! ...see :
[ERROR] 2024-05-07T20:59:16.069Z [updater] Update check error Error: certificate has expired

Steps To Reproduce

  • install old 1.17.6 windows version.
  • try to autoupdate ( ...it should not work, and say : )
    image
  • download and install latest version manualy
  • auto upload should not work anyway, even if you updated, and still say that you're in 1.17.6, even if you're in 1.18.7
    it say this :
    image
    even with this version :
    image

Expected Behavior

  • autoupdate shall work
  • actual version shall work and show correctly

Logs

[INFO ] 2024-05-07T20:58:41.532Z [start-profiler] Electron app started in 641ms: loading app requires=2ms, single instance lock=2ms, portable check=0ms, userdata dir=0ms, defining args=0ms, setting env=0ms, app on ready=75ms, loading settings key=2ms, reading app settings=11ms, creating main window=31ms, configuring main window=18ms, restoring main window position=1ms, setting ipc handlers=9ms, setting global shortcuts=0ms, subscribing to power events=0ms, setting request handlers=0ms, main window ready=330ms, main window shown=32ms
[DEBUG] 2024-05-07T20:58:41.535Z [settings-manager] Theme changed dark
[INFO ] 2024-05-07T20:58:41.538Z [usb-listener] Starting USB listener
[DEBUG] 2024-05-07T20:58:41.538Z [native-module-connector] Starting native module host
[INFO ] 2024-05-07T20:58:41.624Z [start-profiler] App started in 515ms: fetching=225ms, pre-init=296ms, loading modules=51ms, document ready=10ms, creating app model=2ms, loading configs=65ms, initializing modules=2ms, loading remote config=3ms, checking features=0ms, initializing storage=0ms, starting usb=0ms, first view rendering=86ms, app ready event=0ms
[INFO ] 2024-05-07T20:58:42.128Z [updater] Next update check will happen in 53617s
[INFO ] 2024-05-07T20:58:46.424Z [open:mymegadrive] File open request
[INFO ] 2024-05-07T20:58:46.424Z [open:mymegadrive] Open file from cache, will sync after load dropbox
[DEBUG] 2024-05-07T20:58:46.424Z [storage-cache] Load *REDACTED*
[DEBUG] 2024-05-07T20:58:46.433Z [storage-cache] Loaded *REDACTED* 6ms
[INFO ] 2024-05-07T20:58:46.433Z [open:mymegadrive] Loaded file from cache null
[INFO ] 2024-05-07T20:58:46.843Z [file] Opened file mymegadrive: 409ms, 500 rounds, 615 kB
[DEBUG] 2024-05-07T20:58:46.843Z [app] Add last open file *REDACTED*
 *REDACTED* dropbox /*REDACTED*.kdbx *REDACTED*
[INFO ] 2024-05-07T20:58:46.910Z [open:mymegadrive] Sync just opened file
[INFO ] 2024-05-07T20:58:46.944Z [sync:mymegadrive] Sync started dropbox /*REDACTED*.kdbx {}
[INFO ] 2024-05-07T20:58:46.945Z [sync:mymegadrive] Stat file
[DEBUG] 2024-05-07T20:58:46.945Z [storage-dropbox] Stat /*REDACTED*.kdbx
[INFO ] 2024-05-07T20:58:46.946Z [storage-dropbox] HTTP request POST https://api.dropboxapi.com/2/files/get_metadata
[INFO ] 2024-05-07T20:58:47.378Z [storage-dropbox] HTTP response POST https://api.dropboxapi.com/2/files/get_metadata 200 {"content-type":"application/json","cache-control":"no-cache","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-server-response-time":"81","date":"Tue, 07 May 2024 20:58:48 GMT","server":"envoy","content-encoding":"gzip","vary":"Accept-Encoding","x-dropbox-response-origin":"far_remote","x-dropbox-request-id":"*REDACTED*"}
[INFO ] 2024-05-07T20:58:47.378Z [storage-dropbox] HTTP response 200
[DEBUG] 2024-05-07T20:58:47.378Z [storage-dropbox] Stated /*REDACTED*.kdbx *REDACTED* 433ms
[INFO ] 2024-05-07T20:58:47.379Z [sync:mymegadrive] Stat found same version, not modified
[INFO ] 2024-05-07T20:58:47.379Z [sync:mymegadrive] Sync finished no error

[INFO ] 2024-05-07T20:59:15.859Z [updater] Checking for update...
[INFO ] 2024-05-07T20:59:15.859Z [transport] GET https://app.keeweb.info/update.json
[INFO ] 2024-05-07T20:59:15.868Z [transport] Request to https://app.keeweb.info/update.json without proxy
[ERROR] 2024-05-07T20:59:16.069Z [transport] Cannot GET https://app.keeweb.info/update.json Error: certificate has expired
[ERROR] 2024-05-07T20:59:16.069Z [updater] Update check error Error: certificate has expired
[INFO ] 2024-05-07T20:59:16.074Z [updater] Next update check will happen in 86400s
[ERROR] 2024-05-07T20:59:33.575Z [launcher] spawn error: ykman, 10ms Error: spawn ykman ENOENT

Referenced Issues

No response

Attachments: Database kdbx File

No response

Attachments: Screenshots

image
image

@CapitainFlam CapitainFlam added the Type ◦ Bug Something isn't working label May 7, 2024
@Aetherinox
Copy link
Contributor

Aetherinox commented May 8, 2024

Thanks for submitting this.
I have confirmed it does occur on v1.18.7. I get the same errors. However, on v1.19.0 (the current development version), works fine.

I'm new to the development team, so I'm having to look into these things a bit more slowly, but from what I see, the certificate for the site is fine, so I'm going to assume it must be checking the certificate for the app itself, which expired on ‎Saturday, ‎March ‎26, ‎2022 4:00:00 PM

Between the update and transport module is a signature checker, the error is coming from when it hits on this.verifySignature(...).

There's not much that can be done with the existing version of KeeWeb (v1.18.7), as those are signed at release, and it wouldn't make much sense to re-release v1.18.7 some 3 years later to update the signature when most people should be on the latest. However, there is a newer version currently in development (Version 1.19.0). Once it releases, it will contain a new signature; which should correct the issue. I don't get the error on that one, however, there are no signatures for it as it hasn't been signed and released yet. Other than the sig issue, the rest of the module appears to be working fine. I went through it and checked the steps. It's just snagging on the signature bit.

Version 1.19 can be tracked at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type ◦ Bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants