◄ ► | Edit | Home | Admin | en de fr et | Sign in

#4617 (Daphne/ASGI getlino config.)

by Sharif Mehedi · in Developers · assigned to Sharif Mehedi

Summary

Children

Comments

  • 3 years, 10 months ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : I released getlino to pypi and would like to try it for reinstalling the froinde production site (where we currently still have the old-style linod without asgi). But I'll wait for Sharif to follow me.
  • 3 years, 10 months ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : I removed the exception "linod is supported only on nginx web server!" because I believe that on apache linod should work (but using the old way, without Daphne/asgi).
  • 3 years, 10 months ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : I wondered whether the nginx parameter files are really not needed in case of asgi_server. To test it, I did "mv nginx nginx_unused" on the jane production site and will restart it now.
  • 4 years, 1 month ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : We also made an upgrade to the welcht preview server.
  • 4 years, 1 month ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : Seems that Jane now works fine. Sharif still needs to adapt the templates for supervisor config in getlino.
  • 4 years, 1 month ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : Jane is back. Do you get my comment by email?
  • 4 years, 1 month ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : Sharif and I will now do a release to Jane.
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : it seems atelier is broken at the moment. inv does not work. tried to make a release of lino but failed because of it.
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : linod now runs asynchronous schedule and log server
  • 4 years, 1 month ago by hannes about #4617 (Daphne/ASGI getlino config.) : I also didn't get this email.
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : nope! did not receive any email. False hope.
  • 4 years, 1 month ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : I just ran "initiate_linod" on Jane manually. Let's see whether this comment is being sent via email.
  • 4 years, 1 month ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : I started reading [url channels.readthedocs.io/en/stable/introduction.html].
  • 4 years, 1 month ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : Well done, Sharif, your docs about linod. Your changes caused a Sphinx error and I started to review them. It's still not perfect, but at least "inv bd" now passes.
  • 4 years, 1 month ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : We tested it yesterday (see comments on #1320). TODO: emails are not yet being sent on Jane. getlino should generate a single supervisor.conf file.
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : getlino startsite is now testable on a production server. Beware, lino has a little change that should be pulled in the server, otherwise getlino startsite will break the server.
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : There's a patch [url bugs.python.org/issue1410680 here], which we can use to write ini config to an existing file. This patch preserves the ordering of the options and the comments.
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : I have been looking at the 'configparser' module. They don't parse (read/write) comments. Feels as if the module is incomplete.
  • 4 years, 1 month ago by Luc Saffre about #4617 (Daphne/ASGI getlino config.) : Sharif and I discussed about even more changes. Daphne and nginx seem to not collaborate well when using UNIX sockets. So every new site needs an individual upstream_port. How to assign this port automatically with a reasonable result? There will be a lino.ini file in each site, with that upstream_p...
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : I have the supervisor components running properly. But there is an error that is coming from nginx. I wonder, could it be something in the nginx conf? The error looks like this: 2022/09/07 13:20:26 [error] 2733863#2733863: *1 recv() failed (104: Connection reset by peer) while reading response header...
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : startsite puts the DJANGO_SETTINGS_MODULE as lino_local.prjname.settings. but there's no lino_local module is installed on the python venv. I am not sure how getlino finds the sites base on a production server.
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : The following command runs getlino with root privileges preserving all the environment variable. """sudo -E env PATH=$PATH getlino startsite noi jane"""
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : we can run getlino with sudo like the following: `sudo /home/blurry/lino/env/bin/getlino startsite app prjname`
    #by giving explicit getlino path to sudo.
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : sudo does not know about getlino. How do we add getlino to sudo?
  • 4 years, 1 month ago by Sharif Mehedi about #4617 (Daphne/ASGI getlino config.) : getlino startsite on an existing site says: FileExistsError: [Errno 17] File exists: '/home/blurry/lino/env' -> '/home/blurry/lino/lino_local/jane/env'