-
Notifications
You must be signed in to change notification settings - Fork 53
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
Service start fails #104
Comments
Did you restart the server? |
No I didn't. I'll try |
Did you copy everything? lo_template_path=/opt/libreof is not complete. Process: 3125 ExecStart=/opt/online/loolwsd --o:sys_template_path=/opt/online/systemplate --o:lo_template_path=/opt/libreof |
I think it is truncated by the prompt, in the trace log it seems correct. I rebooted but still the same : wsd-08586-08586 12:59:32.776222 [ loolwsd ] INF Initializing wsd. Local time: Fri 2017-08-04 14:59:32+0200. Log level is [8].| common/Log.cpp:199 Is there a way to clean/remove anything done by this script (user creation & co) and try with docker prerequisite installation ? would it change something ? I found this : But I'm not sure it is the same. |
Can you run these commands?
or edit /etc/online/loolwsd.xml change this line
to
|
What version of Ubuntu are you using? |
Tried both one by one, still the tame Ubuntu 16.04.3 LTS |
Please just delete /opt/(script Folder) and run the script again. |
I think you probably have a typo somewhere in /opt/online/loolwsd.xml. Deleting /opt/(script Folder) as husisusi is saying will probably fix it. |
When you mean /opt/(script Folder) is it "libreoffice" / "online" / "poco..." ? Or do you mean where the script install folder is located ? My install script is located in my /home folder |
/opt/online |
my /opt is not a FS, it is on my / partition. So I moved /opt and made a symlink with : ln -s /home/opt /opt Didn't know the locations where editable |
Hello, I started again without symlink. I edited the script to add /home in frond of the 3 /opt Now service starts and works in admin URL But normal URL for online editing show me a popup message : WOPISrc erroné, usage : WOPISrc=URI encodé correctement, ou chemin_du_fichier, usage : chemin_du_fichier=/chemin/du/document/ From nextcloud, it doesnt work too. Logs show this : wsd-11585-11595 12:52:33.057462 [ websrv_poll ] ERR FileServerRequestHandler: File not found: Invalid file.| wsd/FileServer.cpp:274 everything is located in /home/opt (libreoffice / online / poco) My nextcloud and collabora runs on the same server. So in nextcloud settings I only inserted : https://my_url:9980 |
When I try to access to hello-world.odt : wsd-12461-12470 13:41:30.142587 [ websrv_poll ] WRN #16: Failed to stat [/opt/online/loleaflet/dist/branding.js]. File will not be sent.| net/Socket.cpp:211 |
For testing you can enable debug. Be aware of security issues. |
The /hosting/discovery URL shows me an XML file. I deleted everything and started again... Thank you Nextcloud collabora app only show a grey screen without anything else, and there is the associated error in logs : |
The branding.js error is normal. You can create it to set logo and other stuff. |
Ok, good to know. |
Could be anything. I would enable debug for some more testing. |
looks like you may have configuration issue/conflict with installed files from you first attempt.
Yes, sorry I haven't been explicit: the XML expose API endpoints. this URL is a good way to see if the service is running. |
Ok, thank you, I deleted everything including loolwsd.service |
It's overkill ... but okay 😆 ! |
Well, don't ask me why, but now with debug enabled it works... how can I disable debug without breaking everything ? Thank you |
You can disable it by editing loolwsd.xml. Systemctl stop loolwsd Change filesystem allow="true" to "false" in /opt/online/loolwsd.xml You will still get the message about hello-world.odt but that won't work anymore. |
Thank you for your help, I can't tell what was the real issue, but now it works as intended. |
Seeing your logs, seems that the loolwsd systemd unit file was in fault and was containing path to default folder. It was created at the first try you made to make lo online by sim-linking the /opt folder, with /opt/online path in it, and was not rewritten by the script in the next runs. |
I tried to simply edit it, you are right it was in default /opt |
When a service file is modified, systemd must reload the file with |
Yes I know, when you try to start it after a modification, it gives you the daemon-reload command itself. |
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
The text was updated successfully, but these errors were encountered: