This issue is fixed modifying the /etc/sudoers/
file and adding this configuration to it:
Option #1
Look up for Defaults requiretty and comment the line (# Defaults requiretty
)
Option #2
Look up for Default requiretty and change it for Defaults:pandora !requiretty
. This way you’ll be keeping pandora user from using TTY.