General help

Moodle, Unoconv, Windows

 
Picture of Scott Christy
Moodle, Unoconv, Windows
 

Ok, time to take this off of the back burner and figure out how to get this to work as my deadline for launching our new Moodle server is less than a month away. 

UNOCONV is not working on my Windows install of Moodle. I had started a different thread on this but it got long and off topic so I'm starting over.

Has ANYONE been able to get UNOCONV to work in Moodle on a Windows server?

First off here's my setup:

  • Moodle 3.2.2 (Build: 20170313)
  • Windows Server 2012, R2
  • IIS 8
  • MSSQL for the dbase
  • PHP version 7.0.17
  • Libreoffice version 5
  • UNOCONV v .7


Here's the situation:

Unoconv converts documents perfectly if I log in to our server and use the command line to convert test documents. It also works in the command line if I use my unoconv.bat file that was created following the directions for the Unoconv Windows install and append to the CLI command the path to the file I want to convert.

The paths for Unoconv and Ghost are correct in the Moodle admin panel.

Ghost tests out as working perfectly in the Moodle admin panel

The Unoconv path to my .bat file tests as being correct in the Moodle Admin panel, but when you click the "Download the converted pdf test file" link in the "Test Unoconv path" screen it says "Failed to load PDF document". In the upper left corner it says "testunoconv.php"

Needless to say uploaded documents in assignments open as a blank white page in the grading screen.


Again, has ANYONE been able to get UNOCONV to work on a Windows server? I've spent WAY too much time trying to debug this so any help would be very much appreciated!

 
Average of ratings: -
Picture of Scott Christy
Re: Moodle, Unoconv, Windows
 

Anyone? Anyone?

Or should I just wait until version 3.3 and hope it works in the new version?

 
Average of ratings: -
Picture of Larry Elliott
Re: Moodle, Unoconv, Windows
 

I hope this helps someone else. I ran into a similar problem, but our environment is Linux. Despite the differences in Windows and Linux, the solution for me was to get a service running the unoconv --listener. Here is where I found the solution for Linux: https://docs.moodle.org/31/en/mod/assign/feedback/editpdf/testunoconv/upstart

 
Average of ratings: -
Picture of Howard Miller
Re: Moodle, Unoconv, Windows
Group Core developersGroup Documentation writersGroup Particularly helpful MoodlersGroup Plugin developers

Personally, I don't think unoconv is stable enough for a production site. It's single threaded, so one failed conversion brings the whole thing down.

You probably want to give this a try... https://docs.moodle.org/33/en/Google_Drive_converter

 
Average of ratings: -