mozilla/browserid — Issue #788: load_gen: Fix steps for local install and load test
Author: jbonacci
Created: 2011-12-20 22:39:36+00:00
State: open

After using the normal steps for getting BrowserID installed locally, I tried the following based on lloyd's recommendation:
$ CREATE_TEST_USERS=2000 BROWSERID_FAKE_VERIFICATION=1 NODE_ENV=test_mysql npm start

This causes a fatal error on local install:
...etc...
dbwriter (900): error: unexpected database failure: Error: connect ECONNREFUSED -- at /Users/jbonacci/Git/browserid/lib/db/mysql.js:162:9
dbwriter (900): error: can't open database: Error: connect ECONNREFUSED
dbwriter exited(1)
verifier (898): warn: SIGTERM received. closing 0 connections and shutting down.
keysigner (899): warn: SIGTERM received. closing 0 connections and shutting down.
keysigner exited(0)
verifier exited(0)
all daemons torn down, exiting...

Here is a look at that directory:
$ ls -al lib/db
total 56
drwxr-xr-x 4 jbonacci staff 136 Dec 20 13:38 .
drwxr-xr-x 24 jbonacci staff 816 Dec 20 13:38 ..
-rw-r--r-- 1 jbonacci staff 10000 Dec 20 13:38 json.js
-rw-r--r-- 1 jbonacci staff 15322 Dec 20 13:38 mysql.js