我将Meteor应用程序部署到DigitalOcean非常困难

时间:2016-02-07 18:56:21

标签: meteor deployment

我已经阅读了很多教程,在线发布报告,但似乎无法连接并正确部署到我的DO Droplet。我正在尝试使用MUP部署我的Meteor应用程序。

这是我当前的错误:

enter image description here

在大多数情况下,这与旧版本的Node有关。我将mup.setting文件中的Node版本更改为0.10.40并仍然有错误。如果我从目标计算机上完全删除NodeJS,删除Node和NPM的所有文件和残余,然后再次尝试mup,我收到以下错误:

enter image description here

我已经尝试了一切来让我的Meteor应用程序部署,但没有任何作用。我已经参加了第二天的比赛,但没有运气。

这是我到目前为止所做的:

  • 尝试使用常规的mup(在我的内部的新文件夹中使用init) meteor app,mup setup然后mup deploy)。使用mup获取大量错误 总的来说。
  • 尝试使用mupx部署我的应用程序,得到相同的错误。
  • 从目标服务器反复完全擦除NodeJS,npm尝试部署,但没有运气。
  • 删除了整个DO droplet并再次尝试了mup。删除并创建了另一个新的DO Droplet以再次尝试mupx。没时间也没有运气。
  • deployCheckWaitTime更改为120,200,300等,但没有成功。
  • 尝试通过Upstart手动部署我的meteor,但我的myapp.tar.gz文件从未创建过,我无法进一步发展。
  • DO液滴尺寸增大

我真的不知道该做什么。我觉得我尝试了一切,这让我疯了。

编辑:

修复MongoDB问题后,这是新错误...我猜有些文件夹不存在应该存在?

/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1069
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1070
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1071
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1072
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1073
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1074
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1075
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1076
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1077
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1078
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1079
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1080
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1081
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1082
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1083
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1084
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1085
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1086
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1087
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1088
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1089
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1090
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1091
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1092
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1093
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1094
error: Forever detected script exited with code: 127
/usr/bin/env: node: No such file or directory
error: Script restart attempt #1095
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1096
error: Forever detected script exited with code: 127
/usr/bin/env: node: No such file or directory
error: Script restart attempt #1097
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1098
error: Forever detected script exited with code: 127
/usr/bin/env: node: No such file or directory
error: Script restart attempt #1099
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1100
error: Forever detected script exited with code: 127
/usr/bin/env: node: No such file or directory
error: Script restart attempt #1101
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1102
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1103
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1104
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1105
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1106
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1107
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1108
error: Forever detected script exited with code: 127
/usr/bin/env: node: No such file or directory
error: Script restart attempt #1109
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1110
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1111
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1112
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1113
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1114
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1115
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1116
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1117
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1118
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1119
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1120
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1121
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1122
error: Forever detected script exited with code: 127
/usr/bin/env: node: No such file or directory
error: Script restart attempt #1123
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1124
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1125
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1126
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1127
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1128
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1129
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1130
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1131
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1132
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1133
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1134
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1135
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1136
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1137
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1138
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1139
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1140
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1141
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1142
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1143
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1144
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1145
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1146
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1147
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1148
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1149
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1150
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1151
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1152
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1153
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1154
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1155
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1156
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1157
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1158
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1159
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1160
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1161
/usr/bin/env: node: No such file or directory
error: Forever detected script exited with code: 127
error: Script restart attempt #1162

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1011:11)
    at Process.ChildProcess._handle.onexit (child_process.js:802:34)
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found
/proc/self/fd/9: 15: /proc/self/fd/9: forever: not found

2 个答案:

答案 0 :(得分:1)

总结我们在评论中的讨论,这导致了部分解决方案:

  • 最重要的是,mup应该在Meteor项目目录的目录中进行初始化和设置。
  • 运行mup logs -n 300或类似的mup logging命令,以便在部署失败时获取更多信息。这是在mup repo中确定的SOP中,并导致大部分固定票证。
  • 在更新mup设置文件中的节点版本后运行mup setup
  • 节点/ npm不需要手动设置或擦除新的DO液滴,如果您尝试(不确定)可能会导致问题。 Mup为你做这件事。
  • 检查以确保您可以使用设置MONGO_URL中提供的凭据远程访问托管数据库连接。如果您无法使用提供的数据库,端口,用户名和密码组合从终端访问它,mup也无法设置它。

答案 1 :(得分:0)

您能否发布您的(已编辑的)nip.json文件并告诉我们您在DigitalOcean上安装了哪些操作系统。我对Ubuntu,已声明的Node和远程Mongolabs没有任何问题。但是记得在更改诸如do / do install node / mongo

之类的东西之后运行mup setup