Code

#20402 closed Uncategorized (fixed)

Remove or at least reevaluate the suggestion of as-limit-128

Reported by: django@… Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/uwsgi/

On Ubuntu 12 LTS, as-limit-128 causes uwsgi to fail with misleading errors like:

libgcc_s.so.1 must be installed for pthread_cancel to work
DAMN ! worker 1 (pid: 29232) died, killed by signal 6 :( trying respawn ...

I wasted hours recompiling uwsgi, looking for path issues with libgcc_s.so.1 and LD, etc.

I removed as-limit=128 and the problem went away. I probably could have increased as-limit as well.

Attachments (1)

django_docs_howto_deployment_wsgi_uwsgi.diff (814 bytes) - added by alextreme 14 months ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 14 months ago by russellm

  • Needs documentation set
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Changed 14 months ago by alextreme

comment:2 Changed 14 months ago by alextreme

  • Has patch set

The option isn't required and the uWSGI documentation doesn't seem to recommend it:

http://uwsgi-docs.readthedocs.org/en/latest/Options.html#limit-as

In my opinion it is best to not have the option in the example, we shouldn't provide an example that won't work for projects >128MB without a clear reason.

Added a patch to remove the 'limit-as' option from the uWSGI example in the documentation.

comment:3 Changed 14 months ago by aaugustin

Since many people will just copy-paste the example it's best to keep it as minimal as possible.

One might argue that as-limit is a security requirement; I'm not sure.

Anyway, removing that line appears to be a reasonable step at this point.

comment:4 Changed 14 months ago by Aymeric Augustin <aymeric.augustin@…>

  • Resolution set to fixed
  • Status changed from new to closed

In be826aafacb9fe266209604116efe128a0b4cdc0:

Fixed #20402: removed as-limit from uWSGI example.

It can fail in hard-to-diagnose ways.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.