We're updating the issue view to help you get more done. 

cloudify-stage.service auto-restart all time after snapshot restore

Description

This issue appears when restoring a snapshot from HA cluster v 4.4 to single manager v 4.5.

Stage service auto-restarting always. In error.log next error:

[2018-10-05 11:33:14.520] [ERROR] Server - Error has occured { SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:15432
at connection.connect.err (/opt/cloudify-stage/backend/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:116:24)
at Client.<anonymous> (/opt/cloudify-stage/backend/node_modules/pg/lib/client.js:203:5)
at emitOne (events.js:116:13)
at Connection.emit (events.js:211:7)
at Socket.<anonymous> (/opt/cloudify-stage/backend/node_modules/pg/lib/connection.js:86:10)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
name: 'SequelizeConnectionRefusedError',
parent:
{ Error: connect ECONNREFUSED 127.0.0.1:15432
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 15432 },
original:
{ Error: connect ECONNREFUSED 127.0.0.1:15432
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 15432 } }

Steps to Reproduce

.

Why Propose Close?

None

Status

Assignee

Ido Berkovitch

Reporter

Vladimir Antonovich

Severity

Medium

Target Version

4.5.5

Premium Only

yes

Found In Version

4.4

QA Owner

None

Bug Type

None

Customer Encountered

None

Customer Name

None

Release Notes

yes

Priority

None

Sprint

None

Fix versions

Priority

Unprioritized