question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SOLVED] Error using Etcher (AppImage) on manjaro linux (Permission Denied)

See original GitHub issue

Summary (includes solution):

When trying to flash an SD card using the AppImage packaged version of Etcher, running on Manjaro Linux, the process fails with a generic error message. Opening the DevTools console gives more details into the error and suggests this is a permissions issue

"Command failed: cd "/home/simon"; "/usr/bin/pkexec" --disable-internal-agent /bin/bash -c "echo SUDOPROMPT; sh '/tmp/tmp-1683OiD12Fzl2VQu.cmd'"
/tmp/tmp-1683OiD12Fzl2VQu.cmd: line 64: /run/user/1000/appimagelauncherfs/0000.AppImage: Permission denied
"

The issue is solved by deleting the package appimagelauncher and rebooting the system (not sure if the reboot is really necessary, but I did it and it worked). Others might need to also remove libappimage (from extra) but that was not the case for me.

Referenced forum solution: https://forum.manjaro.org/t/solved-appimage-woes-when-building-package/86654/6

Steps to reproduce:

Note: You need to have DevTools open in etcher before doing these steps in order to see the logs (CTRL+SHIFT+I) (I, not L)

  1. Ensure community/appimagelauncher is installed (the issue could arise because of extra/libappimage as well, given the forum post that I read but it was not installed in my case; 1.1 To verify if one (or both) of these packages is installed, run sudo pacman -Ss appimage;
  2. Follow the steps to flash an external device in etcher’s UI with any valid combination of external drive & image (you can use the image I linked in this post);
  3. Notice the following error:

image

The devtools shows the following stacktrace:

"Error: Command failed: cd "/home/simon"; "/usr/bin/pkexec" --disable-internal-agent /bin/bash -c "echo SUDOPROMPT; sh '/tmp/tmp-1683OiD12Fzl2VQu.cmd'"
/tmp/tmp-1683OiD12Fzl2VQu.cmd: line 64: /run/user/1000/appimagelauncherfs/0000.AppImage: Permission denied

    at ChildProcess.exithandler (child_process.js:303:12)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Socket.stream.socket.on (internal/child_process.js:380:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close [as _onclose] (net.js:596:12)"

I didn’t push further to understand exactly what was going on but I thought I’d document it for others because finding out the solution was a very frustrating process for me.

Cheers !

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
thundroncommented, Aug 14, 2019

Thanks for the report, very detailed and useful. Closing, will reference if other users encounter the same issue

1reaction
Niceplacecommented, Aug 12, 2019

Since this is solved I believe it can be closed but I’ll leave it open for a few days in case people need to see it. If the project contributors decide differently, I fully understand.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't build balena-etcher because nodejs conflicts with ...
Checking electron12 dependencies... cp: cannot create regular file '/var/tmp/pamac/dbs/sync/community.files': Permission denied cp: can…
Read more >
I get some errors related to something called “FUSE”
I get some errors related to something called “FUSE” . AppImages require a Linux technology called Filesystem in Userspace (or short FUSE)....
Read more >
Etcher giving error when trying to flash SD card on Linux Mint ...
The error you see must appear because Etcher is not able to respawn itself with proper permissions needed to access the external drive....
Read more >
[solved].AppImage(s) not working - Linux Mint Forums
I have been trying to use Etcher as balenaEtcher-1.5.70-x64. ... with many appimage files you have to give them permission to be executable....
Read more >
Balena Etcher Won't Launch SOLVED - Linux.org
Click to expand... Yeah I'm having a tough day with Voyager 11 Debian my fresh install but someone is helping ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found