Description
This article describes that if there is a record that is heavy because it contains several pictures in the rich text field etc., then the following issues can occur on such records:
Scope
FortiSOAR.
Solution
To resolve this issue, do the following:
vi /etc/nginx/conf.d/cyops-workflow.conf
systemctl restart nginx
[root@csadmin~]# tail -f /var/log/cyops/cyops-workflow/sealab.log
[17/Jun/2020 07:00:09] ERROR [django.security.RequestDataTooBig:77] Request body exceeded settings.DATA_UPLOAD_MAX_MEMORY_SIZE.
[17/Jun/2020 07:00:09] WARNING [django.request:228] Bad Request: /wf/workflow/start/
The default value for the DATA_UPLOAD_MAX_MEMORY_SIZE key is '2.5MB'; as per the log; and the record size seems greater than 2.5MB.
Settings.py file:
# vi /opt/cyops-workflow/sealab/sealab/settings.py
Config.ini file:
# vi /opt/cyops-workflow/sealab/sealab/config.ini
DATA_UPLOAD_MAX_MEMORY_SIZE = 5242880
Add the following new line in the config.ini if it is already not present under the 'application' section:
[application]
DATA_UPLOAD_MAX_MEMORY_SIZE = 5242880
Note:
For post-update triggers to work, set the above parameter to double the record size. Restart the uwsgi and celery services using the following command:
# systemctl restart uwsgi celeryd
Note:
It is highly recommended that images with larger file sizes be added as 'File Attachments' and these attachments should be correlated to records instead of pasting them as inline images.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.