Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2017/12/15 17:29:17 Waiting for: tcp://postgresql.local:5432
- 2017/12/15 17:29:17 Connected to tcp://postgresql.local:5432
- PING postgresql.local (172.27.0.2): 56 data bytes
- 64 bytes from 172.27.0.2: icmp_seq=0 ttl=64 time=0.077 ms
- --- postgresql.local ping statistics ---
- 1 packets transmitted, 1 packets received, 0% packet loss
- round-trip min/avg/max/stddev = 0.077/0.077/0.077/0.000 ms
- Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
- Ign http://deb.debian.org jessie InRelease
- Get:2 http://deb.debian.org jessie-updates InRelease [145 kB]
- Get:3 http://deb.debian.org jessie Release.gpg [2434 B]
- Get:4 http://deb.debian.org jessie Release [148 kB]
- Get:5 http://security.debian.org jessie/updates/main amd64 Packages [598 kB]
- Get:6 http://deb.debian.org jessie-updates/main amd64 Packages [23.2 kB]
- Get:7 http://deb.debian.org jessie/main amd64 Packages [9064 kB]
- Fetched 10.0 MB in 7s (1374 kB/s)
- Reading package lists...
- Reading package lists...
- Building dependency tree...
- Reading state information...
- The following extra packages will be installed:
- lsb-release postgresql-client-9.4 postgresql-client-common
- Suggested packages:
- lsb postgresql-9.4 postgresql-doc-9.4
- The following NEW packages will be installed:
- lsb-release postgresql-client postgresql-client-9.4 postgresql-client-common
- 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
- Need to get 1238 kB of archives.
- After this operation, 4898 kB of additional disk space will be used.
- Get:1 http://deb.debian.org/debian/ jessie/main lsb-release all 4.1+Debian13+nmu1 [26.5 kB]
- Get:2 http://deb.debian.org/debian/ jessie/main postgresql-client-common all 165+deb8u3 [73.8 kB]
- Get:3 http://deb.debian.org/debian/ jessie/main postgresql-client-9.4 amd64 9.4.15-0+deb8u1 [1086 kB]
- Get:4 http://deb.debian.org/debian/ jessie/main postgresql-client all 9.4+165+deb8u3 [52.4 kB]
- debconf: delaying package configuration, since apt-utils is not installed
- Fetched 1238 kB in 1s (866 kB/s)
- Selecting previously unselected package lsb-release.
- (Reading database ...
- (Reading database ... 5%
- (Reading database ... 10%
- (Reading database ... 15%
- (Reading database ... 20%
- (Reading database ... 25%
- (Reading database ... 30%
- (Reading database ... 35%
- (Reading database ... 40%
- (Reading database ... 45%
- (Reading database ... 50%
- (Reading database ... 55%
- (Reading database ... 60%
- (Reading database ... 65%
- (Reading database ... 70%
- (Reading database ... 75%
- (Reading database ... 80%
- (Reading database ... 85%
- (Reading database ... 90%
- (Reading database ... 95%
- (Reading database ... 100%
- (Reading database ... 21671 files and directories currently installed.)
- Preparing to unpack .../lsb-release_4.1+Debian13+nmu1_all.deb ...
- Unpacking lsb-release (4.1+Debian13+nmu1) ...
- Selecting previously unselected package postgresql-client-common.
- Preparing to unpack .../postgresql-client-common_165+deb8u3_all.deb ...
- Unpacking postgresql-client-common (165+deb8u3) ...
- Selecting previously unselected package postgresql-client-9.4.
- Preparing to unpack .../postgresql-client-9.4_9.4.15-0+deb8u1_amd64.deb ...
- Unpacking postgresql-client-9.4 (9.4.15-0+deb8u1) ...
- Selecting previously unselected package postgresql-client.
- Preparing to unpack .../postgresql-client_9.4+165+deb8u3_all.deb ...
- Unpacking postgresql-client (9.4+165+deb8u3) ...
- Setting up lsb-release (4.1+Debian13+nmu1) ...
- Setting up postgresql-client-common (165+deb8u3) ...
- Setting up postgresql-client-9.4 (9.4.15-0+deb8u1) ...
- update-alternatives: using /usr/share/postgresql/9.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
- Setting up postgresql-client (9.4+165+deb8u3) ...
- ?column?
- ----------
- 1
- (1 row)
- > api@1.0.0 start /usr/src/app
- > node .
- NODE_ENV production
- using configuration { host: 'postgresql.local',
- port: 5432,
- username: 'admin',
- password: '12345',
- database: 'dbname',
- min: 0,
- max: 5,
- name: 'postgresql',
- connector: 'postgresql' }
- Web server listening at: http://0.0.0.0:9000
- Browse your REST API at http://0.0.0.0:9000/explorer
- Connection fails: Error: connect ECONNREFUSED 127.0.0.1:5432
- It will be retried for the next request.
- events.js:183
- throw er; // Unhandled 'error' event
- ^
- Error: connect ECONNREFUSED 127.0.0.1:5432
- at Object._errnoException (util.js:1024:11)
- at _exceptionWithHostPort (util.js:1046:20)
- at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
- npm ERR! code ELIFECYCLE
- npm ERR! errno 1
- npm ERR! api@1.0.0 start: `node .`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the api@1.0.0 start script.
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
- npm ERR! A complete log of this run can be found in:
- npm ERR! /root/.npm/_logs/2017-12-15T17_30_07_201Z-debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement