drawio-desktop: Cannot update desktop version
Hello,
With the electron based application, I cannot update when the update prompt indicates that a new update is available.
Here the error message :

When launching the app via a terminal, this is printed when I the error appear :
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
[09:47:02.028] [info] Checking for update
[09:47:04.246] [info] Found version 11.1.1 (url: draw.io-x86_64-11.1.1.AppImage)
[09:47:04.246] [info] @update-available@
{ version: '11.1.1',
files:
[ { url: 'draw.io-x86_64-11.1.1.AppImage',
sha512:
'/iiqDREBRf6Y+TZ4dEZSIUqxVSHdJ3Uu3moem/Kw8D7j+u/UWsGdHQq0tKymN03cQ0eO8sB7DzTVM7ohrvrBiQ==',
size: 108927458,
blockMapSize: 115494 } ],
path: 'draw.io-x86_64-11.1.1.AppImage',
sha512:
'/iiqDREBRf6Y+TZ4dEZSIUqxVSHdJ3Uu3moem/Kw8D7j+u/UWsGdHQq0tKymN03cQ0eO8sB7DzTVM7ohrvrBiQ==',
releaseDate: '2019-08-02T21:41:39.699Z',
releaseName: '11.1.1',
releaseNotes:
`<p><strong>Important</strong> Pre 10.7.x users must upgrade for critical security fixes. If you've been redirected here, that's why.</p>\n<h2>Releases Notes for 11.1.1</h2>\n<p><a href="https://github.com/jgraph/drawio-desktop/releases/download/v11.1.1/draw.io-11.1.1-windows-installer.exe">Windows Installer</a><br>\n<a href="https://github.com/jgraph/drawio-desktop/releases/download/v11.1.1/draw.io-11.1.1-windows-no-installer.exe">Window No Installer</a><br>\n<a href="https://github.com/jgraph/drawio-desktop/releases/download/v11.1.1/draw.io-11.1.1.dmg">Mac</a><br>\nLinux - <a href="https://github.com/jgraph/drawio-desktop/releases/download/v11.1.1/draw.io-amd64-11.1.1.deb">deb</a>, <a href="https://github.com/jgraph/drawio-desktop/releases/download/v11.1.1/draw.io-amd64-11.1.1.snap">snap</a>, <a href="https://github.com/jgraph/drawio-desktop/releases/download/v11.1.1/draw.io-x86_64-11.1.1.AppImage">AppImage</a> or <a href="https://github.com/jgraph/drawio-desktop/releases/download/v11.1.1/draw.io-x86_64-11.1.1.rpm">rpm</a></p>\n<p><strong>ChangeLog:</strong></p>\n<ul>\n<li>Updates to <a href="https://github.com/jgraph/drawio/blob/v11.1.1/ChangeLog">draw.io 11.1.1</a>, changes from 10.9.5 to 11.1.1 are new in this desktop release.</li>\n<li>Adds .vsdx export to command line options</li>\n<li>Defaults to dark theme if MacOS is in dark mode.</li>\n<li>Updates to <a href="https://github.com/electron/electron/releases/tag/v6.0.0">Electron 6</a></li>\n</ul>` } undefined
[09:47:22.066] [info] Downloading update from draw.io-x86_64-11.1.1.AppImage
[09:47:22.110] [error] Error: Error: ENOENT: no such file or directory, open '/opt/draw.io/resources/app-update.yml'
[09:47:22.111] [error] @error@
Error: ENOENT: no such file or directory, open '/opt/draw.io/resources/app-update.yml'
(node:8007) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/opt/draw.io/resources/app-update.yml'
(node:8007) 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(). (rejection id: 1)
(node:8007) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
And a ls -la in /opt/draw.io/resources :
total 72564
drwxr-xr-x 3 root root 4096 1 août 11:48 .
drwxr-xr-x 5 root root 4096 1 août 12:35 ..
-rw-rw-r-- 1 root root 73988713 11 juil. 18:53 app.asar
-rw-rw-r-- 1 root root 296572 11 juil. 18:53 electron.asar
drwxr-xr-x 69 root root 4096 1 août 11:48 inspector
Why the file app-update.yml is missing ?
Additional infos :
OS: fedora 30 - kenel 5.1.20-300.fc30.x86_64
draw.io --version : 10.9.5
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 22
- Comments: 37 (8 by maintainers)
I can confirm it is still failing to update on Pop OS 20.04 based on Ubuntu 20.04. Same error occurs. Although, installation was done using deb file (not snap) which I downloaded from the official website. The solution remains same manual updation by installing new version deb file
Could anyone solve the issue? The issue happens in Ubuntu 22.04.2 LTS
This error still occurs, even if I have the latest version installed on my Debian 11.
This thread is such a mess there is no hope of understanding it. This is why we must have one issue per distinct problem.
Same problem with desktop 11.3.0 on ubuntu 18.0401
Same error ocorring on Debian11 x64:
(…) 13:51:25.483 › Downloading update from drawio-x86_64-20.7.4.AppImage 13:51:25.511 › Error: Error: ENOENT: no such file or directory, open ‘/opt/draw.io/resources/app-update.yml’ 13:51:25.511 › @error@ { constructor: ‘Error’, errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘/opt/draw.io/resources/app-update.yml’, stack: “Error: ENOENT: no such file or directory, open ‘/opt/draw.io/resources/app-update.yml’” } (…)
Looks like the file ‘/opt/draw.io/resources/app-update.yml’ isn’t exist: ┌──[juniorari@junior-ari]─[~] ll /opt/draw.io/resources/ total 88788 drwxrwxr-x 2 root root 4096 dez 26 19:33 ./ drwxrwxr-x 5 root root 4096 dez 26 19:33 …/ -rw-rw-r-- 1 root root 90907438 abr 29 2020 app.asar
Did anyone manage to solve it?
I encounter the same error here. I do not use snap to save my computer memory.
Please see https://github.com/electron-userland/electron-builder/issues/4046#issuecomment-699743169.
Same issue using the flatpak version.
Still the same with 12.1.7 on ubuntu 18.04.3 LTS.