0Chain
Search…
Tips & Troubleshooting
  • Many times new allocations are created and allocation error is still shown.Try to use ./zbox listallocations to cross-check whether an allocation is created
  • Check your wallet balance using ./zwallet getbalance before creating an allocation and see whether you have the required amount of tokens to lock for allocation. If not having tokens use the faucet./zwallet faucet --methodName pour --input "{Pay day}"command.

Error 1-Error creating allocation: transaction_not_found: Transaction was not found on any of the sharders

Cause 1:Your write tokens has expired

Write tokens are required and locked into a write pool using a --lock flag whenever the new allocation is created. There can be an instance where you are not able to create allocation since locked write tokens have expired with the allocation.
To get the write pool information(expiry, how many locked tokens) for all allocations.
Command:
1
./zbox wp-info
Copied!
Sample Response:
1
- id: 6c2b94419c2b94b4dd4afc4d41f25509a33bd32c6150114edaf016f54e866eb0
2
balance: 0.2
3
expire_at: 2021-05-06 21:12:03 +0000 UTC
4
allocation_id: 6c2b94419c2b94b4dd4afc4d41f25509a33bd32c6150114edaf016f54e866eb0
5
locked: true
6
blobbers:
7
- blobber_id: 090dc72b647638509a02185dcc2ac031ee35117e27cd2e332e38d8445edc740d
8
- balance: 0.0422620713
9
- blobber_id: 3b0551d5ecea77e9c9ed77c72eb114b2345fface766ef2ac5883096e160f64d7
10
- balance: 0.0422620713
11
- blobber_id: 76be262c6113a3b4656c6ecf5ed6bccff3fb2d7a1952891296ccc03be87a243e
12
- balance: 0.0743812465
13
- blobber_id: b94cb2f4a689d1af305550a9ee69fc561ad49e699fe265fca4dc0a6a4b66a458
14
- balance: 0.0410946107
15
- id: bbb902ef735d4e1c904f096ccc1e3e52d5514ded32b0cc4f3cdcdb9d77203362
16
balance: 0.2
17
expire_at: 2021-05-06 20:59:26 +0000 UTC
18
allocation_id: bbb902ef735d4e1c904f096ccc1e3e52d5514ded32b0cc4f3cdcdb9d77203362
19
locked: true
20
blobbers:
21
- blobber_id: 2efc85d6a2f36380e1e77b843cd9f4fe55668271cae4925ab38a92504176e5df
22
- balance: 0.0741096832
23
- blobber_id: 91684b1f9b8d0e785afab38645e5bc6e2d77619d9b26c49325e15977568c2ade
24
- balance: 0.042837967
25
- blobber_id: ac808ceeeba1026fbd9d1e495508af496aacc6f11a58fd202ea9f032a2419648
26
- balance: 0.0421077739
27
- blobber_id: b94cb2f4a689d1af305550a9ee69fc561ad49e699fe265fca4dc0a6a4b66a458
28
- balance: 0.0409445757
29
30
Copied!
For a Particular allocation write pool information use:
1
./zbox wp-info --allocation $ALLOCATION_ID
Copied!
If there are no write tokens locked in a pool with an allocation. You can lock them using
1
./zbox wp-lock --allocation ALLOCATION_ID --duration 40m --tokens 1
Copied!
All the tokens will be divided between allocation blobbers depending on their write price.
To unlock an expired write pool, associated with an allocation use
1
./zbox wp-unlock --pool_id POOL_ID
Copied!

Cause 2:Blobber has run out of Staked Capacity

If unable to create new allocations as shown below:
Command:
1
zbox newallocation --lock 0.5
2
Copied!
Response:
1
Error creating allocation: transaction_not_found: Transaction was not found on any of the sharders
Copied!
To fix this issue, You must lock some tokens on the blobber. Through zbox, it can be done using the sp-lock command
You have to get the blobber id which can be found using ./zbox ls-blobberscommand. The response will output all active blobbers but here in the sample response we have mentioned one of the blobbers
Response:
1
- id: 011a5444c9fe53137da7c3d871f3bf4bbf3c01607b14aa95ff2de43b5537d4b6
2
url: http://one.devnet-0chain.net:31305
3
used / total capacity: 238.9 GiB / 1000.0 GiB
4
terms:
5
read_price: 0.01 tok / GB
6
write_price: 0.01 tok / GB / time_unit
7
min_lock_demand: 0.1
8
cct: 2m0s
9
max_offer_duration: 744h0m0s
10
Copied!
Now lets use the sp-lock command with above blobber_id to lock tokens.
Command:
1
./zbox sp-lock --blobber_id --tokens 0.5 011a5444c9fe53137da7c3d871f3bf4bbf3c01607b14aa95ff2de43b5537d4b6
Copied!
Response:
1
tokens locked, pool id: e4ca6db2dc067b71fcbcd98a9b437dfa18f61632c69ba35bf19821678bd357d7
2
Copied!
You can also use sp-info command for finding the stake pool info(total stake, capacity and write price) for a blobber.
1
./zbox sp-info --blobber_id 011a5444c9fe53137da7c3d871f3bf4bbf3c01607b14aa95ff2de43b5537d4b6
Copied!
Response:
1
blobber_id: 011a5444c9fe53137da7c3d871f3bf4bbf3c01607b14aa95ff2de43b5537d4b6
2
total stake: 5
3
going to unlock, total: 0
4
capacity:
5
free: 263.1 GiB (for current write price)
6
capacity: 1000.0 GiB (blobber bid)
7
write_price: 0.01 (blobber write price)
8
- lock: 0.0033333333
9
expire: 2021-05-21 08:18:28 +0000 UTC
10
allocation: f4d589407769e33267521cfb63d1ba6220708801b9fc843be7b572d4ce46f457
11
expired: false
12
offers_total: 2.36851183 (held by opened offers)
13
delegate_pools:
14
- id: 9de14085f547ca57b954f262f44e31e98a6281a1db0b5dbfa838bd392d764b92
15
balance: 1
16
delegate_id: 242d1a3002804da81b9b3960b9f5d9282466a65d0eb3e8b81513cc279747f5af
17
rewards: 0.0000923483
18
penalty: 0
19
interests: 0.078156 (payed)
20
pending_interests: 0.2087166 (not payed yet, can be given by 'sp-pay-interests' command)
21
going to unlock at: <not going>
22
- id: d7a1d4d325503f68228bf9a11da7c34b7ce2241e59f22a10b56a13e23ac8f017
23
balance: 2
24
delegate_id: 7875e1cce7e8aa4397d8e1251f95cf97c8c7495fca7c793777b310a4d6a66eda
25
rewards: 0.0002324521
26
penalty: 0
27
interests: 0.2873736 (payed)
28
pending_interests: 0.4174332 (not payed yet, can be given by 'sp-pay-interests' command)
29
going to unlock at: <not going>
30
- id: b1e5f86af8b39d6486f69c03a078b3b6ae3129557a0fbc18cbb73967cbf6c206
31
balance: 1
32
delegate_id: 926dfe23b40ae854daba28f23d56bece67c8bd48ef3bc9e3bd592a70725ecaf0
33
rewards: 0.0000923483
34
penalty: 0
35
interests: 0.0781894 (payed)
36
pending_interests: 0.2087166 (not payed yet, can be given by 'sp-pay-interests' command)
37
going to unlock at: <not going>
38
- id: cc8f6aae01b0e6d4ae0fa554e1a72de6afaf88c27a87b3e54230557b4cbf630b
39
balance: 1
40
delegate_id: aafb80d9dfd3c829bf809b04d5c9beace6d0a1e9565bb4c816742a877fcda110
41
rewards: 0.00002933
42
penalty: 0
43
interests: 0.0652636 (payed)
44
pending_interests: 0.2087166 (not payed yet, can be given by 'sp-pay-interests' command)
45
going to unlock at: <not going>
46
penalty: 0 (total blobber penalty for all time)
47
rewards:
48
charge: 0.0001904301 (for all time)
49
blobber: 0.0004464725 (for all time)
50
validator: 0.0000021423 (for all time)
51
settings:
52
delegate_wallet: 7875e1cce7e8aa4397d8e1251f95cf97c8c7495fca7c793777b310a4d6a66eda
53
min_stake: 1
54
max_stake: 100
55
num_delegates: 50
56
Copied!
To Unlock tokens from stake pool again you can use the sp-unlock command.
1
./zbox sp-unlock --blobber_id 011a5444c9fe53137da7c3d871f3bf4bbf3c01607b14aa95ff2de43b5537d4b6 --pool_id b1e5f86af8b39d6486f69c03a078b3b6ae3129557a0fbc18cbb73967cbf6c206
2
Copied!

Cause 3: Your allocation has expired

Every allocation created using ./zbox newallocation command has an expire time .By default it is (720h0m0s) but you can specify a particular duration using an --expireflag as well. To know the expiration of the allocation use ./zbox listallocations
Sample Response:
1
ID | SIZE | EXPIRATION | DATASHARDS | PARITYSHARDS | FINALIZED | CANCELED |
2
R PRICE | W PRICE
3
+------------------------------------------------------------------+------------+---------------------------
4
6c2b94419c2b94b4dd4afc4d41f25509a33bd32c6150114edaf016f54e866eb0 | 2147483648 | 2021-05-06 21:10:03 +0000 UTC | 2 | 2 | false | false | 0.0437769963 | 0.026888
Copied!
If your allocation has expired you can finalize an expired allocation to get the unused tokens back. The command for finalizing the allocation is :
1
./zbox alloc-fini --allocation $ALLOC
Copied!

Error 2: Error in file operation: File content didn't match with uploaded file

Cause1: You didn’t lock any read tokens.

Read Tokens are required and has to be locked in a read pool to perform Zbox operations on dStorage.
If unable to download files from dstorage as shown below
Command:
1
./zbox download --localpath ~/downloads/ --remotepath /myfiles/info.txt --allocation $ALLOC
2
Copied!
Response:
1
Error in file operation: File content didn't match with uploaded file
Copied!
You must check whether you have read tokens created. Through zbox, it can be done using the rp-info and rp-create command.
If running ./zbox rp-info shows a below response:
1
no tokens locked
Copied!
You have to lock some tokens using rp-lock and command .Flags for the command can be viewed using `
./zbox rp-lock --help
1
Flags:
2
--allocation string allocation id to lock for, required
3
--blobber string blobber id to lock for, optional
4
--duration duration lock duration, required
5
--fee float transaction fee, default 0
6
-h, --help help for rp-lock
7
--tokens float lock tokens number, required
8
Copied!
Sample Command:
1
./zbox rp-lock --allocation $ALLOC --duration 2h --tokens 0.2
Copied!
Try executing Zbox operations again after locking read pools.

Cause 2:Your read tokens might have expired

There can be many instances where you are not able to perform Zbox operations on dStorage due to expired read pool for the allocation. Allocations are associated with a read pool which is locked using ./zbox rp-lockcommand for a certain duration as shown above. To check the read pool details for a particular allocation , the command is
1
./zbox rp-info --allocation $ALLOC
Copied!
Response:
1
- id: b5806cb3a47c31f3f5f48329a5ded54fe1eba2b24b19bfca2909bb80ad2a3bb7
2
balance: 0.2
3
expire_at: 2021-05-06 21:40:49 +0000 UTC
4
allocation_id: 6c2b94419c2b94b4dd4afc4d41f25509a33bd32c6150114edaf016f54e866eb0
5
locked: true
6
blobbers:
7
- blobber_id: 090dc72b647638509a02185dcc2ac031ee35117e27cd2e332e38d8445edc740d
8
- balance: 0.0519160164
9
- blobber_id: 3b0551d5ecea77e9c9ed77c72eb114b2345fface766ef2ac5883096e160f64d7
10
- balance: 0.0519160164
11
- blobber_id: 76be262c6113a3b4656c6ecf5ed6bccff3fb2d7a1952891296ccc03be87a243e
12
- balance: 0.0456860947
13
- blobber_id: b94cb2f4a689d1af305550a9ee69fc561ad49e699fe265fca4dc0a6a4b66a458
14
- balance: 0.0504818723
15
Copied!
Here you will be able to see the pool_id,allocations ,expiry date,locked tokens and blobbers associated with the pool.
To Unlock tokens from the expired read pool mark the pool id to the variable using:
1
export poolid=b5806cb3a47c31f3f5f48329a5ded54fe1eba2b24b19bfca2909bb80ad2a3bb7
Copied!
then use the rp-unlock command.
1
./zbox rp-unlock --pool_id poolid
Copied!

Error 3:Not able to use read pool rp-info and rp-lock commands

1
./zbox rp-info
2
Failed to get read pool info: error requesting read pool info: consensus_failed: consensus failed on sharders
Copied!
This can happen if read pool is not yet created for wallet. Read pool is usually created when new wallet is created by zbox or zwallet. However, if wallet is created through zwallet recoverwallet, read pool may not have been created. Simply run zbox rp-create.