# Issue trying to import on mautic 5.1.1

**URL:** https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165
**Category:** Docker support
**Created:** [November 18, 2024, 8:29pm UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165 "2024-11-18T20:29:30Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![killmasta93](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/killmasta93/32/12780_2.png) [@killmasta93](https://forum.mautic.org/u/killmasta93)
#### Post date: [November 18, 2024, 8:29pm UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165/1 "2024-11-18T20:29:30Z")

</div>

**Your software**  
My Mautic version is: 5.1.1  
My PHP version is: PHP 8.1.29  
My Database type and version is: mysql

**Your problem**  
My problem is:  
Currently trying to import in the backround  
These errors are showing in the log:  
20241118202117.csv not found  
Steps I have tried to fix the problem:  
currently using this docker compose [docker-mautic/examples/rabbitmq-worker at mautic5 · mautic/docker-mautic · GitHub](https://github.com/mautic/docker-mautic/tree/mautic5/examples/rabbitmq-worker)

and i when i run it manually it shows

> root@aea016815dd7:/var/www/html/docroot# php /var/www/html/bin/console mautic:import  
> Import 8 with 23124 rows is starting.  
> Import failed. Reason: 20241118202117.csv not found

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [November 18, 2024, 9:03pm UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165/2 "2024-11-18T21:03:25Z")

</div>

Your file seems to not really upload, check you can find the file on the server first

---

<div class="post-metadata">

### Author: ![killmasta93](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/killmasta93/32/12780_2.png) [@killmasta93](https://forum.mautic.org/u/killmasta93)
#### Post date: [November 19, 2024, 3:35am UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165/3 "2024-11-19T03:35:07Z")

</div>

Thanks for the reply, i was checking in the server normally where does the info get stored?

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [November 19, 2024, 6:39am UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165/4 "2024-11-19T06:39:08Z")

</div>

I think it’s in media/import folder. Make sure folder is writable by web server user.

---

<div class="post-metadata">

### Author: ![killmasta93](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/killmasta93/32/12780_2.png) [@killmasta93](https://forum.mautic.org/u/killmasta93)
#### Post date: [November 19, 2024, 7:36pm UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165/5 "2024-11-19T19:36:39Z")

</div>

thanks for the reply, so i was checking in the docker config there is a folder called gave it all the permissions same issue  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/04b07ad90753a56cd7fa6f1762d6d1e742a697cf.png)

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [November 20, 2024, 6:18pm UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165/6 "2024-11-20T18:18:52Z")

</div>

Can you just search for any CSV file.

I think file is not getting uploaded, not sure at the moment why. Might me mautic configuration issue that is preventing file from uploading?

Anyway I am happy to look into this, drop me a DM if interested.

---

<div class="post-metadata">

### Author: ![damiankleisinger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/damiankleisinger/32/13311_2.png) [@damiankleisinger](https://forum.mautic.org/u/damiankleisinger)
#### Post date: [September 18, 2025, 2:49pm UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165/7 "2025-09-18T14:49:52Z")

</div>

In case someone else encounters the same issue in the future, in the docker-compose examples at [https://github.com/mautic/docker-mautic](https://github.com/mautic/docker-mautic), the directory `/var/www/html/var/import` isn’t mapped between the web and cron containers.

Given that, the uploaded CSV file does only exist on the web container; when the command runs on the cron container, it shows a `Import failed. Reason: file.csv not found`. To fix it, add the volume `- ./mautic-var/import:/var/www/html/var/import`.

---

<div class="post-metadata">

### Author: ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)
#### Post date: [October 23, 2025, 4:15pm UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165/8 "2025-10-23T16:15:31Z")

</div>

This is valid in Mautic 6.0.6:

Also, in the current docker template files the www-data user (or whichever you have as user for mautic) has no rights to write to the /var/www/html/var/imports directory: this is the reason why the upload is not working in the first place.

So the key is to overwrite the entrypoint\_mautic\_web.sh file and add the directory /var/www/html/var/imports or simply change the log directory to /var/www/html/var instead of /var/www/html/var/logs.

This plus the volume across the containers (at least the cron container if you’re importing in the background) as @damiankleisinger mentioned above

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [October 23, 2025, 4:20pm UTC](https://forum.mautic.org/t/issue-trying-to-import-on-mautic-5-1-1/34165/9 "2025-10-23T16:20:17Z")

</div>

cc @cibero42 for the Docker side of things!
