Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault (core dumped) Mongodb 3.2.3 #611

Closed
lporras opened this issue Apr 26, 2016 · 13 comments
Closed

Segmentation Fault (core dumped) Mongodb 3.2.3 #611

lporras opened this issue Apr 26, 2016 · 13 comments

Comments

@lporras
Copy link

lporras commented Apr 26, 2016

Hey guys,

I installed mongodb 3.2.3 on a machine that previously had mongodb 3.0.7, and when I try to connect to the mongo server I get this:

# mongo --port 27018
MongoDB shell version: 3.2.3
Segmentation Fault (core dumped)

I am sure I do not have another mongodb process running, I removed mongodb 3.0.7 before installing the new version.

PD: The reason I'm trying to upgrade to mongodb 3.2.3 is because MMS is indicating this: All MongoDB deployments using the WiredTiger storage engine should update to MongoDB 3.0.8 immediately. Please see SERVER-21275 for details.

I have this kind of machine: g3-standard-8-smartos

@jclulow
Copy link
Contributor

jclulow commented Apr 27, 2016

How are you installing the updated MongoDB software?

@lporras
Copy link
Author

lporras commented Apr 27, 2016

hey @jclulow thanks for your reply, I'm using pkgin: pkgin install mongodb-3.2.3

@rmustacc
Copy link
Contributor

@mamash didn't you have an upstream bug against Mongo for something similar?

@mamash
Copy link
Contributor

mamash commented Apr 28, 2016

Yup, https://jira.mongodb.org/browse/SERVER-22927

@mamash
Copy link
Contributor

mamash commented Apr 28, 2016

Not even the official 3.2 binaries work on a standard SunOS kernel, they only work on the i86xpv (Xen) kernel. This is being worked on by upstream.

@lporras
Copy link
Author

lporras commented Apr 28, 2016

@mamash Thanks for the information. In the link you shared, the person said that version 3.1.6 works on solaris, it would be nice to give it a try and if possible add it for 2015Q4 package.

@mamash
Copy link
Contributor

mamash commented Apr 28, 2016

I'm already working on bringing the latest 3.0.11 back into 2015Q4 as an interim workaround.

@lporras
Copy link
Author

lporras commented Apr 28, 2016

nice @mamash and thank you again 👍

@mamash
Copy link
Contributor

mamash commented Apr 29, 2016

3.0.11 is in 2015Q4 as of last night. I'll update the 3.2 package as soon as upstream releases a version with a fix for the mozjs segfault.

@mamash mamash closed this as completed Apr 29, 2016
@Fr0stoff
Copy link

Fr0stoff commented May 8, 2016

I success run 3.2.3 on SmartOS, just mongo client core dumped on connect to server,
when I connect from remote client on some Linux everything work as expected.
I think the problem in libstdc++.so.6 which should be provided from here http://downloads.mongodb.org.s3.amazonaws.com/sunos5/mongo-extra-64.tgz
but last time is unavailable.

@bastianwegge
Copy link

Hint: You can use port-forwarding to access a remote mongodb with your local client as a workaround.

ssh -fN -l root -i ~/.ssh/id_rsa -L 9999:localhost:27017 host.com
  • 9999 is your local port
  • 27017 is the remote port
  • host.com should be your host

@teotikalki
Copy link

Is there any progress on this? I find myself unhappily here after initializing a mongodb zone during my setup of a nodebb instance. Upgrading my mongodb to 3.2.3 rendered my unable to connect locally: [root@mongodb ~]# mongo
MongoDB shell version: 3.2.3
Segmentation Fault (core dumped)
@Fr0stoff was correct in that I was able to connect remotely (mine was from a second smartos native zone; I used the latest nodejs native dataset as the base for nodebb) and nodebb worked... HOWEVER, this is only true because I did the user/database creation before I did the upgrade. Now I have a server which I can't interact with since it seems that I need to locally add the root user according to something like: http://stackoverflow.com/questions/23943651/mongodb-admin-user-not-authorized and I didn't do this before I upgraded to 3.2.3.
I'm currently thinking of making a new mongodb zone, adding the root user, connecting remotely, and THEN upgrading, but re-doing everything like that is... bad. I actually feel that having a package in the repository that breaks a server is just... BAD. If mongo 3.2.3 doesn't work (properly) on SmartOS then it shouldn't be what 'pkgin upgrade' does!

@mamash
Copy link
Contributor

mamash commented Jan 2, 2017

Sadly nothing has changed on this issue since my last comment on the Joyent pkgsrc issue page. Upstream only fixed this on the 3.4 branch, which we can't backport because of the strict GCC 5 requirement. As far as I can see, the entire 3.2 branch is broked in this regard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants