There must be a username for database set at the end of migration process. If not set it tries to load USER env variable. Which is not available when lisk scripts are started from the some non-interactive shell.
Version 0.9.x had behavior to use lisk username if there is no username set in config.json. This behavior is changed in 1.0.x. Not sure the which cause this behavioral change, pg-promise may be looked into it.
Update the update_config.js script to set user to lisk if there is no user after the final configuration is generated.
1.0.x
@fchavant @ManuGowda Created the issue based on discussion we had on configuration migration.
@fchavant Can we make sure that USER variable was not set in lisk-scripts for 0.9.x releases.
@nazarhussain I had discussion with @fchavant about the env variable USER was not set in lisk-scripts for 0.9.x releases.
Closed by #2227 / #2229 / #2240