<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=Discourse%2FProjects%2F2021-01-02_Solved_Nginx_-t_error</id>
	<title>Discourse/Projects/2021-01-02 Solved Nginx -t error - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=Discourse%2FProjects%2F2021-01-02_Solved_Nginx_-t_error"/>
	<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=Discourse/Projects/2021-01-02_Solved_Nginx_-t_error&amp;action=history"/>
	<updated>2026-04-09T13:44:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=Discourse/Projects/2021-01-02_Solved_Nginx_-t_error&amp;diff=89194&amp;oldid=prev</id>
		<title>Nthmost: Discourse archive import: [Solved] Nginx -t error [projects]</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=Discourse/Projects/2021-01-02_Solved_Nginx_-t_error&amp;diff=89194&amp;oldid=prev"/>
		<updated>2026-03-28T04:53:47Z</updated>

		<summary type="html">&lt;p&gt;Discourse archive import: [Solved] Nginx -t error [projects]&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Discourse Archive&lt;br /&gt;
| url      = https://discuss.noisebridge.info/t/solved-nginx-t-error/2245&lt;br /&gt;
| date     = 2021-01-18&lt;br /&gt;
| wayback_url = https://web.archive.org/web/20210118/https://discuss.noisebridge.info/t/solved-nginx-t-error/2245&lt;br /&gt;
| category = Projects&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
= [Solved] Nginx -t error =&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[User:James|James]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
nginx: [emerg] BIO_new_file(&amp;quot;/etc/ssl/nginx/cloud.example.com.crt&amp;quot;) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(&amp;#039;/etc/ssl/nginx/cloud.example.com.crt&amp;#039;,&amp;#039;r&amp;#039;) error:2006D080:BIO routines:BIO_new_file:no such file)&lt;br /&gt;
nginx: configuration file /etc/nginx/nginx.conf test failed&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Any ideas [[User:The|@the]] on what happened to unicorn nginx config?  Checked `/etc/nginx/error.log` and unclear on what this relates to.&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
      [https://forum.nginx.org/read.php?11,290362 forum.nginx.org]&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
=== nginx -t fails due to someone messing with it ===&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
$ sudo tail /var/log/nginx/error.log&lt;br /&gt;
&lt;br /&gt;
Click for output&lt;br /&gt;
&lt;br /&gt;
2021/01/02 13:51:19 [emerg] 17656#17656: BIO_new_file(&amp;quot;/etc/ssl/nginx/cloud.example.com.crt&amp;quot;) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/ssl/nginx/cloud.example.com.crt’,‘r’) error:2006D080:BI&lt;br /&gt;
&lt;br /&gt;
O routines:BIO_new_file:no such file)&lt;br /&gt;
&lt;br /&gt;
2021/01/02 14:00:01 [error] 10054#10054: *765928 connect() failed (111: Connection refused) while connecting to upstream, client: 172.93.55.252, server: leapchat.noisebridge.info, request: “GET / HTTP/1.1”, upstream: &amp;quot;http://[::1]:8080/&lt;br /&gt;
&lt;br /&gt;
&amp;quot;, host: “leapchat.noisebridge.info”&lt;br /&gt;
&lt;br /&gt;
2021/01/02 14:00:01 [warn] 10054#10054: *765928 upstream server temporarily disabled while connecting to upstream, client: 172.93.55.252, server: leapchat.noisebridge.info, request: “GET / HTTP/1.1”, upstream: “http://[::1]:8080/”, host&lt;br /&gt;
&lt;br /&gt;
: “leapchat.noisebridge.info”&lt;br /&gt;
&lt;br /&gt;
2021/01/02 14:00:02 [error] 10054#10054: *765931 connect() failed (111: Connection refused) while connecting to upstream, client: 172.93.55.252, server: effective.noisebridge.info, request: “GET / HTTP/1.1”, upstream: “http://[::1]:8082&lt;br /&gt;
&lt;br /&gt;
/”, host: “effective.noisebridge.info”&lt;br /&gt;
&lt;br /&gt;
2021/01/02 14:00:02 [warn] 10054#10054: *765931 upstream server temporarily disabled while connecting to upstream, client: 172.93.55.252, server: effective.noisebridge.info, request: “GET / HTTP/1.1”, upstream: “http://[::1]:8082/”, hos&lt;br /&gt;
&lt;br /&gt;
t: “effective.noisebridge.info”&lt;br /&gt;
&lt;br /&gt;
2021/01/02 14:57:40 [error] 10054#10054: *768357 upstream prematurely closed connection while reading response header from upstream, client: 94.21.206.73, server: gossip.noisebridge.info, request: “GET / HTTP/1.1”, upstream: “http://[::&lt;br /&gt;
&lt;br /&gt;
1]:8008/”, host: “gossip.noisebridge.info”, referrer: “[https://github.com/ssbc/ssb-server/wiki/Pub-Servers https://github.com/ssbc/ssb-server/wiki/Pub-Servers]”&lt;br /&gt;
&lt;br /&gt;
2021/01/02 14:57:40 [warn] 10054#10054: *768357 upstream server temporarily disabled while reading response header from upstream, client: 94.21.206.73, server: gossip.noisebridge.info, request: “GET / HTTP/1.1”, upstream: “http://[::1]:&lt;br /&gt;
&lt;br /&gt;
8008/”, host: “gossip.noisebridge.info”, referrer: “[https://github.com/ssbc/ssb-server/wiki/Pub-Servers https://github.com/ssbc/ssb-server/wiki/Pub-Servers]”&lt;br /&gt;
&lt;br /&gt;
2021/01/02 14:57:40 [error] 10054#10054: *768357 upstream prematurely closed connection while reading response header from upstream, client: 94.21.206.73, server: gossip.noisebridge.info, request: “GET / HTTP/1.1”, upstream: “[http://127/ http://127]&lt;br /&gt;
&lt;br /&gt;
.0.0.1:8008/”, host: “gossip.noisebridge.info”, referrer: “[https://github.com/ssbc/ssb-server/wiki/Pub-Servers https://github.com/ssbc/ssb-server/wiki/Pub-Servers]”&lt;br /&gt;
&lt;br /&gt;
2021/01/02 14:57:40 [warn] 10054#10054: *768357 upstream server temporarily disabled while reading response header from upstream, client: 94.21.206.73, server: gossip.noisebridge.info, request: “GET / HTTP/1.1”, upstream: “[http://127.0/ http://127.0].&lt;br /&gt;
&lt;br /&gt;
0.1:8008/”, host: “gossip.noisebridge.info”, referrer: “[https://github.com/ssbc/ssb-server/wiki/Pub-Servers https://github.com/ssbc/ssb-server/wiki/Pub-Servers]”&lt;br /&gt;
&lt;br /&gt;
2021/01/02 14:57:40 [error] 10054#10054: *768357 no live upstreams while connecting to upstream, client: 94.21.206.73, server: gossip.noisebridge.info, request: “GET /favicon.ico HTTP/1.1”, upstream: “[http://localhost/favicon.ico http://localhost/favicon.ico]”, host&lt;br /&gt;
&lt;br /&gt;
: “gossip.noisebridge.info”, referrer: “[https://gossip.noisebridge.info/ https://gossip.noisebridge.info/]”&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[User:the|the]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
I generally keep a log of any critical issues in the `/etc/motd` and otherwise try to keep general services sync’d with edits on [https://www.noisebridge.net/index.php?title=Unicorn&amp;amp;action=history https://www.noisebridge.net/index.php?title=Unicorn&amp;amp;action=history]&lt;br /&gt;
&lt;br /&gt;
So looking back, last we were editing share.noisebridge.info for DNS, and I ended up configuring that on a different system with [http://share.noisebridge.io/ share.noisebridge.io] instead.&lt;br /&gt;
&lt;br /&gt;
Otherwise I’ve only really used nginx for two test sites “x” and “space” which are still working/testing.&lt;br /&gt;
&lt;br /&gt;
Just for sussing out any other status and things, November I did a update and added packages for npm/NodeRED/JDK11. Also added and continue to use nginx rtmp module, which I’m either gonna deprecate or upgrade to a better version sometime.&lt;br /&gt;
&lt;br /&gt;
To your fundamental question, what broke the config, it looks like something is trying to use a auto cert process like letsencrypt with a default parameter for a site that doesn’t exist. It’s likely not being pulled by `nginx.conf`, but rather a imported config in something like `/etc/nginx/sites-enabled`&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[User:James|James]]&amp;#039;&amp;#039;&amp;#039; — &amp;#039;&amp;#039;2021-01-02&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Thanks bud!  Seems the issue is related to the test* website.  I’ve removed it from sites-enabled and all is well.  If we want to roll out the django website, I think it’ll need to be entirely re-setup as something is screwy with it.&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>Nthmost</name></author>
	</entry>
</feed>