Gunicorn OpenBSD internal error - django

with "gunicorn appname:application" shows worker running on 127.0.0.1.:8000 but when try to open at firefox or other browser shows me this error:
http://pastebin.com/s8g3WSBi

Related

.Rmd not rendering in blogdown

Hello please I am trying to render a rmarkdown file on my website but I am geting this error,
blogdown:::serve_site()
Launching the server via the command:
C:/Users/Adejumo/AppData/Roaming/Hugo/0.88.1/hugo.exe server --bind 127.0.0.1 -p 4321 --themesDir themes -t hugo-lithium -D -F --navigateToChanged
Serving the directory . at http://localhost:4321
Launched the hugo server in the background (process ID: 6992). To stop it, call blogdown::stop_server() or restart the R session.
Rendering content/post/2020-12-01-r-rmarkdown/index.Rmd... Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Execution halted
Error: Failed to render content/post/2020-12-01-r-rmarkdown/index.Rmd

Not able to connect to django rest server at http://127.0.0.1:8000/

I have used the same code as the tutorial on the
drf website
When i run
python manage.py runserver
it gives me this in the terminal
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
July 10, 2021 - 07:12:08
Django version 3.2.5, using settings 'drftut.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Firefox gives me this error:
The connection has timed out
The server at 127.0.0.1 is taking too long to respond.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
I'm also using wsl1 and vscode remote desktop for wsl and im running this inside a python enviroment
kill $(lsof -t -i:8000)
Use this command in terminal or cmd to kill the process which is already running on PORT 8000.
If this is also not worked for you, then try to runserver on another PORT like so python manage.py runserver 5000 or any other free port

apache2 libapache2-mod-wsgi-py3 django

Previously my code was working with apache2, django and libapache2-mod-wsgi. But I had to use python3, hence I removed libapache2-mod-wsgi and installed libapache2-mod-wsgi-py3. Now I am getting an error when I restart apache2.
Below is the error from command systemctl status apache2.service. I don't know why WSGIScriptAlias is not working for libapache2-mod-wsgi-py3.
The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 7 of /etc/apache2/sites-enabled/000-default.conf:
Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not
Action 'configtest' failed.
The Apache error log may have more information.
apache2.service: Control process exited, code=exited status=1
Failed to start LSB: Apache2 web server.
apache2.service: Unit entered failed state.
apache2.service: Failed with result 'exit-code'.

Getting syntax error in plotly module file

Getting error when runnning with apache httpd service but same thing is running fine with flask 5000 port within the virtual env.

uWSGI sometimes stuck and send 502 error

Hello i am using no config file, just use systemd with next command to run uwsgi and very simple config --socket /var/uwgi/uwsgi.socket --module boost.wsgi_django --chmod-socket=666 -p 64
And sometimes i receive 502 like uwsgi is down but all is ok and no errors even log. It look like server is down for a half of a second and then all is ok again.