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

One error during export. #20392

Open
MS-INTAR opened this issue Jan 31, 2024 · 3 comments
Open

One error during export. #20392

MS-INTAR opened this issue Jan 31, 2024 · 3 comments

Comments

@MS-INTAR
Copy link

MS-INTAR commented Jan 31, 2024

Akeneo version: 7.0.41 CE
PHP 8.1.27

O great elders of Akeno I the junior engineer kindly ask you to answer the following question:

  1. Why do I have to change folder permissions every time I export resources to a folder in a location: /file_storage/archive/export/xlsx_product_export$ Without changing the permissions, the download link does not appear.

this is how the permissions of the created export folder look like:
drwx------ 3 root root
I have to use this command every time after creating a new export without it akeneo does not display the download link:
find file_storage/ -type d -exec chmod 755 {} +

@MS-INTAR MS-INTAR changed the title Two errors during export. One error during export. Jan 31, 2024
@thanninger
Copy link

Have you found a solution?

We currently experience the same issue.
Akeneo version: Version: CE 7.0.22
PHP 8.1.29

@MS-INTAR
Copy link
Author

MS-INTAR commented Sep 10, 2024

In my case, after indicating the correct user (-u www-data) to run tasks in the supervisor (conf.d), everything started working properly.

command= /usr/bin/docker-compose exec -T -u www-data fpm bin/console messenger:consume ui_job import_export_job data_maintenance_job --env=prod -vv

Keep in mind that if the job deamon was previously run as a different user then the folders to which the exports are generated may require updating the permissions.

@thanninger
Copy link

Thank you thank you! Your hint lead us to a solution 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants