Skip to content

troubleshooting

Tomo edited this page Jul 28, 2023 · 1 revision

Troubleshooting

Request Entity Too Large (413)

  • 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_SIZE and FILE_UPLOAD_MAX_MEMORY_SIZE variables in roboprop/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_filesize and post_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

500 error when making POST to the fileserver

  • if you are making large (over 100mb) model upload, most likely the memory_limit of php.ini is not high enough (default 128mb). This can be increased by searching for and changing memory_limit. You will need to restart php-fpm with sudo service php8.1-fpm restart after making your change.

File Server logs

  • The fileserver (DreamFactory) logs can be found in /opt/dreamfactory/storage
Clone this wiki locally