mysteriumnetwork / mysterium-vpn-desktop

Mysterium VPN is a Desktop VPN client for Windows, macOS and Linux
https://mysterium.network/apps
MIT License
199 stars 41 forks source link

[bug] app-update.yml error #189

Closed mrbluecoat closed 2 years ago

mrbluecoat commented 3 years ago

Describe the bug Error thrown when starting mysterium-vpn-desktop on Ubuntu 21.04: Error: ENOENT: no such file or directory, open '/opt/MysteriumVPN/resources/app-update.yml'

To Reproduce Steps to reproduce the behavior:

  1. wget https://github.com/mysteriumnetwork/mysterium-vpn-desktop/releases/download/4.2.1/mysterium-vpn-desktop_4.2.1_amd64.deb
  2. sudo dpkg -i mysterium-vpn-desktop_4.2.1_amd64.deb
  3. mysterium-vpn-desktop

Expected behavior No error in the terminal while GUI is loading

Logs

$ mysterium-vpn-desktop
10:58:59.425 › Checking for update
10:58:59.429 › Error: Error: ENOENT: no such file or directory, open '/opt/MysteriumVPN/resources/app-update.yml'
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(). The promise rejected with the reason:
Error: ENOENT: no such file or directory, open '/opt/MysteriumVPN/resources/app-update.yml'
10:59:00.210 › Pushy device token: <redacted>
[Pushy] Connected successfully (device token <redacted>)
10:59:04.428 › Connecting to the supervisor...
10:59:04.431 › Connected to:  /var/run/myst.sock
10:59:04.463 › Server: ok: 0.47.1

If I create an empty file to satisfy the search:

$ mysterium-vpn-desktop
10:56:55.119 › Checking for update
10:56:55.155 › Error: TypeError: Cannot read property 'provider' of undefined
    at Object.createClient (/opt/MysteriumVPN/resources/app.asar/node_modules/electron-updater/src/providerFactory.ts:28:25)
    at /opt/MysteriumVPN/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:342:63
    at AppImageUpdater.getUpdateInfoAndProvider (/opt/MysteriumVPN/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:345:20)
    at AppImageUpdater.doCheckForUpdates (/opt/MysteriumVPN/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:366:20)
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(). The promise rejected with the reason:
TypeError: Cannot read property 'provider' of undefined
    at Object.createClient (/opt/MysteriumVPN/resources/app.asar/node_modules/electron-updater/src/providerFactory.ts:28:25)
    at /opt/MysteriumVPN/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:342:63
    at AppImageUpdater.getUpdateInfoAndProvider (/opt/MysteriumVPN/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:345:20)
    at AppImageUpdater.doCheckForUpdates (/opt/MysteriumVPN/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:366:20)

Desktop (please complete the following information):

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still relevant?