industrial-edge/archiving-and-visualization

InfluxDB error

sandumarius opened this issue · 4 comments

Hello,

I tried to run the application but when I try to connect to influx source it gives me error:
1
I tried to change the timeout value:
//wait 12 seconds before creating database (influx container needs a while to initialize)
setTimeout(createDatabase, 100000);

but the problem persists.

What can be the problem? I attached also the logs
5a390cb994844f36915caed9ebf0f046 - 2021-04-26 10_39_54.917.tar.zip

Thank you!

I was not able to reproduce this issue with the current version of this project.

Taking a look at the logs for some reason the InfluxDB container start over a minute later than the data_collector which is creating the database and grafana.

Did you make any modifications other than increasing timeout? Like modifications in docker-compose.yml (e.g. depends on)

Also the implementation of how the database is created in the data_collector needs to be improved. So no matter how long influxdb takes for starting up, the database will created.

I made no other modification to the system files.
What can I further do to test? Maybe try an application already compiled?
Thank you!

Implemented solution to resolve bug in branch BugFix-InfluxDB-error

Please pull branch "BugFix-InfluxDB-error", rebuild application and test whether this will fix your issue.

After completely uninstalling the app from IPC and then deploying the branch, I finally managed to get it work. Only with updating the app it seems that something remains from old installations and don't work.
Thank you!
1