[stackato] Cannot start project

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
5 years ago
5 years ago

People

(Reporter: basta, Unassigned)

Tracking

Details

(Reporter)

Description

5 years ago
My application appears to stage properly, but subsequently fails to start.

http://cl.ly/image/0M302j1n0Y0i

To try it for yourself:

git clone git://github.com/mozilla/fireplace.git
git fetch origin
git checkout -b marketplace2 origin/marketplace2
cd flue
s push
this may not be the root cause, but i do see the following traceback in the stderr.log for your application:

Traceback (most recent call last):
  File "main.py", line 407, in <module>
    def index(dummy=None):
  File "main.py", line 33, in decorator
    registered_func = ar(*args, **kwargs)(wrap)
  File "/app/python/lib/python2.7/site-packages/flask/app.py", line 1013, in decorator
    self.add_url_rule(rule, endpoint, f, **options)
  File "/app/python/lib/python2.7/site-packages/flask/app.py", line 62, in wrapper_func
    return f(self, *args, **kwargs)
  File "/app/python/lib/python2.7/site-packages/flask/app.py", line 984, in add_url_rule
    'existing endpoint function: %s' % endpoint)
AssertionError: View function mapping is overwriting an existing endpoint function: index
(Reporter)

Comment 2

5 years ago
Interesting. How did you read stderr.log?
i found it through the admin console (helps to be root!)
(Reporter)

Comment 4

5 years ago
I fixed the issue that you found (I was running a different version of Flask locally...doh!), but I'm getting the same error. Can you check what's happening now?
i believe you should be able to retrieve this from the stackato client, but don't have time at the moment to look that up. here is the pip.log from your last deployment, there looks to be a number of warnings within that *might* be the root cause.

  https://people.mozilla.org/~cturra/pip.log


i can confirm i no longer see anything in the stderr.log
curious. i don't know what i am doing differently than you, but my deployment just worked.

 http://cturra-marketplace.paas.allizom.org/


$ s push
Would you like to deploy from the current directory ?  [Yn]:
Pushing application 'cturra-marketplace'...
Framework:       python
Runtime:         <framework-specific default>
Application Deployed URL [cturra-marketplace.paas.allizom.org]:
Application Url: cturra-marketplace.paas.allizom.org
Enter Memory Reservation [256M]:
Creating Application [cturra-marketplace] ...
OK
Create services to bind to 'cturra-marketplace' ?  [yN]:
Uploading Application [cturra-marketplace] ...
  Checking for bad links: 129 OK
  Copying to temp space: 128 OK
  Checking for available resources:  OK
  Processing resources: OK
  Packing application: OK
  Uploading (2K): 100% OK
Push Status: OK
stackato.stager: Staging application 'cturra-marketplace'
staging:
staging: -----> Installing dependencies using pip
staging:        Downloading/unpacking flask (from -r /staging/staged/app/requirements.txt (line 1))
staging:          Running setup.py egg_info for package flask
staging:
staging:            warning: no files found matching '*' under directory 'tests'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'docs'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'docs'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'tests'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'tests'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'examples'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'examples'
staging:            no previously-included directories found matching 'docs/_build'
staging:            no previously-included directories found matching 'docs/_themes/.git'
staging:        Downloading/unpacking Werkzeug>=0.7 (from flask->-r /staging/staged/app/requirements.txt (line 1))
staging:          Running setup.py egg_info for package Werkzeug
staging:
staging:            warning: no files found matching '*' under directory 'werkzeug/debug/templates'
staging:            warning: no files found matching '*' under directory 'tests'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'docs'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'docs'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'tests'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'tests'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'examples'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'examples'
staging:            no previously-included directories found matching 'docs/_build'
staging:        Downloading/unpacking Jinja2>=2.4 (from flask->-r /staging/staged/app/requirements.txt (line 1))
staging:          Running setup.py egg_info for package Jinja2
staging:
staging:            warning: no files found matching '*' under directory 'custom_fixers'
staging:            warning: no previously-included files matching '*' found under directory 'docs/_build'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'docs'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'docs'
staging:        Downloading/unpacking itsdangerous>=0.21 (from flask->-r /staging/staged/app/requirements.txt (line 1))
staging:          Running setup.py egg_info for package itsdangerous
staging:        Downloading/unpacking markupsafe (from Jinja2>=2.4->flask->-r /staging/staged/app/requirements.txt (line 1))
staging:          Downloading MarkupSafe-0.18.tar.gz
staging:          Running setup.py egg_info for package markupsafe
staging:
staging:        Installing collected packages: flask, Werkzeug, Jinja2, itsdangerous, markupsafe
staging:          Running setup.py install for flask
staging:            warning: no files found matching '*' under directory 'tests'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'docs'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'docs'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'tests'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'tests'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'examples'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'examples'
staging:            no previously-included directories found matching 'docs/_build'
staging:            no previously-included directories found matching 'docs/_themes/.git'
staging:          Running setup.py install for Werkzeug
staging:            warning: no files found matching '*' under directory 'werkzeug/debug/templates'
staging:            warning: no files found matching '*' under directory 'tests'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'docs'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'docs'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'tests'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'tests'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'examples'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'examples'
staging:            no previously-included directories found matching 'docs/_build'
staging:          Running setup.py install for Jinja2
staging:
staging:            warning: no files found matching '*' under directory 'custom_fixers'
staging:            warning: no previously-included files matching '*' found under directory 'docs/_build'
staging:            warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
staging:            warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
staging:          Running setup.py install for itsdangerous
staging:          Running setup.py install for markupsafe
staging:
staging:            building 'markupsafe._speedups' extension
staging:            gcc -pthread -fno-strict-aliasing -fPIC -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/ActivePython-2.7/include/python2.7 -c markupsafe/_speedups.c -o build/temp.linux-x86_64-2.7/markupsafe/_speedups.o
staging:            gcc -pthread -shared build/temp.linux-x86_64-2.7/markupsafe/_speedups.o -o build/lib.linux-x86_64-2.7/markupsafe/_speedups.so
staging:        Successfully installed flask Werkzeug Jinja2 itsdangerous markupsafe
staging:        Cleaning up...
staging: end of staging
stackato.stager: Staging of application 'cturra-marketplace' has completed
http://cturra-marketplace.paas.allizom.org/ deployed to Stackato
(Reporter)

Comment 7

5 years ago
Very weird, just worked for me as well. Thanks for the help, though. If you run across those docs for getting the logs when the instance isn't online, let me know!
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.