Can't set the whitelist

I was trying to Export Database https://docs.dgraph.io/deploy/#export
I’m using Docker and the Dgraph version is: 1.0.11;
Here is the problem:
when I run: 【$ docker exec 3b0 dgraph alpha --whitelist 172.17.0.0:172.20.0.0,192.168.1.1 --lru_mb 4096】
I got :【IP range must have a lower and upper bound
】,I’m not sure if you can see the picture so I post the err meg also,the picture is below

and I tried【$ docker exec 3b0 dgraph alpha --whitelist 172.17.0.0:172.20.0.0 --lru_mb 4096】
and I got:【Error while creating badger KV WAL store error: resource temporarily unavailable
Cannot acquire directory lock on “w”. Another process is using this Badger database.
】,and the picture is below

:thinking:

This is odd. hmm.

Try to change the CIDR format. e.g:

--whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16

OR

Go inside that container and execute the export command there.

docker exec -it “container-id” bash

About the lock, just delete those locks getting into the container.

Thank you very much.
I’ve successfully export the database as you said 【Go inside that container and execute the export command there.】

But the CIDR format --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 isn’t work,
still got the IP range must have a lower and upper bound tip.
Though it doesn’t matter for me anymore since I’v got my database exported, but I’m still curious about that.
:relaxed:

1 Like

The CIDR format support is new and not in version 1.0.11.

I believe the problem is that your original whitelist is incomplete:

$ docker exec 3b0 dgraph alpha --whitelist 172.17.0.0:172.20.0.0,192.168.1.1 --lru_mb 4096

The second starting IP address, 192.168.1.1 does not have a corresponding ending address.

The current v1.0.11 docs have been updated with the proper --whitelist format. https://docs.dgraph.io/deploy#whitelist-admin-operations

1 Like

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