Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. 2017/12/15 17:29:17 Waiting for: tcp://postgresql.local:5432
  2. 2017/12/15 17:29:17 Connected to tcp://postgresql.local:5432
  3. PING postgresql.local (172.27.0.2): 56 data bytes
  4. 64 bytes from 172.27.0.2: icmp_seq=0 ttl=64 time=0.077 ms
  5. --- postgresql.local ping statistics ---
  6. 1 packets transmitted, 1 packets received, 0% packet loss
  7. round-trip min/avg/max/stddev = 0.077/0.077/0.077/0.000 ms
  8. Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
  9. Ign http://deb.debian.org jessie InRelease
  10. Get:2 http://deb.debian.org jessie-updates InRelease [145 kB]
  11. Get:3 http://deb.debian.org jessie Release.gpg [2434 B]
  12. Get:4 http://deb.debian.org jessie Release [148 kB]
  13. Get:5 http://security.debian.org jessie/updates/main amd64 Packages [598 kB]
  14. Get:6 http://deb.debian.org jessie-updates/main amd64 Packages [23.2 kB]
  15. Get:7 http://deb.debian.org jessie/main amd64 Packages [9064 kB]
  16. Fetched 10.0 MB in 7s (1374 kB/s)
  17. Reading package lists...
  18. Reading package lists...
  19. Building dependency tree...
  20. Reading state information...
  21. The following extra packages will be installed:
  22. lsb-release postgresql-client-9.4 postgresql-client-common
  23. Suggested packages:
  24. lsb postgresql-9.4 postgresql-doc-9.4
  25. The following NEW packages will be installed:
  26. lsb-release postgresql-client postgresql-client-9.4 postgresql-client-common
  27. 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
  28. Need to get 1238 kB of archives.
  29. After this operation, 4898 kB of additional disk space will be used.
  30. Get:1 http://deb.debian.org/debian/ jessie/main lsb-release all 4.1+Debian13+nmu1 [26.5 kB]
  31. Get:2 http://deb.debian.org/debian/ jessie/main postgresql-client-common all 165+deb8u3 [73.8 kB]
  32. Get:3 http://deb.debian.org/debian/ jessie/main postgresql-client-9.4 amd64 9.4.15-0+deb8u1 [1086 kB]
  33. Get:4 http://deb.debian.org/debian/ jessie/main postgresql-client all 9.4+165+deb8u3 [52.4 kB]
  34. debconf: delaying package configuration, since apt-utils is not installed
  35. Fetched 1238 kB in 1s (866 kB/s)
  36. Selecting previously unselected package lsb-release.
  37. (Reading database ...
  38. (Reading database ... 5%
  39. (Reading database ... 10%
  40. (Reading database ... 15%
  41. (Reading database ... 20%
  42. (Reading database ... 25%
  43. (Reading database ... 30%
  44. (Reading database ... 35%
  45. (Reading database ... 40%
  46. (Reading database ... 45%
  47. (Reading database ... 50%
  48. (Reading database ... 55%
  49. (Reading database ... 60%
  50. (Reading database ... 65%
  51. (Reading database ... 70%
  52. (Reading database ... 75%
  53. (Reading database ... 80%
  54. (Reading database ... 85%
  55. (Reading database ... 90%
  56. (Reading database ... 95%
  57. (Reading database ... 100%
  58. (Reading database ... 21671 files and directories currently installed.)
  59. Preparing to unpack .../lsb-release_4.1+Debian13+nmu1_all.deb ...
  60. Unpacking lsb-release (4.1+Debian13+nmu1) ...
  61. Selecting previously unselected package postgresql-client-common.
  62. Preparing to unpack .../postgresql-client-common_165+deb8u3_all.deb ...
  63. Unpacking postgresql-client-common (165+deb8u3) ...
  64. Selecting previously unselected package postgresql-client-9.4.
  65. Preparing to unpack .../postgresql-client-9.4_9.4.15-0+deb8u1_amd64.deb ...
  66. Unpacking postgresql-client-9.4 (9.4.15-0+deb8u1) ...
  67. Selecting previously unselected package postgresql-client.
  68. Preparing to unpack .../postgresql-client_9.4+165+deb8u3_all.deb ...
  69. Unpacking postgresql-client (9.4+165+deb8u3) ...
  70. Setting up lsb-release (4.1+Debian13+nmu1) ...
  71. Setting up postgresql-client-common (165+deb8u3) ...
  72. Setting up postgresql-client-9.4 (9.4.15-0+deb8u1) ...
  73. 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
  74. Setting up postgresql-client (9.4+165+deb8u3) ...
  75. ?column?
  76. ----------
  77. 1
  78. (1 row)
  79.  
  80.  
  81. > api@1.0.0 start /usr/src/app
  82. > node .
  83.  
  84. NODE_ENV production
  85. using configuration { host: 'postgresql.local',
  86. port: 5432,
  87. username: 'admin',
  88. password: '12345',
  89. database: 'dbname',
  90. min: 0,
  91. max: 5,
  92. name: 'postgresql',
  93. connector: 'postgresql' }
  94. Web server listening at: http://0.0.0.0:9000
  95. Browse your REST API at http://0.0.0.0:9000/explorer
  96. Connection fails: Error: connect ECONNREFUSED 127.0.0.1:5432
  97. It will be retried for the next request.
  98. events.js:183
  99. throw er; // Unhandled 'error' event
  100. ^
  101.  
  102. Error: connect ECONNREFUSED 127.0.0.1:5432
  103. at Object._errnoException (util.js:1024:11)
  104. at _exceptionWithHostPort (util.js:1046:20)
  105. at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
  106. npm ERR! code ELIFECYCLE
  107. npm ERR! errno 1
  108. npm ERR! api@1.0.0 start: `node .`
  109. npm ERR! Exit status 1
  110. npm ERR!
  111. npm ERR! Failed at the api@1.0.0 start script.
  112. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  113.  
  114. npm ERR! A complete log of this run can be found in:
  115. npm ERR! /root/.npm/_logs/2017-12-15T17_30_07_201Z-debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement