SequelizeConnectionError: pass auth failed for user "ubuntu"


#1

Hey all. Trying to practice Express & Sequelize and having trouble syncing the database. I only run into this as soon as I try to have my app sync; I’ve got a models/index.js setting up the tables-

var Sequelize = require('sequelize');
var db = new Sequelize('postgres://localhost:5432/wikistack');

and when I try to sync the tables, it sends me this, below. How do I authenticate here ? Appreciate any help !

{ [SequelizeConnectionError: password authentication failed for user "ubuntu"]
  name: 'SequelizeConnectionError',
  message: 'password authentication failed for user "ubuntu"',
  parent: 
   { [error: password authentication failed for user "ubuntu"]
     name: 'error',
     length: 95,
     severity: 'FATAL',
     code: '28P01',
     detail: undefined,
     hint: undefined,
     position: undefined,
     internalPosition: undefined,
     internalQuery: undefined,
     where: undefined,
     schema: undefined,
     table: undefined,
     column: undefined,
     dataType: undefined,
     constraint: undefined,
     file: 'auth.c',
     line: '304',
     routine: 'auth_failed' },
  original: 
   { [error: password authentication failed for user "ubuntu"]
     name: 'error',
     length: 95,
     severity: 'FATAL',
     code: '28P01',
     detail: undefined,
     hint: undefined,
     position: undefined,
     internalPosition: undefined,
     internalQuery: undefined,
     where: undefined,
     schema: undefined,
     table: undefined,
     column: undefined,
     dataType: undefined,
     constraint: undefined,
     file: 'auth.c',
     line: '304',
     routine: 'auth_failed' } }