CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.85k stars 702 forks source link

CODE Docker image 6.4.13.3 - Well, this is embarrassing #3442

Closed nagi1 closed 3 years ago

nagi1 commented 3 years ago

Describe the bug Pulling fresh 6.4.13.3 docker image with untouch/unmodified sdk example and results "Well, this is embarrassing" and error in console "Unexpected token o in JSON at position 1".

To Reproduce

  1. Pull fresh Docker image 6.4.13.3
  2. Download nodejs example
  3. Run node server http://localhost:3000
  4. Run docker container using this command
  5. docker run --privileged -t -d -p 127.0.0.1:9980:9980 -e "domain=localhost\\:3000" -e "username=admin" -e "password=password" -e "DONT_GEN_SSL_CERT=true" -e "extra_params=--o:ssl.enable=false" --restart always collabora/code
  6. docker cp ec4:/etc/loolwsd/loolwsd.xml loolwsd.xml
  7. change termination=false
  8. run demo at localhost:3000
  9. put http://localhost:9980
  10. See the ERROR

Expected behavior It should work given it's untouched demo code

Actual behavior Error Well, this is embarrassing and Unexpected token o in JSON at position 1 on console.

Screenshots image

image

image

Desktop

Additional context I'm aware of previous issues and PR and tried many solutions!

2771 #2752 #2931

Some logs

wsd-00007-00043 2021-10-19 19:23:58.709113 [ docbroker_001 ] ERR  Invalid or unknown session [004] to remove.| wsd/DocumentBroker.cpp:1484
wsd-00007-00026 2021-10-19 19:24:00.595984 [ prisoner_poll ] WRN  Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cpp:2130
wsd-00007-00061 2021-10-19 19:51:11.543399 [ docbroker_002 ] ERR  Cannot get file info from WOPI storage uri [http://localhost:3000/wopi/files/1?access_token=test&access_token_ttl=0&reuse_cookies=_ga%3DGA1.1.1301056508.1612606789%3A_ga_6V2PD0VWZE%3DGS1.1.1612677710.3.0.1612677710.0]. Error: Connection refused| wsd/Storage.cpp:649
wsd-00007-00061 2021-10-19 19:51:11.543518 [ docbroker_002 ] ERR  loading document exception: Connection refused| wsd/DocumentBroker.cpp:1445
wsd-00007-00061 2021-10-19 19:51:11.543547 [ docbroker_002 ] ERR  Failed to add session to [/wopi/files/1] with URI [http://localhost:3000/wopi/files/1?access_token=test&access_token_ttl=0&reuse_cookies=_ga%3DGA1.1.1301056508.1612606789%3A_ga_6V2PD0VWZE%3DGS1.1.1612677710.3.0.1612677710.0]: Connection refused| wsd/DocumentBroker.cpp:1407
wsd-00007-00061 2021-10-19 19:51:11.543595 [ docbroker_002 ] ERR  Error while loading : Connection refused| wsd/LOOLWSD.cpp:3465
wsd-00007-00061 2021-10-19 19:51:11.553208 [ docbroker_002 ] ERR  No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient-008| wsd/ClientSession.cpp:332
wsd-00007-00061 2021-10-19 19:51:11.553469 [ docbroker_002 ] ERR  No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient-008| wsd/ClientSession.cpp:332
wsd-00007-00061 2021-10-19 19:51:11.563974 [ docbroker_002 ] ERR  Invalid or unknown session [008] to remove.| wsd/DocumentBroker.cpp:1484
wsd-00007-00026 2021-10-19 19:51:13.544197 [ prisoner_poll ] WRN  Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cpp:2130
nagi1 commented 3 years ago

Update: I installed older version 6.4.9 Same exact issue.

ustrucx commented 3 years ago

Same here, it is more often broken than not broken, to the point I am back using google until I can find the time to install an alternative...

thebearon commented 3 years ago

Accessing localhost from within a docker container will try to connect the container itself (as in case of any host it will refer to itself), which obviously won't work. Use your normal IP address/host name, and not localhost, 127.0.0.1, 192.168.0.1 and the like.