Giter Site home page Giter Site logo

alphakevin / unoconv-server Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 15.0 191 KB

A simple RESTful server for converting documents using unoconv

License: MIT License

JavaScript 97.85% Shell 0.39% Dockerfile 1.76%
unoconv restful convert converting-documents pdf

unoconv-server's Issues

Error: Unable to connect or start own listener. Aborting

I wanted to test how stable this is for a project of mine with a high workload
So I started 5 while true loops with curl in it to see how unoconv-server handles this.

At first everything seemed fine, but after a few minutes I started seeing these error messages

unoconv --format pdf --output /tmp/dbfa20ed-581d-4f97-8355-6477d9576716.pdf /tmp/dbfa20ed-581d-4f97-8355-6477d9576716.ods
Error: Failed to connect to /usr/lib/libreoffice/program/soffice.bin (pid=27433) in 6 seconds.
Connector : couldn't connect to socket (Connection refused)
Error: Unable to connect or start own listener. Aborting.

    at ChildProcess.handler.on (/home/christopher/Projects/node_modules/unoconv-server/lib/converter.js:148:25)
    at ChildProcess.emit (events.js:188:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
Error: Failed to connect to /usr/lib/libreoffice/program/soffice.bin (pid=27449) in 6 seconds.
Connector : couldn't connect to socket (Connection refused)
Error: Unable to connect or start own listener. Aborting.

    at ChildProcess.handler.on (/home/christopher/Projects/node_modules/unoconv-server/lib/converter.js:148:25)
    at ChildProcess.emit (events.js:188:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
Error: Failed to connect to /usr/lib/libreoffice/program/soffice.bin (pid=27450) in 6 seconds.
Connector : couldn't connect to socket (Connection refused)
Error: Unable to connect or start own listener. Aborting.

    at ChildProcess.handler.on (/home/christopher/Projects/node_modules/unoconv-server/lib/converter.js:148:25)
    at ChildProcess.emit (events.js:188:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
POST /convert/format/pdf
[ '--format', 'pdf' ] { format: 'pdf' } '/tmp/26f0beb2-fd2e-45d0-8502-beb0d2d63354.pdf'

Unhandled 'error' event spawn unoconv ENOENT

unoconv-server username$ ./unoconv-server start

starting unoconv listener...

events.js:182
throw er; // Unhandled 'error' event
^

Error: spawn unoconv ENOENT
at exports._errnoException (util.js:1024:11)

Getting this error while starting server in OSX yosemite

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.