hyperledger-labs/blockchain-explorer

could not launch chaincode lscc.syscc

Pheglovog opened this issue · 1 comments

What happened?

I meet an error when starting explorer:
image
What's more, I can open the web, but can't see any data
image

In Discord, I find some people facing the same question,I think maybe it's a bug?
https://discord.com/channels/905194001349627914/1300384544566022175

What did you expect to happen?

I want to solve this problem

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

config.json

{
	"network-configs": {
		"store-network": {
			"name": "Store Network",
			"profile": "./connection-profile/store-network.json"
		}
	},
	"license": "Apache-2.0"
}

store-network.json

`{
	"name": "store-network",
	"version": "1.0.0",
	"client": {
		"tlsEnable": true,
		"adminCredential": {
			"id": "exploreradmin",
			"password": "exploreradminpw"
		},
		"caCredential": {
			"id": "admin",
			"password": "adminpw"
		},
		"enableAuthentication": true,
		"organization": "StoreMSP",
		"connection": {
			"timeout": {
				"peer": {
					"endorser": "300"
				},
				"orderer": "300"
			}
		}
	},
	"channels": {
		"carchannel": {
			"peers": {
				"sailer1.store.carlife.com": {},
				"sailer2.store.carlife.com": {}
			},
			"connection": {
				"timeout": {
					"peer": {
						"endorser": "6000",
						"eventHub": "6000",
						"eventReg": "6000"
					}
				}
			}		
		}
	},
	"organizations": {
		"StoreMSP": {
			"mspid": "StoreMSP",
            "peers": ["sailer1.store.carlife.com", "sailer2.store.carlife.com"],
			"certificateAuthorities": ["ca0"]
		}
	},
	"peers": {
		"sailer1.store.carlife.com": {
			"tlsCACerts": {
			  "path":
				"/tmp/crypto/store.carlife.com/peers/sailer1.store.carlife.com/tls/ca.crt"
			},
			"url": "grpcs://sailer1.store.carlife.com:7057"
		},
		"sailer2.store.carlife.com": {
			"tlsCACerts": {
			  "path":
				"/tmp/crypto/store.carlife.com/peers/sailer2.store.carlife.com/tls/ca.crt"
			},
			"url": "grpcs://sailer2.store.carlife.com:7058"
		}
	},
	"certificateAuthorities": {
		"ca0": {
			"url": "https://ca_store:17053",
			"httpOptions": {
				"verify": false
			},
			"tlsCACerts": {
				"path": "/tmp/crypto/store.carlife.com/ca/ca.store.carlife.com-cert.pem"
			},
			"caName": "ca_store"
		}
	}
}`

Anything else we need to know?

In samrtcontract image:
image

In peer and order:
image

I use the legacy way to deploy chaincode:
https://hyperledger-fabric.readthedocs.io/en/release-2.5/deploy_chaincode.html#package-the-smart-contract

OS version

# On Linux:
$ cat /etc/os-release

NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
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"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

$ uname -a
`Linux DESKTOP-SL4G7T4 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux`

</details>

I have fixed it,
If we want to use fabric 3.0, we need deploy chaincode as a service.
if we want to use legacy way to deploy chaincode, 2.5.9 or lower version should be used