You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q:
I keep getting Warning: opendir(temporary://file_resup_temporary): Failed to open directory: "Drupal\Core\StreamWrapper\TemporaryStream::dir_opendir" call failed in Drupal\file_resup\Form\FileFormAlterBase::saveUpload() would it be possible to see if we have correct permissions for the tmp directory ?
A:
Sure enough, this has 2 pods running, and requests are sent round robin to each. So uploading files in chunks will lead to issues, where the temp directory is per pod.
You will need to change the temp directory to be a folder under a mounted network share.
e.g.
$settings['file_temp_path'] = "/app/web/sites/default/files/private/tmp";
If you nest the directory under private then Nginx will block direct access to the files by default.
Q:
I keep getting Warning: opendir(temporary://file_resup_temporary): Failed to open directory: "Drupal\Core\StreamWrapper\TemporaryStream::dir_opendir" call failed in Drupal\file_resup\Form\FileFormAlterBase::saveUpload() would it be possible to see if we have correct permissions for the tmp directory ?
A:
Sure enough, this has 2 pods running, and requests are sent round robin to each. So uploading files in chunks will lead to issues, where the temp directory is per pod.
You will need to change the temp directory to be a folder under a mounted network share.
e.g.
$settings['file_temp_path'] = "/app/web/sites/default/files/private/tmp";
If you nest the directory under private then Nginx will block direct access to the files by default.
Slack thread (internal): https://amazeeio.slack.com/archives/C05P10T1ZF0/p1711403262067339
The text was updated successfully, but these errors were encountered: