onewayautomation / ogamma-logger

Integration tool to collect, store, visualize, analyze OPC UA data.
50 stars 16 forks source link

Failed to synchronize instance settings #16

Closed JulLeuverink closed 3 years ago

JulLeuverink commented 3 years ago

Hi,

I get following Error when I first docker-compose up my Stack.

Failed to synchronize instance settings with configuration database, error: Detected invalid state (the instance [258057383933900F] has no configuration) at /home/user/workspace/uarest/ogamma-logger-lib/src/GlobalVariables.cpp/752

However on the second start everything seems to work except the timesereisDB (postgres/timescaleDB) I preconfigured doesn't exist.

JulLeuverink commented 3 years ago

So, this error occures when you delete the config.json.instance.json and start the ogamma-logger container without reseting the configuration database.

For me these steps fixed it:

  1. Stop the whole stack
  2. Delete everything the ogamma container createt (logs, instance folder, config.json.instance.json, etc.)
  3. Remove ogamma container
  4. Remove volumes of ogamma container and configdb
  5. Start the stack again

You will loose all configurations done after you first startet ogamma-logger. I wouldn't recommend this for production environments.

RavilN commented 3 years ago

I thought this happens in the fresh installation. If you delete file config.json.instance.json, yes, you would have this kind of issue. Thank you for looking at this!