Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: add to known issues #3713

Open
AlannaBurke opened this issue Apr 19, 2024 · 0 comments
Open

Docs: add to known issues #3713

AlannaBurke opened this issue Apr 19, 2024 · 0 comments
Labels
7-documentation-examples Documentation & Examples / DX subsystem

Comments

@AlannaBurke
Copy link
Contributor

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

@AlannaBurke AlannaBurke added the 7-documentation-examples Documentation & Examples / DX subsystem label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7-documentation-examples Documentation & Examples / DX subsystem
Projects
None yet
Development

No branches or pull requests

1 participant