vladimiry / ElectronMail

Unofficial ProtonMail Desktop App
GNU General Public License v3.0
1.51k stars 99 forks source link

Cant Login - Error #390

Closed Goneque closed 3 years ago

Goneque commented 3 years ago

Ive used the app a few times then these error messages at log-in attempt. Can this be repaired by someone with limited experience and/or what are the specific details to a safe uninstall?

EACCES: permission denied, open '/home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json' and... Unhandled Error RuntimeError: abort(Error: EACCES: permission denied, open '/home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json'). Build with -s ASSERTIONS=1 for more info. at process.C (/snap/electron-mail/34/resources/app.asar/node_modules/quickjs-emscripten/dist/quickjs-emscripten-module.js:159:55) at processEmit [as emit] (/snap/electron-mail/34/resources/app.asar/node_modules/signal-exit/index.js:161:32)

vladimiry commented 3 years ago

I don't use Snap stuff so can't advice on my own experience nor do I have a strong guess as to why the issue occurs.

Some things I would try if I were you (starting from the top, stop executing the steps if just performed bullet helped):

PS You could probably replace /34/ in above commands with /current/.

Goneque commented 3 years ago

Thank you for the quick response. Your instructions sound very thorough. Will try and let you know results.

Farren

Sent from ProtonMail mobile

-------- Original Message -------- On Apr 10, 2021, 12:00 PM, Vladimir Yakovlev wrote:

I don't use Snap stuff so can't advice on my own experience nor do I have a strong guess as to why the issue occurs.

Some things I would try if I were you (starting from the top, stop executing the steps if just performed bullet helped):

  • Make sure you run the latest app version.

  • Execute the following commands in console (applying the permission attributes from settings.bin to config.json):

  • chown --reference=/home/dogagentc/snap/electron-mail/34/.config/electron-mail/settings.bin /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • chmod --reference=/home/dogagentc/snap/electron-mail/34/.config/electron-mail/settings.bin /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • Execute the following commands in console:

  • chown $(whoami) /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • chmod 644 /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • Remove the /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json file in file manager or just run rm /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json console command (this file is not very important for the app and will be re-created by the app on start).

  • Backup the /home/dogagentc/snap/electron-mail/34/.config/electron-mail/ folder. Then remove the app and make sure that the /home/dogagentc/snap/electron-mail/34/.config/electron-mail/ folder also removed. Then install the app again. Keep in mind that all the locally saved app data will be lost (you made a backup though). So fresh/cold start happens, you will have to add mail accounts to the app, etc.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Goneque commented 3 years ago

Hi thanks for the quick response Looks very thorough I'll try it today

Farren

Sent from ProtonMail mobile

-------- Original Message -------- On Apr 10, 2021, 12:00 PM, Vladimir Yakovlev wrote:

I don't use Snap stuff so can't advice on my own experience nor do I have a strong guess as to why the issue occurs.

Some things I would try if I were you (starting from the top, stop executing the steps if just performed bullet helped):

  • Make sure you run the latest app version.

  • Execute the following commands in console (applying the permission attributes from settings.bin to config.json):

  • chown --reference=/home/dogagentc/snap/electron-mail/34/.config/electron-mail/settings.bin /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • chmod --reference=/home/dogagentc/snap/electron-mail/34/.config/electron-mail/settings.bin /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • Execute the following commands in console:

  • chown $(whoami) /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • chmod 644 /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • Remove the /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json file in file manager or just run rm /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json console command (this file is not very important for the app and will be re-created by the app on start).

  • Backup the /home/dogagentc/snap/electron-mail/34/.config/electron-mail/ folder. Then remove the app and make sure that the /home/dogagentc/snap/electron-mail/34/.config/electron-mail/ folder also removed. Then install the app again. Keep in mind that all the locally saved app data will be lost (you made a backup though). So fresh/cold start happens, you will have to add mail accounts to the app, etc.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Goneque commented 3 years ago

Sadly nothing happened The commands have no reaction I seem to miss some instructions

Regards, Farren

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Saturday, April 10, 2021 12:42 PM, Farren @.***> wrote:

Hi thanks for the quick response Looks very thorough I'll try it today

Farren

Sent from ProtonMail mobile

-------- Original Message -------- On Apr 10, 2021, 12:00 PM, Vladimir Yakovlev < @.***> wrote:

I don't use Snap stuff so can't advice on my own experience nor do I have a strong guess as to why the issue occurs.

Some things I would try if I were you (starting from the top, stop executing the steps if just performed bullet helped):

  • Make sure you run the latest app version.

  • Execute the following commands in console (applying the permission attributes from settings.bin to config.json):

  • chown --reference=/home/dogagentc/snap/electron-mail/34/.config/electron-mail/settings.bin /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • chmod --reference=/home/dogagentc/snap/electron-mail/34/.config/electron-mail/settings.bin /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • Execute the following commands in console:

  • chown $(whoami) /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • chmod 644 /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json

  • Remove the /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json file in file manager or just run rm /home/dogagentc/snap/electron-mail/34/.config/electron-mail/config.json console command (this file is not very important for the app and will be re-created by the app on start).

  • Backup the /home/dogagentc/snap/electron-mail/34/.config/electron-mail/ folder. Then remove the app and make sure that the /home/dogagentc/snap/electron-mail/34/.config/electron-mail/ folder also removed. Then install the app again. Keep in mind that all the locally saved app data will be lost (you made a backup though). So fresh/cold start happens, you will have to add mail accounts to the app, etc.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

vladimiry commented 3 years ago

I don't use Snap stuff so can't advice on my own experience nor do I have a strong guess as to why the issue occurs.

@cs007lj, what you could do in addition or instead of the listed above points is trying flatpak package instead of "snap". There is also "deb" package if you don't need isolation capabilitities to take place. Another downside of using "deb" is absence of repository, so the app won't be auto-updated.

vladimiry commented 3 years ago

Closing the issue as a stale one. The suggested workaround is to use another package type, like https://flathub.org/apps/details/com.github.vladimiry.ElectronMail, AppImage, etc.