sonata: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/sonata - from package: sonata

You may install the required package with command apt-get install {package}
Error in other languages:
sonata: bevel nie gevind nie
sonata: comandă negăsită
sonata: comando não encontrado
sonata: commande introuvable
sonata: command not found
sonata: käsku ei ole
sonata: không tìm thấy lệnh
sonata: komanda nerasta
sonata: Kommando nicht gefunden.
sonata: kommandot finns inte
sonata: komut yok
sonata: nie znaleziono polecenia
sonata: níor aimsíodh an t-ordú
sonata: no se encontró la orden
sonata: no s'ha trobat l'ordre
sonata: opdracht niet gevonden
sonata: parancs nem található
sonata: perintah tidak ditemukan
sonata: príkaz nenájdený
sonata: příkaz nenalezen
sonata: команда не найдена
sonata: командата не е открита
sonata: 命令找不到
sonata: コマンドが見つかりません