Cannot run via snap on Fedora or Ubuntu
Heya !
Thank you for the software it looks cool ! I tried running via snap on Fedora and it seems that Mailspring has troubles starting there.
It hangs and does not start, here's the full commandline log:
snap run mailspring
/snap/mailspring/216/bin/desktop-launch: line 177: /home/cyryl/snap/mailspring/common/.config/user-dirs.dirs: No such file or directory
cp: cannot create regular file '/home/cyryl/snap/mailspring/common/.config/': Not a directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/cyryl/snap/mailspring/common/.config/user-dirs.dirs.md5sum: No such file or directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/cyryl/snap/mailspring/common/.config/user-dirs.locale.md5sum: No such file or directory
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Running database migrations
App load time: 10633ms
Running Setup
{"error":null}
TypeError: _electron.app.isInApplicationsFolder is not a function
at moveToApplications (/src/browser/move-to-applications.es6:4:11)
at Application.oneTimeMoveToApplications (/src/browser/application.es6:174:5)
at Application.start (/src/browser/application.es6:88:16)
at <anonymous> Promise {
<rejected> TypeError: _electron.app.isInApplicationsFolder is not a function
at moveToApplications (/src/browser/move-to-applications.es6:4:11)
at Application.oneTimeMoveToApplications (/src/browser/application.es6:174:5)
at Application.start (/src/browser/application.es6:88:16)
at <anonymous> }
version info:
commands:
- mailspring
snap-id: 0TyNxgP6wEM3nTXzymtc1wOnvl2P6Iij
tracking: stable
refreshed: 2018-05-24T20:12:17+01:00
installed: 1.2.2 (216) 164MB -
channels:
let me know if you'd need any more info ! thanks again !
I have the same issue, but on ubuntu xenial
I have the same issue on ubuntu 18.04
I get the same error after installing mailspring on Ubuntu 18.04.
$ mailspring
/snap/mailspring/216/bin/desktop-launch: line 177: /home/slang/snap/mailspring/common/.config/user-dirs.dirs: No such file or directory
cp: cannot create regular file '/home/slang/snap/mailspring/common/.config/': Not a directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/slang/snap/mailspring/common/.config/user-dirs.dirs.md5sum: No such file or directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/slang/snap/mailspring/common/.config/user-dirs.locale.md5sum: No such file or directory
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "canberra-gtk-module"
Running database migrations
App load time: 1451ms
Running Setup
{"error":null}
TypeError: _electron.app.isInApplicationsFolder is not a function
at moveToApplications (/src/browser/move-to-applications.es6:4:11)
at Application.oneTimeMoveToApplications (/src/browser/application.es6:174:5)
at Application.start (/src/browser/application.es6:88:16)
at <anonymous> Promise {
<rejected> TypeError: _electron.app.isInApplicationsFolder is not a function
at moveToApplications (/src/browser/move-to-applications.es6:4:11)
at Application.oneTimeMoveToApplications (/src/browser/application.es6:174:5)
at Application.start (/src/browser/application.es6:88:16)
at <anonymous> }
Version Info:
$ snap --version
snap 2.33
snapd 2.33
series 16
ubuntu 18.04
kernel 4.15.0-23-generic
$ snap info mailspring
commands:
- mailspring
snap-id: 0TyNxgP6wEM3nTXzymtc1wOnvl2P6Iij
tracking: stable
refresh-date: today at 18:51 PDT
channels:
stable: 1.2.2 (216) 164MB -
candidate: 1.2.2 (216) 164MB -
beta: 1.2.2 (216) 164MB -
edge: 1.2.3 (218) 165MB -
installed: 1.2.2 (216) 164MB -
It appears that it has issues creating the .config directory within /snap/mailspring/common/
Generating the .config directory manually removed the error regarding the .config directory. However, it still errored out with the following:
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Running database migrations
App load time: 3317ms
Running Setup
{"error":null}
TypeError: _electron.app.isInApplicationsFolder is not a function
at moveToApplications (/src/browser/move-to-applications.es6:4:11)
at Application.oneTimeMoveToApplications (/src/browser/application.es6:174:5)
at Application.start (/src/browser/application.es6:88:16)
at <anonymous> Promise {
<rejected> TypeError: _electron.app.isInApplicationsFolder is not a function
at moveToApplications (/src/browser/move-to-applications.es6:4:11)
at Application.oneTimeMoveToApplications (/src/browser/application.es6:174:5)
at Application.start (/src/browser/application.es6:88:16)
at <anonymous> }
After waiting for 30 seconds I ctrl-C'd it and tried again with the following error in output:
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Running database migrations
App load time: 207ms
{"error":null}
Failed to generate minidump.Segmentation fault (core dumped)
After removing mailspring and then reinstalling; I was able to get it to load for me by running mailspring in the terminal. With the following output:
/snap/mailspring/216/bin/desktop-launch: line 177: /home/slang/snap/mailspring/common/.config/user-dirs.dirs: No such file or directory
cp: cannot create regular file '/home/slang/snap/mailspring/common/.config/': Not a directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/slang/snap/mailspring/common/.config/user-dirs.dirs.md5sum: No such file or directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/slang/snap/mailspring/common/.config/user-dirs.locale.md5sum: No such file or directory
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "canberra-gtk-module"
Running database migrations
App load time: 206ms
{"error":null}
{ Error: DraftEditingSession::ensureCorrectAccount - you can only send drafts from a configured account.
at DraftEditingSession.ensureCorrectAccount (/src/flux/stores/draft-editing-session.es6:325:13)
at DraftStore._onSendDraft (/src/flux/stores/draft-store.es6:402:19)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
message: 'DraftEditingSession::ensureCorrectAccount - you can only send drafts from a configured account.' } { pluginIds: [] }
After setting up my account and closing out of Mailspring, I attempted to start the app via the desktop icon, with no such luck.
The only way it loads now is if I start the client via the terminal. Though it still provides the same output as above regarding the missing .config directory.
/snap/mailspring/216/bin/desktop-launch: line 177: /home/slang/snap/mailspring/common/.config/user-dirs.dirs: No such file or directory
cp: cannot create regular file '/home/slang/snap/mailspring/common/.config/': Not a directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/slang/snap/mailspring/common/.config/user-dirs.dirs.md5sum: No such file or directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/slang/snap/mailspring/common/.config/user-dirs.locale.md5sum: No such file or directory
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "canberra-gtk-module"
Running database migrations
App load time: 215ms
{"error":null}
$ mailspring
/snap/mailspring/216/bin/desktop-launch: line 177: /home/slang/snap/mailspring/common/.config/user-dirs.dirs: No such file or directory
cp: cannot create regular file '/home/slang/snap/mailspring/common/.config/': Not a directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/slang/snap/mailspring/common/.config/user-dirs.dirs.md5sum: No such file or directory
/snap/mailspring/216/bin/desktop-launch: line 180: /home/slang/snap/mailspring/common/.config/user-dirs.locale.md5sum: No such file or directory
ln: failed to create symbolic link '/home/slang/snap/mailspring/216/.config/gtk-2.0/gtkfilechooser.ini': File exists
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "canberra-gtk-module"
#
# Fatal error in ../../v8/src/snapshot/snapshot.h, line 28
# Check failed: IsSane().
#
==== C stack trace ===============================
libnode.so(+0xb13fee) [0x7fcd9ad4dfee]
libnode.so(V8_Fatal+0xdf) [0x7fcd9ad4d3df]
libnode.so(+0x5d5038) [0x7fcd9a80f038]
libnode.so(+0x5d4da4) [0x7fcd9a80eda4]
libnode.so(v8::Isolate::New(v8::Isolate::CreateParams const&)+0x15c) [0x7fcd9acdb04c]
/snap/mailspring/216/usr/share/mailspring/mailspring() [0x236044b]
/snap/mailspring/216/usr/share/mailspring/mailspring() [0x2360355]
/snap/mailspring/216/usr/share/mailspring/mailspring(atom::JavascriptEnvironment::JavascriptEnvironment()+0x31) [0x3711231]
/snap/mailspring/216/usr/share/mailspring/mailspring(atom::AtomBrowserMainParts::PostEarlyInitialization()+0xdf) [0x370c4cf]
/snap/mailspring/216/usr/share/mailspring/mailspring() [0x1f36dce]
/snap/mailspring/216/usr/share/mailspring/mailspring() [0x1f92b2d]
/snap/mailspring/216/usr/share/mailspring/mailspring() [0x1e5410d]
/snap/mailspring/216/usr/share/mailspring/mailspring() [0x1dfe8d2]
/snap/mailspring/216/usr/share/mailspring/mailspring() [0x1a6c435]
/snap/mailspring/216/usr/share/mailspring/mailspring() [0x1dfec02]
/snap/mailspring/216/usr/share/mailspring/mailspring(main+0x88) [0x37043e8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fcd932e3830]
/snap/mailspring/216/usr/share/mailspring/mailspring() [0x513f39]
Illegal instruction (core dumped)
Hopefully this information helps in solving this issue regarding the snap version.
Hello,
Same error :+1: !
` snap run mailspring /snap/mailspring/216/bin/desktop-launch: line 177: /home/nawwa/snap/mailspring/common/.config/user-dirs.dirs: No such file or directory cp: cannot create regular file '/home/nawwa/snap/mailspring/common/.config/': Not a directory /snap/mailspring/216/bin/desktop-launch: line 180: /home/nawwa/snap/mailspring/common/.config/user-dirs.dirs.md5sum: No such file or directory /snap/mailspring/216/bin/desktop-launch: line 180: /home/nawwa/snap/mailspring/common/.config/user-dirs.locale.md5sum: No such file or directory Running database migrations App load time: 162ms
Running Setup
{"error":null}
TypeError: _electron.app.isInApplicationsFolder is not a function
at moveToApplications (/src/browser/move-to-applications.es6:4:11)
at Application.oneTimeMoveToApplications (/src/browser/application.es6:174:5)
at Application.start (/src/browser/application.es6:88:16)
at
`
There is the same issue with the Snap package on Ubuntu Budgie.
I had same issue on my Ubuntu 18.04, but in latest version on snap, I can install and run mail spring. I don't know why it succeeded, so this is just a report, sorry.
Hi, the reference to Fedora in the title of this issue should be remove to draw more attention. This is not exclusive to this distribution I also have the same here on ubuntu 17.10. I tried the snap because he was advertised by ubuntu as enterprise class app.
I have the same issue, this is what i got
fsevenm@fsevenm:~$ snap run mailspring
/snap/mailspring/239/bin/desktop-launch: line 183: /home/fsevenm/snap/mailspring/common/.config/user-dirs.dirs: No such file or directory
cp: cannot create regular file '/home/fsevenm/snap/mailspring/common/.config/': Not a directory
/snap/mailspring/239/bin/desktop-launch: line 186: /home/fsevenm/snap/mailspring/common/.config/user-dirs.dirs.md5sum: No such file or directory
/snap/mailspring/239/bin/desktop-launch: line 186: /home/fsevenm/snap/mailspring/common/.config/user-dirs.locale.md5sum: No such file or directory
Hope someone can give any solutions.
Hi @fsevenm I somehow got the missing files / directories errors resolved by creating a new directory called .config under the ~/snap/mailspring/common directory
However, I am still getting errors with running mailspring on snap, i.e, $ snap mailspring -b Gtk-Message: Failed to load module "canberra-gtk-module" Gtk-Message: Failed to load module "canberra-gtk-module"
Hope someone can give solutions to these errors!
Same problem on Fedora 28 /snap/mailspring/common/.config/user-dirs.locale.md5sum: No such file or directory
Any solution yet?
It appears that this issue has been resolved, so we are closing it. If the problem occurs again, please create a new thread in the appropriate category on our Discourse.
We are in the process of migrating issues to Discourse, which can better facilitate discussion and discovery, and so GitHub Issues can focus on issues that are confirmed and slated for resolution in the near term. Learn more about the changes here.
We hope to see you there soon!
-The Mailspring Team