home.social

#uwsgi — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #uwsgi, aggregated by home.social.

  1. Just ran out of brainpower for the day trying to fix WTF a dev w/root on a production box did to deploy a #uwsgi application. Dev in question: no longer available. Apparently he didn't know there was a EL package available or how the “Emperor" rig works, so the app needs to be started by hand on every reboot. This was not a documented fact.

    I failed to hack up a fix. The Emperor kept cursing the application instance. I like the absurd terminology, hate the documentation...

    #Sysadminnery

  2. Having this weird issue where if I run my Django app in a systemd managed service, it can’t make any outbound networking calls (no DNS resolution, no opening of sockets), but when I run it manually, no problems. I’m not sure where to start looking. #uwsgi #systemd #django #network

  3. New blogpost: blog.tyk.nu/blog/the-story-of-

    It is a lovely story about debugging TLS connection issues from Django to PostgreSQL.

    The root cause turned out to be libpq erroring out when running with the environment variable $HOME set to an existing but unreadable path, in this case "/root"

    Enjoy!

    #django #postgresql #supervisor #uwsgi

  4. Since I have a single script using the #Python #cgi module (the rest is C++ using SimpleCGI), I figured that switching to a full framework was overkill. So instead I am rewriting using urllib.parse.parse_qs for the query string and email.parser for the multipart body.

    Thanks for all the helpful comments! I found #uwsgi to be very useful for other parts of the code.

  5. @jaseg That was indeed quite minimal. I struggled with the #uwsgi manual and was unable to find a definition for the application interface, but got some help from

    dev.to/cwprogram/python-deploy

    I have successfully converted the simple scripts, but I have one more complex one that need to handle POST data (both multipart/form-data, possibly some query parameters in the URI, and a direct binary POST with a file upload). The #cgi package did help me there, but I am struggling to find any documentation on how uwsgi handles that.

    #Python

  6. Today is the day where we officially switched to using #uWSGI instead of #Gunicorn.

    After a bunch of read&try&fail&loop, it seems we have a decent uWGSI configuration that is properly managed by our custom #OpenBSD rc.d file. There shouldn’t be any service outage as uwsgi has been running via tmux for 2 weeks now :)

    It seems uWSGI uses less memory that Gunicorn. And it provides information regarding Bot detection.

  7. Sending the worker SIGCHLD doesn't help. I'm not sure how libruby sets up the signal handlers.

    I'm now trying dropping `processes=4` from the config and only using rbthreads. If that doesn't solve the issue, then I'll try dropping `master=true`.

  8. Progress made on figuring out the lockups. Sometimes when doing `sub process expansion`, rb_f_backquote gets stuck in waitpid_wait, even though the process has exited and is now a zombie. So then that worker process stops being able to do work. Eventually all 's workers have this happen, and all requests become 504s. Eventually the buffer of connections fills up, and these turn into 502s. Not sure if this is the same as github.com/unbit/uwsgi/issues/ . This is with 2.7.8

  9. Almost 10 years of use later, still a fan of . Still not a fan of the uWSGI docs.

  10. In our latest blog post, our chefs from 🇮🇹 and 🇫🇷 have collaborated to bring you a culinary masterpiece! Learn Lorenzo Stella and Maxence Schmitt's recipe for a tasty arbitrary file write to RCE via abusing #uWSGI files. Bon appétit!

    #doyensec #appsec #appsecurity #penetrationtesting

    blog.doyensec.com/2023/02/28/n

  11. Today we'll be working on the #GNUhealth community federation server 🛠️
    Update to 42RC2, #nginx, #uwsgi and #TLS encryption . Stay tuned! #OpenScience #bioinformatics 🤗

  12. We could also use devs, long-term remote . Python is 3.6/3.9 using and .

    Would be awesome if you have a background, along with and .

  13. Upgraded #Searx to use #uWSGI. MUCH snappier now. Writeup forthcoming.

  14. It is wonderful how #uwsgi, when it can't start the job, simply says "... fail!"

  15. Holy cow, what a pain to make cgit work with #nginx on #ubuntu

    #spawn-cgi doesn't work properly, #uwsgi is missing the cgi plugin...

    Ugh!


  16. I published on my blog the most important Free Software and Open Source code that I shared with the community.
    paulox.net/code/

  17. Hi all, I’m Paolo Melchiorre, a 🐍 developer who contributes to the 🦄 project and gives talks at tech 🗣️ .

    I’ve been a 🐧 user since 2000 and I use and promote 👨‍💻 .

    I have a degree in Computer Science and currently I'm a 🏡 worker based in Italy.

    I wrote on my personal blog about , , , and technical (, , , , , , , )

    paulox.net/

  18. Anyone know how to use cProfile on applications running inside #uwsgi?

    I forgot how and can't find anything on the web… /o\

    #python