Bug 107991 - LibreOffice Online throws an SSL Exception
Summary: LibreOffice Online throws an SSL Exception
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-21 16:29 UTC by Pierre Rudloff
Modified: 2017-06-01 13:51 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Rudloff 2017-05-21 16:29:31 UTC
Hello,

I have built LibreOffice Online 5.3.3 on Debian 8.8.

It seems to run fine but when I try to edit a document, I get popup saying "Can't connect to document" and I see this in loolwsd.log:
wsd-16132-16137 0:00:10.477131 [ client_ws_0001 ] ERR  Error in client request handler: SSL Exception| wsd/LOOLWSD.cpp:993

loolwsd uses a valid Let's Encrypt certificate and I don't get any SSL error elsewhere.

It seems to happen after this WS payload has been received:
statusindicator: ready

The browser then receives a strange payload containing only "é" and then the connection is closed with a 1001 code.

I don't get any error in the browser console (except for a missing branding.css).
Comment 1 Aron Budea 2017-05-30 07:49:11 UTC
Could you check if the bug occurs with 5.4beta1 or with build of master branch of LibreOffice Online?
Comment 2 Pierre Rudloff 2017-05-30 09:23:12 UTC
I tried building/running LibreOffice Online 5.4.0 with LibreOffice 5.4.0.0.beta1 but I get other, maybe unrelated, errors:
loolforkit version details: 5.4.0 - 3cb12a2
office version details: { "ProductName": "LibreOfficeDev", "ProductVersion": "5.4", "ProductExtension": ".0.0.beta1", "BuildId": "8672113ead4e403c55e31b1d9a3d1e0f3b299577" }
...]: File not found| wsd/LOOLWSD.cpp:1685oll ] ERR  #25 Exception while processing incoming request: [GET /hosting/discovery HTTP/1.1

So I can't tell if the SSL error is still there.
Comment 3 Aron Budea 2017-05-30 11:01:49 UTC
Those logs aren't very informative, however when I tried to reproduce, it was missing the cache directory: /usr/local/var/cache/libreoffice-online .
Please create it manually, set the access rights correctly, and try again.
Comment 4 Pierre Rudloff 2017-05-30 12:05:30 UTC
Thanks but the cache directory does exist and is writeable but I still get the same error.
Comment 5 Aron Budea 2017-05-30 14:17:52 UTC
In that case could you share more of the error? In comment 2 it's missing which file wasn't found.
Comment 6 Pierre Rudloff 2017-05-30 14:25:44 UTC
Unfortunately what I posted is the full error I get when I start loolwsd then starting then try to connect to open a document in Owncloud.
The logs don't tell me anything about the file it's trying to find.

I tried loading /hosting/discovery manually with curl and it just loads forever without returning anything (and I get the same error in the logs).
Comment 7 Aron Budea 2017-06-01 03:35:27 UTC
Did you try simply a make run in LO Online first, and then accessing the link to the test document?
Comment 8 Pierre Rudloff 2017-06-01 13:51:13 UTC
I just noticed there is a "trace" verbosity level which helps a lot in debugging these issues.
Turns out the 5.3 SSL issue was due to my Apache configuration.
And 5.4 was not finding discovery.xml for some reason.

I now have other unrelated issues but I will close this bug.
Thanks for your help and sorry for not figuring that earlier.