Im trying to catch/ log django errors (500) in my prod environment. However all the log files doesn’t contain any traceback. To test if it works I have a view in django with: raise Exception("test exception to test the logging") It doesn’t matter how I change the configuration – it doesn’t log it. Current config: ..
We have a staging server for running our web app’s current state under our develop git branch. It is running a Next.js component for frontend purposes, and Django for web API (using DRF). As a staging server, we have not fully set it up as that of a production server, where we would normally use ..
In my django website I need a tracker, which measuses how long a user performed particular activity each day. For this purpose, browser sends an ajax request to server every 30 seconds while the user is performing his activity. So when recieving this request, the server increments user activity counter by 30 seconds. These counters ..
I have developed a Flask application, and so far I have only ever deployed it using a single worker. The app connects to an SQLite DB using Flask-SQLAlchemy. In the beginning, I check if my DB already has data, and if not, I initialize some data like a default setup user like this: root_user = ..
I am trying to embed my Flask API in a Docker using a Gunicorn server. When I launch it locally it works just fine. However, when running on Docker all workers are terminated with signal 11 without further information. I tried to increase –timeout but it is not working either. I am using gevent workers. ..
I am running a flask application on an nginx server.I need to trigger an API from an appscript’s client.The client uses a fire and forget method meaning it does not wait for the server to send a response.This results in an nginx 499 error so is there a way to keep the server processing the ..
I am creating a simple Dash app with gunicorn and nginx. I am deploying it with docker-compose; one container for Dash + Gunicorn and one container for Nginx. My project has the following structure: . ├── app_rwg │ ├── src (with some sub packages) │ ├── Dockerfile │ ├── setup.py │ ├── requirements.txt │ └── ..
I am developing kind of a file-repository system in python that I want to be serving an API endpoint via HTTP. A main class – the ‘engine’ – performs read and write operations to disk via appropriate methods get_data() and put_data(). The object of the engine class is instanciated in the main entrypoint file containing ..
[2021-10-06 05:29:36 +0700]  [WARNING] Worker with pid 497759 was terminated due to signal 1 What is the cause of signal 1? I can’t find any information online. I checked the CPU and Memory usage there’s still plenty left. What is the cause of signal TERM? I thought it’s the signal when we manually close ..
I followed a tutorial to dockerise a Django app, but I’m having trouble applying the same instructions to my own app. My folder structure looks like this: ├── project_name │ ├── app_name │ │ ├── admin.py │ │ ├── apps.py │ │ ├── exceptions.py │ │ ├── forms.py │ │ ├── functions.py │ │ ├── ..