[Bug 1381967] Re: mongodb shell crash on arm64
Mongodb ARM64 support explanation from Michael Hudson-Doyle. 1) MongoDB uses JS for two things: i) The 'mongo' shell that people use for interactive use and admin tasks etc. This is perhaps not used so much in production, but it's something that most people use when first learning about mongo, e.g. it's the very first command in the getting started doc: http://docs.mongodb.org/manual/tutorial/getting-started/ ii) A few server side scripting functions -- writing queries in js and the map/reduce stuff. These are considered a bit esoteric and most people probably don't actually use them but of course some do. 2) MongoDB 2.4 (the version in trusty) ships with two javascript engines: spidermonkey and v8. There is some license incompatibility with spidermonkey such that mongo said we'd be breaking the law if we distributed binaries built with it. The version of v8 that is used by mongodb 2.4 does not work on arm64. 3) MongoDB 2.6 removed the spidermonkey js engine. 4) Soon after 2.6 was released, mongodb did the work to add another js engine: one for a version of v8 that does work on arm64. 5) Unfortunately, this version of v8 handles OOM by calling abort() -- which is not a problem for the shell really but a very bad thing for the server side scripting functions, as a single query using too much RAM shouldn't cause the database daemon to abort. 6) MongoDB 2.6 is the version in utopic. For some reason, it is built for arm64 but with scripting disabled, which means that the shell just segfaults on startup. This is clearly not ideal. 7) I built packages in a PPA: https://launchpad.net/~mongodb-arm64/+archive/ubuntu/ppa that backport the support for the newer v8 js engine (and because this newer v8 version isn't packaged yet, it has the new version of v8 in a 20 megabyte distro patch). Many thanks Michael for such a clear explanation. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1381967 Title: mongodb shell crash on arm64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1381967/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1381967] Re: mongodb shell crash on arm64
Many thanks to Michael, Raghu and Robie for helping to clarify. Marking this bug as invalid... ** Changed in: mongodb (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1381967 Title: mongodb shell crash on arm64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1381967/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1381967] Re: mongodb shell crash on arm64
The shell cannot work without js. It's a bug that binary is included in the package. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1381967 Title: mongodb shell crash on arm64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1381967/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1381967] Re: mongodb shell crash on arm64
Michael, many thanks for your comment. Could you confirm that we should be using juju-mongodb (https://launchpad.net/ubuntu/+source/juju-mongodb) on ARM64 for the time being? ISTR that juju-mongodb has omitted the libv8 engine, and associated functionality. Thanks again, Andy. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1381967 Title: mongodb shell crash on arm64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1381967/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1381967] Re: mongodb shell crash on arm64
You shouldn't be using juju-mongodb for anything but Juju. AIUI, the security team don't support it for security updates for any other purpose. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1381967 Title: mongodb shell crash on arm64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1381967/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1381967] Re: mongodb shell crash on arm64
Although that was the plan, it occurs to me that juju-mongodb never entered main. So perhaps I am mistaken. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1381967 Title: mongodb shell crash on arm64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1381967/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1381967] Re: mongodb shell crash on arm64
Thanks Robie, so for ARM64 platforms we should be using MongoDb, but just avoiding the shell and any scripting functions (in order to avoid invoking libv8). Is that correct? Thanks again, Andy. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1381967 Title: mongodb shell crash on arm64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1381967/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1381967] Re: mongodb shell crash on arm64
I believe the only *ARM64* MongoDB version that is reasonably expected to work (i.e. without server side scripting and at demo grade quality) is out of a PPA : https://launchpad.net/~mongodb- arm64/+archive/ubuntu/ppa . The mongoDB charm was recently enhanced (By Charles Butler) to add an option to speficy this PPA when installing MongoDB. So I thinkany ARM64 testing should be focused on this PPA. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1381967 Title: mongodb shell crash on arm64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1381967/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1381967] Re: mongodb shell crash on arm64
Yes, please use that PPA for any mongodb on arm64 work. It's a couple of point release behind I see -- someone (i.e. me I guess?) should update it to 2.6.5. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mongodb in Ubuntu. https://bugs.launchpad.net/bugs/1381967 Title: mongodb shell crash on arm64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1381967/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs