I have a fresh composer install of drupal 8 on Freebsd. When I try to upload any jpg/gif/png file to media browser file is uploaded correctly, but thumbnail is not generated.
I can observe the uploaded file in the list of media files but thumbnail is broken.
The uploaded file may be opened correctly and have URL like /sites/default/files/2020-03/filename-11_6.jpg.
The URL of thumbnail is like /sites/default/files/styles/thumbnail/public/2020-03/filename-11_6.jpg?itok=ducg-SU7.
The /sites/default/files/styles/ folder is empty. It have permission 777.
I have try to create appropriate folders structure inside the /sites/default/files/styles folder but thumbnails are still not generated. Manually created folders are removed when I flush at the /admin/config/media/image-styles
How can I force Media to work properly?