unoconv not working while trying to convert. throws Error: Unable to connect or start own listener. Aborting

Krishnaprasad Varma picture Krishnaprasad Varma · Feb 13, 2012 · Viewed 11.8k times · Source

I am trying to convert docx to pdf using unoconv, but getting Error: Unable to connect or start own listener. Aborting. when I run unoconv -f pdf 1234.docx.

So, there must be some listener. I then started the listener via unoconv --listener.
I tried ps aux | grep soffice, and found soffice.bin.

So I tried unoconv -f pdf 1234.docx again. It still gave me the same error: Error: Unable to connect or start own listener. Aborting.

What am I doing wrong here?

Answer

Marcos García picture Marcos García · Jun 12, 2012

You have to kill all the soffice.bin processes before trying to use unoconv. I didn't have to do any "unoconv --listener" command.