<p>The problem here was that iohk updated the <code>2022.8.16</code> image tag with new configurations but without creating a new tag. If someone gets the latest version of that image then using <code>NETWORK=preprod</code> should work.</p>

CC BY-SA 4.0
2022-08-26T17:42:23.533Z
2022-08-26T17:42:23.533Z
melchoir55
<p>We use the prescribed docker compose from iohk. Here is the cardano-wallet excerpt:</p>
<pre><code>cardano-wallet:
    image: inputoutput/cardano-wallet:2022.8.16
    container_name: cardano_wallet
    volumes:
      - wallet-testnet-db:/wallet-db
      - node-ipc:/ipc
    ports:
      - 8091:8090
    entrypoint: []
    command: bash -c &quot;
        ([[ $$NETWORK == \&quot;mainnet\&quot; ]] &amp;&amp; $$CMD --mainnet) ||
        ($$CMD --testnet /config/$$NETWORK/genesis-byron.json)
      &quot;
    environment:
      CMD: &quot;cardano-wallet serve --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0&quot;
      NETWORK: &quot;testnet&quot;
    restart: on-failure
</code></pre>
<p>Now that we are connecting our node to <code>pre-production</code>, we are getting the following error:</p>
<pre><code>cardano_wallet    | cardano-wallet: ExceptionInLinkedThread (ThreadId 17) (HandshakeError (Refused NodeToClientV_13 &quot;version data mismatch: NodeToClientVersionData {networkMagic = NetworkMagic {unNetworkMagic = 1}} /= NodeToClientVersionData {networkMagic = NetworkMagic {unNetworkMagic = 1097911063}}&quot;))
</code></pre>
<p>This makes sense to me. It looks like the wallet is trying to connect to the old testnet using the old network magic <code>1097911063</code>. The problem is that it isn't clear how to get it to connect to preprod instead.</p>

<wallet><docker>
Connect cardano-wallet to pre-production testnet
# Connect cardano-wallet to pre-production testnet

(Asked by: username_0 on 2022-08-25)

We use the prescribed docker compose from iohk. Here is the cardano-wallet excerpt:
cardano-wallet:
    image: inputoutput/cardano-wallet:2022.8.16
    container_name: cardano_wallet
    volumes:
      - wallet-testnet-db:/wallet-db
      - node-ipc:/ipc
    ports:
      - 8091:8090
    entrypoint: []
    command: bash -c "
        ([[ $$NETWORK == \"mainnet\" ]] && $$CMD --mainnet) ||
        ($$CMD --testnet /config/$$NETWORK/genesis-byron.json)
      "
    environment:
      CMD: "cardano-wallet serve --node-socket /ipc/node.socket --database /wallet-db --listen-address 0.0.0.0"
      NETWORK: "testnet"
    restart: on-failure

Now that we are connecting our node to pre-production, we are getting the following error:
cardano_wallet    | cardano-wallet: ExceptionInLinkedThread (ThreadId 17) (HandshakeError (Refused NodeToClientV_13 "version data mismatch: NodeToClientVersionData {networkMagic = NetworkMagic {unNetworkMagic = 1}} /= NodeToClientVersionData {networkMagic = NetworkMagic {unNetworkMagic = 1097911063}}"))

This makes sense to me. It looks like the wallet is trying to connect to the old testnet using the old network magic 1097911063. The problem is that it isn't clear how to get it to connect to preprod instead.

**Tags:** wallet, docker

---

## 1 answers

### Answer by username_0 on 2022-08-26. Score: 1

The problem here was that iohk updated the `2022.8.16` image tag with new configurations but without creating a new tag. If someone gets the latest version of that image then using `NETWORK=preprod` should work.


---

