Giter Site home page Giter Site logo

Comments (14)

Kuzirashi avatar Kuzirashi commented on July 17, 2024
  1. Did you run npm run start-test-backend in ew-utils-demo to start backend service (this information was missing in the guide)?

  2. After starting backend, when you go to http://0.0.0.0:3030 or http://localhost:3030 or http://127.0.0.1:3030 do you see following text:

Cannot GET /

?

If answer to Question 2 is yes, then it means backend should be working correctly.

I've updated the instructions how to deploy release B to Volta. Please check it out, they are more detailed now.

I've just cloned ew-utils-demo and tried the instructions (updated them as I worked) and I managed to deploy without errors:
Screenshot from 2019-09-11 19-39-27
Screenshot from 2019-09-11 19-39-32

Regarding your questions:

What should be the value of API_BASE_URL?

It should be address where npm run start-test-backend command is running a backend server. This URL should be accessible in browser. For example localhost:3030 should return:

Cannot GET /

Are there any other additional configurations beyond connection-config.json?

There is configuration of ew-origin-ui, a need to change .env.dev or .env.prod depending what you're using. More info added to the wiki page.

I am using the default accounts already defined under config/contractConfig.json for Volta deployment. Is that fine?

Yes, they are fine. If you find yourself missing some Volta tokens for gas use the faucet: https://voltafaucet.energyweb.org

cc @oxfordssherwanic

from origin.

oxfordssherwanic avatar oxfordssherwanic commented on July 17, 2024

Thank you. How many tokens/min gas I should have to bring up Origin UI.

from origin.

Kuzirashi avatar Kuzirashi commented on July 17, 2024

@oxfordssherwanic

Less than 1 token should be enough for deploying Origin multiple times, while faucet gives 1 token.

It's unlikely that you will hit problems with not having enough tokens. The gas price is low on chain.

from origin.

oxfordssherwanic avatar oxfordssherwanic commented on July 17, 2024

Ok. thank you. The :3030 URL is working for me in the browser, the account has enough tokens, but I still see the attached error. Could you please help what else could be causing the issue and how do I troubleshoot it. The project was working fine when I had it local.
ERROR-VOLTA
ERROR-VOLTA-SCREEN
TOKENS_EWF
volta-3030

from origin.

oxfordssherwanic avatar oxfordssherwanic commented on July 17, 2024

I am using the default accounts that come with configuration. Should those be diffferent?

from origin.

oxfordssherwanic avatar oxfordssherwanic commented on July 17, 2024

Please see the log errors.
VOLTA_ERROR.docx

from origin.

Kuzirashi avatar Kuzirashi commented on July 17, 2024

Did you choose local Ganache RPC address in MetaMask?

For example you should have localhost:8545 if you run local Ganache. If problem persists try to switch in MetaMask from local network to other network for example main net and then back to local, because MetaMask is sometimes buggy and choosing different network and reselecting local network resets it and it should work.

@oxfordssherwanic

from origin.

Kuzirashi avatar Kuzirashi commented on July 17, 2024

Also, I want to make sure you're running correct versions. Could you share output of these commands ran in ew-utils-demo directory?

git status
git diff
git log
node -v
npm -v

cc @oxfordssherwanic

from origin.

oxfordssherwanic avatar oxfordssherwanic commented on July 17, 2024

Hi.
ew-utils-demo-master$ git status
fatal: Not a git repository (or any of the parent directories): .git
ew-utils-demo-master$ git diff
Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index]
ew-utils-demo-master$ git log
fatal: Not a git repository (or any of the parent directories): .git
ew-utils-demo-master$ node -v
v10.9.0
ew-utils-demo-master$ npm -v
6.2.0
ew-utils-demo-master$

It was copied as zip from GIT. It's fully functional locally.

from origin.

oxfordssherwanic avatar oxfordssherwanic commented on July 17, 2024

Did you choose local Ganache RPC address in MetaMask?
Response: No I completely shut down local Ganache, If I start it, then contracts deploy on local despite of providing the URL of Volta.

from origin.

oxfordssherwanic avatar oxfordssherwanic commented on July 17, 2024

I keep on getting attached VOLTA error. Should I change anything for it?

from origin.

Kuzirashi avatar Kuzirashi commented on July 17, 2024

Hello, commands: git diff, git log, git status are very important so I can see the changes you have in your setup and also verify that you're using latest versions.

Could you please start the process from inside directory which contains Git directory (it is recommended way) instead of copying it from ZIP?


No I completely shut down local Ganache, If I start it, then contracts deploy on local despite of providing the URL of Volta.

This looks like a sign that not everything is configured.

I keep on getting attached VOLTA error. Should I change anything for it?

No, you can keep using Volta.

BTW. For me the only change I had to make, and this is my git diff output for working setup is this:

diff --git a/connection-config.json b/connection-config.json
index f1fa6cc..bdacb71 100644
--- a/connection-config.json
+++ b/connection-config.json
@@ -1,6 +1,6 @@
 {
     "develop": {
-        "web3": "http://localhost:8545",
+        "web3": "https://volta-rpc.energyweb.org",
         "deployKey": "d9066ff9f753a1898709b568119055660a77d9aae4d7a4ad677b8fb3d2a571e5"
     }
 }
\ No newline at end of file
(END)

cc @oxfordssherwanic

from origin.

oxfordssherwanic avatar oxfordssherwanic commented on July 17, 2024

I have emailed the requested info. Thanks.

from origin.

oxfordssherwanic avatar oxfordssherwanic commented on July 17, 2024

With fixed configuration and getting latest code for UI from GIT, I am able to bring the UI up. However I am not able to switch between users anymore - it's always guest. I have sent out the output of git diff, status and log. Thanks.

from origin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.