> This is not the best solution from security perspective
I agree. The problem is that it doesn't become obvious as long as you use
Alvaro' prescription to install the software. When he recommends to start
tomcat by the command

sudo /etc/init.d./tomcat start
it has all root privileges and everything works fine.
The problem arose with starting OM as a service no matter user nobody or
kurento.

> I would try to find the root cause of such behavior
I also agree here. It is probably that LibreOffice uses some resources
outside the OM directory that kurento has no right to access.

> BTW the issue might be caused by the fact `nobody` user has no $HOME ....
I tried that hypothesis too. user kurento has a home directory, which is
created during installation at "/var/kurento/". I experimented with
changing permissions (group), but in vain the error remains
:-(

Any suggestions?
K.






Am Mo., 11. Mai 2020 um 15:57 Uhr schrieb Maxim Solodovnik <
solomax...@gmail.com>:

>
>
> On Mon, 11 May 2020 at 20:51, K. Kamhamea <kamha...@googlemail.com> wrote:
>
>> Thank you for this reply, but
>> I regret,
>>
>> chown -R 755 $OM_HOME/webapps/om/data
>> and even
>> chown -R 777 $OM_HOME/webapps/om/data
>>
>> didn't help, so I switched back to
>> User=root in openmeetings.service
>>
>
> This is not the best solution from security perspective
> I would try to find the root cause of such behavior
>
> BTW the issue might be caused by the fact `nobody` user has no $HOME ....
>
>
>>
>> Bert K.
>>
>> Am Mo., 11. Mai 2020 um 15:00 Uhr schrieb Maxim Solodovnik <
>> solomax...@gmail.com>:
>>
>>>
>>>
>>> On Mon, 11 May 2020 at 16:09, K. Kamhamea <kamha...@googlemail.com>
>>> wrote:
>>>
>>>> I'm afraid the jodconverter problem with LibreOffice is still there,
>>>> and it is definitely not a problem with LibreOffice but a problem of rights
>>>>
>>>> The error is always reproducible when I run tomcat or
>>>> openmeetings.service as a user like nobody or kurnto.
>>>> It disappears with starting tomcat or openmeetings.service as root
>>>> sudo /etc/init.d/tomcat3 start
>>>> or
>>>> User=root
>>>>
>>>> in the file /etc/systemd/system/openmeetings.service
>>>> make this error disappear.
>>>>
>>>> Question: Is there a directory in &OM_HOME or anywhere else that
>>>> LibreOffice has to have access to
>>>>
>>>
>>> sure
>>> `data` folder should be write-accessible
>>> (it might be inside OM_HOME and outside ....)
>>>
>>>
>>>>
>>>> Best K.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Am Di., 5. Mai 2020 um 15:44 Uhr schrieb Maxim Solodovnik <
>>>> solomax...@gmail.com>:
>>>>
>>>>> Good to know it is not om issue :)
>>>>>
>>>>> (from mobile, sorry for typos)
>>>>>
>>>>> On Tue, May 5, 2020, 20:14 K. Kamhamea <kamha...@googlemail.com>
>>>>> wrote:
>>>>>
>>>>>> I got it running again. LibreOffice is working with OM now.
>>>>>>
>>>>>> But I not just purged LO but also removed everything reminding LO
>>>>>> from my GUI Package Manager (After purging there left a lot)
>>>>>>
>>>>>> Am Mo., 4. Mai 2020 um 22:31 Uhr schrieb seba.wag...@gmail.com <
>>>>>> seba.wag...@gmail.com>:
>>>>>>
>>>>>>> After upgrading to M5 I can see this exception in the log file:
>>>>>>> ERROR 05-05 08:24:52.302 o.a.o.c.c.DocumentConverter:109 [Thread-74]
>>>>>>> - doJodConvert
>>>>>>> java.lang.NullPointerException: null
>>>>>>> at
>>>>>>> org.jodconverter.local.office.LocalOfficeUtils.validateOfficeHome(LocalOfficeUtils.java:339)
>>>>>>> at
>>>>>>> org.jodconverter.local.office.LocalOfficeManager$Builder.build(LocalOfficeManager.java:169)
>>>>>>> at
>>>>>>> org.apache.openmeetings.core.converter.DocumentConverter.createOfficeManager(DocumentConverter.java:85)
>>>>>>> at
>>>>>>> org.apache.openmeetings.core.converter.DocumentConverter.doJodConvert(DocumentConverter.java:106)
>>>>>>> at
>>>>>>> org.apache.openmeetings.core.converter.DocumentConverter.convertPDF(DocumentConverter.java:68)
>>>>>>> at
>>>>>>> org.apache.openmeetings.core.data.file.FileProcessor.processFile(FileProcessor.java:116)
>>>>>>> at
>>>>>>> org.apache.openmeetings.core.data.file.FileProcessor.processFile(FileProcessor.java:91)
>>>>>>> at
>>>>>>> org.apache.openmeetings.core.data.file.Wicket_Proxy_FileProcessor$$FastClassByCGLIB$$6d986e8f.invoke(<generated>)
>>>>>>> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
>>>>>>> at
>>>>>>> org.apache.wicket.proxy.LazyInitProxyFactory$AbstractCGLibInterceptor.intercept(LazyInitProxyFactory.java:364)
>>>>>>> at
>>>>>>> org.apache.openmeetings.core.data.file.Wicket_Proxy_FileProcessor$$EnhancerByCGLIB$$d310c632.processFile(<generated>)
>>>>>>> at
>>>>>>> org.apache.openmeetings.web.room.sidebar.UploadDialog.convertAll(UploadDialog.java:261)
>>>>>>> at
>>>>>>> org.apache.openmeetings.web.room.sidebar.UploadDialog$7.lambda$onSubmit$0(UploadDialog.java:210)
>>>>>>> at
>>>>>>> org.apache.openmeetings.web.util.ThreadHelper.lambda$startRunnable$0(ThreadHelper.java:40)
>>>>>>> at java.base/java.lang.Thread.run(Thread.java:834)
>>>>>>>
>>>>>>> I thikn it happend after I upgrade OSX and libreoffice got purged
>>>>>>> from my system.
>>>>>>> So JOD Converter can't find the path anymore.
>>>>>>>
>>>>>>> Those are the paths for unix it tries (unless you overwrite it via
>>>>>>> the OM Config custom path):
>>>>>>>
>>>>>>> https://github.com/sbraconnier/jodconverter/blob/master/jodconverter-local/src/main/java/org/jodconverter/local/office/LocalOfficeUtils.java#L115
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sebastian
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Sebastian Wagner
>>>>>>> https://www.linkedin.com/in/sebastianwagner/
>>>>>>>
>>>>>>> <https://www.youracclaim.com/badges/da4e8828-743d-4968-af6f-49033f10d60a/public_url>
>>>>>>> <https://www.youracclaim.com/badges/b7e709c6-aa87-4b02-9faf-099038475e36/public_url>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, 5 May 2020 at 06:32, K. Kamhamea <kamha...@googlemail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Thank you. After that no OM service any more on that computer
>>>>>>>> :-)))))))
>>>>>>>>
>>>>>>>> I'll probably re-install everything tomorrow.
>>>>>>>> Good night K.
>>>>>>>>
>>>>>>>> Am Mo., 4. Mai 2020 um 19:32 Uhr schrieb Maxim Solodovnik <
>>>>>>>> solomax...@gmail.com>:
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, 5 May 2020 at 00:20, K. Kamhamea <kamha...@googlemail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> > Are you installing to desktop or server?
>>>>>>>>>> the computer is both a desktop and a server
>>>>>>>>>>
>>>>>>>>>> >What in the logs?
>>>>>>>>>> INFO  05-04 19:13:09.697 o.j.l.o.OfficeProcess:434
>>>>>>>>>> [officeprocess-0] - Started process; pid: 4629
>>>>>>>>>> ERROR 05-04 19:13:11.241 o.j.l.o.VerboseProcess:84 [Thread-191] -
>>>>>>>>>> LibreOffice 6.4 - Fatal Error: Die Anwendung kann nicht gestartet 
>>>>>>>>>> werden.
>>>>>>>>>> ERROR 05-04 19:13:11.242 o.j.l.o.VerboseProcess:84 [Thread-191] -
>>>>>>>>>> Extension Manager: exception in synchronize
>>>>>>>>>> INFO  05-04 19:13:11.297 o.j.c.o.AbstractOfficeManagerPool:156
>>>>>>>>>> [Thread-183] - Stopping the office manager pool...
>>>>>>>>>> INFO  05-04 19:13:11.299 o.j.l.o.OfficeProcessManager:313
>>>>>>>>>> [Thread-183] - Submitting task 'Stop' and waiting...
>>>>>>>>>> INFO  05-04 19:13:11.303 o.j.l.o.OfficeProcess:240
>>>>>>>>>> [officeprocess-0] - Trying to forcibly terminate process:
>>>>>>>>>> 'host=127.0.0.1,port=2002,tcpNoDelay=1'; pid: 4629
>>>>>>>>>> INFO  05-04 19:13:11.312 o.j.l.o.OfficeProcessManager:204
>>>>>>>>>> [officeprocess-0] - Process terminated with code 77
>>>>>>>>>> INFO  05-04 19:13:11.313 o.j.l.o.OfficeProcessManager:121
>>>>>>>>>> [officeprocess-0] - Process exited with code 77
>>>>>>>>>> INFO  05-04 19:13:11.319 o.j.c.o.AbstractOfficeManagerPool:174
>>>>>>>>>> [Thread-183] - Office manager stopped
>>>>>>>>>> ERROR 05-04 19:13:11.322 o.a.o.c.c.DocumentConverter:109
>>>>>>>>>> [Thread-183] - doJodConvert
>>>>>>>>>> org.jodconverter.core.office.OfficeException: Office process died
>>>>>>>>>> with exit code 77
>>>>>>>>>>
>>>>>>>>>> Fatal Error: Die Anwendung kann nicht gestartet werden. -> Fatal
>>>>>>>>>> Error: the application could not be started
>>>>>>>>>>
>>>>>>>>>>  > What OS on your server?
>>>>>>>>>> Ubuntu 18.04
>>>>>>>>>>
>>>>>>>>>> BTW I just installed the whole server on a naked machine, with no
>>>>>>>>>> pre-installed M3 and all works perfectly.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I doubt have M3 can damage LibreOffice
>>>>>>>>> I would say some libarary was broken
>>>>>>>>> It is usually checked with starting office process from command
>>>>>>>>> line
>>>>>>>>>
>>>>>>>>> most probably apt remove with purge can help here
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Best K.
>>>>>>>>>>
>>>>>>>>>> Am Mo., 4. Mai 2020 um 17:08 Uhr schrieb Maxim Solodovnik <
>>>>>>>>>> solomax...@gmail.com>:
>>>>>>>>>>
>>>>>>>>>>> Are you installing to desktop or server?
>>>>>>>>>>> What in the logs?
>>>>>>>>>>> What OS on your server?
>>>>>>>>>>>
>>>>>>>>>>> On Mon, 4 May 2020 at 16:57, K. Kamhamea <
>>>>>>>>>>> kamha...@googlemail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> The path is correct, as can be checked by "whereis libreoffice"
>>>>>>>>>>>> and obviously it can connect to LO but gets an error executing 
>>>>>>>>>>>> some command.
>>>>>>>>>>>>
>>>>>>>>>>>> When uploading an office document I get an error as expected.
>>>>>>>>>>>>
>>>>>>>>>>>> [image: error-file-processing.jpg]
>>>>>>>>>>>>
>>>>>>>>>>>> I just completely removed LO from my system
>>>>>>>>>>>>
>>>>>>>>>>>> sudo apt remove libreoffice
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> and re-installed it via repository
>>>>>>>>>>>>
>>>>>>>>>>>> sudo add-apt-repository ppa:libreoffice/ppa
>>>>>>>>>>>> sudo apt update
>>>>>>>>>>>> sudo apt install libreoffice
>>>>>>>>>>>>
>>>>>>>>>>>> same result. Any idea?
>>>>>>>>>>>>
>>>>>>>>>>>> Best K.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Am Mo., 4. Mai 2020 um 10:42 Uhr schrieb seba.wag...@gmail.com
>>>>>>>>>>>> <seba.wag...@gmail.com>:
>>>>>>>>>>>>
>>>>>>>>>>>>> I have M3, M4, M5 and I don't see this error.
>>>>>>>>>>>>>
>>>>>>>>>>>>> This is a jodconverter error.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Did you try to complete installation and upload a document to
>>>>>>>>>>>>> check ?
>>>>>>>>>>>>> You can update this path later if required in the Admin>Config
>>>>>>>>>>>>> section.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Cheers
>>>>>>>>>>>>> Seb
>>>>>>>>>>>>>
>>>>>>>>>>>>> Sebastian Wagner
>>>>>>>>>>>>> https://www.linkedin.com/in/sebastianwagner/
>>>>>>>>>>>>>
>>>>>>>>>>>>> <https://www.youracclaim.com/badges/da4e8828-743d-4968-af6f-49033f10d60a/public_url>
>>>>>>>>>>>>> <https://www.youracclaim.com/badges/b7e709c6-aa87-4b02-9faf-099038475e36/public_url>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Mon, 4 May 2020 at 19:49, K. Kamhamea <
>>>>>>>>>>>>> kamha...@googlemail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> When running M4 after update I got this error: "Office
>>>>>>>>>>>>>> process died with exit code 77"
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> With M3 everything was fine. I re-installed LibreOffice but
>>>>>>>>>>>>>> the error remained.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Best K.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> [image: slide-06'2.JPG]
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Best regards,
>>>>>>>>>>> Maxim
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best regards,
>>>>>>>>> Maxim
>>>>>>>>>
>>>>>>>>
>>>
>>> --
>>> Best regards,
>>> Maxim
>>>
>>
>
> --
> Best regards,
> Maxim
>

Reply via email to