# Import in docker on ubuntu not working - Couldn't load the external resource at

**URL:** https://community.neo4j.com/t/import-in-docker-on-ubuntu-not-working-couldnt-load-the-external-resource-at/60114
**Category:** Neo4j Graph Platform
**Tags:** migrated
**Created:** [January 31, 2021, 7:58pm UTC](https://community.neo4j.com/t/import-in-docker-on-ubuntu-not-working-couldnt-load-the-external-resource-at/60114 "2021-01-31T19:58:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lukasz\_mika](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/lukasz_mika/32/4684_2.png) [@lukasz\_mika](https://community.neo4j.com/u/lukasz_mika)
#### Post date: [January 31, 2021, 7:58pm UTC](https://community.neo4j.com/t/import-in-docker-on-ubuntu-not-working-couldnt-load-the-external-resource-at/60114/1 "2021-01-31T19:58:13Z")

</div>

Hello, I am having a struggle trying to import a csv file. I'm running neo4j in a docker on ubuntu 20.04.1 and use this command:

sudo docker run  
--name testneo4j  
-p7474:7474 -p7687:7687  
-v $HOME/neo4j/data:/data  
-v $HOME/neo4j/conf:/conf  
-v $HOME/neo4j/logs:/logs  
-v $HOME/neo4j/import:/var/lib/neo4j/import  
-v $HOME/neo4j/plugins:/plugins  
--env NEO4J\_AUTH=neo4j/test  
--env NEO4J\_dbms\_security\_allow\_\_csv\_\_import\_\_from\_\_file\_\_urls=true  
--env NEO4J\_dbms\_directories\_import="/import"  
neo4j:latest

file sample.csv is under $HOME/neo4j/import (permissions are set ok), then in the browser i do:

LOAD CSV FROM "file:///sample.csv" AS row RETURN row;

and then i get:

Couldn't load the external resource at: file:/import/sample.csv

i went through some threads (found very similar issues but to no avail), articles as well as tried possible solutions and still stuck. Not sure how to trouble shoot it and see nothing of interest in the log file. Any help would be appreciated.

Thanks

---

<div class="post-metadata">

### Author: ![naima](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@naima](https://community.neo4j.com/u/naima)
#### Post date: [July 21, 2022, 11:14am UTC](https://community.neo4j.com/t/import-in-docker-on-ubuntu-not-working-couldnt-load-the-external-resource-at/60114/2 "2022-07-21T11:14:39Z")

</div>

what permissions we should set to the file..the import is not working for me..i am using docker to run neo4j..this is my query..

LOAD CSV WITH HEADERS FROM 'file:///final\_output.csv' AS row WITH row WHERE row.entity1 IS NOT NULL

MERGE (n:Source {Name: row.entity1})

MERGE (m:Destination {Name: row.entity2})

MERGE (n) -[:to {dist:row.action}]-\> (m)  
This is my docker command:

docker run \ --name nluneo4j \ -p 7474:7474 -p 7687:7687 \ -d \ -v /root/neo4j1/data:/data \ -v /root/neo4j1/logs:/logs \ -v /root/neo4j1/import:/root/neo4j/import \ -v /root/neo4j1/plugins:/plugins \ --env NEO4J\_AUTH=neo4j/test \ --env NEO4J\_dbms\_security\_allow\_\_csv\_\_import\_\_from\_\_file\_\_urls=true \

--env NEO4J\_dbms\_directories\_import=import \ neo4j:latest
