-
Notifications
You must be signed in to change notification settings - Fork 0
troubleshooting
Tomo edited this page Jul 28, 2023
·
1 revision
-
If the error is occurring when uploading a file to the client (e.g. by clicking the upload button in My models) then try increasing the
DATA_UPLOAD_MAX_MEMORY_SIZEandFILE_UPLOAD_MAX_MEMORY_SIZEvariables inroboprop/settings.py-> The default is 100mb -
If the error is occurring when uploading a file to the file server (i.e the POST request to your DreamFactory instance) then this is most likely due to the maximum limit on nginx, or php.ini (or both).
- To increase the nginx max file size use the setting
client_max_body_size(on ubuntu system in/etc/nginx/sites-available/default - To increase the php.ini max file size search for and update
upload_max_filesizeandpost_max_size(on ubuntu systems in/etc/php/8.1/fpm/php.ini - You should then restart both nginx and php-fpm (
sudo service nginx restart && sudo service php8.1-fpm restart) for the changes to take effect
- To increase the nginx max file size use the setting
- if you are making large (over 100mb) model upload, most likely the
memory_limitofphp.iniis not high enough (default 128mb). This can be increased by searching for and changingmemory_limit. You will need to restart php-fpm withsudo service php8.1-fpm restartafter making your change.
- The fileserver (DreamFactory) logs can be found in /opt/dreamfactory/storage