# Metadata hash error - Error validating stake pool metadata: ... , but it consists of 30706 bytes

**URL:** <https://forum.cardano.org/t/metadata-hash-error-error-validating-stake-pool-metadata-but-it-consists-of-30706-bytes/113966>\
**Category:** Setup a Stake Pool\
**Tags:** metadata\
**Created:** [3 February 2023 21:08 UTC](https://forum.cardano.org/t/metadata-hash-error-error-validating-stake-pool-metadata-but-it-consists-of-30706-bytes/113966 "2023-02-03T21:08:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlockchainBill0](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/blockchainbill0/32/61895_2.png) [@BlockchainBill0](https://forum.cardano.org/u/BlockchainBill0)\
**Post date:** [3 February 2023 21:08 UTC](https://forum.cardano.org/t/metadata-hash-error-error-validating-stake-pool-metadata-but-it-consists-of-30706-bytes/113966/1 "2023-02-03T21:08:25Z")

</div>

Hey folks,  
I’m trying to setup a pool to run on 1.35.5 preview but I keep running into an error message when checking the pool’s metadata hash that it’s too big:

> Metadata HASH Check: Fetching the MetaData JSON file from [https://preview.blockchainbill.lol/SNSOB.metadata.json](https://preview.blockchainbill.lol/SNSOB.metadata.json) … Command failed: stake-pool metadata-hash Error: Error validating stake pool metadata: Stake pool metadata must consist of at most 512 bytes, but it consists of 30706 bytes.

Here’s my extended metadata files:  
[https://preview.blockchainbill.lol/SNSOB.emeta.json](https://preview.blockchainbill.lol/SNSOB.emeta.json)

I was able to successfully setup a preprod pool but that was prior to version 1.35.5 - maybe that’s part of the issue since the preview files are actually smaller than the preprod ones?

(I’m using gitmachtl’s scripts from here:  
https: //github. com/gitmachtl/scripts  
, and this issue is coming up in command 05c)

Maybe it’s related to this?  
https: //github .com/input-output-hk/cardano-db-sync/issues/1270

Any pointers would be greatly appreciated! (De-fanged the links since new user limit on forum)

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [3 February 2023 21:25 UTC](https://forum.cardano.org/t/metadata-hash-error-error-validating-stake-pool-metadata-but-it-consists-of-30706-bytes/113966/2 "2023-02-03T21:25:08Z")

</div>

what size has the metadata file? Should not be more than 512 bytes  
and how did u create it?  
try on server `wget https://preview.blockchainbill.lol/SNSOB.metadata.json` and check what is the size of the file

---

<div class="post-metadata">

**Author:** ![BlockchainBill0](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/blockchainbill0/32/61895_2.png) [@BlockchainBill0](https://forum.cardano.org/u/BlockchainBill0)\
**Post date:** [3 February 2023 21:39 UTC](https://forum.cardano.org/t/metadata-hash-error-error-validating-stake-pool-metadata-but-it-consists-of-30706-bytes/113966/3 "2023-02-03T21:39:35Z")

</div>

237 if I’m reading that correctly

```auto
Spider mode enabled. Check if remote file exists.
--2023-02-03 16:38:27-- https:// preview.blockchainbill.lol/SNSOB.metadata.json
Length: 237 [application/json]
Remote file exists.

```

here’s the json itself:

```auto
{
  "name": "THE SUN NEVER SETS ON A BADASS",
  "description": "Catastrophy support: (248) 434-5508",
  "ticker": "SNSOB",
  "homepage": "https://blockchainbill.lol",
  "extended": "https://preview.blockchainbill.lol/SNSOB.emeta.json"
}

```

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [3 February 2023 21:43 UTC](https://forum.cardano.org/t/metadata-hash-error-error-validating-stake-pool-metadata-but-it-consists-of-30706-bytes/113966/4 "2023-02-03T21:43:59Z")

</div>

Can u paste the transaction draft here ? Or the transaction was sent with success?

---

<div class="post-metadata">

**Author:** ![BlockchainBill0](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/blockchainbill0/32/61895_2.png) [@BlockchainBill0](https://forum.cardano.org/u/BlockchainBill0)\
**Post date:** [7 February 2023 20:48 UTC](https://forum.cardano.org/t/metadata-hash-error-error-validating-stake-pool-metadata-but-it-consists-of-30706-bytes/113966/6 "2023-02-07T20:48:23Z")

</div>

I was able to resolve the issue (with a lot of help from a few good friends).  
Root cause was a networking issue. I needed to update the hosts file on the rpi i was buildng the transaction on to point to the other rpi I was using to host the website.
