onsightit / web-wallet

OpenSourced Node.js Web Wallet for PoS Coins
GNU General Public License v3.0
27 stars 50 forks source link

Errors after run web-wallet.sh #7

Open cryptonana opened 6 years ago

cryptonana commented 6 years ago

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

SwissCoin-Classic commented 6 years ago

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

cryptonana commented 6 years ago

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 commented 6 years ago

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

cryptonana commented 6 years ago

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

SwissCoin-Classic commented 6 years ago

On Debian 9.0

npm install module

cryptonana commented 6 years ago

every thing ok but login not work what i doing

SwissCoin-Classic commented 6 years ago

Logfile?

SwissCoin-Classic commented 6 years ago

mongodb online?

cryptonana commented 6 years ago

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 commented 6 years ago

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