Note that there are some explanatory texts on larger screens.

plurals
  1. POSequelize .sync function hangs: emitter from serial.klass
    primarykey
    data
    text
    <p>I've pulled an application down from our staging environment which is running perfectly on the staging computer, but locally it hangs on the <code>sequelize.sync</code> function.</p> <p>The application doesn't even reaching the "Listening on port..."</p> <p>I've logged through the sync function within <a href="http://sequelizejs.com" rel="nofollow">Sequelize</a> and found that this is where it is stuck: </p> <p><em>(lines 79 - 88 in query-chainer.js)</em></p> <pre><code>var emitter = serial.klass[serial.method].apply(serial.klass, serial.params) emitter.success(function(result) { self.serialResults[serialCopy.indexOf(serial)] = result if (serial.options.success) { serial.options.success(serial.klass, onSuccess) } else { onSuccess() } }).error(onError) </code></pre> <p>This function does not return into either <code>success</code> or <code>error</code>. I shouldn't have to make any changes to their code since I know their library is working--I have a local copy that works that we're refactoring and I just needed the staging copy to do a quick change for production while we finish the refactor.</p> <p>What could have changed to cause this issue? It almost seems like it could be a connection issue?</p> <p>I have verified that the host is <code>localhost</code> with port of <code>5432</code>. Correct <code>username</code>, <code>password</code>, and <code>dbName</code>. All fed through:</p> <pre><code>sequelize = new Sequelize(config.db.dbName, config.db.username, config.db.password, { dialect: 'postgres', host: config.db.host, port: config.db.port, logging: false, define: sequelizeMethods }); </code></pre> <p>I have also confirmed that the <code>postgresql-x64-9.2 - PostgreSQL Server 9.2</code> service is running.</p> <p>Does anyone have any ideas on how to fix this? Or ways to get additional information?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload