balena-io / etcher

Flash OS images to SD cards & USB drives, safely and easily.
https://etcher.io/
Apache License 2.0
29.64k stars 2.1k forks source link

grey screen with message "you don't have access to this resource" #2755

Closed mjrtom7 closed 1 year ago

mjrtom7 commented 5 years ago
mjrtom7 commented 5 years ago

Etcher newbie here... version 1.5.24 won't launch, giving me this error message and a gray screen. Is there a way to rectify this issue?

lurch commented 5 years ago

Similar to #2659 ?

mjrtom7 commented 5 years ago

Yes. Gray screen, access message, and nothing else

On Mon, Apr 29, 2019 at 6:25 AM Andrew Scheller notifications@github.com wrote:

Similar to #2659 https://github.com/balena-io/etcher/issues/2659 ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/balena-io/etcher/issues/2755#issuecomment-487529272, or mute the thread https://github.com/notifications/unsubscribe-auth/AL6C727EDD676R3WEGJBUU3PS3EJ3ANCNFSM4HI65AXQ .

markcusio commented 4 years ago

As a non-root user I started Etcher from a linux terminal and got specific info of what resource I did not have access to.

john@johnwise /opt/balenaEtcher $ balena-etcher-electron Error loading settings: { [Error: EACCES: permission denied, open '/home/john/.config/balena-etcher-electron/config.json'] errno: -13, code: 'EACCES', syscall: 'open', path: '/home/john/.config/balena-etcher-electron/config.json' } Gtk-Message: 22:58:43.950: GtkDialog mapped without a transient parent. This is discouraged. ready-to-show: 21767.382ms

So I granted my user group "john" read/write to the folder and all sub folders/files: /home/john/.config/balena-etcher-electron

lurch commented 4 years ago

@markcusio Interesting! Why didn't your john user have read-write access to /home/john/.config/ by default?

EDIT: Although maybe this could happen if you (mistakenly?) ran sudo balena-etcher-electron the first time (before /home/john/.config/balena-etcher-electron existed), and it would then create /home/john/.config/balena-etcher-electron as the root user, and so when you later run balena-etcher-electron without sudo, then it can't access the root-owned /home/john/.config/balena-etcher-electron folder? :man_shrugging: