Facing Error using truffle with Azure Blockchain Service

%3CLINGO-SUB%20id%3D%22lingo-sub-753482%22%20slang%3D%22en-US%22%3EFacing%20Error%20using%20truffle%20with%20Azure%20Blockchain%20Service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-753482%22%20slang%3D%22en-US%22%3E%3CDIV%3E%3CDIV%20class%3D%22nH%22%3E%3CDIV%20class%3D%22nH%22%3E%3CDIV%20class%3D%22nH%20bkL%22%3E%3CDIV%20class%3D%22no%22%3E%3CDIV%20class%3D%22nH%20bkK%20nn%22%3E%3CDIV%20class%3D%22nH%22%3E%3CDIV%20class%3D%22nH%22%3E%3CDIV%20class%3D%22nH%20ar4%20z%22%3E%3CDIV%3E%3CDIV%20class%3D%22aeH%22%3E%3CDIV%20class%3D%22G-atb%20D%20E%20inboxsdk__thread_toolbar_parent%22%3E%3CDIV%20class%3D%22iH%20bzn%22%3E%3CDIV%20class%3D%22G-tF%22%3E%3CDIV%20class%3D%22G-Ni%20G-aE%20J-J5-Ji%22%3E%3CDIV%20class%3D%22T-I%20J-J5-Ji%20lR%20T-I-ax7%20%20T-I-Js-IF%20mA%22%3E%3CDIV%20class%3D%22asa%22%3E%3CDIV%20class%3D%22ar8%20T-I-J3%20J-J5-Ji%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22T-I%20J-J5-Ji%20nN%20T-I-ax7%20T-I-Js-Gs%20T-I-Js-IF%20mA%22%3E%3CDIV%20class%3D%22asa%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22AO%22%3E%3CDIV%20class%3D%22Tm%20aeJ%22%3E%3CDIV%20class%3D%22aeF%22%3E%3CDIV%20class%3D%22nH%22%3E%3CDIV%20class%3D%22nH%22%3E%3CDIV%20class%3D%22nH%20g%20id%22%3E%3CTABLE%20cellpadding%3D%220%22%3E%3CTBODY%3E%3CTR%3E%3CTD%3E%3CDIV%20class%3D%22nH%20if%22%3E%3CDIV%20class%3D%22nH%20aHU%22%3E%3CDIV%20class%3D%22nH%20hx%22%3E%3CDIV%20class%3D%22nH%22%3E%3CDIV%20class%3D%22h7%20ie%20nH%20oy8Mbf%22%3E%3CDIV%20class%3D%22Bk%22%3E%3CDIV%20class%3D%22G3%20G2%22%3E%3CDIV%3E%3CDIV%3E%3CDIV%20class%3D%22adn%20ads%22%3E%3CDIV%20class%3D%22gs%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22ii%20gt%22%3E%3CDIV%20class%3D%22a3s%20aXjCH%20%22%3E%3CDIV%3E%3CDIV%3EI%20am%20trying%20to%20setup%20Azure%20Blockchain%20Service%20using%3CSPAN%3E%26nbsp%3Bthe%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eguide%20given%20on%20this%20page%3A%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Flc3.**bleep**rk.com%2Fr%2Fe%2FloXn2f3lpA9UbE0v%3Fr%3Dhttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fblockchain%2Fservice%2Fsend-transaction%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fblockchain%2Fservice%2Fsend-transaction%3C%2FA%3E.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EI%20have%20followed%20all%20the%20steps%20given%20on%20the%20page%2C%20but%20when%20I%20try%20to%20run%20this%20command%3A%26nbsp%3B%3C%2FDIV%3E%3CDIV%3Etruffle%20migrate%20--network%20defaultnode%3C%2FDIV%3E%3CDIV%3EI%20get%20an%20error%20which%20is%20given%20below.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EKindly%20guide%20me%20regarding%20the%20same.%20I%20am%20unable%20to%20find%20the%20solution.%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CDIV%20class%3D%22m_5734652470587765978gmail_signature%22%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FTD%3E%3CTD%3E%3CDIV%20class%3D%22Bt%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22nH%20bno%20adC%22%3E%3CDIV%20class%3D%22nH%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22y4%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22nH%20bAw%20nn%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22aLF-aPX%20aLF-aPX-aLK-aPD-JE%20aLF-aPX-a9l-ax4%20aLF-aPX-bhP%20aLF-aPX-axU%22%3E%3CDIV%20class%3D%22aLF-aPX-aPk%22%3E%3CDIV%20class%3D%22aLF-aPX-aPk-aMh%20aLF-aPX-Jq-aPn%22%3E%3CDIV%20class%3D%22aLF-aPX-bhI%22%3E%3CDIV%20class%3D%22aLF-aPX-K0-Jw%22%3E%3CDIV%20class%3D%22aLF-aPX-K0-aPH%20aLF-aPX-aPH%22%3E%3CDIV%20class%3D%22aLF-aPX-K0%22%3E%3CDIV%20class%3D%22aLF-aPX-K0-aOg%20aLF-aPX-Jq-aPn%22%3E%3CDIV%20class%3D%22aLF-aPX-K0-P6%20aLF-aPX-av4-aPV%22%3E%3CDIV%20class%3D%22aLF-aPX-K0-Jz%22%3E%3CPRE%3ECompiling%20your%20contracts...%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%26gt%3B%20Everything%20is%20up%20to%20date%2C%20there%20is%20nothing%20to%20compile.%0A%0A%0AStarting%20migrations...%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%26gt%3B%20Network%20name%3A%20%20%20%20'defaultnode'%0A%26gt%3B%20Network%20id%3A%20%20%20%20%20%20682%0A%26gt%3B%20Block%20gas%20limit%3A%200x722cf144%0A%0A%0A1_initial_migration.js%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%0A%20%20%20Deploying%20'Migrations'%0A%20%20%20----------------------%0A%20%20%20%26gt%3B%20transaction%20hash%3A%20%20%20%200x9c756ef411befd6a6f75e2adca705fe8ec5dc128d4e3c59912a881976dcf36cd%0A%20%20%20%26gt%3B%20Blocks%3A%202%20%20%20%20%20%20%20%20%20%20%20%20Seconds%3A%208%0A%20%20%20%26gt%3B%20contract%20address%3A%20%20%20%200x38b66880AFF8f657583130357Adb8d523F7d749B%0A%20%20%20%26gt%3B%20block%20number%3A%20%20%20%20%20%20%20%202762%0A%20%20%20%26gt%3B%20block%20timestamp%3A%20%20%20%20%201563024838%0A%20%20%20%26gt%3B%20account%3A%20%20%20%20%20%20%20%20%20%20%20%20%200xFDA31b47E847270944adeaE34101F22482Df9aC7%0A%20%20%20%26gt%3B%20balance%3A%20%20%20%20%20%20%20%20%20%20%20%20%200%0A%20%20%20%26gt%3B%20gas%20used%3A%20%20%20%20%20%20%20%20%20%20%20%20261393%0A%20%20%20%26gt%3B%20gas%20price%3A%20%20%20%20%20%20%20%20%20%20%200%20gwei%0A%20%20%20%26gt%3B%20value%20sent%3A%20%20%20%20%20%20%20%20%20%200%20ETH%0A%20%20%20%26gt%3B%20total%20cost%3A%20%20%20%20%20%20%20%20%20%200%20ETH%0A%0A%0A%20%20%20%E2%A0%BC%20Saving%20migration%20to%20chain.Error%3A%20Error%3A%20StatusError%3A%20Transaction%3A%200xc6ed446be50293e27bdea682f56f55070056dc6cafdf4b8b82a5418a91e1280e%20exited%20with%20an%20error%20(status%200)%20after%20consuming%20all%20gas.%0A%20%20%20%20%20Please%20check%20that%20the%20transaction%3A%0A%20%20%20%20%20-%20satisfies%20all%20conditions%20set%20by%20Solidity%20%60assert%60%20statements.%0A%20%20%20%20%20-%20has%20enough%20gas%20to%20execute%20the%20full%20transaction.%0A%20%20%20%20%20-%20does%20not%20trigger%20an%20invalid%20opcode%20by%20other%20means%20(ex%3A%20accessing%20an%20array%20out%20of%20bounds).%0A%20%20%20%20at%20Object.run%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Ftruffle%2Fbuild%2Fwebpack%3A%2Fpackages%2Ftruffle-migrate%2Findex.js%3A92%3A1)%0A%20%20%20%20at%20processTicksAndRejections%20(internal%2Fprocess%2Ftask_queues.js%3A86%3A5)%0ATruffle%20v5.0.26%20(core%3A%205.0.26)%0ANode%20v11.15.0%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1347988%22%20slang%3D%22en-US%22%3ERe%3A%20Facing%20Error%20using%20truffle%20with%20Azure%20Blockchain%20Service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1347988%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F375874%22%20target%3D%22_blank%22%3E%40geeteshgupta%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20having%20the%20same%20error%20and%20worked%20downgrading%20the%20truffle%20version%20to%20v5.05%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Enpm%20i%20-g%20truffle%40v5.0.5%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor
 
 
I am trying to setup Azure Blockchain Service using the guide given on this page: https://docs.microsoft.com/en-us/azure/blockchain/service/send-transaction.
 
I have followed all the steps given on the page, but when I try to run this command: 
truffle migrate --network defaultnode
I get an error which is given below.
 
Kindly guide me regarding the same. I am unable to find the solution.

 
 
 
 
 
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.


Starting migrations...
======================
> Network name:    'defaultnode'
> Network id:      682
> Block gas limit: 0x722cf144


1_initial_migration.js
======================

   Deploying 'Migrations'
   ----------------------
   > transaction hash:    0x9c756ef411befd6a6f75e2adca705fe8ec5dc128d4e3c59912a881976dcf36cd
   > Blocks: 2            Seconds: 8
   > contract address:    0x38b66880AFF8f657583130357Adb8d523F7d749B
   > block number:        2762
   > block timestamp:     1563024838
   > account:             0xFDA31b47E847270944adeaE34101F22482Df9aC7
   > balance:             0
   > gas used:            261393
   > gas price:           0 gwei
   > value sent:          0 ETH
   > total cost:          0 ETH


   ⠼ Saving migration to chain.Error: Error: StatusError: Transaction: 0xc6ed446be50293e27bdea682f56f55070056dc6cafdf4b8b82a5418a91e1280e exited with an error (status 0) after consuming all gas.
     Please check that the transaction:
     - satisfies all conditions set by Solidity `assert` statements.
     - has enough gas to execute the full transaction.
     - does not trigger an invalid opcode by other means (ex: accessing an array out of bounds).
    at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:92:1)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
Truffle v5.0.26 (core: 5.0.26)
Node v11.15.0
1 Reply

Hi @geeteshgupta,

 

I was having the same error and worked downgrading the truffle version to v5.05

 

npm i -g truffle@v5.0.5