英文:
Problems importing with Mongodb: fatal error: MSpanList_Insert
问题
我在尝试使用Mongodb 3.3.9导入时遇到了致命错误。我的脚本之前是可以工作的,但是当我升级我的Mac OS到Sierra后,我遇到了一个看起来像是Go语言的问题。
收到的错误信息:
致命错误:MSpanList_Insert
运行时堆栈:runtime.MSpanList_Insert(0x491d30, 0x54daf0)
/usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Alloc(0x491cc0, 0x2, 0x10000000026, 0xdbc9)
/usr/local/go/src/runtime/mheap.c:240 +0x66
runtime.MCentral_CacheSpan(0x49b0b8, 0x34872)
/usr/local/go/src/runtime/mcentral.c:85 +0x167
runtime.MCache_Refill(0x527c20, 0xc200000026, 0x5550b8)
/usr/local/go/src/runtime/mcache.c:90 +0xa0
其他人也注意到了一个类似的问题,据说在早期版本中已经解决了(https://stackoverflow.com/questions/39719882/mongorestore-random-crash-fatal-error/39733084),但我的问题仍然存在。
英文:
I'm running into a fatal error when I'm trying to import using Mongodb 3.3.9. My script has worked before, but when I upgraded my Mac os to Sierra, I'm running into what looks like a Go language problem.
Error received :
fatal error: MSpanList_Insert
> runtime stack: runtime.MSpanList_Insert(0x491d30, 0x54daf0)
> /usr/local/go/src/runtime/mheap.c:692 +0x8f
> runtime.MHeap_Alloc(0x491cc0, 0x2, 0x10000000026, 0xdbc9)
> /usr/local/go/src/runtime/mheap.c:240 +0x66
> runtime.MCentral_CacheSpan(0x49b0b8, 0x34872)
> /usr/local/go/src/runtime/mcentral.c:85 +0x167
> runtime.MCache_Refill(0x527c20, 0xc200000026, 0x5550b8)
> /usr/local/go/src/runtime/mcache.c:90 +0xa0
Others have noted a similar problem that was supposed to be resolved in an earlier version (https://stackoverflow.com/questions/39719882/mongorestore-random-crash-fatal-error/39733084), but my problem persists.
答案1
得分: 1
根据评论的建议,重新安装MongoDB可以解决问题。如果你使用brew
安装了MongoDB,执行以下命令:brew uninstall mongo
。
如果你只是按照他们的教程进行了安装,请删除可执行文件。如果你不知道如何删除,请按照以下步骤进行操作:
which mongo
#现在你会得到一个路径
rm -rf 你的Mongo路径
英文:
As the comments suggested, it's solved reinstalling mongo. If you install it using brew
execute: brew uninstall mongo
.
If you just followed the steps in their tutorial, just delete the executable. If you don't know how, follow this:
which mongo
#now you have a path
rm -rf yourMongoPath
答案2
得分: 0
sudo launchctl unload /System/Library/LaunchDaemons/org.ntp.ntpd.plist
对我来说有效。
英文:
sudo launchctl unload /System/Library/LaunchDaemons/org.ntp.ntpd.plist
worked for me
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论