Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101378
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Robin Becker <robin@reportlab.com> |
| Newsgroups | comp.lang.python |
| Subject | debugging uwsgi |
| Date | Fri, 8 Jan 2016 15:03:23 +0000 |
| Lines | 34 |
| Message-ID | <mailman.71.1452265407.2305.python-list@python.org> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de dZIWtZ4anVako2i2hF3XPAeAPCuqb289RntOXqYD18rQ== |
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'debug': 0.04; 'django.': 0.05; 'importerror:': 0.05; '40,': 0.09; 'expected.': 0.09; 'issue?': 0.09; 'name)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'bug': 0.10; 'python': 0.10; 'django': 0.13; "(i'm": 0.16; '105,': 0.16; '33,': 0.16; '37,': 0.16; 'manage.py': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'runserver': 0.16; 'somehow.': 0.16; 'sys.path': 0.16; 'basically': 0.18; 'debugging': 0.18; 'hack': 0.18; 'shell': 0.18; 'skip:" 40': 0.20; '(or': 0.23; 'import': 0.24; '(most': 0.24; 'previously': 0.24; 'sort': 0.25; 'module': 0.25; 'header:User- Agent:1': 0.26; 'command': 0.26; 'header:X-Complaints-To:1': 0.26; 'skip:" 20': 0.26; 'error': 0.27; 'executing': 0.27; 'skip:i 40': 0.27; "skip:' 10": 0.28; 'fine': 0.28; 'looks': 0.29; 'remotely': 0.29; "i'm": 0.30; 'error.': 0.31; 'skip:_ 10': 0.32; 'traceback': 0.33; 'file': 0.34; 'path': 0.35; 'should': 0.36; 'project': 0.36; 'possible': 0.36; 'to:addr:python-list': 0.36; 'received:org': 0.37; 'seem': 0.37; 'wrong': 0.38; 'sure': 0.39; 'along': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'forward': 0.66; 'unusual': 0.72; 'received:109': 0.75; 'becker': 0.84; 'printouts': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| X-Gmane-NNTP-Posting-Host | 109.174.168.73 |
| X-Mozilla-News-Host | news://news.gmane.org:119 |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:101378 |
Show key headers only | View raw
I have an unusual bug in a large django project which has appeared when using
nginx + uwsgi + django. The configuration nginx + flup + django or the django
runserver don't seem to create the conditions for the error.
Basically I am seeing an error
> Traceback (most recent call last):
> File "./project/fundfacts/api.py", line 33, in refresh_data
> call_command('fe_data_load', month=period_id, datadir=upload_dir)
> File "/home/rptlab/website/quilter.reportlab.com/quilter_2/lib/python2.7/site-packages/django/core/management/__init__.py", line 105, in call_command
> command = load_command_class(app_name, name)
> File "/home/rptlab/website/quilter.reportlab.com/quilter_2/lib/python2.7/site-packages/django/core/management/__init__.py", line 40, in load_command_class
> module = import_module('%s.management.commands.%s' % (app_name, name))
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> __import__(name)
> ImportError: No module named fe_data_load
some hack printouts along the error path seem to indicate that the import should
be possible as executing
module = import_module('%s.management.commands.%s' % (app_name, 'fe_data_load'))
in the manage.py shell work fine and sys.path looks as expected.
The uwsgi worker process (I'm forking) is corrupted after (or perhaps because
of ) this error and causes previously working pages to fail; it looks like the
python interpreter's gone wrong somehow.
Any good ways forward with debugging this sort of issue? I'm not sure how I
would remotely debug this using winpdb.
--
Robin Becker
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
debugging uwsgi Robin Becker <robin@reportlab.com> - 2016-01-08 15:03 +0000
csiph-web