web-wallet icon indicating copy to clipboard operation
web-wallet copied to clipboard

Errors after run web-wallet.sh

Open cryptonana opened this issue 6 years ago • 10 comments

after run web-wallet.sh i see this error

Error: Cannot find module 'moment' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object. (/root/web-wallet/lib/settings.js:9:14) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) Program node wallet.js exited with code 1

cryptonana avatar Jul 30 '18 13:07 cryptonana

https://stackoverflow.com/questions/39413119/error-cant-find-npm-module-moment

SwissCoin-Classic avatar Jul 31 '18 09:07 SwissCoin-Classic

after run this command

npm install --save

TypeError: this is not a typed array. at Function.from (native) at Object.Client.auth (/root/web-wallet/lib/coin-client.js:113:46) at Object. (/root/web-wallet/lib/coinapi.js:15:8) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object. (/root/web-wallet/wallet.js:19:12) Program node wallet.js exited with code 1

cryptonana avatar Aug 01 '18 02:08 cryptonana

@SwissCoin-Classic which OS you use and can you please send me complete commands

cryptonana avatar Aug 01 '18 02:08 cryptonana

now i was use old nodejs thats why come problem

can you please tell me i try to login with masteruser and pass but not login

cryptonana avatar Aug 01 '18 03:08 cryptonana

On Debian 9.0

npm install module

SwissCoin-Classic avatar Aug 02 '18 07:08 SwissCoin-Classic

every thing ok but login not work what i doing

cryptonana avatar Aug 02 '18 14:08 cryptonana

Logfile?

SwissCoin-Classic avatar Aug 02 '18 16:08 SwissCoin-Classic

mongodb online?

SwissCoin-Classic avatar Aug 02 '18 16:08 SwissCoin-Classic

yes monodb online

service mongod status ● mongod.service - High-performance, schema-free document-oriented database Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled) Active: active (running) since Wed 2018-08-01 07:17:06 CEST; 1 day 19h ago

cryptonana avatar Aug 03 '18 00:08 cryptonana

when i connect

Server is listening on: http://localhost:8181 Wallet is listening on: http://127.0.0.1:39868 Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials. Database connected. Init-Wallet: Found MASTER_ACCOUNT's wallet for the MyCoin node_id on: 127.0.0.1 RPC Connected.

when i try login

GET /login 304 16.792 ms - - GET /wallet/images/background.jpg 200 6.544 ms - 2551 POST /login 302 112.682 ms - 56 GET /login 200 2.240 ms - 2959 GET /wallet/images/background.jpg 200 2.002 ms - 2551

no thing happend just again redirect to login page

cryptonana avatar Aug 03 '18 00:08 cryptonana