Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run bpanel on server #13

Open
micahstubbs opened this issue Apr 8, 2018 · 9 comments
Open

run bpanel on server #13

micahstubbs opened this issue Apr 8, 2018 · 9 comments

Comments

@micahstubbs
Copy link
Owner

micahstubbs commented Apr 8, 2018

encountered this error

when I run npm run start:dev

➜  bpanel git:(c4yt) ✗ npm run start:dev                                                                                    [111/154]

> bpanel@0.0.1-rc1 start:dev /root/workspace/bpanel
> node server --dev

info: bsock running on port 8000
info: bpanel app running on port 5000
error: uncaughtException: Network error: ws://127.0.0.1:18556/socket.io/?transport=websocket: connect ECONNREFUSED 127.0.0.1:18556 da
te=Sun Apr 08 2018 19:23:45 GMT+0000 (UTC), pid=23025, uid=0, gid=0, cwd=/root/workspace/bpanel, execPath=/usr/bin/node, version=v8.$
1.1, argv=[/usr/bin/node, /root/workspace/bpanel/server/index.js, --watch], rss=50917376, heapTotal=32325632, heapUsed=12621336, ext$
rnal=322401, loadavg=[0.24462890625, 0.09765625, 0.02880859375], uptime=68451, trace=[column=24, file=/root/workspace/bpanel/node_mo$
ules/bsock/lib/socket.js, function=Socket.onError, line=245, method=onError, native=false, column=18, file=/root/workspace/bpanel/no$
e_modules/bsock/lib/socket.js, function=Client.ws.onerror, line=174, method=onerror, native=false, column=30, file=/root/workspace/b$
anel/node_modules/faye-websocket/lib/faye/websocket/api/event_target.js, function=Client.dispatchEvent, line=22, method=dispatchEven$
, native=false, column=10, file=/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js, function=Client._emitE$
ror, line=158, method=_emitError, native=false, column=12, file=/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocke$
/api.js, function=null, line=127, method=null, native=false, column=20, file=events.js, function=emitOne, line=121, method=null, nat$
ve=false, column=7, file=events.js, function=Socket.emit, line=211, method=emit, native=false, column=8, file=internal/streams/destr$
y.js, function=emitErrorNT, line=64, method=null, native=false, column=11, file=internal/process/next_tick.js, function=_combinedTic$
Callback, line=138, method=null, native=false, column=9, file=internal/process/next_tick.js, function=process._tickCallback, line=18$
, method=_tickCallback, native=false], stack=[Error: Network error: ws://127.0.0.1:18556/socket.io/?transport=websocket: connect ECO$
NREFUSED 127.0.0.1:18556,     at Socket.onError (/root/workspace/bpanel/node_modules/bsock/lib/socket.js:245:24),     at Client.ws.o$
error (/root/workspace/bpanel/node_modules/bsock/lib/socket.js:174:18),     at Client.dispatchEvent (/root/workspace/bpanel/node_mod$
les/faye-websocket/lib/faye/websocket/api/event_target.js:22:30),     at Client._emitError (/root/workspace/bpanel/node_modules/faye$
websocket/lib/faye/websocket/api.js:158:10),     at Socket.<anonymous> (/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/$
ebsocket/api.js:127:12),     at emitOne (events.js:121:20),     at Socket.emit (events.js:211:7),     at emitErrorNT (internal/strea$
s/destroy.js:64:8),     at _combinedTickCallback (internal/process/next_tick.js:138:11),     at process._tickCallback (internal/proc$
ss/next_tick.js:180:9)]
error: uncaughtException: Websocket Closed: Unknown reason (code=ABNORMAL_CLOSURE). date=Sun Apr 08 2018 19:23:45 GMT+0000 (U[83/154]
=23025, uid=0, gid=0, cwd=/root/workspace/bpanel, execPath=/usr/bin/node, version=v8.11.1, argv=[/usr/bin/node, /root/workspace/bpane
l/server/index.js, --watch], rss=50917376, heapTotal=32325632, heapUsed=12876816, external=322425, loadavg=[0.24462890625, 0.09765625
, 0.02880859375], uptime=68451, trace=[column=17, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Socket.onClo
se, line=277, method=onClose, native=false, column=18, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Client.
ws.onclose, line=178, method=onclose, native=false, column=30, file=/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/webso
cket/api/event_target.js, function=Client.dispatchEvent, line=22, method=dispatchEvent, native=false, column=10, file=/root/workspace
/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js, function=Client._finalizeClose, line=188, method=_finalizeClose, nativ
e=false, column=12, file=/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js, function=null, line=128, metho
d=null, native=false, column=20, file=events.js, function=emitOne, line=121, method=null, native=false, column=7, file=events.js, fun
ction=Socket.emit, line=211, method=emit, native=false, column=8, file=internal/streams/destroy.js, function=emitErrorNT, line=64, me
thod=null, native=false, column=11, file=internal/process/next_tick.js, function=_combinedTickCallback, line=138, method=null, native
=false, column=9, file=internal/process/next_tick.js, function=process._tickCallback, line=180, method=_tickCallback, native=false],
stack=[Error: Websocket Closed: Unknown reason (code=ABNORMAL_CLOSURE).,     at Socket.onClose (/root/workspace/bpanel/node_modules/b
sock/lib/socket.js:277:17),     at Client.ws.onclose (/root/workspace/bpanel/node_modules/bsock/lib/socket.js:178:18),     at Client.
dispatchEvent (/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocket/api/event_target.js:22:30),     at Client._final
izeClose (/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js:188:10),     at Socket.<anonymous> (/root/work
space/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js:128:12),     at emitOne (events.js:121:20),     at Socket.emit (ev
ents.js:211:7),     at emitErrorNT (internal/streams/destroy.js:64:8),     at _combinedTickCallback (internal/process/next_tick.js:13
8:11),     at process._tickCallback (internal/process/next_tick.js:180:9)]
error: uncaughtException: Network error: ws://127.0.0.1:18558/socket.io/?transport=websocket: connect ECONNREFUSED 127.0.0.1:18558 da
te=Sun Apr 08 2018 19:23:45 GMT+0000 (UTC), pid=23025, uid=0, gid=0, cwd=/root/workspace/bpanel, execPath=/usr/bin/node, version=v8.1
1.1, argv=[/usr/bin/node, /root/workspace/bpanel/server/index.js, --watch], rss=50917376, heapTotal=32325632, heapUsed=13060464, exte
rnal=322425, loadavg=[0.24462890625, 0.09765625, 0.02880859375], uptime=68451, trace=[column=24, file=/root/workspace/bpanel/node_mod
ules/bsock/lib/socket.js, function=Socket.onError, line=245, method=onError, native=false, column=18, file=/root/workspace/bpanel/nod
e_modules/bsock/lib/socket.js, function=Client.ws.onerror, line=174, method=onerror, native=false, column=30, file=/root/workspace/bp
anel/node_modules/faye-websocket/lib/faye/websocket/api/event_target.js, function=Client.dispatchEvent, line=22, method=dispatchEvent
, native=false, column=10, file=/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js, function=Client._emitEr
ror, line=158, method=_emitError, native=false, column=12, file=/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocket
/api.js, function=null, line=127, method=null, native=false, column=20, file=events.js, function=emitOne, line=121, method=null, nati
ve=false, column=7, file=events.js, function=Socket.emit, line=211, method=emit, native=false, column=8, file=internal/streams/destro
y.js, function=emitErrorNT, line=64, method=null, native=false, column=11, file=internal/process/next_tick.js, function=_combinedTick
Callback, line=138, method=null, native=false, column=9, file=internal/process/next_tick.js, function=process._tickCallback, line=180
, method=_tickCallback, native=false], stack=[Error: Network error: ws://127.0.0.1:18558/socket.io/?transport=websocket: connect ECON
NREFUSED 127.0.0.1:18558,     at Socket.onError (/root/workspace/bpanel/node_modules/bsock/lib/socket.js:245:24),     at Client.ws.on
error (/root/workspace/bpanel/node_modules/bsock/lib/socket.js:174:18),     at Client.dispatchEvent (/root/workspace/bpanel/node_modu
les/faye-websocket/lib/faye/websocket/api/event_target.js:22:30),     at Client._emitError (/root/workspace/bpanel/node_modules/faye-
websocket/lib/faye/websocket/api.js:158:10),     at Socket.<anonymous> (/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/w
ebsocket/api.js:127:12),     at emitOne (events.js:121:20),     at Socket.emit (events.js:211:7),     at emitErrorNT (internal/stream
s/destroy.js:64:8),     at _combinedTickCallback (internal/process/next_tick.js:138:11),     at process._tickCallback (internal/proce
ss/next_tick.js:180:9)]
error: uncaughtException: Websocket Closed: Unknown reason (code=ABNORMAL_CLOSURE). date=Sun Apr 08 2018 19:23:45 GMT+0000 (UTC), pid
=23025, uid=0, gid=0, cwd=/root/workspace/bpanel, execPath=/usr/bin/node, version=v8.11.1, argv=[/usr/bin/node, /root/workspace/bpane
l/server/index.js, --watch], rss=50917376, heapTotal=32325632, heapUsed=13237816, external=322425, loadavg=[0.24462890625, 0.09765625
, 0.02880859375], uptime=68451, trace=[column=17, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Socket.onClo
se, line=277, method=onClose, native=false, column=18, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Client.
ws.onclose, line=178, method=onclose, native=false, column=30, file=/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/webso
cket/api/event_target.js, function=Client.dispatchEvent, line=22, method=dispatchEvent, native=false, column=10, file=/root/workspace
/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js, function=Client._finalizeClose, line=188, method=_finalizeClose, nativ
e=false, column=12, file=/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js, function=null, line=128, metho
d=null, native=false, column=20, file=events.js, function=emitOne, line=121, method=null, native=false, column=7, file=events.js, fun
ction=Socket.emit, line=211, method=emit, native=false, column=8, file=internal/streams/destroy.js, function=emitErrorNT, line=64, me
thod=null, native=false, column=11, file=internal/process/next_tick.js, function=_combinedTickCallback, line=138, method=null, native
=false, column=9, file=internal/process/next_tick.js, function=process._tickCallback, line=180, method=_tickCallback, native=false],
stack=[Error: Websocket Closed: Unknown reason (code=ABNORMAL_CLOSURE).,     at Socket.onClose (/root/workspace/bpanel/node_modules/b
sock/lib/socket.js:277:17),     at Client.ws.onclose (/root/workspace/bpanel/node_modules/bsock/lib/socket.js:178:18),     at Client.
dispatchEvent (/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocket/api/event_target.js:22:30),     at Client._final
izeClose (/root/workspace/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js:188:10),     at Socket.<anonymous> (/root/work
space/bpanel/node_modules/faye-websocket/lib/faye/websocket/api.js:128:12),     at emitOne (events.js:121:20),     at Socket.emit (ev
ents.js:211:7),     at emitErrorNT (internal/streams/destroy.js:64:8),     at _combinedTickCallback (internal/process/next_tick.js:13
8:11),     at process._tickCallback (internal/process/next_tick.js:180:9)]
Executing pre-build scripts
module.js:549
    throw err;
    ^

Error: Cannot find module '../lib/babel-node'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/root/workspace/bpanel/node_modules/.bin/babel-node:3:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

Webpack is watching the files…
error: uncaughtException: Timed out waiting for connection. Reconnecting... date=Sun Apr 08 2018 19:23:55 GMT+0000 (UTC), pid=[3/154]
uid=0, gid=0, cwd=/root/workspace/bpanel, execPath=/usr/bin/node, version=v8.11.1, argv=[/usr/bin/node, /root/workspace/bpanel/server
/index.js, --watch], rss=43786240, heapTotal=17645568, heapUsed=13527560, external=33208, loadavg=[0.7548828125, 0.21044921875, 0.06$
40625], uptime=68461, trace=[column=24, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Socket.error, line=32$
, method=error, native=false, column=14, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Socket.stall, line=3$
3, method=stall, native=false, column=41, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Timeout.timer.setIn$
erval [as _onTimeout], line=370, method=setInterval [as _onTimeout], native=false, column=11, file=timers.js, function=ontimeout, li$
e=482, method=null, native=false, column=5, file=timers.js, function=tryOnTimeout, line=317, method=null, native=false, column=5, fi$
e=timers.js, function=Timer.listOnTimeout, line=277, method=listOnTimeout, native=false], stack=[Error: Timed out waiting for connec$
ion. Reconnecting...,     at Socket.error (/root/workspace/bpanel/node_modules/bsock/lib/socket.js:327:24),     at Socket.stall (/roo
t/workspace/bpanel/node_modules/bsock/lib/socket.js:393:14),     at Timeout.timer.setInterval [as _onTimeout] (/root/workspace/bpanel
/node_modules/bsock/lib/socket.js:370:41),     at ontimeout (timers.js:482:11),     at tryOnTimeout (timers.js:317:5),     at Timer.l
istOnTimeout (timers.js:277:5)]
error: uncaughtException: Timed out waiting for connection. Reconnecting... date=Sun Apr 08 2018 19:23:55 GMT+0000 (UTC), pid=23025,
uid=0, gid=0, cwd=/root/workspace/bpanel, execPath=/usr/bin/node, version=v8.11.1, argv=[/usr/bin/node, /root/workspace/bpanel/server
/index.js, --watch], rss=44048384, heapTotal=17645568, heapUsed=13690304, external=33208, loadavg=[0.7548828125, 0.21044921875, 0.066
40625], uptime=68461, trace=[column=24, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Socket.error, line=327
, method=error, native=false, column=14, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Socket.stall, line=39
3, method=stall, native=false, column=41, file=/root/workspace/bpanel/node_modules/bsock/lib/socket.js, function=Timeout.timer.setInt
erval [as _onTimeout], line=370, method=setInterval [as _onTimeout], native=false, column=11, file=timers.js, function=ontimeout, lin
e=482, method=null, native=false, column=5, file=timers.js, function=tryOnTimeout, line=317, method=null, native=false, column=5, fil
e=timers.js, function=Timer.listOnTimeout, line=277, method=listOnTimeout, native=false, column=26, file=timers.js, function=listOnTi
meoutNT, line=353, method=null, native=false, column=11, file=internal/process/next_tick.js, function=_combinedTickCallback, line=135
, method=null, native=false, column=9, file=internal/process/next_tick.js, function=process._tickCallback, line=180, method=_tickCall
back, native=false], stack=[Error: Timed out waiting for connection. Reconnecting...,     at Socket.error (/root/workspace/bpanel/nod
e_modules/bsock/lib/socket.js:327:24),     at Socket.stall (/root/workspace/bpanel/node_modules/bsock/lib/socket.js:393:14),     at T
imeout.timer.setInterval [as _onTimeout] (/root/workspace/bpanel/node_modules/bsock/lib/socket.js:370:41),     at ontimeout (timers.j
s:482:11),     at tryOnTimeout (timers.js:317:5),     at Timer.listOnTimeout (timers.js:277:5),     at listOnTimeoutNT (timers.js:353
:26),     at _combinedTickCallback (internal/process/next_tick.js:135:11),     at process._tickCallback (internal/process/next_tick.j
s:180:9)]
@micahstubbs
Copy link
Owner Author

Module build failed: Error: Missing binding /root/workspace/bpanel/node_modules/node-sass/vendor/linux-x64-57/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 8.x

@micahstubbs
Copy link
Owner Author

sudo npm install --unsafe-perm -g node-sass

appears to be a solution

https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md#cannot-find-module-rootinstalljs

@micahstubbs
Copy link
Owner Author

micahstubbs commented Apr 8, 2018

will try this as well

sudo npm install --unsafe-perm -g babel-node

sudo npm install --unsafe-perm -g babel-cli

@micahstubbs
Copy link
Owner Author

ok, that didn't work either. will pause here for now.

@micahstubbs
Copy link
Owner Author

npm rebuild node-sass --force trying this now

@micahstubbs
Copy link
Owner Author

micahstubbs commented Apr 8, 2018

[1082] ./webapp/containers/App/app.scss 41 bytes {0} [built]
    + 1072 hidden modules

ERROR in ./webapp/plugins/index.js
Module not found: Error: Can't resolve '@bpanel/genesis-theme' in '/root/workspace/bpanel/webapp/plugins'
 @ ./webapp/plugins/index.js 7:20-52
 @ ./webapp/config/appConfig.js
 @ ./webapp/store/index.js
 @ ./webapp/index.js
 @ multi whatwg-fetch ./webapp/index

ERROR in ./webapp/plugins/index.js
Module not found: Error: Can't resolve '@bpanel/simple-mining' in '/root/workspace/bpanel/webapp/plugins'
 @ ./webapp/plugins/index.js 11:20-52
 @ ./webapp/config/appConfig.js
 @ ./webapp/store/index.js
 @ ./webapp/index.js
 @ multi whatwg-fetch ./webapp/index
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js??ref--1-2!node_modules/postcss-loader/lib/index.js??ref--1-3!node_modules/sass-loader/lib/loader.js??ref--1-4!webapp/containers/App/app.scss:
       [0] ./node_modules/css-loader??ref--1-2!./node_modules/postcss-loader/lib??ref--1-3!./node_modules/sass-loader/lib/loader.js??ref--1-4!./webapp/containers/App/app.scss 610 kB {0} [built]
        + 1 hidden module

@micahstubbs
Copy link
Owner Author

ok, trying this now in response to an error message

bcoin@git+https://github.com/bcoin-org/bcoin.git#wallet-rewrite

@micahstubbs
Copy link
Owner Author

trying this out now

npm install --save-dev @babel/node

@micahstubbs
Copy link
Owner Author

hhmmmm that didn't work 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant