Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up - it stops on the last step #5

Closed
ragnvald opened this issue Oct 17, 2014 · 2 comments
Closed

Setting up - it stops on the last step #5

ragnvald opened this issue Oct 17, 2014 · 2 comments

Comments

@ragnvald
Copy link
Contributor

Still trying to start the service. Tried as plain user (default ubuntu user) and also under sudo bash. This is what happens:

(GeoHealthCheck)root@ip-172-31-20-6:/GeoHealthCheck/GeoHealthCheck# paver create
---> pavement.create
python GeoHealthCheck/models.py create
Creating database objects
Creating superuser account
Enter your username: ragnvald
Enter your password: verysecretpass
Enter your password again: verysecretpass
Enter your email: myemail@no
Enter your email again: myemail@no
(GeoHealthCheck)root@ip-172-31-20-6:
/GeoHealthCheck/GeoHealthCheck# python GeoHealthCheck/models.py drop
Dropping database objects
(GeoHealthCheck)root@ip-172-31-20-6:~/GeoHealthCheck/GeoHealthCheck# python GeoHealthCheck/app.py

Stops the process with control-c, since it looks much like it is hanging. Trying again with the public IP for the virtual computer:

^C(GeoHealthCheck)root@ip-172-31-20-6:~/GeoHealthCheck/GeoHealthCheck# python GeoHealthCheck/app.py 54.76.210.109:8000

  • Running on http://54.76.210.109:8000/
    Traceback (most recent call last):
    File "GeoHealthCheck/app.py", line 308, in
    APP.run(host=HOST, port=int(PORT), use_reloader=True, debug=True)
    File "/home/ubuntu/GeoHealthCheck/local/lib/python2.7/site-packages/flask/app.py", line 772, in run
    run_simple(host, port, self, *_options)
    File "/home/ubuntu/GeoHealthCheck/local/lib/python2.7/site-packages/werkzeug/serving.py", line 706, in run_simple
    test_socket.bind((hostname, port))
    File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(_args)
    socket.error: [Errno 99] Cannot assign requested address
    (GeoHealthCheck)root@ip-172-31-20-6:~/GeoHealthCheck/GeoHealthCheck#

So still struggling here. Not sure what I mess up. But I do think that the install info for the user could be more elaborate.

@tomkralidis
Copy link
Member

(aside: python GeoHealthCheck/models.py drop will empty out the database and is only shown in the readme as an example, not as a step to get things running)

In this case:

(GeoHealthCheck)root@ip-172-31-20-6:~/GeoHealthCheck/GeoHealthCheck# python GeoHealthCheck/app.py

    Running on http://0.0.0.0:8000/
    Restarting with reloader

The service is running as per http://flask.pocoo.org/docs/0.10/quickstart/#public-server. Hitting CTRL-C will stop the server.

The second error means that there is already another process running against 54.76.210.109:8000.

Keep in mind this starts up the server to help test/debug. Better deployment options are discussed at http://flask.pocoo.org/docs/0.10/deploying/#deployment.

Having said this, maybe we should cut out a task to document things?

@ragnvald
Copy link
Contributor Author

I agree documentation is an issue to address. Been travelling the last week, but back again now. A task should be made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants