我一直試圖讓我的應用程序在升級到0.9.0後工作,我一直遇到奇怪的問題。試圖在更新到0.9.0後運行Meteor並出現錯誤:錯誤:未能連接到[127.0.0.1:3001]
首先,我克隆我的倉庫到該計算機上這是在0.8.3然後當我跑流星更新我的錯誤:
Can't contact the update server. Are you online?
This project is already at Meteor 0.8.3, the latest release
installed on this computer.
所以我在這裏如下說明:Can't install, update or run Meteor after update
但即使我得到了同樣的錯誤。因此,我只是將.meteor文件夾中的發行版本號更改爲0.9.0,並運行meteor update並更新了該應用程序。
然後我運行了mrt migrate-app,併成功遷移了所有的包。
現在,當我運行 '流星' 我得到這個錯誤:
Ferozes-iMac:Bookmarks Feroze$ meteor
[[[[[ ~/Desktop/Meteor_Bookmark/Bookmarks ]]]]]
=> Started proxy.
=> Starting MongoDB... |
/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:206
throw(ex);
^
Error: failed to connect to [127.0.0.1:3001]
at Object.Future.wait (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:326:15)
at Object.exports.waitForOne (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:53:25)
at yieldingMethod (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:209:25)
at initiateReplSetAndWaitForReady (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:382:7)
at launchMongo (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:494:9)
at _.extend._startOrRestart (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:581:19)
at _.extend.start (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:547:10)
at _.extend.start (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-all.js:130:24)
at Object.exports.run (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-all.js:275:10)
at main.registerCommand.name [as func] (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands.js:219:17)
at /Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/main.js:1212:23
- - - - -
at null.<anonymous> (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/unipackages/mongo-livedata/npm/node_modules/mongodb/lib/mongodb/connection/server.js:536:74)
at emit (events.js:106:17)
at null.<anonymous> (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/unipackages/mongo-livedata/npm/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:150:15)
at emit (events.js:98:17)
at Socket.<anonymous> (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/unipackages/mongo-livedata/npm/node_modules/mongodb/lib/mongodb/connection/connection.js:516:10)
at Socket.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
欣賞的幫助
UPDATE
爲了幫助調試,我創建了一個新的用戶帳戶,安裝流星,克隆我的項目。然後跑了流星更新。這是我得到:
Ferozes-iMac:Bookmarks Nearpoint$ meteor update
Installing Meteor 0.9.0.1:
* 'meteor' build tool (version 8301fde275)
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
This project is at the latest release which is compatible with your
current package constraints.
這是不正常的,它應該問我遷移應用程序?
這裏是我的包文件:
# Meteor packages used by this project, one per line.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
standard-app-packages
npm
iron-router
spin
jade
coffeescript
stylus
bootstrap-3
font-awesome
accounts-password
jquery-ui
select2
jquery-masonry
accounts-ui-bootstrap-3
bootstrap-errors
http
moment
accounts-google
jquery
bootstrap3-datetimepicker
filepicker
meds
kadira
jquery-ui-bootstrap
flash-messages
下面是smart.json
{
"packages": {
"iron-router": {
"version": "0.8.2"
},
"spin": {},
"jade": {},
"font-awesome": {},
"jquery-ui": {},
"bootstrap-3": {},
"select2": {},
"jquery-masonry": {},
"accounts-ui-bootstrap-3": {},
"bootstrap-errors": {},
"moment": {},
"bootstrap3-datetimepicker": {},
"filepicker": {},
"meds": {},
"kadira": {},
"jquery-ui-bootstrap": {},
"flash-messages": {}
}
}
非常感謝。即使在手動更改文件並使用流星更新之後,我仍然遇到了試圖使用流星更新的問題。但我刪除了0.8.2的cmather鐵路路由器,並使用流星加鐵:路由器,現在它工作! – nearpoint 2014-09-06 02:28:05