iotagent-ul icon indicating copy to clipboard operation
iotagent-ul copied to clipboard

Iotagent-ul not reconnecting mongodb

Open hungtv31 opened this issue 7 years ago • 1 comments

Hi everybody

When the DB server shuts down, then it is turned on. However, Iotagent-ul does not reconnect itself.

hungtv31 avatar Apr 08 '17 08:04 hungtv31

What mongodb options are in your config.js? Did you tried with something like:

  mongodb: {
        host: '127.0.0.1',
        port: 27017,
        db: 'iotagent-ul',
        replicaSet: '',
        retries: 5,
        retryTime: 5
    },

Retires and retryTime are important to achieve that.

AlvaroVega avatar May 10 '18 08:05 AlvaroVega