project-chip / certification-tool

A test harness and tooling designed to simplify development, testing, and certification for devices, guided by the Connectivity Standards Alliance.
https://csa-iot.org/
Apache License 2.0
26 stars 13 forks source link

[Bug] Follow Matter_TH_User_Guide.adoc when I run ./scripts/start.sh it show service "backend" is not running #274

Open xiaojianjian92 opened 1 month ago

xiaojianjian92 commented 1 month ago

Describe the bug

I follow Matter_TH_User_Guide.adoc Install TH environment,when everything is done, run ./scripts/start.sh, it say service "backend" is not running Even if start the container manually, it will automatically exit after a period of time. image

Steps to reproduce the behavior

docker ps -a

./scripts/start.sh

docker ps -a

Expected behavior

backend run succeed and Web can access

Log files

backend not running.log whole log is here matter_th_backend_exit.log

PICS file

No response

Screenshots

No response

Environment

No response

Additional Information

No response

antonio-amjr commented 4 weeks ago

Hi @xiaojianjian92,

It seems you're trying to install the main branch, as I noticed by the logs you've shared. Can you try to install the current stable release?

You may clone directly in the branch as: $ git clone -b v2.10+spring2024 https://github.com/project-chip/certification-tool.git Or just checkout to the v2.10+spring2024.

Then the rest is similar:

Let me know if that helps.

xiaojianjian92 commented 3 weeks ago

It works when I checkcout to v2.10+spring2024. But I'm still confused as to why the main branch failed. It seems like missing dependencies when installing

antonio-amjr commented 3 weeks ago

It works when I checkcout to v2.10+spring2024. But I'm still confused as to why the main branch failed. It seems like missing dependencies when installing

Great that the v2.10+spring2024 worked out.

About the main branch, it has indeed some known issues with dependencies and more but they were addressed already and it'll be upgraded really soon. The PR#278 should enter this week still.

Edit: The PR was just merged into main

Either way, please remember that we always recommend to use the stable releases instead of the main branch. You may check them out in the following Github Releases page

JonathanHahn commented 3 weeks ago

@antonio-amjr I'm seeing the same issue with the backend not running when I'm using the branch that points to the latest release (v2.10.1+spring2024) and even on v2.10+spring2024.

antonio-amjr commented 3 weeks ago

Hi @JonathanHahn

That's odd, let's see your case as well. Is your case a clean install? Flashing a brand new Ubuntu server 22.04.4 and then cloning the v2.10.1+spring2024?

Please share all information relevant about your installation as well:

JonathanHahn commented 3 weeks ago

Hi @JonathanHahn

That's odd, let's see your case as well. Is your case a clean install? Flashing a brand new Ubuntu server 22.04.4 and then cloning the v2.10.1+spring2024?

Please share all information relevant about your installation as well:

  • $ ./scripts/th/th-doctor.sh --complete
  • All the execution logs/ Shell logs

I did switch back and forth between branches (main, v2.10.1+spring2024, v2.10+spring2024). I will try to re-clone as a clean installation.