sammy007 / open-ethereum-pool

Open Ethereum Mining Pool
GNU General Public License v3.0
1.4k stars 1.12k forks source link

Help with frontend #319

Open Dewamade opened 6 years ago

Dewamade commented 6 years ago

System information

Geth version: { Geth Version: source Protocol Versions: [63 62] Network Id: 64 Go Version: go1.10 OS: linux GOPATH= GOROOT=/usr/lib/go-1.10 }

Redis version: 4.0.8

OS & Version: Linux

Commit branch and hash: master

Expected behaviour

Header, Main content, and footer show properly

Actual behaviour

Nothing show on frontend except footer, i think main content not loaded

Steps to reproduce the behaviour

Opening website

Backtrace

I think nothing seems suspicious from the backtrace when test the ember

[backtrace]
Could not start watchman; falling back to NodeWatcher for file system events.

Visit http://ember-cli.com/user-guide/#watchman for more info.

Just getting started with Ember? Please visit http://localhost:4200/ember-getting-started to get going

Livereload server on http://localhost:49152
Serving on http://localhost:4200/

Build successful - 26357ms.

Slowest Nodes (totalTime => 5% )              | Total (avg)
----------------------------------------------+---------------------
Babel (20)                                    | 23686ms (1184 ms)
RepoBike commented 6 years ago

Mine doesn't show anything. Been trying to get this pool to work for 2 months now. Got some of the backend problems worked out after 10hours non stop working on it.

I think the code needs a little cleaning and updating for Ubuntu 16 and better guides for everything.

mikeyb commented 6 years ago

It works fine, set it up right

Dewamade commented 6 years ago

Ok so i run test with ember test --server and here is the output

TEST'EM 'SCRIPTS!
Open the URL below in a browser to connect.
http://localhost:7357/
PhantomJS
global failure Error: Could not find module open-ethereum-pool/resolver imported from open-ethereum-pool/tests/helpers/resolver http://localhost:7357/assets/vendor.js:256 global failure Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes" assets/tests.js". http://localhost:7357/assets/vendor.js:17488 Error: Could not find module open-ethereum-pool/resolver imported from open-e thereum-pool/tests/helpers/resolver at http://localhost:7357/assets/vendor.js, line 256 Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 17488

mikeyb commented 6 years ago

Read the README

AlexSpain commented 5 years ago

@mikeyb write readme and FAQ. can write good answer?

mikeyb commented 5 years ago

browser dev console tools probably lead you to the answer you seek. Assuming there is an error in the content it is trying to load.

Error: Could not find module open-ethereum-pool/resolver imported from open-ethereum-pool/tests/helpers/resolver

Tells me you probably dont have all the npm modules installed

AlexSpain commented 5 years ago

@mikeyb ))) open-ethereum-pool/www/node_modules/ember-resolver so probably it installed?

mikeyb commented 5 years ago

What is the output when makeing the repo and build.sh the frontend? https://github.com/sammy007/open-ethereum-pool#building-on-linux https://github.com/sammy007/open-ethereum-pool#building-frontend

What command are you running when you start the pool? Do you see any errors in the console of the browser dev tools?

AlexSpain commented 5 years ago

Do you see any errors in the console of the browser dev tools? Uncaught Error: Could not find module ember-resolver/container-debug-adapter imported from open-ethereum-pool/initializers/container-debug-adapter

AlexSpain commented 5 years ago

https://clip2net.com/s/43dUyoV

AlexSpain commented 5 years ago

What command are you running when you start the pool? screen -dmS pirl_pool ./pirlpool config.json

mikeyb commented 5 years ago

Sounds like one of the required library dependencies is missing. Try re-installing the npm modules

cd www
rm -rf node_modules
npm install -g ember-cli@2.9.1
npm install -g bower
npm install
bower install
./build.sh

Also what version of nodejs do you have on the system? If you are on ubuntu uninstall the system version sudo apt remove nodejs and use nvm to install nodejs on the system. The ubuntu system packages for nodejs are ancient and could be part of the problem

honorkeles commented 3 years ago

@AlexSpain Hi, did you figure this out? I get blank page or Stats API Temporarily Down message.

I get below error message when I run "ember test --server"

Global error: Error: Could not find module open-ethereum-pool/resolver imported from open-ethereum-pool/tests/helpers/resolver at http://localhost:7357/a ssets/vendor.js, line 256

Global error: Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/as sets/vendor.js, line 17996

Canefis commented 10 months ago

@AlexSpain Hi, did you figure this out? I get blank page or Stats API Temporarily Down message.

I get below error message when I run "ember test --server"

Global error: Error: Could not find module open-ethereum-pool/resolver imported from open-ethereum-pool/tests/helpers/resolver at http://localhost:7357/a ssets/vendor.js, line 256

Global error: Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/as sets/vendor.js, line 17996

put this file into www/node-modules and rebuild again. intl-format-cache.zip