New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LibreOffice path on FreeBSD is not autodetected #137
Comments
Thanks to report this! I was about to release a new version. I'll wait for this one to be fixed. Could you please take a look here and report back which path(s) are missing there for FreeBSD ? You can also look here for the default executable name. I wonder which it is not found on FreeBSD. Could you please tell me if the executable is there? Thanks! |
So the missing path for autodetect seems to be:
Here's what I'm running:
|
Could you please set the log level to TRACE ? You will then be able to see which OS commands are used and their output. Maybe it will help... |
Interestingly the command to find the PID seems to use
It's just a wrong path apparently:
Here's the complete trace I get:
|
The key line here seems to be: 2019-03-14 14:36:57.052 [OfficeProcessThread-0] TRACE o.j.process.AbstractProcessManager - Command Error: /bin/grep: not found Could you please check where is located this command ? |
I edited my previous comment afterwards, it's in |
Ok... hmmm.... I'm not sure what to think about this one. All "Unix" based OS will use the UnixProcessManager and the command to look for office processes is located here. It's hard to predict what would happen on other OS if I change the command line. It is possible to create a custom ProcessManager but it's sad that all FreeBSD users would have to do that. I'll think about it. |
According to that: https://wiki.freebsd.org/BSDgrep the |
Hm actually you might obtained pages of processes, so very bad in term of perf I guess. |
Could you please test with the latest SNAPSHOT? I created a new process manager specific to FreeeBSD, but I didn't have the chance to test it properly. |
OK I'll check that and come back to you. |
So I just tested with 4.2.3-SNAPSHOT and apparently I still have some problems. From what I see the I tried to put a breakpoint on the
when I run it directly from command line I got libreoffice starting and opening the start window, I tried on my linux machine and I obtained the same behaviour so I guess it's normal even though there is an Here's the log I obtained:
|
I finally got time to work on this! I was a hard one. The right command was: Also, I had to add a sleep of 2 seconds before trying to get the PID of an office process once started, orelse the first connection attempt to the office process would hang for about 5 minutes before throwing a connection exception. Not sure why. 4.2.3 will be released this week. |
Great, thanks! |
Hi @sbraconnier
I recently discovered that I wasn't able to make jodconverter running on a FreeBSD. I tested by just installing a FreeBSD and libreoffice using the standard way (i.e.
pkg install libreoffice
). Then when trying to run a toy example with jodconverter I have the following issues:See:
and
I don't know much about FreeBSD, mostly testing because of an XWiki user issue. But I have a virtual machine ready to make some tests if you need more info or if you might have an idea of a fix to test.
[EDIT] I made my tests with jodconverter 4.2.2
The text was updated successfully, but these errors were encountered: