I needed to convert a xlsx file to ods, but when I used unoconv in production, I found this particular error:
$ sudo unoconv -f ods -o temp.xlsx temp.ods Error: Unable to connect or start own listener. Aborting.
I had unoconv and LibreOffice installed and Python 2.7.3, perfectly normal configurations, soffice.bin was stopped, and even then it showed this error. It made me crazy until my colleague Rafael figured it out: It was a problem with our hosts file.
When the localhost address in /etc/hosts file was correctly changed to 127.0.0.1 it immediately started working.
When looking at the running soffice.bin process, we see that libreoffice is listening to localhost:2002
/usr/lib/libreoffice/program/soffice.bin --headless --invisible --nocrashreport --nodefault --nofirststartwizard --nologo --norestore --accept=socket,host=localhost,port=2002;urp;StarOffice.ComponentContext
Kind of a rookie mistake but since I didn't found this answer anywhere and the error wasn't very explanatory, I thought it could help future googlers, saving hours of research.