Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX
« previous
next »
Print
Pages: [
1
]
Author
Topic: Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX (Read 2066 times)
nightfox
Newbie
Posts: 2
Karma: 0
Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX
«
on:
May 18, 2023, 02:32:34 pm »
Hello,
When I upgrade my firewall running 23.1.5_4 to 23.1.7_3, after the reboot my NGINX reverse proxy running on OPNsense starts giving PR_END_OF_FILE_ERROR when trying to load a SSL site. I've checked the obvious logs but I don't see anything. The only way I can get NGINX to work again is by restoring from backup or snapshot.
Any ideas? I'm happy to try another upgrade again and pull relevant logs if I know which logs to pull.
Thanks!
Logged
tomrwaller
Newbie
Posts: 5
Karma: 0
Re: Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX
«
Reply #1 on:
May 23, 2023, 11:44:25 pm »
Just to add - I'm getting the same errors since the update. I can't get any of my SSL sites to load. Did you manage to find a resolution other than revert?
Logged
nightfox
Newbie
Posts: 2
Karma: 0
Re: Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX
«
Reply #2 on:
May 26, 2023, 05:34:00 pm »
Unfortunately not. I tried different things relating to the error such as re-issuing certificates. Nothing worked. Restoring from backup/snapshot was the only way to get things working again.
I'm thinking I might just have to move back to a separate NGINX reverse proxy.
Logged
dcorral
Newbie
Posts: 2
Karma: 0
Re: Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX
«
Reply #3 on:
June 15, 2023, 12:49:33 pm »
Hi.
Same for version 23.1.9. Any news?
Thanks in advance.
Logged
dcorral
Newbie
Posts: 2
Karma: 0
Re: Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX
«
Reply #4 on:
June 15, 2023, 01:50:24 pm »
I found a solution:
I removed all lines "
proxy_protocol
" in all my servers and restared Nginx.
Step by step:
ssh root@<OPNSENSE-IP>
Select "8 ) Shell"
To debug error:
tail -f /var/log/nginx/*.log
You must to access to your url to force errror.
Probably you will see somthing like:
2023/06/15 12:37:12 [error] 90378#100106: *43 broken header
cd /usr/local/etc/nginx/
grep -i "proxy_protocol" *
cp nginx.conf nginx.conf-BACKUP
vi nginx.conf
Yoy must to remove ALL lines "proxy_protocol" in all your servers:
For example, if you have:
listen 443 http2 ssl
proxy_protocol
;
Change it like this:
listen 443 http2 ssl;
Then restart Nginx:
/usr/local/etc/rc.d/nginx configtest
/usr/local/etc/rc.d/nginx stop
/usr/local/etc/rc.d/nginx status
/usr/local/etc/rc.d/nginx start
/usr/local/etc/rc.d/nginx status
Now check you url one more time.
It has worked for me.
Logged
GreenMatter
Full Member
Posts: 166
Karma: 1
Re: Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX
«
Reply #5 on:
September 18, 2023, 09:41:44 pm »
Thanks! Removing proxy_protocol directive (in 23.7.4) restored nginx functionality.
Is it a bug or feature?
Logged
OPNsense on:
Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (4 cores)
8 GB RAM
50 GB HDD
and plenty of vlans ;-)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX