HowTo: Install Onlineoffice on Ubuntu/Debian (No Docker No Limitation)

True True, but now
 how :slight_smile:

can anyone complile this for arm device(armhf) and provide the easiest way to install,
as i cant do i have failed to do it on my orangepiplus2e.
Please somebody here help,
Thanks

Can you share virtual box image with already compiled version?

I finally got this script to complete (after many many tries
). However,what do I do next? There needs to be a step by step manual for us non technical people. I’ve looked high and low online as to what to do, the information here is WAY to vague to even remotely understand. I installed this on a clean build of Ubuntu 16.04, and the service is running
 Now what?

Any help would be greatly appreciated!

Thanks,

-wclang

Hi.
If the script finished successfully, you now have a libreoffice online web service running.
You still need to do the next integration steps into nextcloud. Those steps are almost identical to the Integration tutorial available in the nexcloud main website. - minus the docker part -
Although as you noted, This script is more like an advanced alternative for non-dev ops who wants to get the web service, peoples who have experience in web-site/services integration.
It’ll be hard to provide more help without a minimum of technical background in this topic.:thinking:
Or else you need the help of a professional.:slight_smile:
Regards,
Aal.

1 Like

hi @husisusi.

The script finished with this error:

 Running build-time unit tests.  For more thorough testing, please run 'make check'.

/opt/libreoffice/instdir/share/fonts/truetype: failed to write cache
/opt/libreoffice/instdir/share/fonts/truetype: failed to write cache
Makefile:2093: recipe for target 'all-local' failed
make[2]: Leaving directory '/opt/online/test'
make[2]: *** [all-local] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Makefile:1847: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/opt/online'
Makefile:772: recipe for target 'all' failed
make: Leaving directory '/opt/online'

an idea?!

Nobody cant help me with this issue?!

Hi everybody, first of all thansk @husisusi for your effort! Your script enabled me to have libreoffice online on my server which does not support docker containers.

Can anybody confirm if the script works with the newer collabora 4.0 codebase ?

Sometime ago I tried to upgrade my installed libreoffice and I messed up everything, the only way to recover was specifying older/specific versions of libreoffice and collabora , If I recall correctly

CODE 4 compiles. But I cant work with documents because of socket errors. “User has joined” 
 “User has left” in an endless circle when trying to edit something.
Last known good seems to be that:

##########################
set_core_regex=‘cp-5.3$’
set_online_regex=‘collabora/collabora-online-3$’
lo_src_branch=‘distro/collabora/cp-5.3’
lo_src_tag=‘cp-5.3-61’
lool_src_tag=‘3.4.2-1’
###########################

See discussion on github:


Joerg says he has compiled a newer one on cp-6 and online 4 base. But I can’t reproduce it.

1 Like

I can confirm that downloading latest version of the script, I could compile and run

CODE 4.0.0

With cp- 6.0-26

Thanks again @husisusi

Is this script still applicable in March 2019? If I already have the apt code version installed (as referenced here: https://www.collaboraoffice.com/code/linux-packages/ – do I need to uninstall this package prior to running this script?

yes you have to uninstall that, because it will cause conflict.
You need to build from source for taking off the limitation.

Hi

I’m on CentOS 7 and this script doesn’t work.

So I try to do it without the script.

Now I’m block on libreoffice online compilation with this error :

 Checking for loleaflet JS errors...

Checking for admin JS errors...

make[3]: ***  No rule to make target « dist/node_modules/@braintree/sanitize-url/dist.js », needed by « dist/bundle.js ». ArrĂȘt.

make[3] : on quitte le répertoire « /opt/online/loleaflet »

make[2]: *** [all-local] Erreur 2

make[2] : on quitte le répertoire « /opt/online/loleaflet »

make[1]: *** [all-recursive] Erreur 1

make[1] : on quitte le répertoire « /opt/online »

make: *** [all] Erreur 2

Does someone already encounter such an error ?

I google it but find nothing about what to do 


thx for help

@husisusi @Nemskiller I’m compiling on a RockPro64 and have followed the script with some minor tweaks as described here: https://github.com/husisusi/officeonlin-install.sh/issues/183.

It seems everything has compiled fine but when I try to run the service I get:

rock64@rockpro64:/opt/online$ systemctl status loolwsd
● loolwsd.service - LibreOffice OnLine WebSocket Daemon
   Loaded: loaded (/etc/systemd/system/loolwsd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-11-05 13:23:04 UTC; 3h 8min ago
 Main PID: 806 (code=exited, status=70)

Nov 05 13:23:04 rockpro64 loolwsd[806]: FATAL: Failed to fork child processes.
Nov 05 13:23:04 rockpro64 loolwsd[806]: wsd-00806-00806 2019-11-05 13:23:04.094078 [ loolwsd ] FTL  Failed to fork child processes.| wsd/LOOLWSD.cpp:3343
Nov 05 13:23:04 rockpro64 loolwsd[806]: Failed to fork child processes.
Nov 05 13:23:04 rockpro64 loolwsd[806]: wsd-00806-00806 2019-11-05 13:23:04.095351 [ loolwsd ] INF  ~Admin dtor.| wsd/Admin.cpp:381
Nov 05 13:23:04 rockpro64 loolwsd[806]: wsd-00806-00806 2019-11-05 13:23:04.095457 [ loolwsd ] TRC  History:
Nov 05 13:23:04 rockpro64 loolwsd[806]: { "documents" : [], "expiredDocuments" : []}
Nov 05 13:23:04 rockpro64 loolwsd[806]: | wsd/AdminModel.cpp:182
Nov 05 13:23:04 rockpro64 loolwsd[806]: wsd-00806-00806 2019-11-05 13:23:04.095571 [ loolwsd ] INF  AdminModel dtor.| wsd/AdminModel.cpp:183
Nov 05 13:23:04 rockpro64 systemd[1]: loolwsd.service: Main process exited, code=exited, status=70/n/a
Nov 05 13:23:04 rockpro64 systemd[1]: loolwsd.service: Failed with result 'exit-code'.
rock64@rockpro64:/opt/online$ sudo -u lool ./loolwsd
frk-15043-15043 2019-11-05 16:26:21.748173 [ forkit ] FTL  Neither /opt/libreoffice/instdir/program/libsofficeapp.so or /opt/libreoffice/instdir/program/libmergedlo.so exist.| kit/Kit.cpp:2652
frk-15043-15043 2019-11-05 16:26:21.748209 [ forkit ] FTL  Failed to preinit lokit.| kit/ForKit.cpp:534

Any ideas?

Hi,

My problĂšme come from npm configuration.

First i need to install npm@5 to downgrade in 5.X branch of npm :
npm install -g npm@5

Then it seams I have write right problem even when I was in root and was
cause of this message :

npm WARN lifecycle loleaflet@0.8.0-dev~postinstall: cannot run in wd
loleaflet@0.8.0-dev browserify node_modules/@braintree/sanitize-url/index.js
–standaloneaflet)

To work around this problem I had the directive “unsafe-perm” to my npm
configuration :
npm config set unsafe-perm true

And then I succeed to make “online”.

thank for help

Hi,

I have Build libreoffice online for CentOS7, and test work fine with :

[blods@localhost online]$ ./loolwsd
–o:sys_template_path=/opt/online/systemplate/
–o:child_root_path=/opt/online/jails/ --o:storage.filesystem[@allow]=true
–disable-ssl

=> For my test I don’t create the service to launch loolwsd just the command line, is that a good think?

I can correctly open :

192.168.232.145:9980/loleaflet/2ce1a7f/loleaflet.html?file_path=file:///opt/online/test/data/hello-world.odt

If i use http://192.168.232.145:9980, I get an OK response page in my
browser.

But with Nextcloud it seems I miss something.

First I work with two Virtual Machine :
My nextcloud virtual machine : 192.168.232.144
My Libreoffice virtual machine : 192.168.232.145

Then in Nextcloud I install app Collabora Online and I configure the WOPI
adress client with my libreoffice virtual machine IP : 192.168.232.145:9980

In loolwsd.xml :

I add my nextcloud virtual machine IP

<storage desc="Backend storage">
             <filesystem allow="false" />
             <wopi desc="Allow/deny wopi storage. Mutually exclusive with
     webdav." allow="true">
                 <host desc="Regex pattern of hostname to allow or deny."
     allow="true">localhost</host>
                 <host desc="Regex pattern of hostname to allow or deny."
   allow="true">192\.168\.232\.144</host>

I disable SSL for my test :

<ssl desc="SSL settings">
        <enable type="bool" desc="Controls whether SSL encryption between
browser and loolwsd is enabled (do not disable for production deployment).
If default is false, must first be compiled with SSL support to enable."
default="true">false</enable>

But when I try to open an .odt file in nextcloud it seems to hang in a loop
and don’t show me anything.
I see this in loolwsd.log :

wsd-01792-01799 2019-12-11 10:40:33.155124 [ accept_poll ] TRC Poll
completed with 1 live polls max (5000ms)| ./net/Socket.hpp:521
wsd-01792-01799 2019-12-11 10:40:33.155180 [ accept_poll ] DBG Accepted
socket #21, creating socket object.| net/Socket.cpp:504
wsd-01792-01799 2019-12-11 10:40:33.155190 [ accept_poll ] DBG #21 Thread
affinity set to 0x7f3da903f700.| ./net/Socket.hpp:322
wsd-01792-01799 2019-12-11 10:40:33.155200 [ accept_poll ] DBG StreamSocket
ctor #21| ./net/Socket.hpp:825
wsd-01792-01799 2019-12-11 10:40:33.155207 [ accept_poll ] TRC #21
Connected to ClientRequestDispatcher.| wsd/LOOLWSD.cpp:2095
wsd-01792-01799 2019-12-11 10:40:33.155214 [ accept_poll ] DBG Accepted
socket has family 10 address ::ffff:192.168.232.144| net/Socket.cpp:531
wsd-01792-01799 2019-12-11 10:40:33.155218 [ accept_poll ] DBG Accepted
client #21| net/ServerSocket.hpp:89
wsd-01792-01799 2019-12-11 10:40:33.155222 [ accept_poll ] DBG Inserting
socket #21 into websrv_poll| ./net/Socket.hpp:663
wsd-01792-01799 2019-12-11 10:40:33.155226 [ accept_poll ] DBG #21 Thread
affinity set to 0 (was 0x7f3da903f700).| ./net/Socket.hpp:282
wsd-01792-01799 2019-12-11 10:40:33.155245 [ accept_poll ] TRC Poll start|
./net/Socket.hpp:511

What did I miss?

Where to look at to have more log to debug?

cordialy

Hi

My problem come from umatrix which block my libreoffice serveur IP, sorry for the noise

cordialy

Hi all,

Thanks for this great :slight_smile:

I try to resume to see if I have a good andertanding
(Sorry for my language, I’m french)

  1. I have a server with Ubuntu 18.04 and nginx, and a domaine name for that (office.exemple.ltd) and ssl letsencryt
  2. I download your script on GitHub
  3. I run officeonline-install.sh (I don’t anderstand the different beetween LibreOffice and libreOffice Online)
  4. I’m waitting a long time time :stuck_out_tongue:

Do I forget something ?

Thank you very much


Regards
Sylvain

any chance of installing it on raspberrypi 4 4gb?

I’m not aware that LibreOffice Online can be build and install on ARM.

In the (magical?) case it is, it might be a little tight, since RAM is the main resource used for this service on each connection, file open or edited.