Compile error on Google Cloud Platform


#1

Hi,

I am testing a Google Cloud Platform hosted node vs Azure

I have both dashboards up and running and I am able to create users, faucet and transfer Ether.

On the Azure platform I am able to upload the SimpleStorage.sol contract and it compiles successfully but on the Google hosted dashboard I get a compile error as follows;

(line 5, column 41):
unexpected “\r”
expecting string character or end of string.

All contracts I upload or even pasted code in the Contract Editor gives the same compile error on Google.

The versions I have are as follows;

Azure : v0.3.5
Google : SMD v0.7.0 - Enterprise

Any help would be appreciated.

Synaptoman


#2

Hi @Synaptoman - try writing a contract in your desktop text editor (like nodepad) and pasting it into the contract editor. This a known bug which we have addressed in our upcoming release. Let me know if this works.


#3

Hi,

No, tried that. Whether I type it directly into the editor, Copy and Paste it from Notepad or import it, it still give the Compile error. What does work however, is if I type it over a single line like this.

contract SimpleStorage{uint storedData;function set(uint x){storedData = x;}function get() returns (uint retVal){return storedData;}}

What I find strange is that on the Azure Platform it works fine and the above behavior is only on Google Cloud.

When can we expect the new release?

Regards

Synaptoman


#4

Hi @Synaptoman - our next release (STRATO 4.2) is scheduled for Friday December 7. In the meantime, we would like to schedule a call with you to resolve these issues. Here’s the link to schedule a meeting.


#5

Hi,
I think I can wait for the new release on December 7.
Will it be rolled out to Azure, Google Cloud and AWS simultaneously?
I am testing all 3 of these platforms.
Is it automatically updated or do I have to do anything?
Regards


#6

Hi @Synaptoman - we plan to have Azure updated first, followed by AWS and GCP.

As an alternative to waiting, you can install a node locally to enjoy the most up-to-date version of the software by clicking here.

Due to the workload involved in updating the cloud offers, they will always be a week or two behind our official releases.


#7

Hi,

I have given up in frustration with both my Azure and Google Cloud Strato nodes and deleted the VM’s.

Could you please advise urgently when we can expect 4.2 on these two platforms.

Regards

Synaptoman


#9

Hi!
The 4.2 version is expected on the cloud marketplaces not earlier than end of the last week. In the meantime, you can spin up the VM (or multiple VMs) on any cloud of your choice and follow the steps to run STRATO manually using strato-getting-started (http://github.com/blockapps/strato-getting-started).

Best regards,
BlockApps team


#10

Hi,

I did that. A fresh Ubuntu18.04 VM on Google Cloud and followed the instructions per https://github.com/blockapps/strato-getting-started.
Identical behavior on Supply Chain Demo

Firefox - Network Error when attempting to fetch Resource
Edge and Chrome - Failed to Fetch

Here is the output when I launch Strato Single Node

Last login: Thu Dec 13 09:25:48 2018 from 74.125.17.97
[email protected]:~$ ls
strato-getting-started
[email protected]:~$ cd strato-getting-started
[email protected]:~/strato-getting-started$ ./strato --single
____ __ __ ___
/ __ )/ /___ / // | ____ ____ _____
/ __ / / __ / / /// /| | / __ / __ / /
/ /
/ / / /
/ / /
/ ,< / ___ |/ /
/ / /_/ (
)
/
//_/_//|// |/ ./ .//
/
/ /
/
*** Common Config ***
NODE_HOST: localhost
HTTP_PORT: 80
HTTPS_PORT: 443
ssl: false
sslCertFileType: crt
NODE_NAME: localhost
BLOC_URL: http://localhost/bloc/v2.2
BLOC_DOC_URL: http://localhost/docs/?url=/bloc/v2.2/swagger.json
STRATO_URL: http://localhost/strato-api/eth/v1.2
STRATO_DOC_URL: http://localhost/docs/?url=/strato-api/eth/v1.2/swagger.json
CIRRUS_URL: http://localhost/cirrus/search
APEX_URL: http://localhost/apex-api
authBasic: true
uiPassword: not set (using default)
STRATO_GS_MODE: 0
SMD_MODE: enterprise
EXT_STORAGE_S3_BUCKET: not set
EXT_STORAGE_S3_ACCESS_KEY_ID: not set
EXT_STORAGE_S3_SECRET_ACCESS_KEY: not set
Running single node with PBFT-blockstanbul
*** Single-node Config ***
blockstanbul: true
blockstanbulPrivateKey: *** (is set)
lazyBlocks: false
SINGLE_MODE: true
validators: [“63d5a9553c165dc9d01d519581868d290ba94ff9”]
*** Genesis Block ***
Genesis block is not set (using default)
Using the existing docker-compose.yml (to download the most recent stable version - remove t
he file and restart the script)
WARNING: The EXT_STORAGE_S3_BUCKET variable is not set. Defaulting to a blank string.
WARNING: The EXT_STORAGE_S3_ACCESS_KEY_ID variable is not set. Defaulting to a blank string.
WARNING: The EXT_STORAGE_S3_SECRET_ACCESS_KEY variable is not set. Defaulting to a blank str
ing.
WARNING: The loglevel variable is not set. Defaulting to a blank string.
WARNING: The PROCESS_MONITORING variable is not set. Defaulting to a blank string.
WARNING: The addBootnodes variable is not set. Defaulting to a blank string.
WARNING: The backupblocks variable is not set. Defaulting to a blank string.
WARNING: The blockstanbulBlockPeriodMs variable is not set. Defaulting to a blank string.
WARNING: The blockstanbulRoundPeriodS variable is not set. Defaulting to a blank string.
WARNING: The blockTime variable is not set. Defaulting to a blank string.
WARNING: The bootnode variable is not set. Defaulting to a blank string.
WARNING: The maxConn variable is not set. Defaulting to a blank string.
WARNING: The connectionTimeout variable is not set. Defaulting to a blank string.
WARNING: The debugFail variable is not set. Defaulting to a blank string.
WARNING: The evmDebugMode variable is not set. Defaulting to a blank string.
WARNING: The evmTraceMode variable is not set. Defaulting to a blank string.
WARNING: The genesis variable is not set. Defaulting to a blank string.
WARNING: The genesisBlock variable is not set. Defaulting to a blank string.
WARNING: The maxReturnedHeaders variable is not set. Defaulting to a blank string.
WARNING: The maxTxsPerBlock variable is not set. Defaulting to a blank string.
WARNING: The minBlockDifficulty variable is not set. Defaulting to a blank string.
WARNING: The miningAlgorithm variable is not set. Defaulting to a blank string.
WARNING: The miningThreads variable is not set. Defaulting to a blank string.
WARNING: The networkID variable is not set. Defaulting to a blank string.
WARNING: The numMinPeers variable is not set. Defaulting to a blank string.
WARNING: The redisBDBNumber variable is not set. Defaulting to a blank string.
WARNING: The seqDebugMode variable is not set. Defaulting to a blank string.
WARNING: The seqMaxEventsPerIter variable is not set. Defaulting to a blank string.
WARNING: The seqMaxUsPerIter variable is not set. Defaulting to a blank string.
WARNING: The useSyncMode variable is not set. Defaulting to a blank string.
WARNING: The OAUTH_CLIENT_ID variable is not set. Defaulting to a blank string.
WARNING: The OAUTH_CLIENT_SECRET variable is not set. Defaulting to a blank string.
WARNING: The OAUTH_DISCOVERY_URL variable is not set. Defaulting to a blank string.
WARNING: The OAUTH_JWT_VALIDATION_DISCOVERY_URL variable is not set. Defaulting to a blank s
tring.
strato_kafka_1 is up-to-date
strato_redis_1 is up-to-date
strato_zookeeper_1 is up-to-date
strato_docs_1 is up-to-date
strato_prometheus_1 is up-to-date
strato_postgres_1 is up-to-date
strato_vault-wrapper_1 is up-to-date
Recreating strato_strato_1 … done
Recreating strato_bloc_1 … done
Recreating strato_postgrest_1 … done
Recreating strato_apex_1 … done
Recreating strato_dappstore_1 … done
Recreating strato_smd_1 … done
Recreating strato_nginx_1 … done