Opened 7 years ago

Closed 7 years ago

Last modified 3 years ago

#398 closed defect (worksforme)

a bug about config file test

Reported by: timlocus@… Owned by:
Priority: minor Milestone:
Component: nginx-core Version:
Keywords: Cc:
uname -a: Linux localhost.localdomain 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
nginx -V: nginx version: nginx/1.4.2
built by gcc 3.4.6 20060404 (Red Hat 3.4.6-8)
configure arguments: --prefix=/usr/local/nginx --with-pcre=/root/setup/pcre-8.33

Description

My Case:
a upstream named "readingjoy" is not defined in nginx.conf,and there is a defined server use upstream "readingjoy",this is a wrong config.
but sometime.when I run nginx -t ,the result is the one of
1.long time process,return
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
2.fast time process,return
nginx: [emerg] host not found in upstream "readingjoy" in /usr/local/nginx/conf/nginx.conf:98
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
this is a bug,right?

Change History (2)

comment:1 by Maxim Dounin, 7 years ago

Resolution: worksforme
Status: newclosed

Symptoms suggests "readingjoy" happens to resolve in some cases, likely due to behaviour of your DNS servers (some of them?).

comment:2 by Maxim Dounin, 3 years ago

sensitive: 10
Note: See TracTickets for help on using tickets.