Git Product home page Git Product logo

officeonlin-install.sh's People

Contributors

aalaesar avatar ark74 avatar dmds avatar embed-3d avatar gomez avatar husisusi avatar joergmschulz avatar kassiematis avatar pieroperuzzi avatar sergey-dryabzhinsky avatar yumekui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

officeonlin-install.sh's Issues

Please help

Hi,
Many thanks for the script!
All is set and the link is opened:
https://localhost:9980/loleaflet/dist/loleaflet.html?file_path=file:///opt/online/test/data/hello-world.odt
and
https://admin:password@localhost:9980/loleaflet/dist/admin/admin.html

problem occurred with the integration into owncloud v.9.1.6 (richdocument v.1.1.20):

  1. in admin error Collabora Online: Saved with error: Collabora Online should use the same protocol as the server installation.
  2. in front (office) error: Well, this is embarrassing, we cannot connect to your document. Please try again.

Issues after installation

Hello,
So I tried following steps in order to instal LibreOffice on Ubuntu 16.04.2 LTS

  1. run the script without any changes to the remote link
  2. run the scrip with changing the remote links as discussed here

I have difficulties and some bugs after the installation after both methods. The bugs that I have are some UI bugs (rows get mixed up or columns get mixed up) as in the screenshot

image

I also tried to delete the opt folder and reinstall collabora with different SHA versions, because if you open a collabora demo account the commit will be on 52f0568e so I also tried to install it on that commit but still no luck.

image

Any suggestions what should I do?

Localization

Great script, thank you very much!

To fix the German localization you need to add "python-polib" to the dependencies.

Libreoffice compile failed

I have a partition of 26 GB for /opt/
My version of Libreoffice was 5.3.1.1
The script tries to compile 5.3.1.2 but my disk is 100% full after a while. It seems that 5.3.1.1 is left in place where it probably should be deleted.

Old Libreoffice folder not moved to /opt

For some reason the script places the old libreoffice in the folder the script is started from.

 check is libreoffice sources are already present and in the correct version 
if [ -d ${lo_dir} ]; then 
lo_local_version="libreoffice-$(grep 'PACKAGE_VERSION=' ${lo_dir}/configure | cut -d \' -f 2)" 
 rename the folder if not in the expected verion 
[ ${lo_local_version} != ${lo_version} ] && mv ${lo_dir} ${lo_local_version} 
fi 

Will this work?

[ ${lo_local_version} != ${lo_version} ] && mv ${lo_dir} /opt/${lo_local_version}

Debian 9

Hi, thanks for your work.

Is there plan to support Debian 9 ?

Thanks.

Pin versions

I tested the script and noticed it uses master on most of the versions.

I want to build a server with a know-good-state and make it reproduce-able. AFAIK this is only possible, i need to edit "officeonlin-install.sh" and add the version numbers.

Would it be a good idea to use parameter expansion for the version vars, like this:

http://stackoverflow.com/questions/4609668/override-variable-in-bash-script-from-command-line

That would make it possible to execute the script like this lo_version=5.3.1.2 ./officeonlin-install.sh

doen't install

here is log:
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking dependency style of g++... gcc3 checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking for setcap... /sbin/setcap checking whether to run tests against a LibreOffice...

here is what i see in the end:
blue screen with admin password
error with make

Error Loolwsd

For some reason if only Libreoffice gets compiled and not Loolwsd I can not start it.

Capability cap_sys_chroot is not set for the loolforkit program.| kit/ForKit.cpp:151
Capability cap_mknod is not set for the loolforkit program.| kit/ForKit.cpp:151
Capability cap_fowner is not set for the loolforkit program.| kit/ForKit.cpp:151

Service start fails

Hello,

I just installed officeonline on my Ubuntu LTS, but I have an issue at start :

root@mail:/opt/online# sudo systemctl status loolwsd.service
● loolwsd.service - LibreOffice OnLine WebSocket Daemon
Loaded: loaded (/etc/systemd/system/loolwsd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since ven. 2017-08-04 13:15:39 CEST; 9s ago
Process: 3125 ExecStart=/opt/online/loolwsd --o:sys_template_path=/opt/online/systemplate --o:lo_template_path=/opt/libreof
Process: 3121 ExecStartPre=/bin/chown lool: /usr/local/var/cache/loolwsd (code=exited, status=0/SUCCESS)
Process: 3117 ExecStartPre=/bin/mkdir -p /usr/local/var/cache/loolwsd (code=exited, status=0/SUCCESS)
Main PID: 3125 (code=exited, status=70)

août 04 13:14:49 obfuscated loolwsd[3125]: /opt/online/loolforkit(_start+0x29) [0x421d69]
août 04 13:15:39 obfuscated loolwsd[3125]: wsd-03125-03125 11:15:39.304731 [ loolwsd ] FTL Failed to fork child proc
août 04 13:15:39 obfuscated loolwsd[3125]: Failed to fork child processes.
août 04 13:15:39 obfuscated loolwsd[3125]: wsd-03125-03125 11:15:39.304966 [ loolwsd ] FTL Failed to fork child proc
août 04 13:15:39 obfuscated loolwsd[3125]: Failed to fork child processes.
août 04 13:15:39 obfuscated loolwsd[3125]: wsd-03125-03125 11:15:39.305173 [ loolwsd ] WRN Waking up dead poll threa
août 04 13:15:39 obfuscated loolwsd[3125]: wsd-03125-03125 11:15:39.305204 [ loolwsd ] WRN Waking up dead poll threa
août 04 13:15:39 obfuscated systemd[1]: loolwsd.service: Main process exited, code=exited, status=70/n/a
août 04 13:15:39 obfuscated systemd[1]: loolwsd.service: Unit entered failed state.
août 04 13:15:39 obfuscated systemd[1]: loolwsd.service: Failed with result 'exit-code'.

Where did I fail ?

Log enabled in trace mode :

wsd-03953-03953 11:26:18.760547 [ loolwsd ] INF Initializing wsd. Local time: Fri 2017-08-04 13:26:18+0200. Log level is [8]
.| common/Log.cpp:199
wsd-03953-03953 11:26:18.760597 [ loolwsd ] INF SSL support: SSL is enabled.| wsd/LOOLWSD.cpp:724
wsd-03953-03953 11:26:18.760646 [ loolwsd ] INF Maximum concurrent open Documents limit: 100| wsd/LOOLWSD.cpp:764
wsd-03953-03953 11:26:18.760652 [ loolwsd ] INF Maximum concurrent client Connections limit: 200| wsd/LOOLWSD.cpp:765
wsd-03953-03953 11:26:18.760682 [ loolwsd ] INF Command trace dumping enabled to file: /tmp/looltrace-20170804_11-26-18.gz|
wsd/TraceFile.hpp:278
wsd-03953-03953 11:26:18.760802 [ loolwsd ] INF Adding trusted WOPI host: [localhost].| wsd/Storage.cpp:93
wsd-03953-03953 11:26:18.760819 [ loolwsd ] INF Adding trusted WOPI host: [10.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}].| wsd/Sto
rage.cpp:93
wsd-03953-03953 11:26:18.760829 [ loolwsd ] INF Adding trusted WOPI host: [172.1[6789].[0-9]{1,3}.[0-9]{1,3}].| wsd/Stora
ge.cpp:93
wsd-03953-03953 11:26:18.760837 [ loolwsd ] INF Adding trusted WOPI host: [172.2[0-9].[0-9]{1,3}.[0-9]{1,3}].| wsd/Storag
e.cpp:93
wsd-03953-03953 11:26:18.760846 [ loolwsd ] INF Adding trusted WOPI host: [172.3[01].[0-9]{1,3}.[0-9]{1,3}].| wsd/Storage
.cpp:93
wsd-03953-03953 11:26:18.760855 [ loolwsd ] INF Adding trusted WOPI host: [192.168.[0-9]{1,3}.[0-9]{1,3}].| wsd/Storage.c
pp:93
wsd-03953-03953 11:26:18.760863 [ loolwsd ] INF Adding blocked WOPI host: [192.168.1.1].| wsd/Storage.cpp:98
wsd-03953-03953 11:26:18.760876 [ loolwsd ] INF Adding blocked WOPI host: [obfuscated].| wsd/Storage.cpp:98
wsd-03953-03953 11:26:18.763378 [ loolwsd ] INF SSL Cert file: /etc/loolwsd/cert.pem| wsd/LOOLWSD.cpp:817
wsd-03953-03953 11:26:18.763398 [ loolwsd ] INF SSL Key file: /etc/loolwsd/key.pem| wsd/LOOLWSD.cpp:820
wsd-03953-03953 11:26:18.763406 [ loolwsd ] INF SSL CA file: /etc/loolwsd/ca-chain.cert.pem| wsd/LOOLWSD.cpp:823
wsd-03953-03953 11:26:18.764100 [ loolwsd ] DBG FileServerRoot: /opt/online/| wsd/LOOLWSD.cpp:2494
wsd-03953-03953 11:26:18.767555 [ loolwsd ] INF Trying to listen on prisoner port 9981.| wsd/LOOLWSD.cpp:2368
wsd-03953-03953 11:26:18.767588 [ loolwsd ] DBG #12 Thread affinity set to 0x7fd99700b740.| ./net/Socket.hpp:282
wsd-03953-03955 11:26:18.767582 [ prisoner_poll ] INF Thread 3955 (0x7fd993e62700) is now called [prisoner_poll].| common/Ut
il.cpp:325
wsd-03953-03953 11:26:18.767605 [ loolwsd ] INF Listening to prisoner connections on port 9981| wsd/LOOLWSD.cpp:2388
wsd-03953-03953 11:26:18.767609 [ loolwsd ] DBG Inserting socket #12 into prisoner_poll| ./net/Socket.hpp:522
wsd-03953-03955 11:26:18.767608 [ prisoner_poll ] INF Starting polling thread [prisoner_poll].| net/Socket.hpp:601
wsd-03953-03953 11:26:18.767612 [ loolwsd ] DBG #12 Thread affinity set to 0xthread::id of a non-executing thread (was 0x7fd
99700b740).| ./net/Socket.hpp:241
wsd-03953-03955 11:26:18.767615 [ prisoner_poll ] DBG Thread affinity of prisoner_poll set to 0x7fd993e62700.| net/Socket.hp
p:605
wsd-03953-03953 11:26:18.767620 [ loolwsd ] TRC Waiting for a new child for a max of 50000 ms.| wsd/LOOLWSD.cpp:2512
wsd-03953-03955 11:26:18.767626 [ prisoner_poll ] TRC Poll completed with 1 live polls max (5000ms)| ./net/Socket.hpp:405
wsd-03953-03955 11:26:18.767636 [ prisoner_poll ] DBG #12 Thread affinity set to 0x7fd993e62700 (was 0xthread::id of a non-e
xecuting thread).| ./net/Socket.hpp:241
wsd-03953-03955 11:26:18.767647 [ prisoner_poll ] INF Creating new forkit process.| wsd/LOOLWSD.cpp:1168
wsd-03953-03955 11:26:18.767668 [ prisoner_poll ] INF AdminModel ctor.| wsd/AdminModel.hpp:170
wsd-03953-03955 11:26:18.767676 [ prisoner_poll ] INF Admin ctor.| wsd/Admin.cpp:292
wsd-03953-03955 11:26:18.767706 [ prisoner_poll ] TRC Total system memory : 16423400| wsd/Admin.cpp:295
wsd-03953-03955 11:26:18.768390 [ prisoner_poll ] TRC Total memory used: 7022| wsd/Admin.cpp:298
wsd-03953-03955 11:26:18.768402 [ prisoner_poll ] INF Launching forkit process: /opt/online/loolforkit --losubpath=lo --syst
emplate=/opt/onfrk-03956-03956 11:26:18.775786 [ forkit ] INF Initializing frk. Local time: Fri 2017-08-04 13:26:18+0200. Lo
g level is [8].| common/Log.cpp:199
frk-03956-03956 11:26:18.775833 [ forkit ] INF Have capability cap_sys_chroot| kit/ForKit.cpp:163
frk-03956-03956 11:26:18.775844 [ forkit ] INF Have capability cap_mknod| kit/ForKit.cpp:163
frk-03956-03956 11:26:18.775852 [ forkit ] INF Have capability cap_fowner| kit/ForKit.cpp:163
frk-03956-03956 11:26:18.775866 [ forkit ] TRC dlopen(/opt/libreoffice/instdir/program/libsofficeapp.so, RTLD_GLOBAL|RTLD_NO
W)| kit/Kit.cpp:1943
frk-03956-03956 11:26:18.847183 [ forkit ] TRC Invoking lok_preinit(/opt/libreoffice/instdir/program", "file:///user")| kit/
Kit.cpp:1972
frk-03956-03956 11:26:18.857404 [ forkit ] TRC Finished lok_preinit(/opt/libreoffice/instdir/program", "file:///user") in 10
ms.| kit/Kit.cpp:1982
frk-03956-03956 11:26:18.857427 [ forkit ] INF Preinit stage OK.| kit/ForKit.cpp:477
frk-03956-03956 11:26:18.857457 [ forkit ] DBG Forking a loolkit process with jailId: VyWJswb4EfPsWWFx.| kit/ForKit.cpp:228
frk-03956-03956 11:26:18.858146 [ forkit ] INF Forked kit [3959].| kit/ForKit.cpp:269
frk-03956-03956 11:26:18.858191 [ forkit ] INF ForKit process is ready.| kit/ForKit.cpp:489
frk-03956-03956 11:26:18.858451 [ loolkit ] INF Thread 3956 (0x7f8583547740) is now called [loolkit].| common/Util.cpp:325
kit-03959-03956 11:26:18.858610 [ loolkit ] INF Initializing kit. Local time: Fri 2017-08-04 13:26:18+0200. Log level is [8]
.| common/Log.cpp:199
kit-03959-03956 11:26:18.858679 [ loolkit ] DBG Process started.| kit/Kit.cpp:1614
kit-03959-03956 11:26:18.858731 [ loolkit ] INF Jail path: /opt/online/jails/VyWJswb4EfPsWWFx/| kit/Kit.cpp:1628
kit-03959-03956 11:26:18.858939 [ loolkit ] DBG symlink("../../lo","/opt/online/jails/VyWJswb4EfPsWWFx/opt/libreoffice/instd
ir")| kit/Kit.cpp:269
kit-03959-03956 11:26:18.859153 [ loolkit ] DBG symlink("../../../lo","/opt/online/jails/VyWJswb4EfPsWWFx/home/opt/libreoffi
ce/instdir")| kit/Kit.cpp:269
kit-03959-03956 11:26:18.920439 [ loolkit ] TRC skip redundant paths sdk| kit/Kit.cpp:179
kit-03959-03956 11:26:18.922336 [ loolkit ] TRC skip redundant paths share/config/wizard| kit/Kit.cpp:179
kit-03959-03956 11:26:18.951881 [ loolkit ] TRC skip redundant paths share/basic| kit/Kit.cpp:179
kit-03959-03956 11:26:18.952162 [ loolkit ] TRC skip redundant paths share/gallery| kit/Kit.cpp:179
kit-03959-03956 11:26:18.952182 [ loolkit ] TRC skip redundant paths share/template| kit/Kit.cpp:179
kit-03959-03956 11:26:18.952197 [ loolkit ] TRC skip redundant paths share/Scripts| kit/Kit.cpp:179
kit-03959-03956 11:26:18.955276 [ loolkit ] TRC skip redundant paths program/wizards| kit/Kit.cpp:179
kit-03959-03956 11:26:19.041699 [ loolkit ] DBG Initialized jail files.| kit/Kit.cpp:1685
kit-03959-03956 11:26:19.041888 [ loolkit ] INF chroot("/opt/online/jails/VyWJswb4EfPsWWFx/")| kit/Kit.cpp:1709
kit-03959-03956 11:26:19.041915 [ loolkit ] TRC Capabilities first: = cap_fowner,cap_sys_chroot,cap_mknod+ep| kit/Kit.cpp:23
5
kit-03959-03956 11:26:19.041941 [ loolkit ] TRC Capabilities now: = cap_fowner,cap_mknod+ep| kit/Kit.cpp:252
kit-03959-03956 11:26:19.041953 [ loolkit ] TRC Capabilities first: = cap_fowner,cap_mknod+ep| kit/Kit.cpp:235
kit-03959-03956 11:26:19.041961 [ loolkit ] TRC Capabilities now: = cap_fowner+ep| kit/Kit.cpp:252
kit-03959-03956 11:26:19.041968 [ loolkit ] TRC Capabilities first: = cap_fowner+ep| kit/Kit.cpp:235
kit-03959-03956 11:26:19.041975 [ loolkit ] TRC Capabilities now: =| kit/Kit.cpp:252
kit-03959-03956 11:26:19.041992 [ loolkit ] DBG Initialized jail nodes, dropped caps.| kit/Kit.cpp:1726
frk-03956-03956 11:26:19.358779 [ forkit ] INF Child 3959 has exited, removing its jail '/opt/online/jails/VyWJswb4EfPsWWFx'
.| kit/ForKit.cpp:202
line/systemplate --lotemplate=/opt/libreoffice/instdir --childroot=/opt/online/jails/ --clientport=9980 --masterport=9981| ws
d/LOOLWSD.cpp:1212
wsd-03953-03955 11:26:18.768602 [ prisoner_poll ] INF Forkit process launched: 3956| wsd/LOOLWSD.cpp:1223
wsd-03953-03955 11:26:18.768632 [ prisoner_poll ] TRC rebalance children to 1| wsd/LOOLWSD.cpp:326
wsd-03953-03955 11:26:23.773472 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.
hpp:405
wsd-03953-03955 11:26:28.775530 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.
hpp:405
wsd-03953-03955 11:26:33.780323 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.
hpp:405
wsd-03953-03955 11:26:38.785459 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.
hpp:405
wsd-03953-03955 11:26:43.789586 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.
hpp:405
wsd-03953-03955 11:26:48.793495 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.
hpp:405
wsd-03953-03955 11:26:53.797491 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.
hpp:405
wsd-03953-03955 11:26:58.801569 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.
hpp:405
wsd-03953-03955 11:27:03.806668 [ prisoner_poll ] TRC Poll completed with 0 live polls max (5000ms)(timedout)| ./net/Socket.
hpp:405
wsd-03953-03953 11:27:08.767821 [ loolwsd ] FTL Failed to fork child processes.| wsd/LOOLWSD.cpp:2516
wsd-03953-03953 11:27:08.768043 [ loolwsd ] FTL Failed to fork child processes.| wsd/LOOLWSD.cpp:2663
wsd-03953-03953 11:27:08.768245 [ loolwsd ] INF ~Admin dtor.| wsd/Admin.cpp:304
wsd-03953-03953 11:27:08.768260 [ loolwsd ] INF AdminModel dtor.| wsd/AdminModel.hpp:175
wsd-03953-03953 11:27:08.768266 [ loolwsd ] WRN Waking up dead poll thread [admin], started: false, finished: false| ./net/S
ocket.hpp:507
wsd-03953-03953 11:27:08.768279 [ loolwsd ] DBG Stopping admin.| net/Socket.hpp:327
wsd-03953-03953 11:27:08.768284 [ loolwsd ] WRN Waking up dead poll thread [admin], started: false, finished: false| ./net/S
ocket.hpp:507
frk-03956-03956 11:27:08.770307 [ forkit ] FTL Pipe closed.| common/IoUtil.cpp:309
frk-03956-03956 11:27:08.770354 [ forkit ] INF Child dispatcher flagged for termination.| kit/ForKit.cpp:497
frk-03956-03956 11:27:08.770374 [ forkit ] INF ForKit process finished.| kit/ForKit.cpp:512

Thank you

bind to 127.0.0.1:9980 only

Hi Devs.

Is it possible to bind loolwsd to ip 127.0.0.1 only? Did not find a setting like this.

thanks and cheers
t.

Nothing happens

Running for the first time on Ubuntu Server 16.04

I get a command prompt back after a few seconds, and the only log created is preparation log with contents

Verifying System Requirements:
Memory: OK (3942 MiB)

The same detail is shown on the console
I've tried installing from /tmp/ and from /opt/
Either way the install script is copied from github correctly, the log directories are created, and empty log files created each run, but nothing happens.

What should I try?

Separate code build and result apps

It's only suggestion, but may be all of builded apps must be installed to some directory/root in /opt or even in /home/lool?
It would be helpful then someone (like me) creating VM template.
May be even to create some automated update of LooL template.

chmod -R lool:lool

My installation stops at line 351:

I think
chmod -R lool:lool ${lool_dir}
is supposed to be
chown -R lool:lool ${lool_dir}

test on system space fails on a VPS

The tests made in bin/systemChecks.sh return a

Error: /dev/root is not a valid filesystem

The line

lo_fs=$(getFilesystem "$(dirname $lo_dir)") || exit 1
($lo_dir = /opt)

set the var to '/dev/root'

My df -h

Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/root           36G    729M   34G   3% /
devtmpfs           2,0G       0  2,0G   0% /dev
tmpfs              2,0G       0  2,0G   0% /dev/shm
tmpfs              2,0G     14M  2,0G   1% /run
tmpfs              5,0M       0  5,0M   0% /run/lock
tmpfs              2,0G       0  2,0G   0% /sys/fs/cgroup
/dev/sda1          487M     25M  433M   6% /boot

I just removed the test from the script (I know I have enough space) and it's running ok atm.

option to compile without ssl

Hello,

I tried to find the option to have a lool working without ssl.
I saw that option recently, but I didn't write it down.. and now, I searched the net, I rgrep everything I could without luck.

Do you know what is it?
Maybe it was something like --auth-ssl=false

custom port

Hello,

I tried to upgrade my lool like I said in the "upgrade" post, but I'm stuck on where to set the custom port.

I first tried to change the running lool to a diffrent port.

1- I tried adding ' --o:port=9990' in the /etc/systemd/system/loolwsd.service file:

ExecStart=/opt/online/loolwsd --o:sys_template_path=/opt/online/systemplate --o:lo_template_path=/opt/libreoffice/instdir  --o:child_root_path=/opt/online/jails --o:admin_console.username=admin --o:admin_console.password="xxxxxx" --o:storage.filesystem[@Allow]=true --o:port=9990

2 - I tried adding hostname:port in the /opt/online/loolwsd.xml

<server_name desc="Hostname:port of the server running loolwsd. If empty, it's derived from the request." type="string" default="">localhost:9990</server_name>

3 - I even reboot the server to be sure

But it doesn't work.
loolwsd still run on port 9980..

4 - Instead of changing the port of the current running lool, I tried to compile the new one on the custom port, but it didn't recognize my option:

lool_configure_opts='--o:port=9990 '
and
lool_configure_opts='--port=9990 '
Result: All went OK, please run ./configure (with the appropriate parameters) now.

configure: error: unrecognized option: `--port=9990'
Try `./configure --help' for more information

And a configure --help doesn't show any option for port.

Any idea on how to achieve that?

Feature: configure Loowsd through loolwsd.xml instead of command line arguments


This is a opened discussion thread about a potential feature.


Feature: Loolwsd enriched post-install configuration.

Context

Loolwsd use a conf file in xml format to define how it work, log and accept connections
Some of theses parameters are configured as default in the XML by the ./configure script using options. like --with-logfile:

<property name="path" desc="Log file path.">/var/log/loolwsd.log</property>

However there are much more configuration options inside the file that are not covered by the configure script's options
the file is thankfully self-describing the parameters.
Actually mandatory parameters for loolwsd are given CLI style but do not cover some essential need like adding allowed wopi hosts.

Suggestions

Would be a big plus to switch from CLI configuration to loolwsd.xml.
there's a lot of ways this could be possible.

  • using a optional response file for setting the parameters
  • using a template for the xml file
  • using more paramaters in the script
  • ... suggest more !!

Failed upgrade

Hi!
Me again, i'm trying to replace/upgrade a legacy loolws with the new script.

But i'm facing this on every try:

No core file identified in directory /opt/libreoffice/workdir/CppunitTest/vcl_filters_test.test.core
To show backtraces for crashes during test execution,
enable core files with:

   ulimit -c unlimited


Error: a unit test failed, please do one of:
make CppunitTest_vcl_filters_test CPPUNITTRACE="gdb --args"
    # for interactive debugging on Linux
make CppunitTest_vcl_filters_test VALGRIND=memcheck
    # for memory checking
make CppunitTest_vcl_filters_test DEBUGCPPUNIT=TRUE
    # for exception catching

/opt/libreoffice/solenv/gbuild/CppunitTest.mk:101: recipe for target '/opt/libreoffice/workdir/CppunitTest/vcl_filters_test.test' failed
make[1]: *** [/opt/libreoffice/workdir/CppunitTest/vcl_filters_test.test] Error 1
make[1]: *** Waiting for unfinished jobs....
TimerTest::testIdle finished in: 6ms
TimerTest::testIdleMainloop finished in: 0ms
TimerTest::testDurations finished in: 5839ms
TimerTest::testRecursiveTimer finished in: 73334ms
ERROR: WatchDog timer thread expired, failing the test!
TimerTest::testSlowTimerCallback finished in: 46358ms
TimerTest::testTriggerIdleFromIdle finished in: 53155ms
OK (6)
terminate called after throwing an instance of 'CppUnit::Exception'
  what():  assertion failed
- Expression: false
- watchdog triggered



Fatal exception: Signal 6
Stack:
/opt/libreoffice/instdir/program/libuno_sal.so.3(+0x3acf0)[0x2b51b5310cf0]
/opt/libreoffice/instdir/program/libuno_sal.so.3(+0x3ae61)[0x2b51b5310e61]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x2b51b5e094b0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x2b51b5e09428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x2b51b5e0b02a]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x16d)[0x2b51b55c284d]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d6b6)[0x2b51b55c06b6]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d701)[0x2b51b55c0701]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d919)[0x2b51b55c0919]
/opt/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0(_ZN7CppUnit8Asserter4failERKNS_7MessageERKNS_10SourceLineE+0x4f)[0x2b51b508aea7]
/opt/libreoffice/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0(_ZN7CppUnit8Asserter6failIfEbRKNS_7MessageERKNS_10SourceLineE+0x2e)[0x2b51b508aeec]
/opt/libreoffice/workdir/LinkTarget/CppunitTest/libtest_vcl_timer.so(+0x5e3d)[0x2b51c9c8be3d]
/opt/libreoffice/workdir/LinkTarget/CppunitTest/libtest_vcl_timer.so(+0x525a)[0x2b51c9c8b25a]
/opt/libreoffice/instdir/program/libuno_sal.so.3(+0x3da97)[0x2b51b5313a97]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x2b51b63a96ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x2b51b5edb3dd]
Aborted (core dumped)

No core file identified in directory /opt/libreoffice/workdir/CppunitTest/vcl_timer.test.core
To show backtraces for crashes during test execution,
enable core files with:

   ulimit -c unlimited


Error: a unit test failed, please do one of:
make CppunitTest_vcl_timer CPPUNITTRACE="gdb --args"
    # for interactive debugging on Linux
make CppunitTest_vcl_timer VALGRIND=memcheck
    # for memory checking
make CppunitTest_vcl_timer DEBUGCPPUNIT=TRUE
    # for exception catching

make[1]: *** [/opt/libreoffice/workdir/CppunitTest/vcl_timer.test] Error 1
/opt/libreoffice/solenv/gbuild/CppunitTest.mk:101: recipe for target '/opt/libreoffice/workdir/CppunitTest/vcl_timer.test' failed
Makefile:263: recipe for target 'build' failed
make: *** [build] Error 2

Could it be that some library link is missing?

I forgot the details,
Distro: Ubuntu 16.04
Memory: 8 GB
Arch: 64 bits
Kernel: 4.8.0-56-generic

Anything else missing?

fails to find cups

Hi all,

checking whether to enable CUPS support... yes
checking whether cups support is present... checking for cupsPrintFiles in -lcups... yes
checking cups/cups.h usability... no
checking cups/cups.h presence... yes
configure: WARNING: cups/cups.h: present but cannot be compiled
configure: WARNING: cups/cups.h: check for missing prerequisite headers?
configure: WARNING: cups/cups.h: see the Autoconf documentation
configure: WARNING: cups/cups.h: section "Present But Cannot Be Compiled"
checking for cups/cups.h... configure: WARNING: cups/cups.h: proceeding with the compiler's result
configure: error: Could not find CUPS. Install libcups2-dev or cups-devel.
no
Error running configure at ./autogen.sh line 281.

I have cups and libcups2-dev installed. Libcups2-dev is version 2.1.3-4 amd64

failed reinstallation

hello, i have a problem (again).
after a complete installation and everything is working fine is startet the script again.
The problem was, that someone want to vacuum an need a socket. Long story short i did not install completely. "No problem" i thought and want to start the script again with the parameter lool_forcebuild cause at the lool there is the problem. But i said to me, that there is nothing to do because loolwd is already compiled and I'm not forced to recompile.

well but it is forced or forced to compile something.
i read there is ab problem with the parameters but is there any way to force anything?

thank you slevin7

Using this script leads to path traversal vulnerability

We installed your script in a test environment and where presented with URLs in the form

https://<ip>:9980/loleaflet/<id>/loleaflet.html?file_path=file:///opt/online/test/data/hello-world.odt

We were curious and tried other paths - with success - like:

https://<ip>:9980/loleaflet/<id>/loleaflet.html?file_path=file:///etc/passwd
https://<ip>:9980/loleaflet/<id>/loleaflet.html?file_path=file:///etc/ssh/sshd_config

The readme document does not point out that using officeonlin-install.sh opens the corresponding server to such a path traversal vulnerability.

testing files missing

In the "Testing" section of the files /opt/online/loleaflet/README, you can find several pages to access.

But when I tried them, I have a white page and in the logs, lines about resources not found (.js and .css files)

Ie:

  • to run the unit tests
    + open spec/loleaflet.html in the browser
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.523908 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.524402 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.js]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.591102 [ websrv_poll ] WRN  #26: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.css]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.591588 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.css]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.703774 [ websrv_poll ] WRN  #24: Failed to stat [/opt/online//loleaflet/node_modules/happen/happen.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.704586 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/happen/happen.js]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.706024 [ websrv_poll ] WRN  #19: Failed to stat [/opt/online//loleaflet/dist/dialog/vex-theme-plain.css]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.707155 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/dist/dialog/vex-theme-plain.css]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.708641 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/dist/dialog/vex.css]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.709229 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/dist/dialog/vex.css]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.724069 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.724492 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.js]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.738981 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/node_modules/happen/happen.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:35:00 lool loolwsd[1712]: wsd-01712-01722 16:35:00.739627 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/happen/happen.js]. File will not be sent.| wsd/FileServer.cpp:274
  • to simulate an editing session and to get the tile loading times
    + open spec/tilebench.html in the browser
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.008717 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.css]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.009314 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.css]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.013067 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/dist/dialog/vex.css]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.013609 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/dist/dialog/vex.css]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.015291 [ websrv_poll ] WRN  #19: Failed to stat [/opt/online//loleaflet/dist/dialog/vex-theme-plain.css]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.015807 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/dist/dialog/vex-theme-plain.css]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.018683 [ websrv_poll ] WRN  #19: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.019497 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.js]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.021453 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/node_modules/happen/happen.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.022167 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/happen/happen.js]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.024576 [ websrv_poll ] WRN  #19: Failed to stat [/opt/online//loleaflet/dist/dialog/vex.combined.min.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.025370 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/dist/dialog/vex.combined.min.js]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.075485 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.076067 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/mocha/mocha.js]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.101540 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/node_modules/happen/happen.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.102765 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/node_modules/happen/happen.js]. File will not be sent.| wsd/FileServer.cpp:274
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.129199 [ websrv_poll ] WRN  #15: Failed to stat [/opt/online//loleaflet/dist/dialog/vex.combined.min.js]. File will not be sent.| net/Socket.cpp:211
Aug 11 18:37:36 lool loolwsd[1712]: wsd-01712-01722 16:37:36.129845 [ websrv_poll ] ERR  FileServerRequestHandler: File not found: Failed to stat [/opt/online//loleaflet/dist/dialog/vex.combined.min.js]. File will not be sent.| wsd/FileServer.cpp:274

build-dep libreoffice -y

The first time running the script i get a message to add a repository before running sudo apt-get build-dep libreoffice -y Killing the script and running it again fixes it.
Adding a apt-get update after sed -i 's/# deb-src/deb-src/g' $soli will fix it.

upgrade feature

Hi,

it would be nice if your script has an upgrade feature in order to upgrade an existing installation which has been installed using this very same script...

Cheers!

tests: recheck LO space requirements

I was testing the script for the last PR when I noted a big difference in disk usage of LibreOffice folder than noted in the readme and previously checked.

root@debian:/opt# du -sh *
2.7G    libreoffice
2.7G    libreoffice-5.3.1.0 # fake version number 5.3.1.2
181M    libreoffice-5.3.1.2.tar.xz
2.7G    libreoffice-old
604M    online

Here I Tried of overload the disk usage by copying multiple time the libreoffice folder. It was supposed to use about 12GB last time I mesured it.
but here It uses only 2.7 GiB. 😕
This doesn't mean that LO compilation won't use more than 2.7 GiB during compilation, however, I want to known from various users how much space LO uses on their setup.

SSL Exception [in file "src/ErrorHandler.cpp", line 40]

This is what I get on my LibreOffice Online server when I access a file and get Access Denied:

Mar 23 00:23:12 ofco-01 loolwsd[1656]: SSL Exception [in file "src/ErrorHandler.cpp", line 40]
Mar 23 00:23:12 ofco-01 loolwsd[1656]: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I use https://fqdnOfLIbreOfficeServer:8890 in my collabora settings.

I have already copied in the /etc/loolwsd/cert.pem to /var/www/nextcloud/resources/config/ca-bundle.crt

[Suggestion] - Split the script into multiple files.

Hi there,
since the script started to grow both in size and in contribution,
the idea of splitting the script's code into multiples sub script or modules have grown bigger every day to myself.
The big idea whould be to Have 1 main script calling all the other ones. Each sub-script would contains one idempotent feature.
I see mostly advantages into doing so:

  • Simpler scripts, easier to read instead of a big files of 500 lines (and increasing)
  • easier contributions: don't want to rebase all the time your branch and deal with merge conflicts when working on a fix/feature ? We need more than 1 file 😉 !
  • easier support: come with the previous point in fact...
  • More languages ! In fact bash have some limitation that some other language like perl/python could solve.

However, this would add complexity to the repo and may requires to "level-up" the contributions standards like:

This would be hard work first but would Really paid off in the long run
What do you think ?

Improvement: reduce LibreOffice to its minimum for Online use


This is a opened discussion about a improvement of a script's function


Context

Actual LO (LibreOffice) compilation is configured following recommended options for general purpose. However there's a lot of modules that are not required/used yet by the online websocket but that are still compiled , therefore taking useless cpu time during installation.

Suggestion

Make an optional "minimal LO build trigger" to change the compilation options for LO and still having a fully functional Online service.
This is the easy part,

The hardest part is to find the ./configure options along with the make options
for now I have some leads here , here and here

request

Is here someone with more knowledge/experience in tuning LibreOffice build or a C++ project in general that could help ?

empty poco var

2 times I started the script on a fresh debian 8 and 2 times the script stopped when starting the poco stuff:

--2017-08-09 05:22:00--  https://pocoproject.org/releases/poco-/poco-1.7.8p3-all.tar.gz
Résolution de pocoproject.org (pocoproject.org)… 162.209.7.4
Connexion à pocoproject.org (pocoproject.org)|162.209.7.4|:443… connecté.
requête HTTP transmise, en attente de la réponse… 404 Not Found
2017-08-09 05:22:01 erreur 404 : Not Found.

The '${poco_version_folder}' var seems to be empty when composing the url to wget the tar file.

dot: not found

if you encounter the msg dot- not found: graphviz has to be installed (added to list of apps to be installed).

certificate permissions and duration

Hi

On about line 600 the self signed certificate chain is createt with openssl.
It maybe would be a good idea to create the certificates for more than one year (10 sounds better in my head).
Also the permissions on the keyfile should be set to 600 and the owner should be set to "lool".
The current default ist 644 which allows everyone on the system to read the keyfile.

Debian: directory for loolwsd.service is /etc/systemd/system

Some minutes ago, the compilation succeeded - but as I had an old loolwsd.service in the correct directory /etc/systemd/system, it didn't start.
So, this remark:
loolwsd.service must be installed in /etc/systemd/system.
Afterwards
systemctl daemon-reload
has to be started, then everything works perfect.

Build requirements?

Hi!
This is not really an issue or bug, more like a request.
I've read some places that this script require some decent resources and time to be able to build.
Could you suggest some minimum specs to address before any attempt?
I've read, 4 GB ram, somewhat 16GB on disk or so, but not really sure the real numbers.

Thanks.

How to unset docs/connections

I see there is a value for
lool_maxcon=200
lool_maxdoc=100

Would compile with -1 disable this, or maybe a 0, i guess -1 would have more sense.
Or just to put a number like, 999999 to make it (virtually) unlimited or restricted to compilation.

I'm building with -1 see what happens.
Do you have any idea?

showstopper: sysntax error

Hi, many thanks for this script and sorry for me not having more to contribute than an error that i stumbled upon.
This is on a hosted v-server, ubuntu 16.04 server. Script starts, downloads many packages, everything looks good and then:

E: Unable to find a source package for libreoffice
lool:x:119:127::/opt/lool:/bin/false
chown: cannot access ‘/home/lool’: No such file or directory
./officeonline-install.sh: eval: line 448: syntax error near unexpected token `)’

I can create /home/lool and make that error go away, but the syntax error stays.
Thanks a lot for any hints or fixes.

Strange loop

The build script contains multiple calls of for dir in ./*/. This seems very strange to me.

If you call the script from a directory without subdirectories, it will run the command inside the loop once, which is fine:

office.test /root # for dir in ./*/ ; do (cd "$oo" && echo npm install -g npm); done
npm install -g npm

But if you call the script from a directory with subdirectories, it will run the loop contents multiple times:

office.test / # for dir in ./*/ ; do (cd "$oo" && echo npm install -g npm); done
npm install -g npm
npm install -g npm
npm install -g npm
[...]

I cannot believe this is intended.

Error: rpool/data/... is not a valid filesystem

I get the same error as described in #120

Error: rpool/data/subvol-1109-disk-1 is not a valid filesystem

I'm using a Debian 8 LXC-Container inside Proxmox with zfs.

my df -h:

Filesystem                     Size  Used Avail Use% Mounted on                              
rpool/data/subvol-1109-disk-1   20G  635M   20G   4% /
none                           492K     0  492K   0% /dev
tmpfs                          1.6G   44K  1.6G   1% /run
tmpfs                          5.0M     0  5.0M   0% /run/lock
tmpfs                          3.2G     0  3.2G   0% /run/shm

Can I work around it?

Connection is not allowed

Hello,
i have a possible noob error with i cant figure out where the problem could be.
The installation with the script works absolutely fine. output of status.
`systemctl status loolwsd.service
loolwsd.service - LibreOffice OnLine WebSocket Daemon
Loaded: loaded (/etc/systemd/system/loolwsd.service; enabled)
Active: active (running) since Sun 2017-04-23 11:58:54 CEST; 9min ago
Process: 19629 ExecStartPre=/bin/chown lool: /usr/local/var/cache/loolwsd (code=exited, status=0/SUCCESS)
Process: 19626 ExecStartPre=/bin/mkdir -p /usr/local/var/cache/loolwsd (code=exited, status=0/SUCCESS)
Main PID: 19632 (loolwsd)
CGroup: /system.slice/loolwsd.service
├─19632 /opt/online/loolwsd --o:sys_template_path=/opt/online/systemplate --o:lo_template_...
├─19635 /opt/online/loolforkit --losubpath=lo --systemplate=/opt/online/systemplate --lote...
└─19637 /opt/online/loolforkit --losubpath=lo --systemplate=/opt/online/systemplate --lote...

Apr 23 11:58:54 mycloud.something systemd[1]: Started LibreOffice OnLine WebSocket Daemon.
Apr 23 11:58:54 mycloud.something loolwsd[19632]: Full log is available in: /var/log/loolwsd.log
Apr 23 11:58:54 mycloud.something loolwsd[19632]: Launch this in your browser:
Apr 23 11:58:54 mycloud.something loolwsd[19632]: https://localhost:9980/loleaflet/874b86a/loleaflet.h...odt
Apr 23 11:58:54 mycloud.something loolwsd[19632]: Or for the Admin Console:
Apr 23 11:58:54 mycloud.something loolwsd[19632]: https://admin:i5qhovMLPe@localhost:9980/loleaflet/di...tml
Hint: Some lines were ellipsized, use -l to show in full.`

So i wrote the virual host file in /etc/apache2/sites-avalible

`<VirtualHost *:443>
ServerName office-mycloud.something:443

                    # SSL configuration, you may want to take the easy route instead and use Lets E$
                    SSLEngine on
                    SSLCertificateFile /etc/letsencrypt/live/office-mycloud.something/fullchain.pem
                    SSLCertificateKeyFile /etc/letsencrypt/live/office-mycloud.something/privkey.pem
                    SSLProtocol all -SSLv2 -SSLv3


                    # Encoded slashes need to be allowed
                    AllowEncodedSlashes     NoDecode

                    # Container uses a unique non-signed certificate
                    SSLProxyEngine On
                    SSLProxyVerify None
                    SSLProxyCheckPeerCN Off
                    SSLProxyCheckPeerName Off

                    # keep the host
                    ProxyPreserveHost On

                    # static html, js, images, etc. served from loolwsd
                    # loleaflet is the client part of LibreOffice Online
                    ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0
                    ProxyPassReverse           /loleaflet https://127.0.0.1:9980/loleaflet

                    # WOPI discovery URL
                    ProxyPass    /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
                    ProxyPassReverse           /hosting/discovery https://127.0.0.1:9980/hosting/di$

                    # Main websocket
                    ProxyPassMatch    "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon

                    # Admin Console websocket
                    ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws

                    # Download as, Fullscreen presentation and Image upload operations
                    ProxyPass   /lool https://127.0.0.1:9980/lool
                    ProxyPassReverse           /lool https://127.0.0.1:9980/lool
                    ServerAlias    office-mycloud.something
                    </VirtualHost>

`
and then in the nextcloud i said to the collabora app use https://office-mycloud.something
but nothin happens. I tried with port and without i always get the Connection is not allowed error when i try to open a dokument.
In the loolwsd.xml i tried host allowd with the office subdomain for office and without.

I really think i missed somethings and i hope you could help me.
before i forget. i used nextcloud 11.0.2

thanks for help and sorry for my possible partly bad english.

ttf-mscorefonts-installer

Running sudo apt-get install ttf-mscorefonts-installer and recompiling libreoffice gives you the following Microsoft fonts.

Andale_Mono.ttf
Arial_Black.ttf
Arial_Bold_Italic.ttf
Arial_Bold.ttf
Arial_Italic.ttf
Arial.ttf
Arial_Black.ttf
Comic_Sans_MS_Bold.ttf
Comic_Sans_MS.ttf
Courier_New_Bold.ttf
Courier_New_Bold_Italic.ttf
Courier_New_Bold_Italic.ttf
Courier_New_Bold.ttf
Courier_New_Italic.ttf
Courier_New.ttf
Georgia_Bold_Italic.ttf
Georgia_Bold.ttf
Georgia_Italic.ttf
Georgia.ttf
Impact.ttf
Times_New_Roman_Bold_Italic.ttf
Times_New_Roman_Bold.ttf
Times_New_Roman_Italic.ttf
Times_New_Roman.ttf
Trebuchet_MS_Bold_Italic.ttf
Trebuchet_MS_Bold.ttf
Trebuchet_MS_Italic.ttf
Trebuchet_MS.ttf
Verdana_Bold_Italic.ttf
Verdana_Bold.ttf
Verdana_Italic.ttf
Verdana.ttf
Webdings.ttf

Incorporating this in the script will be tricky because you have to accept an EULA at install.

You can ignore message Can't drop privileges

Some partition tips ?

Hi,

This script is great, but is it ideal to have some partition tips so your system won't fill up partitions while compiling ?

Would be nice to know!

Thanks

system 'root' user has become 'lool' using sudo privilages

After running this script, the file '/etc/group' has changed.
The following:

root:x:0:
sudo:x:27:root

became:

root:x:0:
sudo:x:27:lool

This caused me and my system a bit of grief.
I manually changed back to make my system happy again.

Poco version variables not holding despite having CURL installed

I can get lo to install, but the poco version variables do not work, despite CURL being installed
Subsequent runs of the script get same result (unlike some of the other issues reported here)

Ubuntu 16.04 Server (no GUI)

(PS I need to create an /opt/ directory first too)
Thanks too for the script and very responsive action on issues being reported

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.