insomnia: 2022.7.0 snap wont start on ubuntu
Expected Behavior
For insomnia to start.
Actual Behavior
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /run/user/1000/snap.insomnia/.org.chromium.Chromium.DdJT13)
at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:1822)
at Module._extensions..node (node:internal/modules/cjs/loader:1226:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2049)
at Module.load (node:internal/modules/cjs/loader:1011:32)
at Module._load (node:internal/modules/cjs/loader:846:12)
at f._load (node:electron/js2c/asar_bundle:2:13328)
at Module.require (node:internal/modules/cjs/loader:1035:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/snap/insomnia/184/resources/app.asar/node_modules/@getinsomnia/node-libcurl/dist/Easy.js:5:18)
at Module._compile (node:internal/modules/cjs/loader:1141:14)
Reproduction Steps
- install insomnia using the snap
- run insomnia
Is there an existing issue for this?
- I have searched the issue tracker for this problem.
Additional Information
Ubuntu 22.04.1 LTS
snap info
latest/stable: 2022.7.0 2022-12-15 (184) 117MB -
Insomnia Version
2022.7.0
What operating system are you using?
Ubuntu
Operating System Version
Ubuntu 22.04.1 LTS
Installation method
snap
Last Known Working Insomnia version
the one that was installed this morning
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 69
- Comments: 44 (7 by maintainers)
Commits related to this issue
- Fix #5531 bump snapcraft base to core22 — committed to filfreire/insomnia by filfreire 2 years ago
- Fix #5531 bump snapcraft base to core22 — committed to filfreire/insomnia by filfreire 2 years ago
- Fix #5531 bump snapcraft base to core22 (#5555) * Fix #5531 bump snapcraft base to core22 * lint package.json — committed to Kong/insomnia by filfreire a year ago
- Revert "Fix #5531 bump snapcraft base to core22 (#5555)" This reverts commit 856c8596790d6f5e964558e4772ad256f99ec4f6. — committed to filfreire/insomnia by filfreire a year ago
- fix/revert snapcraft and macos package (#5633) * Revert "Fix INS-2242, add afterPack workaround for electron-builder (#5627)" This reverts commit 33aa835c26432b9e9e38e85f7950e23e60ff6660. * Rev... — committed to Kong/insomnia by filfreire a year ago
- fix/revert snapcraft and macos package (#5633) * Revert "Fix INS-2242, add afterPack workaround for electron-builder (#5627)" This reverts commit 33aa835c26432b9e9e38e85f7950e23e60ff6660. * Rev... — committed to kreosus/insomnia by filfreire a year ago
- Fix #5531 bump snapcraft base to core22 (#5555) * Fix #5531 bump snapcraft base to core22 * lint package.json — committed to pavkout/insomnia by filfreire a year ago
For others hitting this, the temporary workaround for snap is to downgrade:
Or to uninstall & switch to the deb installer.
or you could
it’s not that dangerous 😃 It won’t update after that it will stay 2022.6, so maybe watch this bug and when it’s fixed you can remove that version and install the latest the proper way again.
Same issue here, and revert didn’t work for me.
Hey folks merging the PR closed the issue automatically. The fix will go out in a patch release tomorrow morning.
It still doesn’t start for me on Ubuntu 22.04.1 LTS. See full error message:
Idea of snap is that it is a self contained package. It doesn’t matter, which Linux OS version you have (Ubuntu/Kubuntu/?buntu/Manjaro/…). It doesn’t matter, which libraries your base system has installed, since the program should use the ones inside snap. (Or statically linked inside binary.)
So, the snap package is broken.
@filfreire - wouldn’t we want to hotpatch / expedite this? (agreed could be difficult timing due to holidays … but punching out
2022.7.1
seems kind of critical as it is breaking/impacting lots of users (anyone who uses snap anyway); OR, revoke/revert2022.7.0
entirely for the time being?Snap shouldn’t be relying on any local libraries …
snap revert insomnia
fixed for me as well for now.Hey, I still can’t see the patched version on snapcraft.io. Was it released? 🤔
The 2202.7.3 snap has fixed the start up problem for me. I’m running Ubuntu 22.04.01.
I’m not sure why but snap shows the installed version of Insomnia as 2202.7.4, but when I actually run the app and check Help > About the listed version is 2202.7.3. 🤷 It’s not a big deal, I’m just happy it’s working. 😃
Updated to the latest version and the issue is still happening:
Only solution is to use a previous version AppImage. Last two updates are broken on Linux.
you can use
snap saved
andsnap restore
to restore removed snap configs.ref: https://snapcraft.io/docs/snapshots#heading--automatic-snapshots
Hey folks, Update to https://github.com/Kong/insomnia/issues/5531#issuecomment-1355879270 - We might have a possible fix 🎸 🎉
Took inspiration from folks that use electron-builder and bumped into similar issues (see https://github.com/electron-userland/electron-builder/issues/5257#issuecomment-941660681). Managed to get it working by forcing the
base
of the snapcraft.yaml template to latestcore22
.Steps:
npm run bootstrap
base
fromcore18
tocore22
onpackages/insomnia/node_modules/app-builder-lib/templates/snap/snapcraft.yaml
BUILD_TARGETS='snap' npm run app-package
on a linux host machine (works on WSL)packages/insomnia/dist/Insomnia<...>.snap
package (e.g.sudo snap install fixed-insomnia.snap --dangerous
)And it seems to work okay-ish:
@Kong/team-insomnia fix will be applying these steps to the build pipeline in a proper/sane way which might be tricky. But not impossible.
thanks @filfreire ! what’s the process / timeline for https://snapcraft.io/insomnia to have the fix?
reason why this is not working is because snap core in ubuntu 22.04 and 22.10 don’t have the correct
libstdc++.so.6
installed:As you can see
GLIBCXX_3.4.26
is not there.The correct fix is the one described by @filfreire here and bump the core base.
Same issue on
5.15.81-1-MANJARO
And it’s a bit strange because I have required version of lib on my machine.Snap:
Errors on startup:
ENV:
+1 on Ubuntu 20.04.5 LTS
Downgrading worked!
.deb
installation works fine.