Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explorer does not work with Hyperledger Fabric v3.0.0 and FabricGateway.ts file should be corrected/updated #512

Open
umitkilic opened this issue Nov 23, 2024 · 0 comments

Comments

@umitkilic
Copy link

What happened?

There is a problem about using Hyperledger Fabric v3.0.0 with Explorer. It does not show chaincodes and transactions. It looks like https://github.com/hyperledger-labs/blockchain-explorer/blob/main/app/platform/fabric/gateway/FabricGateway.ts file should be updated to be compatible with HLFv3.0.0. When I check the logs on the explorer container with docker logs CONTAINER command, it shows the error:

[2024-11-21T12:02:03.592] [ERROR] Sync - <<<<<<<<<<<<<<<<<<<<<<<<<< Synchronizer Error >>>>>>>>>>>>>>>>>>>>>

[2024-11-21T12:02:03.592] [ERROR] Sync - Error: error in simulation: failed to execute transaction d00a5575f86467db94ce1ba5e0dec11f0e837fd23b41c0ccc526128ee7c0a93e: could not launch chaincode lscc.syscc: error building chaincode: error building image: failed to get chaincode package for external build: could not get legacy chaincode package 'lscc.syscc': open /var/hyperledger/production/chaincodes/lscc.syscc: no such file or directory

The start point of the error is, I think, async queryInstantiatedChaincodes(channelName) function. There is a problem with the lifecycle of chaincode.

What did you expect to happen?


How can we reproduce it (as minimally and precisely as possible)?

async queryInstantiatedChaincodes(channelName) function in FabricGateway.ts file should be updated.

Anything else we need to know?

No response

OS version

# On Linux:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"

NAME="Ubuntu"

VERSION_ID="22.04"

VERSION="22.04.5 LTS (Jammy Jellyfish)"

VERSION_CODENAME=jammy

ID=ubuntu

ID_LIKE=debian

HOME_URL="https://www.ubuntu.com/"

SUPPORT_URL="https://help.ubuntu.com/"

BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"

PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"

UBUNTU_CODENAME=jammy
$ uname -a
Linux umit 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
@umitkilic umitkilic changed the title Explorer does not work with Hyperledger Fabric v.30.0.0 and FabricGateway.ts file should be corrected/updated Explorer does not work with Hyperledger Fabric v3.0.0 and FabricGateway.ts file should be corrected/updated Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant