uwsgi: add package with modules (currently cgi and python plugin) [RFC]#9855
Conversation
|
I did update this PR to follow the changes of uwsgi-cgi. I will update the other two PRs later. |
|
(Fixed the dependencies for uwsgi-python3-plugin: it needs python3-light not python3-base.) |
|
Should I add a CONFLICTS:=uwsgi-cgi and how to make it clear that it would supersede it? |
|
(nothing changed) |
|
ping @Ansuel |
|
it's all good but we need to first update dependency of luci or we will create package with missing dependency. |
|
@peter-stadler i think this should be squashed and also add the drop of the uwsgi-cgi package |
|
@peter-stadler by testing this i have this error so i think it should be compiled with syslog support by default ? OK NO we just need to include the syslog plugin in the emperor |
|
The syslog plugin is installed by default, in the Should the plugin be embedded in the binary |
|
i think yes... I don't know why but uwsgi complains if the emperor is loaded with no request plugin (with only the syslog plugin loaded) So yes, I think we should embed the plugin |
|
Squashed the comits and:
Do we need yaml (I did remove it for now)? |
|
LGTM but we need to wait for the nginx commit to be ready |
|
Got rid of the warning by not using the syslog plugin at all, procd allows to log the output to stderr … |
|
Does logto option affect also output from the application itself ? This output would be usefull
|
|
Yes, it affects it, I will look into a log-route. |
be56313 to
53b14fd
Compare
|
Should work now: All messages that contain "luci:" are logged in the webui vassal :-) |
|
i notice that the package gets recompiled every time... |
|
I left out the static parts that are loaded in the same way in both cases.Tested it now also with a Guest window in Chrome -> The same. |
|
Hmm, did now a reinstall of the virtual machine and it is working. I do not know what is different now, I did a clean install half an hour ago, too. |
|
Nevermind, it was in an open browser window. After opening a new incognito window, I get the same error as before. |
|
So the Nginx version is working, when using the cached files of the uhttpd version and there is one more quirk on a clean install: It still works after opening a new incognito window; Nginx logs additionally: It fails when opening a new incognito window after restarting Nginx; It adds the following lines to the access.log (nothing to the error.log): |
|
We could get a similar log by using I will leave it for this year and wish you a good start into the new year. |
i can't get where is the problem in the last log... the error 400 is intended (used by luci to check if /ubus can be used) is just the lua page that use the ubus lua lib |
|
It hangs with the message |
|
I tested with latest commit and nginx + /ubus works correctly o.O |
|
Anyway there is a dependency recursion problem... make the uwsgi package dependent of the sub package |
|
I still have the problem. Can you reproduce it?
I get a message 'Session expired' that repeats when clicking on |
|
I did fix the dependencies, changing also the DEPENDS for nginx-mod-luci/default. Thank you :-) |
|
made a PR. #10923 |
|
Ah, I see. Sorry I forgot about that change. It is working. |
|
mh can you remove the nginx changes ? |
|
Done that, I will make another small PR for Nginx. |
|
do we really need that? |
|
I think else it will not be shown in make menuconfig. Or how should I change the uwsgi DEPENDS? |
|
The draft would be at #10925 |
|
Tested now and yes we need uwsgi in the nginx support package... as we need to change it anyway... At this point better make a mini pr also for nginx and rename the support package here to a better name. Sorry for all the mess. After this and the mini pr get merged we can start working on nginx draft pr. Is it good for you? |
|
This is perfect :-) |
Provide the minimal applications and plugins for: cgi, filelog, syslog and python3. More plugins can be added if needed by other packages. Autostart uwsgi in emperor mode loading vassals on demand. For now, include luci-support (maybe it will be moved to another package), which uses the syslog plugin by default. Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
|
The above draft PR is a mini PR that can be merged after this one. I changed the name to uwsgi-luci-support ... |
|
I could also update the Nginx version later on if you think that would be better. And if you have another name for the uwsgi-luci-support I would change that, too ... |
|
@hnyman good to merge |
Maintainer: Ansuel Smith ansuelsmth@gmail.com
Compile tested: MIPS 74K, Asus RT-N16, master snapshot
Run tested: MIPS 74K, Asus RT-N16, master snapshot, minimal app using uwsgi-python-plugin:
Description: This package is a modular build of uwsgi.
It superseeds the uwsgi-cgi package by splitting off the syslog and the cgi plugin. So luci on nginx could use uwsgi-cgi-plugin instead of uwsgi-cgi, see my other PR for nginx-luci and nginx-ssl-luci.
Additional there is the python plugin that would be needed for etesync: See my other PR for etesync-server, too, that will depend on uwsgi-python-plugin.
More plugins can be enabled if another package will use them.
Edit: Right now my other PRs refer to the old version, I will update them afterwards.
Edit 2: For now, include luci-support using the syslog plugin by default, and remove the uwsgi-cgi package entirely.