Portainer unable to connect. These guys on the qnap forum found a solution.