You are viewing a single comment's thread from:

RE: Building the Hive Smart Chain Project from HyperLedger codebase Rather Than From an Ethereum Codebase.

in #hive-dev4 years ago (edited)

I got my hive.loans test node site up for future demo purposes, guess I still need to set up the ports w/ sequelize-cli db.
Screenshot 2021-03-18 at 6.32.46 PM.png

nodemon app.js

[nodemon] 2.0.7
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node app.js
[18:31:31] Initializing ...
[18:31:31] Migrating DB...
[18:31:31] Hive.Loans v1.0.0 Started on Port: 3000
(node:7010) UnhandledPromiseRejectionWarning: Error: Command failed: npx sequelize-cli db:create || npx sequelize-cli db:migrate
npx: installed 81 in 8.684s
ERROR: connect ECONNREFUSED 127.0.0.1:6666
npx: installed 81 in 3.467s
ERROR: connect ECONNREFUSED 127.0.0.1:6666

Sort:  

Yep! that is exactly what it's missing!

If you give me a few minutes I'll push what I have here locally.

npm install sequelize-cli --save

That is likely the site trying to set up the database on first run after detecting it wasn't able to get onto it's database. The DB I use is MariaDB with Sequelize ORM.

Highly suggest getting something like HeidiSQL to monitor your local dtabases and make it easier to do admin work on it. :)

Thanks, yeah I will try it.

Ohh. Yeah make sure your MariaDB is running on port 6666 too. That is what that error looks like.. Naturally it runs on port 20K something so you have to change that in it's config or as a flag at run-time.