I had the same issue. I was trying to run the irrecord command in /etc/lircd/lircd.conf.d folder as this is where the guide i was following left me at that point. What solved it for me was to run the command after having stopped the lircd service from my home folder.