screenshots icon indicating copy to clipboard operation
screenshots copied to clipboard

RDS_USERNAME environment variable not reflected in bin/run-server output

Open ben-en opened this issue 10 years ago • 1 comments

According to the README the following environmental variables are used to modify Postgres login: RDS_USERNAME, RDS_PASSWORD, and RDS_HOSTNAME

When using the command RDS_USERNAME=postgres; ./bin/run-server the following output is seen.

ben@self-service:~/pageshot$ RDS_USERNAME=postgres; ./bin/run-server 
11 Dec 19:45:04 - [nodemon] v1.4.1
11 Dec 19:45:04 - [nodemon] to restart at any time, enter `rs`
11 Dec 19:45:04 - [nodemon] watching: /home/ben/pageshot/server/**/* /home/ben/pageshot/static/**/* /home/ben/pageshot/shared/**/* Makefile
11 Dec 19:45:04 - [nodemon] starting `bash ./bin/run-server --restart`
./bin/_write_build_time > build/server/build-time.js
Setting up tables on postgres://ben@localhost:5432/ben
server listening on http://localhost:10080/
content server listening on http://localhost:10081/
Got error creating and testing tables: { [error: password authentication failed for user "ben"]
  name: 'error',
  length: 92,
  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' }
Could not create signing keys: { [error: password authentication failed for user "ben"]
  name: 'error',
  length: 92,
  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' }
^C

Notice that the user is ben not postgres. Authentication error is most likely a misconfigured database on my end, so that's not relevant to this report.

ben-en avatar Dec 11 '15 19:12 ben-en

Semicolons don't assign environmental variables.

ben-en avatar Jan 07 '16 15:01 ben-en