geth --targetgaslimit not working? - ethereum

My contract creation requires 5633321 gas - more than default block gas limit. I was able to deploy on Ropsten network it few times ago: https://ropsten.etherscan.io/tx/0xe90e8920018f8b633620c731c68b63f3ce11dc19f59ddb49401c9e2c9cd1f8c2.
Now i want to deploy modified version with (probably updated) geth version right from Remix connected via to geth as web3 provider.
When running geth -testnet without mining arguments Remix IDE reports:
creation of ... Contract errored: exceeds block gas limit
I've tried to mine the transaction on myself with following:
$geth -rpc --nousb --ipcdisable --rpcaddr "127.0.0.1" --rpccorsdomain "*" --syncmode "fast" --rpcapi="db,personal,eth,net,web3,admin" --cache=2048 --testnet --targetgaslimit "5800000" --gasprice "0" --mine --verbosity 4
and i'm still getting the same Remix IDE error. Meanwhile in geth log i can see:
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=1.128698ms
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=585.129µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=585.857µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=586.8µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=572.322µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=556.395µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=586.05µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=591.607µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=593.849µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=558.404µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=559.293µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=725.188µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=698.486µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=593.769µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=705.957µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=886.8µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=993.159µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=612.746µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=594.387µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=551.487µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=643.653µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=583.393µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=588.098µs
DEBUG[07-20|12:32:53] VM returned with error err="contract creation code storage out of gas"
DEBUG[07-20|12:32:53] Executing EVM call finished runtime=573.148µs
DEBUG[07-20|12:32:55] Recalculated downloader QoS values rtt=18.543326462s confidence=0.984 ttl=56.512994931s
DEBUG[07-20|12:32:57] Revalidated node b=7 id=38e1eb00a922f0b7
DEBUG[07-20|12:32:59] Transaction pool status report executable=114 queued=0 stales=16
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=1.029656ms
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=882.256µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=567.244µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=665.415µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=499.283µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=840.601µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=449.378µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=404.487µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=885.109µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=648.022µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=731.928µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=649.778µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=485.086µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=472.941µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=724.858µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=547.733µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=1.340049ms
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=892.869µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=709.442µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=424.299µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=419.544µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=381.663µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=702.104µs
DEBUG[07-20|12:32:59] VM returned with error err="evm: execution reverted"
DEBUG[07-20|12:32:59] Executing EVM call finished runtime=444.091µs
BTW Remix IDE estimates gas requirement wrong:
{
"Creation": {
"codeDepositCost": "4072000",
"executionCost": "65552",
"totalCost": "4137552"
},
i've tried to deploy it with this value and failed:
https://ropsten.etherscan.io/tx/0x092199ab2a8b535aaed5a954ae549ff8dcb78f4985774f6ad2ea6c1143a7c501.
What should i do to deploy my contract on Ropsten network that requires more than default block gas?
PS. geth 1.8.10 synced with --fast, account is unlocked, account has enough ether.
PPS. As far as i understand block gas limit is agreed between miners and can't be set for single personal miner instance. So what i'm trying to do will just not work. But how did it happen that the block where my first contract deploy transaction was mined has almost 9.000.000 gas limit? https://ropsten.etherscan.io/block/3426903

We've been having issues with --targetgaslimit too. I just removed that flag and suddenly everything works fine. Considering this post is new, I'm glad someone else is encountering this bug as well. I'll create an issue on the go-ethereum repo on Github.

Related

Subscription Status: An error has occurred during report processing

I'm having difficulty sending auto generated e-mails via SSRS. I'm getting a vague error that states "An error has occurred during report processing.". I've detailed the full error below. Does anyone know some of the possible reasons why I would be getting this error?
Here are examples of the Shared Dataset Properties:
Here's the error I'm getting:
library!WindowsService_9!14c0!07/11/2019-10:18:01:: i INFO: Schedule 3d1ac939-3fb6-4313-9e04-bce6353a6825 executed at 07/11/2019 10:18:01.
schedule!WindowsService_9!14c0!07/11/2019-10:18:01:: Creating Time based subscription notification for subscription: a9d6e90a-84fc-439d-b715-49f7479cf69d
library!WindowsService_9!14c0!07/11/2019-10:18:01:: i INFO: Schedule 3d1ac939-3fb6-4313-9e04-bce6353a6825 execution completed at 07/11/2019 10:18:01.
library!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: AuthzInitializeContextFromSid: Win32 error: 1722, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: An exception has occurred in data set 'DS_Example'. Details: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: i INFO: DataPrefetch abort handler called for Report with ID=. Aborting data sources ...
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: , Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
--- End of inner exception stack trace ---;
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: w WARN: Data source ' Data source for shared dataset': Report processing has been aborted.
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: , Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
--- End of inner exception stack trace ---;
library!WindowsService_9!14c0!07/11/2019-10:18:01:: i INFO: Initializing EnableExecutionLogging to 'True' as specified in Server system properties.
notification!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: Error occured processing subscription a9d6e90a-84fc-439d-b715-49f7479cf69d: An error has occurred during report processing.
I ran the procedure that the data set reference. The data generates without any issues. I've created subscriptions for existing reports and they all executed without error. I've also check the connections to confirm that it wasn't a credential issue but it connected without error.
The subscription should generate a daily report to specified users.
The Win32 error 1722 is the key to this error message. It's an RPC server not available error. Microsoft has a KB article addressing this exact issue:
https://support.microsoft.com/en-us/help/842423/a-call-to-the-authzinitializecontextfromsid-api-function-fails-during
So it looks like the permissions needed to be granted for the service account database and table. The issue has been resolved!

MySQL as ADO NET Destination causing System.NullReferenceException

I am a newbie with SSDT. I am trying to import data from a SQL Server database to MYSQL with certain transformations.
If I use a flat file destination, it executes perfectly. As soon as I use the ADO NET destination pointing to MySQL database, it does not work. It works fine if I reverse the direction (putting data from MySQL to SQL Server).
Here is the stack trace of output:
SSIS package "E:\Project MMA\MPS Module\OLD Db Files\TestMigration\TestMigration\Package.dtsx" starting.
Information: 0x4004300A at Simple Test, SSIS.Pipeline: Validation phase is beginning.
Information: 0x4004300A at Simple Test, SSIS.Pipeline: Validation phase is beginning.
Information: 0x40043006 at Simple Test, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Simple Test, SSIS.Pipeline: Pre-Execute phase is beginning.
Error: 0xC0047062 at Simple Test, ADO NET Destination [2]: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.SqlServer.Dts.Pipeline.ADONETDestination.PreExecute()
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPreExecute(IDTSManagedComponentWrapper100 wrapper)
Error: 0xC004701A at Simple Test, SSIS.Pipeline: ADO NET Destination failed the pre-execute phase and returned error code 0x80004003.
Information: 0x4004300B at Simple Test, SSIS.Pipeline: "ADO NET Destination" wrote 0 rows.
Information: 0x40043009 at Simple Test, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: Simple Test
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "E:\Project MMA\MPS Module\OLD Db Files\TestMigration\TestMigration\Package.dtsx" finished: Failure.

SSIS :How can I set a delay time or a task for waiting a connection from a web service

I create a SSIS package using a web service task to get data from a soap web service but I often found error about a max connection pool reach.
I cannot fix a connection issue. So, I would like to know do a SSIS have a solution to set a delay time when I looping data or a solution to wait until a connection release or not?
Error:
"Error: 0xC002F304 at Web Service Task, Web Service Task: An error
occurred with the following error message:
"Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException:
The Web Service threw an error during method execution. The error is:
System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---> System.InvalidOperationException: Timeout
expired. The timeout period elapsed prior to obtaining a connection
from the pool. This may have occurred because all pooled connections
were in use and max pool size was reached. at
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
owningConnection) at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory) at
System.Data.SqlClient.SqlConnection.Open()"

ROLLLBACK and COMMIT transaction issue in SSIS package

I am trying to do a ROLLBACK and COMMIT transaction in SSIS package.The commit transaction is working fine.For the rollback transaction i inserted null value to a column which's data type is money.Here iam getting an error in DFT and Commit SQLtask.Please give me a solution,
I changed the CONTROLLFLOW properties--->TransactionRequired to Required
In DFT TransactionRequired---->Supported
Please help me friends
Thanks in advance
The errors are shown below
[Execute SQL Task] Error: Executing the query "Rollback tran" failed with the following error: "Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
[OLE DB Destination [2]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".
[OLE DB Destination [2]] Error: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[CustomerAmount] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value violated the integrity constraints for the column.".
[OLE DB Destination [2]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC020907D occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (2) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (15). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
You are missing two approaches with SSIS and transaction handling. If you are using SSIS native transactions (setting TransactionRequired=Required), you do not need to call Rollback. Transaction will be rolled back automatically if an error will occur or you deliberately set an error. Important thing to notion - transaction scope, i.e. when it will commit. My recommendation - declare transaction on dedicated Sequence Container; transaction will be committed when leaving this Sequence Container.
If you want to use transaction handling with SQL Commit and Rollback, you do not use TransactionRequired=Required. It is a special case for MS SQL, for details see The implementation of Transaction with out msdtc in the design pattern and TransactionOption in SSIS.

SSIS: Making an Informix transaction local doesn't work

For a single SSIS task I'm trying to make its transaction local.
To simplify things, I'm trying to do it like this:
create the new package
create just one Execute SQL Task
inside that task I delete some rows from destination table and issue a ROLLBACK:
DELETE FROM SOME_TABLE WHERE SOME_COLUMN = 'ABCD';
ROLLBACK;
I create a new Connection Manager for that task (IBM Informix OLE DB Provider) and make sure it passes Test Connection
after adding the task, I change its TransactionOption property to Required
after that, I change the RetainSameConnection property of Connection Manager to True
As I understand, the task should start a local transaction without using DTC. However, this is the output when I run the package:
SSIS package "Package1.dtsx" starting.
Information: 0x4001100A at ROLLBACK: Starting distributed transaction
for this container.
Error: 0xC001402C at Package1, Connection manager
"xxx#yyy": The SSIS Runtime has failed to
enlist the OLE DB connection in a distributed transaction with error
0x8004D01B "The Transaction Manager is not available.".
Error: 0xC0202009 at Package1, Connection manager
"xxx#yyy": SSIS Error Code DTS_E_OLEDBERROR.
An OLE DB error has occurred. Error code: 0x8004D01B.
Error: 0xC00291EC at ROLLBACK, Execute SQL Task: Failed to acquire
connection "xxx#yyy". Connection may not be
configured correctly or you may not have the right permissions on this
connection.
Task failed: ROLLBACK
Information: 0x4001100C at ROLLBACK: Aborting the current distributed
transaction.
Warning: 0x80019002 at Package1: SSIS Warning Code
DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but
the number of errors raised (1) reached the maximum allowed (1);
resulting in failure. This occurs when the number of errors reaches
the number specified in MaximumErrorCount. Change the
MaximumErrorCount or fix the errors. SSIS package "Package1.dtsx"
finished: Failure.
Does anyone know what's happening here?