# Unexpected eof while reading:ssl/record/rec\_layer\_s3.c:307

**URL:** <https://forum.collaboraonline.com/t/unexpected-eof-while-reading-ssl-record-rec-layer-s3-c-307/2439>\
**Category:** Installation & Configuration\
**Created:** [March 2, 2024, 1:56pm UTC](https://forum.collaboraonline.com/t/unexpected-eof-while-reading-ssl-record-rec-layer-s3-c-307/2439 "2024-03-02T13:56:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gstlouis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/gstlouis/32/467_2.png) [@gstlouis](https://forum.collaboraonline.com/u/gstlouis)\
**Post date:** [March 2, 2024, 1:56pm UTC](https://forum.collaboraonline.com/t/unexpected-eof-while-reading-ssl-record-rec-layer-s3-c-307/2439/1 "2024-03-02T13:56:22Z")

</div>

I recently did an update. Always noervous about coolwsd updates because sometimes it modifies my coolwsd.xml

This update seems different and coolwsd is no longer working with the following errors

does anyone know what is going on here?  
`openssl version -a`

> OpenSSL 1.1.1n 15 Mar 2022

```auto
Ready to accept connections on port 9980.
 coolwsd[18469]: wsd-18469-18493 2024-03-02 08:53:59.780638 -0500 [websrv_poll] ERR #24: Error while handling poll at 0 in websrv_poll: #24 (read): unknown. BIO error: 167772454, rc: 0: error:0A000126:SSL routines::unexpected eof while reading:
 coolwsd[18469]: 0067F51A437F0000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:ssl/record/rec_layer_s3.c:307:
 coolwsd[18469]: | net/Socket.cpp:470
 coolwsd[18469]: wsd-18469-18493 2024-03-02 08:54:00.675893 -0500 [websrv_poll] ERR #24: Error while handling poll at 0 in websrv_poll: #24 (read): unknown. BIO error: 167772454, rc: 0: error:0A000126:SSL routines::unexpected eof while reading:
 coolwsd[18469]: 0067F51A437F0000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:ssl/record/rec_layer_s3.c:307:
 coolwsd[18469]: | net/Socket.cpp:470
 coolwsd[18469]: wsd-18469-18493 2024-03-02 08:54:00.777389 -0500 [websrv_poll] ERR #24: Error while handling poll at 0 in websrv_poll: #24 (read): unknown. BIO error: 167772454, rc: 0: error:0A000126:SSL routines::unexpected eof while reading:
 coolwsd[18469]: 0067F51A437F0000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:ssl/record/rec_layer_s3.c:307:
 coolwsd[18469]: | net/Socket.cpp:470
 coolwsd[18469]: wsd-18469-18493 2024-03-02 08:54:00.886099 -0500 [websrv_poll] ERR #24: Error while handling poll at 0 in websrv_poll: #24 (read): unknown. BIO error: 167772454, rc: 0: error:0A000126:SSL routines::unexpected eof while reading:
 coolwsd[18469]: 0067F51A437F0000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:ssl/record/rec_layer_s3.c:307:
 coolwsd[18469]: | net/Socket.cpp:470

```

---

<div class="post-metadata">

**Author:** ![Timur](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@Timur](https://forum.collaboraonline.com/u/Timur)\
**Post date:** [March 4, 2024, 10:17am UTC](https://forum.collaboraonline.com/t/unexpected-eof-while-reading-ssl-record-rec-layer-s3-c-307/2439/2 "2024-03-04T10:17:05Z")

</div>

Please give details:

1. versions of Online you updated from and to;
2. do you install CODE or you build yourself;
3. what is your OS;
4. curl version;
5. what is your setup regarding SSL in Online, do you use certificates, are they valid.

---

<div class="post-metadata">

**Author:** ![gstlouis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/gstlouis/32/467_2.png) [@gstlouis](https://forum.collaboraonline.com/u/gstlouis)\
**Post date:** [March 4, 2024, 1:55pm UTC](https://forum.collaboraonline.com/t/unexpected-eof-while-reading-ssl-record-rec-layer-s3-c-307/2439/3 "2024-03-04T13:55:08Z")

</div>

@Timur Thank you for taking the time to reply to my issue

versions of Online you updated from and to;  
do you install CODE or you build yourself;

- This is a virtual machine which I built myself. Ii has been so long I forget where I got the instructions for install

what is your OS;

- debian VERSION=“10 (buster)”

curl version;

- curl 7.64.0 (x86\_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1n

what is your setup regarding SSL in Online, do you use certificates, are they valid.

- I use let’s encrypt VALID: 55 days, this is a good question, in the past I’ve struggled with this because I cannot make coolwsd.xml point to /etc/letsencrypt/live/\*  
So I move a copy of the certs to /etc/coolwsd and point coolwsd.xml to them. This works, but when doing update of coolwsd, when it re-writes the file I have to re-configure it. But its always worked.

You can refer to a previous convo

> <https://github.com/CollaboraOnline/online/issues/6844>
>
> \*\*Describe the bug\*\*
> I have a working copy of CODE in which I have several doma…ins that can use this with alias\_groups as mode groups with several of the following
> 
> \`\<group\>
> \<host allow="true" desc="hostname to allow or deny."\>https://domain.ca\</host\>
> \</group\>\`
> 
> All those domains are working and can use it. However, every time CODE needs to be updated, this files gets overwritten. I assume coolwsd.xml is subject to overwrites for update purposes
> 
> Lucky I learned my lesson and keep a copy of this. But it is not practical. There must be a solution out there I just can't find?
> 
> For instance, fail2ban has a jail.local file that is not subject to overwrites. Is there such a thing for this?
> 
> 
> COOLWSD version:
> 23.05.1.2
> git hash: 
> \[a708901\]

What is strange about the issue this time, is that coolwsd boots just fine and is listening, Ready to accept connections on port 9980. Reading the dump on boot I see nothing strange. The web app has not changed and was working before doing the update.

---

<div class="post-metadata">

**Author:** ![gstlouis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/gstlouis/32/467_2.png) [@gstlouis](https://forum.collaboraonline.com/u/gstlouis)\
**Post date:** [March 21, 2024, 6:47pm UTC](https://forum.collaboraonline.com/t/unexpected-eof-while-reading-ssl-record-rec-layer-s3-c-307/2439/4 "2024-03-21T18:47:00Z")

</div>

@Timur  
Any idea on this? It is still a problem

I also just noticed that trying to access /hosting/discovery fails

# Proxy Error

The proxy server could not handle the request  
Reason: **Error during SSL Handshake with remote server**

I’ve had this before and resolved it in the apache conf file. I did not change anything and it started failing after an update.

the site logs are:

AH01097: pass request body failed to 127.0.0.1:9980 (127.0.0.1) from 70.53.206.136 ()  
(20014)Internal error (specific information not available): [client 70.53.206.222:34302] AH01102: error reading status line from remote server 127.0.0.1:9980  
AH00898: Error reading from remote server returned by /hosting/capabilities
