This command is right?
docker run -t -d -p 9980:9980 -e “domain=nextcloud.x.yz” -e “server_name=office.x.yz” --restart always --cap-add MKNOD collabora/code
No, see one post above.
Please add after the second “9980” this:
“-v code-config:/etc/coolwsd -e ‘extra_params=–o:ssl.enable=false’”
followed by the rest of your line with “collabora/code:22.05.4.1.1” at the end.
You should NOT set the restart value to “always”, better to “unless-stopped”
same logs shown again
Your complete docker run … ?
yes
docker run -t -d -p 9980:9980 -v code-config:/etc/coolwsd -e ‘extra_params=–o:ssl.enable=false’ -e “domain=nextcloud.xyz” -e “server_name=office.xyz” --restart unless-stopped --cap-add MKNOD collabora/code:22.05.3.1.1
docker run -d -i -t -p 9980:9980 --name collabora -v code-config:/etc/coolwsd -e “extra_params=-–o:ssl.enable=false” -e “domain=nextcloud.xyz” --restart unless-stopped --cap-add MKNOD collabora/code:22.05.4.1.1
Mmmh, there are two “–” before o:ssl.enable=false.
And you should restart your nextcloud docker container after this and check the office setup.
same logs shown again , are using collabora docker and nextcloud on the same server
Same here but creating lool files in nextcloud works after restart nextcloud docker volume.
Nextcloud → Settings → Office → Extended
i enable ooxml as standard format
already enabled nothing happen
Okay, now the hard weapons …
Please set the log level in your nextcloud config.php to a higher level
What tells your nextcloud.log (docker container logs -f) or data/nextcloud.log inside your container…
Which browser you use?
No plugins for this enabled?
What tells the browser console (Strg-Shift-I) in the moment you create a new lool document?
(only errors are related)
You need nextcloud logs right ?
Im using google chrome as a browser, and no plugins enabled
You, but only error related…
For me i open a terminal, shut up “docker container logs -f nextcloud” and then try to open a document to look if log anything related to this activity.
And you should check your nextcloud setup inside your container.
Open a terminal, shut up “docker exec -it --user www-data nextcloud /bin/bash” and followed by this inside your container shell “php occ check” or status or upgrade instead of check. Everything MUST be fine inside your container.
You can follow your nextcloud setup inside your container with “tail -f data/nextcloud.log” for example.
Google Chrome with no plugins should work.
Im not using nextcloud as a docker its on vm
This is docker errors everytime i open a document
Ready to accept connections on port 9980.
kit-00030-00028 2022-07-26 11:34:02.327499 +0000 [ kit_spare_001 ] TRC #24: Wrote 457 bytes of 457| net/Socket.hpp:1098
kit-00030-00028 2022-07-26 11:34:02.327686 +0000 [ kit_spare_001 ] TRC #24 Connected to WS Handler 0x558c59598af0| net/WebSocketHandler.hpp:167
kit-00030-00028 2022-07-26 11:34:02.327962 +0000 [ kit_spare_001 ] DBG Inserting socket #24, address , into kit| net/Socket.hpp:743
kit-00030-00028 2022-07-26 11:34:02.328219 +0000 [ kit_spare_001 ] TRC #24: Resetting thread affinity while in transit (was 0x7ffba8b79780)| net/Socket.hpp:330
kit-00030-00028 2022-07-26 11:34:02.328429 +0000 [ kit_spare_001 ] TRC #24: Set socket buffer size to 262144| net/Socket.hpp:240
kit-00030-00028 2022-07-26 11:34:02.328504 +0000 [ kit_spare_001 ] INF New kit client websocket inserted.| kit/Kit.cpp:2820
kit-00030-00028 2022-07-26 11:34:02.328693 +0000 [ kit_spare_001 ] INF Kit initialization complete: setting log-level to [warning] as configured.| kit/Kit.cpp:2825
wsd-00001-00001 2022-07-26 11:35:02.427485 +0000 [ coolwsd ] WRN Waking up dead poll thread [update], started: false, finished: false| net/Socket.hpp:726
wsd-00001-00036 2022-07-26 11:40:05.350913 +0000 [ docbroker_001 ] WRN Waking up dead poll thread [HttpSynReqPoll], started: false, finished: false| net/Socket.hpp:726
wsd-00001-00036 2022-07-26 11:40:05.351532 +0000 [ docbroker_001 ] ERR #35: Read failed, have 0 buffered bytes (EPIPE: Broken pipe)| net/Socket.hpp:1132
wsd-00001-00036 2022-07-26 11:40:05.351979 +0000 [ docbroker_001 ] ERR #35: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1430
wsd-00001-00036 2022-07-26 11:40:05.352450 +0000 [ docbroker_001 ] ERR #35: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1430
wsd-00001-00036 2022-07-26 11:40:05.353306 +0000 [ docbroker_001 ] ERR loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2259
wsd-00001-00036 2022-07-26 11:40:05.353778 +0000 [ docbroker_001 ] ERR Failed to add session to [https://nextcloud.xyz:443/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl] with URI [https://nextcloud.xyz/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl?access_token=XMAJYVq25S8DqH9G20tBJgzWO5klWkYG&access_token_ttl=0]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2221
wsd-00001-00036 2022-07-26 11:40:05.354181 +0000 [ docbroker_001 ] ERR Storage error while starting session on https://nextcloud.xyz:443/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl for socket #30. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/COOLWSD.cpp:4438
wsd-00001-00036 2022-07-26 11:40:05.355471 +0000 [ docbroker_001 ] ERR Invalid or unknown session [051] to remove.| wsd/DocumentBroker.cpp:2304
wsd-00001-00032 2022-07-26 11:40:05.408809 +0000 [ websrv_poll ] WRN DocBroker with docKey [https://nextcloud.xyz:443/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl] is unloading. Rejecting client request to load.| wsd/COOLWSD.cpp:3013
wsd-00001-00032 2022-07-26 11:40:05.410414 +0000 [ websrv_poll ] ERR Error while handling Client WS Request: Failed to create DocBroker with docKey [https://nextcloud.xyz:443/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl].| wsd/COOLWSD.cpp:4468
wsd-00001-00032 2022-07-26 11:40:05.411730 +0000 [ websrv_poll ] ERR #30: Socket write returned -1 (ENOENT: No such file or directory)| net/Socket.hpp:1430
wsd-00001-00032 2022-07-26 11:40:05.412051 +0000 [ websrv_poll ] ERR #30: Socket write returned -1 (ENOENT: No such file or directory)| net/Socket.hpp:1430
wsd-00001-00032 2022-07-26 11:40:05.414019 +0000 [ websrv_poll ] WRN #30 is shutting down but 64 bytes couldn’t be flushed and still remain in the output buffer.| net/WebSocketHandler.hpp:812
wsd-00001-00032 2022-07-26 11:40:05.414368 +0000 [ websrv_poll ] ERR #30: Attempted to remove: 1237 which is > size: 0 clamped to 0| net/Socket.hpp:1233
wsd-00001-00032 2022-07-26 11:40:05.414761 +0000 [ websrv_poll ] ERR #30: Error while handling poll at 0 in websrv_poll: #30BIO error: 337690831, rc: -1: error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown:
139814832207616:error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown:…/ssl/ssl_lib.c:1917:
| net/Socket.cpp:450
wsd-00001-00032 2022-07-26 11:40:05.962596 +0000 [ websrv_poll ] WRN DocBroker with docKey [https://nextcloud.xyz:443/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl] is unloading. Rejecting client request to load.| wsd/COOLWSD.cpp:3013
wsd-00001-00032 2022-07-26 11:40:05.963776 +0000 [ websrv_poll ] ERR Error while handling Client WS Request: Failed to create DocBroker with docKey [https://nextcloud.xyz:443/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl].| wsd/COOLWSD.cpp:4468
wsd-00001-00032 2022-07-26 11:40:05.964652 +0000 [ websrv_poll ] ERR #34: Socket write returned -1 (ENOENT: No such file or directory)| net/Socket.hpp:1430
wsd-00001-00032 2022-07-26 11:40:05.964966 +0000 [ websrv_poll ] ERR #34: Socket write returned -1 (ENOENT: No such file or directory)| net/Socket.hpp:1430
wsd-00001-00032 2022-07-26 11:40:05.965273 +0000 [ websrv_poll ] WRN #34 is shutting down but 64 bytes couldn’t be flushed and still remain in the output buffer.| net/WebSocketHandler.hpp:812
wsd-00001-00032 2022-07-26 11:40:05.965618 +0000 [ websrv_poll ] ERR #34: Attempted to remove: 1237 which is > size: 0 clamped to 0| net/Socket.hpp:1233
wsd-00001-00032 2022-07-26 11:40:05.965994 +0000 [ websrv_poll ] ERR #34: Error while handling poll at 0 in websrv_poll: #34BIO error: 337690831, rc: -1: error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown:
139814832207616:error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown:…/ssl/ssl_lib.c:1917:
| net/Socket.cpp:450
wsd-00001-00027 2022-07-26 11:40:07.355918 +0000 [ prisoner_poll ] WRN Prisoner connection disconnected but without valid socket.| wsd/COOLWSD.cpp:3098
wsd-00001-00027 2022-07-26 11:40:07.356633 +0000 [ prisoner_poll ] WRN Prisoner connection disconnected but without valid socket.| wsd/COOLWSD.cpp:3098
sh: 1: /usr/bin/coolmount: Operation not permitted
frk-00028-00028 2022-07-26 11:40:08.330372 +0000 [ forkit ] ERR Failed to unmount [/opt/cool/child-roots/s4vbnIprCHeP4mph/tmp]| common/JailUtil.cpp:71
sh: 1: /usr/bin/coolmount: Operation not permitted
frk-00028-00028 2022-07-26 11:40:08.346715 +0000 [ forkit ] ERR Failed to unmount [/opt/cool/child-roots/s4vbnIprCHeP4mph/lo]| common/JailUtil.cpp:71
sh: 1: /usr/bin/coolmount: Operation not permitted
frk-00028-00028 2022-07-26 11:40:08.361420 +0000 [ forkit ] ERR Failed to unmount [/opt/cool/child-roots/s4vbnIprCHeP4mph]| common/JailUtil.cpp:71
wsd-00001-00044 2022-07-26 11:40:08.882305 +0000 [ docbroker_002 ] WRN Waking up dead poll thread [HttpSynReqPoll], started: false, finished: false| net/Socket.hpp:726
wsd-00001-00044 2022-07-26 11:40:08.882805 +0000 [ docbroker_002 ] ERR #35: Read failed, have 0 buffered bytes (EPIPE: Broken pipe)| net/Socket.hpp:1132
wsd-00001-00044 2022-07-26 11:40:08.883175 +0000 [ docbroker_002 ] ERR #35: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1430
wsd-00001-00044 2022-07-26 11:40:08.883513 +0000 [ docbroker_002 ] ERR #35: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1430
wsd-00001-00044 2022-07-26 11:40:08.883957 +0000 [ docbroker_002 ] ERR loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2259
wsd-00001-00044 2022-07-26 11:40:08.884286 +0000 [ docbroker_002 ] ERR Failed to add session to [https://nextcloud.xyz:443/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl] with URI [https://nextcloud.xyz/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl?access_token=XMAJYVq25S8DqH9G20tBJgzWO5klWkYG&access_token_ttl=0&permission=edit]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2221
wsd-00001-00044 2022-07-26 11:40:08.884616 +0000 [ docbroker_002 ] ERR Storage error while starting session on https://nextcloud.xyz:443/index.php/apps/richdocuments/wopi/files/1410_oc1gq84dq8zl for socket #22. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/COOLWSD.cpp:4438
wsd-00001-00044 2022-07-26 11:40:08.886321 +0000 [ docbroker_002 ] ERR Invalid or unknown session [055] to remove.| wsd/DocumentBroker.cpp:2304
wsd-00001-00027 2022-07-26 11:40:10.889757 +0000 [ prisoner_poll ] WRN Prisoner connection disconnected but without valid socket.| wsd/COOLWSD.cpp:3098
wsd-00001-00027 2022-07-26 11:40:10.890313 +0000 [ prisoner_poll ] WRN Prisoner connection disconnected but without valid socket.| wsd/COOLWSD.cpp:3098
sh: 1: /usr/bin/coolmount: Operation not permitted
frk-00028-00028 2022-07-26 11:40:11.885161 +0000 [ forkit ] ERR Failed to unmount [/opt/cool/child-roots/wdxU9WiHJjBZWuiC/tmp]| common/JailUtil.cpp:71
sh: 1: /usr/bin/coolmount: Operation not permitted
frk-00028-00028 2022-07-26 11:40:11.911334 +0000 [ forkit ] ERR Failed to unmount [/opt/cool/child-roots/wdxU9WiHJjBZWuiC/lo]| common/JailUtil.cpp:71
sh: 1: /usr/bin/coolmount: Operation not permitted
frk-00028-00028 2022-07-26 11:40:11.933522 +0000 [ forkit ] ERR Failed to unmount [/opt/cool/child-roots/wdxU9WiHJjBZWuiC]| common/JailUtil.cpp:71
Yeah, if you should tell this at the beginning… most checks would be unnecessary
You have to adapt your coolwsd.xml in your lool config volume to allow ip adresses from other networks.
Take a look at this file at /var/lib/docker/volumes/code-config/_data/coolwsd.xml in the section “wopi desc=“Allow/deny wopi storage.” allow=“true””. Modify at your needs, here must be the ip adresses from nextcloud server inside this section as you see in some lines below.
Before your modify you have to stop your collabora/code container with “docker container stop collabora”. Modify and then start the container again. Modified config will be persistent because you have this file in a volume.
Inside your nextcloud container be sure that you can ping your collobora container and and reverse also from collabora to your nextcloud container. If ping inside your container not availabe install it with “apt update && apt install -y iputils-ping”.
And of course it could be complecated further with virtual machine firewalls or something…
can you please tell what to modify ?
<storage desc="Backend storage">
<filesystem allow="false" />
<wopi desc="Allow/deny wopi storage." allow="true">
<max_file_size desc="Maximum document size in bytes to load. 0 for unlimited." type="uint">0</max_file_size>
<locking desc="Locking settings">
<refresh desc="How frequently we should re-acquire a lock with the storage server, in seconds (default 15 mins) or 0 for no refresh" type="int" default="900">900</refresh>
</locking>
<alias_groups desc="default mode is 'first' it allows only the first host when groups are not defined. set mode to 'groups' and define group to allow multiple host and its al>
<group>
<host desc="hostname to allow or deny." allow="true">https://nextcloud.xyz:443</host>
</group>
</alias_groups>
</wopi>
Hmmmh, for me this is the relevant section … self explained.
Remember: Do modifying this file only with stopped collabora container.
i should add nextcloud private and public IP or need to add something else?