Yes Because Chaincode with version 0 is already on Fabric with previous execution of script. You can only upgrade with Next version. As script does lot of bootstrapping activities, subsequent runs might give problem. You can either customize existing script file or create a new file to perform chain code related tasks (upgrade chain code, query etc) or add a new peer to blockchain.

    Mallikarjun Sarvepalli

    Written by

    Technology Entrepreneur ,Architect, Full stack engineer