locked
azure blockchain workbench Error Exception gas required exceeds allowance or always failing transaction RRS feed

  • Question

  • I deployed azure blockchain workbench manually by adding active directory then finalized thingsAfter deployment of json and solidity file and creating a contract there is an error for taking contract actions. that error was then identified by app insight and it was regarding gas limit etc.

    Error while estimating gas. Exception gas required exceeds allowance or always failing transaction

    Wednesday, February 19, 2020 4:34 PM

Answers

  • I deployed azure blockchain workbench manually by adding active directory then finalized thingsAfter deployment of json and solidity file and creating a contract there is an error for taking contract actions. that error was then identified by app insight and it was regarding gas limit etc.

    Error while estimating gas. Exception gas required exceeds allowance or always failing transaction

    Hi Muhammad:

    I found information specific to your error. Please see the following: Common errors seen in logs

    "Error while estimating gas. Exception Transaction execution error"

    This error is usually seen when the function has hit a revert/assert given the current state and input parameters. Please check your contract logic.

    In your case, there is likely some contract logic that needs to be investigated.

    ~Mike

    • Marked as answer by Muhammad.Khan Sunday, February 23, 2020 8:34 AM
    Thursday, February 20, 2020 9:55 PM

All replies

  • Hi Muhammad,

    There is a solution template that allows for a streamlined deployment for Azure Blockchain Workbench. Please see: Deploy Azure Blockchain Workbench

    Following the above solution template will result in a complete deployment. However, if you are needing help investigating your current deployment, please leverage this document: Azure Blockchain Workbench troubleshooting

    Regards,

    Mike


    Thursday, February 20, 2020 12:17 AM
  • Hi Muhammad,

    Since Blockchain Workbench is in a Public Preview period, there is no production support via Azure Support. I have been in contact with support engineering who took ownership of your case, and the next course of action is to step through this tutorial to identify root cause. In your case, can you provide additional details about your issue (screen capture, log data, etc.). This will be helpful. 

    I did want to point out the following though, as this is where the installation can get hung-up.

    Did you choose to deploy AD configurations manually as a prerequisite or run the Azure AD script post deployment?

    Also, are you an administrator for the Azure Subscription you are deploying this solution, as you will need elevated privledges to accomplish either the manual steps or run the configuration script.

    The authenticated user requires permissions to create Azure AD application registrations and grant delegated application permissions in the tenant. You may need to ask an administrator of the tenant to run the Azure AD configuration script or create a new tenant.


    Please detail the steps required to reproduce the issue you are encountering so that I can attempt to reproduce your issue.

    Thanl you,

    Mike


    Thursday, February 20, 2020 9:22 PM
  • I deployed azure blockchain workbench manually by adding active directory then finalized thingsAfter deployment of json and solidity file and creating a contract there is an error for taking contract actions. that error was then identified by app insight and it was regarding gas limit etc.

    Error while estimating gas. Exception gas required exceeds allowance or always failing transaction

    Hi Muhammad:

    I found information specific to your error. Please see the following: Common errors seen in logs

    "Error while estimating gas. Exception Transaction execution error"

    This error is usually seen when the function has hit a revert/assert given the current state and input parameters. Please check your contract logic.

    In your case, there is likely some contract logic that needs to be investigated.

    ~Mike

    • Marked as answer by Muhammad.Khan Sunday, February 23, 2020 8:34 AM
    Thursday, February 20, 2020 9:55 PM
  • HI Mike,

    thanks for pointing out I had tried deploying the samples from git hub also and it shows same errors so the logic of contract I reckon has nothing to do.

    Friday, February 21, 2020 1:09 PM
  • Yes while deploying Azure Blockchain Workbench I configure Azure AD manually and I am myself the administrator so kindly help.
    Friday, February 21, 2020 1:10 PM
  • Friday, February 21, 2020 3:04 PM
  • Hi Mike,

    I have deployed azure blockchain workbench and this time it was done by AD configuration script. yet again when I am deploying a sample application Simple Marketplace json and sol file in the workbench there is same error.

    Error
    2020-02-21 [03:01:17 PM]
    Error while estimating gas. Exception gas required exceeds allowance or always failing transaction
    eth-tx-submitter
    Host

     


    Friday, February 21, 2020 4:07 PM
  • Hi Muhammed,

    Did you see the workaround needed when running the configuration script. You had marked that as an answer in the following post: Azure blockchain workbench cloud shell active directory tenant login failed error

    Did the following resolve your issue?

    There were some recent changes to Azure Cloud Shell. While we are working on a solution, here is some workaround:

    Before running cd; Invoke-WebRequest -Uri https://aka.ms/workbenchAADSetupScript -OutFile workbenchAADSetupScript.ps1; ./workbenchAADSetupScript.ps1 -SubscriptionID *** -ResourceGroupName *** -DeploymentId ***

    Run Remove-Item -Path Function:\Connect-AzureAD in your Azure Cloud Shell session.


    Please let me know if you no longer are experiencing this issue.

    Regards,

    Mike


    Friday, February 21, 2020 6:40 PM
  • Thanks Mike;

    I tried this time and issue was resolved it appears to be some issue with contract logic you were right.

    Sunday, February 23, 2020 8:34 AM
  • Awesome! Thank you for updating this thread with the resolution. 

    Regards,

    Mike

    Sunday, February 23, 2020 6:39 PM