Error while importing data: Error while mutating Uid: [4600006] cannot be greater than lease: [0]


I’m importing RDF data into an empty dgraph v1.0.16 instance. Previously I would be able to import the same data into an older dgraph version without a problem (not sure what version but it was several months ago since I imported the data before).

I’m getting the following error:

Error while mutating Uid: [4600006] cannot be greater than lease: [0]

and so forth and so forth…

Any idea on how to resolve this issue?


Oh, I tried the hint from this topic: Uid: [24387] cannot be greater than lease: [0]


curl http://zero:6080/assign?what=uids&num=10000000

results in

{"errors":[{"code":"ErrorInvalidRequest","message":"num not passed"}]}

Fixed this…

The problem was that I applied the schema I wanted to use before importing the data. When I applied the schema within the import command everything worked fine.

This looks like a bug. @MichelDiz please investigate.

I meant the num not passed error.

1 Like

The issue is related to Curl, you need to add quotation marks to the addr.

Running via Chrome works fine

Running without quotation marks and with.

1 Like