Shairport Sync and octoprint have the same port, specifically 5000. That’s why octoprint didn’t work for me.
I have solved it by changing the octoprint port as indicated in the manual https://docs.octoprint.org/en /master/configuration/config_yaml.html in the config.yaml file that is in /mnt/dietpi_userdata/octoprint and add
port: 5555
the port that we want, I have put 5555.