Page MenuHomePhabricator

Flask app on uwsgi-python variably fails
Closed, ResolvedPublic


The signpostlab tool is currently down and I cannot get it back up again.

The source code is located in ~/www/python/src. ~/uwsgi.ini assigns There are currently two files in src. is the codebase for the tools. is a Flask MWE example taken from the flask quickstart guide (it just prints Hello World! to the window).

If you try switching the places of the two applications ( for and vice versa; I have been doing this via mv) you will see that the MWE ( works, while the complex tool-defining fails. However webservice2 status reports that the webservice is nevertheless running in the latter case; furthermore though I have had this issue previously, after restarting many times the application began working, so the application appears to be failing for reasons that are difficult to reproduce.

The GitHub repo is here.

Event Timeline

ResMar created this task.Jan 15 2016, 3:49 AM
ResMar raised the priority of this task from to Needs Triage.
ResMar updated the task description. (Show Details)
ResMar added a project: Cloud-Services.
ResMar added a subscriber: ResMar.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptJan 15 2016, 3:49 AM
bd808 added a subscriber: bd808.Jan 15 2016, 4:23 AM

I set this tool up as bd808-test2 with these commands:

$ become bd808-test2
$ mkdir -p www/python
$ cd www/python
$ git clone src
$ cd src
$ virtualenv ~/www/python/venv
$ source ~/www/python/venv/bin/activate
$ pip install -r requirements.txt
$ cd
$ webservice2 uwsgi-python start
$ curl
ResMar added a comment.EditedJan 15 2016, 4:32 AM

@valhallasw This is a continuation on the 500-or-404 error that we discussed a week or so ago, do you remember more of the particulars? I don't think either of us filed a bug report for it after everything started working again when I turned debug on and then off again.

ResMar closed this task as Resolved.Jan 15 2016, 2:42 PM
ResMar set Security to None.

After re-doing setup it's up again. Hopefully I just missed a step somewhere and didn't realize it.

ResMar triaged this task as Lowest priority.Jan 15 2016, 2:45 PM
ResMar removed a project: Cloud-Services.
ResMar removed a subscriber: ResMar.Apr 15 2016, 1:44 PM