EverexIO / Ethplorer

Viewer of Ethereum tokens and transactions based on ERC20 standard.
https://ethplorer.io
Apache License 2.0
831 stars 358 forks source link

How to run the setup with configuration #83

Closed subhasisbanik closed 3 years ago

subhasisbanik commented 6 years ago

I ran the below steps mentioned in README.md cd /var/www mkdir ethplorer git clone https://github.com/everexio/ethplorer.git ethplorer

But I am unable use the service/config.php to run the setup to view the stats. Pardon me, I am not aware of php and maybe thats why I am unable to run this, Please help.

gochainwallet commented 6 years ago

Hi im at the same issue check composer ethplorer.php line 24 is looking for a file that dosnt exist and thats causing it not to display

vikulin commented 6 years ago

I seted up config.php and got following error: {"error":{"code":3,"message":"Database connection failed"}}

Mongodb and php mongodb extension were installed:

`<?php return array(

'ga'     => '',
'fb'     => '',
"mongo" => array(
    "server" => "mongodb://xxx:xxx@127.0.0.1:27017",
    "dbName" => "everex-db",
),
"ethereum" => "https://mainnet.infura.io/xxx",
"client"    => array(
    "testnet"       => false,
    "ga"            => '',
    "updateLink"    => '', // Link address
    "tokens" => array(
        'address' => array('symbol'    => '', 'image'     => ''),
    )
),
'redirects' => array(
    'substring' => 'address'
)

);`

gochainwallet commented 6 years ago

Have you created the database in mongo

---- On Mon, 04 Jun 2018 10:41:31 +0000 vikulin <notifications@github.com> wrote ----

I seted up config.php and got following error:

{"error":{"code":3,"message":"Database connection failed"}}

Mongodb and php mongodb extension were installed:

'', 'fb' => '', "mongo" => array( "server" => "mongodb://xxx:xxx@127.0.0.1:27017", "dbName" => "everex-db", ), "ethereum" => "https://mainnet.infura.io/xxx", "client" => array( "testnet" => false, "ga" => '', "updateLink" => '', // Link address "tokens" => array( 'address' => array('symbol' => '', 'image' => ''), ) ), 'redirects' => array( 'substring' => 'address' ) );

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

vikulin commented 6 years ago

Yes, appropriate db and user was created. mongodb connection db URL contains such data marked by xxx:xxx in format username:password.

2018-06-05 13:55 GMT+03:00 Gochainwallet notifications@github.com:

Have you created the database in mongo

---- On Mon, 04 Jun 2018 10:41:31 +0000 vikulin & lt;notifications@github.com> wrote ----

I seted up config.php and got following error:

{"error":{"code":3,"message":"Database connection failed"}}

Mongodb and php mongodb extension were installed:

'', 'fb' => '', "mongo" => array( "server" => "mongodb:// xxx:xxx@127.0.0.1:27017", "dbName" => "everex-db", ), "ethereum" => "https://mainnet.infura.io/xxx", "client" => array( "testnet" => false, "ga" => '', "updateLink" => '', // Link address "tokens" => array( 'address' => array('symbol' => '', 'image' => ''), ) ), 'redirects' => array( 'substring' => 'address' ) );

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EverexIO/Ethplorer/issues/83#issuecomment-394667002, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtYxmMSa8aUhIgmCG8I5lvys2erAGnsks5t5mOxgaJpZM4UMtmf .

vikulin commented 6 years ago

Any updates?

gochainwallet commented 6 years ago

no updates

how far have you got in installing -- some pages are missing feel free to email me garymcneish@gmail.com

SLG2018 commented 6 years ago

Call me sydney 3852126712

On Thu, Jun 7, 2018, 2:04 PM Gochainwallet notifications@github.com wrote:

no updates

how far have you got in installing -- some pages are missing feel free to email me garymcneish@gmail.com

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EverexIO/Ethplorer/issues/83#issuecomment-395564643, or mute the thread https://github.com/notifications/unsubscribe-auth/Ahtiwi1wKM8Up5knM6URFEtc2axr5qijks5t6ZV4gaJpZM4UMtmf .

SLG2018 commented 6 years ago

Call me 3852126712

On Thu, May 24, 2018, 10:56 AM Subhasis Banik notifications@github.com wrote:

I ran the below steps mentioned in README.md cd /var/www mkdir ethplorer git clone https://github.com/everexio/ethplorer.git ethplorer

But I am unable use the service/config.php to run the setup to view the stats. Pardon me, I am not aware of php and maybe thats why I am unable to run this, Please help.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EverexIO/Ethplorer/issues/83, or mute the thread https://github.com/notifications/unsubscribe-auth/AhtiwsmGKDGpu_GFk8lZ5VFzb37V9vjzks5t1vRjgaJpZM4UMtmf .

vikulin commented 6 years ago

I did following:

  1. Cloned this repo
  2. seted up config as I have already described
  3. Installed mongodb and mongo db php extension 3.1 configured new mongo db and user
  4. Ran composer update
  5. Checked mongo db port: ~# telnet 127.0.0.1 27017 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'.

As result the web site returns such error: {"error":{"code":3,"message":"Database connection failed"}}

gochainwallet commented 6 years ago

if anyone has it installed and running Id be willing to pay them to replicate it

gochainwallet commented 6 years ago

also for the uptodate version

vikulin commented 6 years ago

Is the project opensource or not?

2018-06-08 16:52 GMT+03:00 Gochainwallet notifications@github.com:

also for the uptodate version

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EverexIO/Ethplorer/issues/83#issuecomment-395767133, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtYxk2dkfvqNb3PYdFgl2Vf-sodL7s7ks5t6oGKgaJpZM4UMtmf .

gochainwallet commented 6 years ago

yeah its open source just not all the files are in the repostiory

vikulin commented 6 years ago

Can you please share the missing files?

2018-06-08 17:36 GMT+03:00 Gochainwallet notifications@github.com:

yeah its open source just not all the files are in the repostiory

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EverexIO/Ethplorer/issues/83#issuecomment-395780698, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtYxkPE4cz3qfXhicdxRSkFGlbM3--3ks5t6owFgaJpZM4UMtmf .

gochainwallet commented 6 years ago

I dont have them but one of the forks has different modifided pages notice page568524.html .htaccess looks for this file which isnt included in ethplorer https://github.com/RebelliousToken/RebelliousExplorer

gochainwallet commented 6 years ago

Vikulin

How far have you got with the instalation? do you have telegram or whatsapp

vikulin commented 6 years ago

Telegram: +380980987585

2018-06-08 18:06 GMT+03:00 Gochainwallet notifications@github.com:

Vikulin

How far have you got with the instalation? do you have telegram or whatsapp

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EverexIO/Ethplorer/issues/83#issuecomment-395790336, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtYxoAojeZxHqgkdFZvGjSEW-S1kpzIks5t6pL3gaJpZM4UMtmf .

Mambix commented 6 years ago

Mine is kinda working. I get front page but with invalid request error, API is "working" but not returning anything as the chain is still syncing. I have mongo in docker container runing tutum/mongodb:3.2 with MONGODB_PASS=mypass and MONGODB_DATABASE=everex-db env variables set.

In config then just need to set user/pass and IP to the container and it connects with out issues.

grunsab commented 6 years ago

@Mambix Can you toss up your repo that you used to get it to run? Did you make any modifications to the code to get it to work?

Mambix commented 6 years ago

No modifications to the code.

I just published MongoDB on my unRaid server: image

I had the geth running in separate container on same server.

And ethplorer was run from my desktop PC just with

php -S localhost:80

Edited the config so that it connected to MongoDB and to geth RPC.

subhasisbanik commented 6 years ago

@Mambix can you help me run this project since this is php and I don't have any experience into php?

grunsab commented 6 years ago

@Mambix Can you paste your config into a gist? I'm having trouble getting this code to connect to Mongo.

Nevermind, I figured it out. Change "mongo" to "mongodb" in the config file if you're using PHP version later then 5.0.

"mongodb" => array(
    "server" => "mongodb://......",
),
Mambix commented 6 years ago

Hey guys, sorry away from my work PC until September. But @grunsab is right, I used mongodb too if I remember correctly. I was running this on PHP 7.2

I will continue testing once I get back from my holiday. Still did not manage to sync the eth blockchain so ethplorer does not return anything useful atm for me. I'm also working on docker containers (docker-composer) which should make it easier to run this together.