-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
peer: error validating proposal: access denied: channel [] creator org unknown, creator is malformed #4358
Comments
error description seems to be coming from: fabric/core/endorser/msgvalidation.go Line 173 in aa81271
|
I found the issue by myself, pretty annoying: tells how to fetch the configuration: ` you can issue all of these commands at onceexport PATH=${PWD}/../bin:$PATH
|
see hyperledger#4358 Signed-off-by: rlfnb <rlfnb@users.noreply.github.com>
see #4358 Signed-off-by: rlfnb <rlfnb@users.noreply.github.com>
I am facing similar issue when I update an API client (developed in NodeJS) that is running perfectly fine with The network is running Fabric v. 2.5.3. When I try to run a Checking the peer logs it seems to be something related to PEM decoding while trying to decode this serialized-identity.
I have already checked the So I can say that I don't have a clue anymore where it might have a misconfiguration or what exactly to debug, look or check. |
Ok, I have figured out what was wrong: I was trying to keep compatibility with the "old" JSON "wallet" format. Here is the code snippet for those who want to keep the compatibility back with the "User.id" JSON wallet file format (assuming 2 env vars: one to configure the wallet path and another the identity name to be used to transact, plus using more or less the same code structure used into const walletPath = process.env.WALLET_PATH || '/opt/node/wallet';
const identity = process.env.IDENTITY || 'Admin';
const walletFile = fs.readFileSync(`${walletPath}/${identity}.id`, 'utf8');
const wallet = JSON.parse(walletFile);
const newIdentity: any = async () => {
const mspId = wallet.mspId;
const credentials = Buffer.from(wallet.credentials.certificate); // here is the "gotcha"
return { mspId, credentials };
}
const newSigner: any = async () => {
const privateKey = crypto.createPrivateKey(wallet.credentials.privateKey);
return signers.newPrivateKeySigner(privateKey);
} |
Hello @rlfnb , I tried, but couldn't recreate issue, with fabric v2.5.6 using fabric-samples. I see its script still uses double quotes for If this bug already fixed, @denyeart please close the issue and let me know if I can contribute on any |
Double quotes have caused issues in some environments, e.g. see hyperledger/fabric#4358 Signed-off-by: David Enyeart <enyeart@us.ibm.com>
Double quotes are problematic in some environments, see hyperledger#4358. Signed-off-by: David Enyeart <enyeart@us.ibm.com>
I've updated the rest of the doc tutorials to remove the double quotes for CORE_PEER_LOCALMSPID, see |
Double quotes have caused issues in some environments, e.g. see hyperledger/fabric#4358 Signed-off-by: David Enyeart <enyeart@us.ibm.com>
Double quotes are problematic in some environments, see #4358. Signed-off-by: David Enyeart <enyeart@us.ibm.com>
Double quotes have caused issues in some environments, e.g. see hyperledger/fabric#4358 Signed-off-by: David Enyeart <enyeart@us.ibm.com>
Description
https://stackoverflow.com/questions/76480170/validating-proposal-access-denied-channel-creator-org-unknown-creator-is-m
Seems to be a newly introduced thing, maybe an additional field in the channel config is missing?
Basically, I followed the procedure here:
https://hyperledgendary.github.io/unstable-fabric-docs/create_channel/create_channel_test_net.html#step-two-create-the-application-channel
2023-08-10 07:00:27.002 UTC 0001 INFO [channelCmd] InitCmdFactory -> Endorser and orderer connections initialized Error: proposal failed (err: rpc error: code = Unknown desc = error validating proposal: access denied: channel [] creator org unknown, creator is malformed)
The output indicates, setup of TLS and so on is ok?
Steps to reproduce
$ podman run --rm --env-file=peercli.env -v $(pwd):/opt docker.io/hyperledger/fabric-tools peer channel join -o orderer.example.com:7050 -b /opt/channel-artifacts/blue.pb
2023-08-10 07:00:27.002 UTC 0001 INFO [channelCmd] InitCmdFactory -> Endorser and orderer connections initialized
Error: proposal failed (err: rpc error: code = Unknown desc = error validating proposal: access denied: channel [] creator org unknown, creator is malformed)
The text was updated successfully, but these errors were encountered: