Got this terminal error after running meteor command in meteor project directory: Unexpected mongo exit code 45. Restarting.
在meteor项目目录中运行meteor命令后出现此终端错误:意外的mongo退出代码45.重新启动。
Vagrantfile:
require 'json'
require 'yaml'
VAGRANTFILE_API_VERSION = "2"
confDir = $confDir ||= File.expand_path("~/.homestead")
homesteadYamlPath = confDir + "/Homestead.yaml"
afterScriptPath = confDir + "/after.sh"
aliasesPath = confDir + "/aliases"
require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb')
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if File.exists? aliasesPath then
config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases"
end
Homestead.configure(config, YAML::load(File.read(homesteadYamlPath)))
if File.exists? afterScriptPath then
config.vm.provision "shell", path: afterScriptPath
end
end
2 个解决方案
#1
Trying running
export LC_ALL=C
On your vagrant instance this is known to solve the problem ur running in.. but I don't know if that is in your case to.
在你的流浪者实例上,这已知可以解决你在运行的问题..但我不知道你的情况是否属于你。
#2
Without seeing some more detail, this may be a stab in the dark. If you show us the vagrant file you are using to create the instance, that will help.
没有看到更多的细节,这可能是在黑暗中刺伤。如果您向我们展示您用于创建实例的vagrant文件,那将有所帮助。
However, this often happens when things were installed on the vagrant image using root rather than the specific user.
但是,当使用root而不是特定用户在vagrant图像上安装事物时,通常会发生这种情况。
#1
Trying running
export LC_ALL=C
On your vagrant instance this is known to solve the problem ur running in.. but I don't know if that is in your case to.
在你的流浪者实例上,这已知可以解决你在运行的问题..但我不知道你的情况是否属于你。
#2
Without seeing some more detail, this may be a stab in the dark. If you show us the vagrant file you are using to create the instance, that will help.
没有看到更多的细节,这可能是在黑暗中刺伤。如果您向我们展示您用于创建实例的vagrant文件,那将有所帮助。
However, this often happens when things were installed on the vagrant image using root rather than the specific user.
但是,当使用root而不是特定用户在vagrant图像上安装事物时,通常会发生这种情况。