Hello team!
SONiC fials to build when building 202305 branch.
=> syncd, radv, bgp, and swss do not come up
Not sure but it seems to be due to the following error:
=> ModuleNotFoundError: No module named 'sonic_platform'
============================================================================================
Jul 14 14:10:39.270504 sonic NOTICE healthd[1731]: Starting up...
Jul 14 14:10:39.270642 sonic WARNING healthd[1731]: sonic_platform package not installed. Cannot start system-health daemon
Jul 14 14:10:39.274164 sonic INFO healthd[1731]: Traceback (most recent call last):
Jul 14 14:10:39.274262 sonic INFO healthd[1731]: File "/usr/local/bin/healthd", line 125, in <module>
Jul 14 14:10:39.274499 sonic INFO healthd[1731]: main()
Jul 14 14:10:39.274561 sonic INFO healthd[1731]: File "/usr/local/bin/healthd", line 121, in main
Jul 14 14:10:39.274606 sonic INFO healthd[1731]: health_monitor.run()
Jul 14 14:10:39.274649 sonic INFO healthd[1731]: File "/usr/local/bin/healthd", line 89, in run
Jul 14 14:10:39.274707 sonic INFO healthd[1731]: sysmon.task_stop()
Jul 14 14:10:39.274770 sonic INFO healthd[1731]: UnboundLocalError: local variable 'sysmon' referenced before assignment
Jul 14 14:10:39.378153 sonic NOTICE systemd[1]: system-health.service: Main process exited, code=exited, status=1/FAILURE
Jul 14 14:10:39.378280 sonic WARNING systemd[1]: system-health.service: Failed with result 'exit-code'.
=============================================================================================
fardeola@sonic:~$ docker ps -a
CONTAINER
ID IMAGE COMMAND
CREATED STATUS PORTS NAMES
401024e0d65f
docker-fpm-frr:latest "/usr/bin/docker_ini…" 4
minutes ago Exited (137) 4 minutes ago bgp
2252458e87c4
docker-router-advertiser:latest "/usr/bin/docker-ini…" 4
minutes ago Exited (0) 4 minutes ago radv
461c7868d490
docker-syncd-bfn:latest "/usr/local/bin/supe…" 4
minutes ago Exited (0) 4 minutes ago syncd
02545be1d6b9
docker-teamd:latest "/usr/local/bin/supe…" 4
minutes ago Exited (0) 4 minutes ago teamd
0286bde30d43
docker-orchagent:latest "/usr/bin/docker-ini…" 4
minutes ago Exited (0) 4 minutes ago swss
db038597aa85
docker-eventd:latest "/usr/local/bin/supe…" 4
minutes ago Up 4 minutes eventd
7add1a9e9af9
docker-database:latest "/usr/local/bin/dock…" 2 days
ago Up 4 minutes database
fardeola@sonic:~$ show version
SONiC Software Version: SONiC.202305.0-dirty-20240710.184626
SONiC OS Version: 11
Distribution: Debian 11.10
Kernel: 5.10.0-23-2-amd64
Build commit: 238cbda17
Build date: Thu Jul 11 00:34:22 UTC 2024
Built by: fardeola@fardeola
Platform: x86_64-asterfusion_cx308p_48y_t-r0
HwSKU: None
ASIC: barefoot
ASIC Count: 1
Serial Number: N/A
Model Number: N/A
Hardware Revision: N/A
Uptime: 14:12:59 up 2 min, 2 users, load average: 0.29, 0.25, 0.10
Date: Sun 14 Jul 2024 14:12:59
Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-macsec latest 1610046be291 319MB
docker-dhcp-relay latest 9409bef6f425 307MB
docker-syncd-bfn 202305.0-dirty-20240710.184626 42713c273277 2.25GB
docker-syncd-bfn latest 42713c273277 2.25GB
docker-sonic-telemetry 202305.0-dirty-20240710.184626 780e2af519e6 386MB
docker-sonic-telemetry latest 780e2af519e6 386MB
docker-teamd 202305.0-dirty-20240710.184626 609e302669ed 317MB
docker-teamd latest 609e302669ed 317MB
docker-snmp 202305.0-dirty-20240710.184626 ac324e9e9376 338MB
docker-snmp latest ac324e9e9376 338MB
docker-sflow 202305.0-dirty-20240710.184626 39692ebbc7f5 318MB
docker-sflow latest 39692ebbc7f5 318MB
docker-router-advertiser 202305.0-dirty-20240710.184626 cecb455ab1b0 299MB
docker-router-advertiser latest cecb455ab1b0 299MB
docker-platform-monitor 202305.0-dirty-20240710.184626 b44d535b6711 420MB
docker-platform-monitor latest b44d535b6711 420MB
docker-sonic-p4rt 202305.0-dirty-20240710.184626 62dedbfd1dc3 870MB
docker-sonic-p4rt latest 62dedbfd1dc3 870MB
docker-orchagent 202305.0-dirty-20240710.184626 4bdc89277786 328MB
docker-orchagent latest 4bdc89277786 328MB
docker-nat 202305.0-dirty-20240710.184626 e653d1e83e92 320MB
docker-nat latest e653d1e83e92 320MB
docker-mux 202305.0-dirty-20240710.184626 434e6dbc356b 348MB
docker-mux latest 434e6dbc356b 348MB
docker-lldp 202305.0-dirty-20240710.184626 09ceb9f0f7c5 341MB
docker-lldp latest 09ceb9f0f7c5 341MB
docker-fpm-frr 202305.0-dirty-20240710.184626 f0d42b1cee1a 348MB
docker-fpm-frr latest f0d42b1cee1a 348MB
docker-eventd 202305.0-dirty-20240710.184626 95cc10a17157 299MB
docker-eventd latest 95cc10a17157 299MB
docker-database 202305.0-dirty-20240710.184626 9f7959ab4a0f 299MB
docker-database latest 9f7959ab4a0f 299MB
docker-sonic-mgmt-framework 202305.0-dirty-20240710.184626 80a9c9b35ece 430MB
docker-sonic-mgmt-framework latest 80a9c9b35ece 430MB
=============================================================================================
Thank you for taking the time to look at this.
Regards,
Fabio