# Codefresh fails pipeline because of file permissions

**URL:** <https://community.codefresh.io/t/codefresh-fails-pipeline-because-of-file-permissions/979>\
**Category:** Pipeline Workflows\
**Created:** [May 14, 2024, 10:46am UTC](https://community.codefresh.io/t/codefresh-fails-pipeline-because-of-file-permissions/979 "2024-05-14T10:46:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmytro\_Koshubskyi](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/dmytro_koshubskyi/32/627_2.png) [@Dmytro\_Koshubskyi](https://community.codefresh.io/u/Dmytro_Koshubskyi)\
**Post date:** [May 14, 2024, 10:46am UTC](https://community.codefresh.io/t/codefresh-fails-pipeline-because-of-file-permissions/979/1 "2024-05-14T10:46:28Z")

</div>

codefresh pipeline runs docker-compose,  
it mounts sql files and then runs them in one of the services

locally this docker file runs with no error, but in codefresh it fails:  
[2024-05-14T08:43:01.136Z] mssql-tools-data-1 | Sqlcmd: Error: Error occurred while opening or operating on file /tmp/sql-integration-data-init.sql (Reason: Error code 0x80070005).

0x80070005 - is a code for Access Denied error. is it possible that codefresh sets file permissions that forbid accessing files by docker?

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [May 16, 2024, 8:30am UTC](https://community.codefresh.io/t/codefresh-fails-pipeline-because-of-file-permissions/979/2 "2024-05-16T08:30:52Z")

</div>

Could you post your pipeline and dockerfile please?

The SAAS version of Codefresh has some extra security constraints to prevent abuse of the system.

---

<div class="post-metadata">

**Author:** ![Dmytro\_Koshubskyi](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/dmytro_koshubskyi/32/627_2.png) [@Dmytro\_Koshubskyi](https://community.codefresh.io/u/Dmytro_Koshubskyi)\
**Post date:** [May 16, 2024, 8:51am UTC](https://community.codefresh.io/t/codefresh-fails-pipeline-because-of-file-permissions/979/3 "2024-05-16T08:51:14Z")

</div>

my colleagues gave me a solution, I had to use ${CF\_VOLUME\_NAME} variable, and it make it work.  
I’m not sure how to post pipeline anyways, UI is hard to navigate in codefresh 🙂

thanks
