# Error(context deadline exceeded) when import data via dgraph live

**URL:** <https://discuss.dgraph.io/t/error-context-deadline-exceeded-when-import-data-via-dgraph-live/2142>\
**Category:** Users\
**Created:** [January 19, 2018, 11:09am UTC](https://discuss.dgraph.io/t/error-context-deadline-exceeded-when-import-data-via-dgraph-live/2142 "2018-01-19T11:09:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pldawn](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/pldawn/32/852_2.png) [@pldawn](https://discuss.dgraph.io/u/pldawn)\
**Post date:** [January 19, 2018, 11:09am UTC](https://discuss.dgraph.io/t/error-context-deadline-exceeded-when-import-data-via-dgraph-live/2142/1 "2018-01-19T11:09:35Z")

</div>

I met the problem just like what “Struggle to do `A bigger dataset` with docker-compose” said.  
I’m on linux, not docker. When I load the rdf.file like:

```auto
dgraph live -r dgraph/N_quads.rdf.gz -s dgraph/N_quads.schema.gz -z 5080 -d localhost:9080

```

then I get:

```auto
Total Txns done: 0 RDFs per second: 0 Time Elapsed: 2s, Aborts: 0
Total Txns done: 0 RDFs per second: 0 Time Elapsed: 4s, Aborts: 0
Total Txns done: 0 RDFs per second: 0 Time Elapsed: 6s, Aborts: 0
Total Txns done: 0 RDFs per second: 0 Time Elapsed: 8s, Aborts: 0
2018/01/19 18:57:39 zero.go:29: Could not dial zero at address "5080": context deadline exceeded
2018/01/19 18:57:39 xidmap.go:110: Error while getting lease: Failed to obtain zero leader after trying all connections

```

But I run state query to zero(6080) and health query to server(8080), it said OK.  
SO what’s wrong here? What should I do?

---

<div class="post-metadata">

**Author:** ![pawan](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/pawan/32/1946_2.png) [@pawan](https://discuss.dgraph.io/u/pawan)\
**Post date:** [January 21, 2018, 11:11pm UTC](https://discuss.dgraph.io/t/error-context-deadline-exceeded-when-import-data-via-dgraph-live/2142/2 "2018-01-21T23:11:39Z")

</div>

You need to give the full address for Dgraph Zero, so try `-z localhost:5080`. We have made the error message better in `v1.0.2`.

---

<div class="post-metadata">

**Author:** ![pldawn](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/pldawn/32/852_2.png) [@pldawn](https://discuss.dgraph.io/u/pldawn)\
**Post date:** [January 22, 2018, 2:40am UTC](https://discuss.dgraph.io/t/error-context-deadline-exceeded-when-import-data-via-dgraph-live/2142/3 "2018-01-22T02:40:39Z")

</div>

I will try it, thx a lot:grinning:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)\
**Post date:** [February 21, 2018, 2:40am UTC](https://discuss.dgraph.io/t/error-context-deadline-exceeded-when-import-data-via-dgraph-live/2142/4 "2018-02-21T02:40:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
