thingsboard / thingsboard-edge

Apache License 2.0
101 stars 77 forks source link

No able to install TB-Edge CE 3.7.0, 3.6.4 or 3.6.3 => Database initialization scripts fail #112

Closed ashdam closed 4 months ago

ashdam commented 4 months ago

Describe the bug When thingsboard edge is initialization the database creation in postgres it fails in these version we tried with the following error. Note that different error points depending on the version installed. This corresponds to 3.6.3

Note that we had no problems installing TB CE in the same machine and using container as well.

image

image

Using podman-compose up -d

using this yml (changed port to avoid conflicts with TB CE )

`version: '3.8' services: mytbedge: restart: always image: "thingsboard/tb-edge:3.6.3EDGE" ports:

volumes: tb-edge-data: name: tb-edge-data tb-edge-logs: name: tb-edge-logs tb-edge-postgres-data: name: tb-edge-postgres-data `

Your Server Environment

image

Your Client Environment

Couln't get to use any client. Error was during installation

Your Device

Same as above

To Reproduce Steps to reproduce the behavior:

  1. execute: podman-compose up -d
  2. check the logs: podman-compose logs -f
  3. Visualize the error

Expected behavior Software is installed

Screenshots If applicable, please add screenshots to help explain your problem.

Additional context Please feel free to add any other context about the problem here.


Disclaimer

We appreciate your contribution whether it is a bug report, feature request, or pull request with improvement (hopefully). Please comply with the Community ethics policy, and do not expect us to answer your requests immediately. Also, do not treat GitHub issues as a support channel.

volodymyr-babak commented 4 months ago

@ashdam

I did test with the same configuration that you attached and it works like expected: 2024-06-26_11-54

2024-06-26_11-54_1

But I see the difference in our outputs and looks like in your case docker volumes are not empty and contains some data. Could you please clarify what is inside docker volumes? Does it work fine for you if you remove docker volumes before starting containers? docker volume rm tb-edge-data tb-edge-logs tb-edge-postgres-data

ashdam commented 4 months ago

Thank you very much! That was the problem :)

ashdam commented 4 months ago

Testing done and it worked