Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unoconv server settings
#1
I installed unoconv like explained in the gendoc documentation.
I tested it in command line on my server : it produces pdf export well
I put unoconv listening : unoconv --listener &
I put my convert_url in global variable

When I'm trying to export pdf from coreBOS it generated 0 ko pdf file.

What am I doing wrong ?
Reply
#2
you installed unoconv in the server, not the docker container of unoconv.

I mean there are two ways of configuring unoconv, one is installing all the software directly in your server and the other is launching the unoconv docker container.

the global variable is for the docker container, not for the server install

unoconv has been deprecated, you must use unoserver and the global variable GenDoc_URL_UnoServer

we are using this docker container: https://github.com/lynxtaa/unoserver-web
Joe
TSolucio
Reply
#3
(02-22-2023, 01:05 PM)joebordes Wrote: you installed unoconv in the server, not the docker container of unoconv.

I mean there are two ways of configuring unoconv, one is installing all the software directly in your server and the other is launching the unoconv docker container.

the global variable is for the docker container, not for the server install

unoconv has been deprecated, you must use unoserver and the global variable GenDoc_URL_UnoServer

we are using this docker container:  https://github.com/lynxtaa/unoserver-web

I just tried to create this GV :  https://github.com/lynxtaa/unoserver-web as GenDoc_URL_UnoServer
but I obtained this error opening exported pdf :

"PDF document is damaged"
Reply
#4
you have to install the docker container as a service and set the global variable to the IP of the docker container
Joe
TSolucio
Reply
#5
docker run -d -p 3000:3000 lynxtaa/unoserver-web:latest
Joe
TSolucio
Reply
#6
I installed the docker container even I'm not sure. I never used docker before today.
How can I check unoserver is well installed and configured ?

Here is the result of "sudo docker image ls"

REPOSITORY              TAG       IMAGE ID       CREATED         SIZE
lynxtaa/unoserver-web   latest    488c9d777081   5 weeks ago     912MB
hello-world             latest    feb5d9fea6a5   17 months ago   13.3kB
Reply
#7
try `docker ps` that should show you the process running

then you can try the command in the repo

curl \
--request POST 'http://localhost:3000/convert/pdf' \
--form 'file=@"/path/to/file.docx"' \
-o my.pdf

finally, try using that same URL `http://localhost:3000`
Joe
TSolucio
Reply
#8
(02-22-2023, 03:16 PM)joebordes Wrote: try `docker ps`  that should show you the process running

then you can try the command in the repo

curl \
--request POST 'http://localhost:3000/convert/pdf' \
--form 'file=@"/path/to/file.docx"' \
-o my.pdf

finally, try using that same URL `http://localhost:3000`

docker ps : CONTAINER ID   IMAGE                          COMMAND                  CREATED             STATUS             PORTS                    NAMES

682123ab3dd8   lynxtaa/unoserver-web:latest   "/tini -- node -r do…"   About an hour ago   Up About an hour   0.0.0.0:3000->3000/tcp   jovial_goodall

OK



curl --request POST 'http://localhost:3000/convert/pdf' --form 'file=@"/home/gb/comp.odt"' -o my.pdf  :

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed
100  122k  100 71831  100 53308  12082   8966  0:00:05  0:00:05 --:--:-- 19195

OK

but when I click "Export PDF" in coreBOS :

"Le type de fichier document texte brut (text/plain) n’est pas pris en charge"
Reply
#9
what value does the global variable have?
Joe
TSolucio
Reply
#10
I tested with http://localhost:3000 and also http://myserverIP:3000
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)