Meteor application - Stuck at “Starting your app” when trying to run

断了今生、忘了曾经 提交于 2019-12-29 06:25:32

问题


I have a Meteor 1.3.1 project and I try to run in IntelliJ Webstorm on Windows 10.

The problem is that when I run my application everything works fine up until all the packages are loaded, then the program gets stuck at "Starting your app". So I get the "Started proxy" message and all the packages load properly.

I can also mention that I have a Macbook on which the project runs just fine. So it feels like the problem is related to some configuration on my Windows machine...

The image below shows where the terminal gets stuck after running meteor --verbose.

There is no error message or anything, the terminal just keeps saying "Starting your app".

I have tried the following with no result:

  • running meteor reset command
  • reinstalling meteor.
  • turning my firewall off in case it would cause some problem...
  • creating a new project and running it (the same problem occurs for all projects).
  • Create and run a new project from Windows command line. (the same thing happens, gets stuck at "starting your app").

I greatly appreciate any suggestions to how to solve this problem! I've been bashing my head to the keyboard for quite a while and haven't managed to find a solution online either...


回答1:


I faced with such problem today on windows 8 This helped me : Meteor App not able to connect to MongoDB?

set MONGO_URL=mongodb://127.0.0.1:27017/sample




回答2:


I had to remove .meteor\local\db\METEOR-PORT before running meteor




回答3:


Take a look .meteor/local/db dir -- check if there is a mongod.lock file.

If there is, check its contents -- it should be empty.

If its not empty, it means MongoDB wasn't gracefully shutdown or something.

Try deleting this file (or deleting its contents) and running Meteor again.

rm -f .meteor/local/db/mongod.lock meteor




回答4:


Run your CMD as administrator. It might work. I had the same problem. it was because meteor mongo db was not able to connect. or if this doesn't work. run

meteor mongo localhost:[mongo_db_port]

you will know which port your app is using for mongo db in file

your_app_name.meteor\local\db\METEOR-PORT




回答5:


I encountered the same problem. What happens is that meteor couldn't start the mini mongo after it has already been initiated once. (First run always worked fine)

The solution was simply to remove meteor and install it using Chocolatey (as described on the meteor website)



来源:https://stackoverflow.com/questions/36649478/meteor-application-stuck-at-starting-your-app-when-trying-to-run

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!