From 5165357f40c780358271f7ae6d31aa14f93e7feb Mon Sep 17 00:00:00 2001 From: JoeSchr Date: Thu, 4 Feb 2021 19:36:04 +0100 Subject: [PATCH 1/3] Update data-download.md Fix wrong path Add section about fixing wrong docker permission, if user_data is created by docker, it's permission are set to `root` --- docs/data-download.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/data-download.md b/docs/data-download.md index 4c7376933..cad39ac41 100644 --- a/docs/data-download.md +++ b/docs/data-download.md @@ -264,7 +264,19 @@ If you are using Binance for example: ```bash mkdir -p user_data/data/binance -cp freqtrade/tests/testdata/pairs.json user_data/data/binance +cp tests/testdata/pairs.json user_data/data/binance +``` + +if you your configuration directory `user_data` was made by docker, you may get an error: + +``` +cp: cannot create regular file 'user_data/data/binance/pairs.json': Permission denied +``` + +so you will need to fix your permission by doing: + +``` +chown -R $UID:$GID user_data ``` The format of the `pairs.json` file is a simple json list. From 428d2af312fea93e2e01da0feed6d808269c2723 Mon Sep 17 00:00:00 2001 From: JoeSchr Date: Thu, 4 Feb 2021 19:39:25 +0100 Subject: [PATCH 2/3] add `sudo` to `chown` that was the whole point d'oh --- docs/data-download.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data-download.md b/docs/data-download.md index cad39ac41..1e183d04b 100644 --- a/docs/data-download.md +++ b/docs/data-download.md @@ -276,7 +276,7 @@ cp: cannot create regular file 'user_data/data/binance/pairs.json': Permission d so you will need to fix your permission by doing: ``` -chown -R $UID:$GID user_data +sudo chown -R $UID:$GID user_data ``` The format of the `pairs.json` file is a simple json list. From 86a97988c011de79be5e74f3ec408c31b11f7c37 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 5 Feb 2021 20:09:13 +0100 Subject: [PATCH 3/3] Improve wording --- docs/data-download.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/data-download.md b/docs/data-download.md index 1e183d04b..04f444a8b 100644 --- a/docs/data-download.md +++ b/docs/data-download.md @@ -267,13 +267,13 @@ mkdir -p user_data/data/binance cp tests/testdata/pairs.json user_data/data/binance ``` -if you your configuration directory `user_data` was made by docker, you may get an error: +If you your configuration directory `user_data` was made by docker, you may get the following error: ``` cp: cannot create regular file 'user_data/data/binance/pairs.json': Permission denied ``` -so you will need to fix your permission by doing: +You can fix the permissions of your user-data directory as follows: ``` sudo chown -R $UID:$GID user_data