Posts: 80
Threads: 26
Joined: Oct 2015
Reputation:
24
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 ?
Posts: 3,564
Threads: 36
Joined: Apr 2014
Reputation:
49
you have to install the docker container as a service and set the global variable to the IP of the docker container
Joe
TSolucio
Posts: 3,564
Threads: 36
Joined: Apr 2014
Reputation:
49
docker run -d -p 3000:3000 lynxtaa/unoserver-web:latest
Joe
TSolucio
Posts: 80
Threads: 26
Joined: Oct 2015
Reputation:
24
02-22-2023, 03:05 PM
(This post was last modified: 02-22-2023, 03:10 PM by geraldbigot.)
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
Posts: 3,564
Threads: 36
Joined: Apr 2014
Reputation:
49
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
Posts: 3,564
Threads: 36
Joined: Apr 2014
Reputation:
49
what value does the global variable have?
Joe
TSolucio
Posts: 80
Threads: 26
Joined: Oct 2015
Reputation:
24
I tested with http://localhost:3000 and also http://myserverIP:3000