I understood where the problem started. If, instead of going directly to the inn, I chose to enter the city as a slave and then escape, when I take the job and talk to the rancher while still wearing the slave outfit, he tells me to go away.
Even though I can talk normally to everyone else, he sees me as a slave, and I cannot continue the mission.