input-output-hk / cardano-explorer

Backend solution powering the cardano-explorer. :warning: See disclaimer below. :warning:
20 stars 11 forks source link

fail to build cardano-tx-submit-webapi. #279

Open johndoe0x opened 4 years ago

johndoe0x commented 4 years ago

OS : ubuntu-bionic Enviroment : docker container

cabal version : cabal-install version 3.0.1.0 compiled using version 3.0.2.0 of the Cabal library

ghc version : The Glorious Glasgow Haskell Compilation System, version 8.6.5

git repository head

commit ab9333ecda70f029d161642dcfd3ae8ae49d77be (HEAD -> master, origin/master, origin/HEAD)
Merge: 61c2a15 1ee761e
Author: Erik de Castro Lopo <erikd@mega-nerd.com>
Date:   Thu Feb 27 09:53:44 2020 +1100

    Merge pull request #272 from input-output-hk/dcoutts/update-deps

     Update to the latest consensus and ledger lib versions.

running command below.

cabal run cardano-tx-submit-webapi -- \
    --config config/tx-submit-mainnet-config.yaml \
    --genesis-file ../cardano-node/configuration/mainnet-genesis.json \
    --socket-path ../cardano-node/state-node-mainnet/node.socket \
    --port 8101

failure log below.

Configuring library for katip-0.8.3.0..
Preprocessing library for katip-0.8.3.0..
Building library for katip-0.8.3.0..
[1 of 5] Compiling Katip.Core       ( src/Katip/Core.hs, dist/build/Katip/Core.o )

src/Katip/Core.hs:904:3: error:
    `askUnliftIO' is not a (visible) method of class `MonadUnliftIO'
    |
904 |   askUnliftIO = KatipT $
    |   ^^^^^^^^^^^
erikd commented 4 years ago

This repo has been split with the database parts being moved to https://github.com/input-output-hk/cardano-db-sync/ and the tx-submit component being moved to https://github.com/input-output-hk/cardano-rest .

This repo will be archived soon. ~Transferring this issue to cardano-rest.~ For some reason I am unable to transfer it. I can only suggest closing it and reopen it over there.

johndoe0x commented 4 years ago

@erikd thanks for the reply. I need running node for (explore block + tx feature) & (send tx feature). Which repos I have to settle up?

johndoe0x commented 4 years ago

@erikd I have checked both repos you mentioned. Those have not official release. I think we'd better find solution based on this repo.

erikd commented 4 years ago

My understanding is that this week's release will be from the new repos.

If you really want to continue on this repo, then adding https://github.com/input-output-hk/cardano-db-sync/blob/master/cabal.project#L7-L9 will probably get it building.

johndoe0x commented 4 years ago

@erikd Thanks for you kind advice.

you mean that

constraints:
    brick >= 0.47 && < 0.50
  , unliftio-core < 0.2.0.0

part have to be added in repo https://github.com/input-output-hk/cardano-explorer in cabal.project?

johndoe0x commented 4 years ago

@erikd I just have tried based on you advice. But below message shown.

cabal: Failed to build cardano-explorer-db-1.3.0
johndoe0x commented 4 years ago

this is cabla.project in https://github.com/input-output-hk/cardano-explorer repo at my local.

packages:
  cardano-explorer-db
  cardano-explorer-db/test
  cardano-explorer-node
  cardano-explorer-webapi
  cardano-tx-submit

constraints:
    brick >= 0.47 && < 0.50
  , unliftio-core < 0.2.0.0

package cardano-explorer-db
  ghc-options: -Wall -Werror -fwarn-redundant-constraints

package cardano-explorer-node
  ghc-options: -Wall -Werror -fwarn-redundant-constraints

package cardano-explorer-webapi
  ghc-options: -Wall -Werror -fwarn-redundant-constraints

package cardano-tx-submit
  ghc-options: -Wall -Werror -fwarn-redundant-constraints

package cardano-binary
  tests: False

package cardano-crypto
  tests: False

package cardano-crypto-class
  tests: False

package cardano-crypto-wrapper
  tests: False

package cardano-ledger
  tests: False

package cardano-prelude
  tests: False

package cardano-shell
  tests: False

package cardano-sl-x509
  tests: False

package contra-tracer
  tests: False

package iohk-monitoring
  tests: False

package typed-protocols-cbor
.....
erikd commented 4 years ago

The latest commit https://github.com/input-output-hk/cardano-explorer/commit/711f285aa4073fb44a0a0d8863cd7d047955e567 might fix this issue.