Hi Folks,
Just came back from a week holiday, and following up on invoices for couple clients.
All of a sudden getting different error messages, and certain functions stop working randomly.
System:
IN V5.5.83-W109 (running in Windows 10 Docker Desktop 4.17.0 (99724) )
WSL 2 = Ubuntu 20.04 LTS /Focal
Host Name = invoice.localhost.test
IP: 192.168.50.174
Error log from invoiceninja_prod-app-1
023-03-09 08:21:31 172.20.0.4 - 09/Mar/2023:00:21:31 +0000 "GET /index.php" 302
2023-03-09 08:21:33 172.20.0.4 - 09/Mar/2023:00:21:31 +0000 "GET /index.php" 200
2023-03-09 08:21:33 2023-03-09 00:21:33,892 INFO reaped unknown pid 132 (exit status 0)
2023-03-09 08:21:33 2023-03-09 00:21:33,892 INFO reaped unknown pid 133 (exit status 0)
2023-03-09 08:21:45 2023-03-09 00:21:45,041 INFO reaped unknown pid 179 (exit status 0)
2023-03-09 08:21:45 2023-03-09 00:21:45,041 INFO reaped unknown pid 180 (exit status 0)
2023-03-09 08:21:47 2023-03-09 00:21:47,079 INFO reaped unknown pid 225 (exit status 0)
2023-03-09 08:21:47 2023-03-09 00:21:47,079 INFO reaped unknown pid 226 (exit status 0)
2023-03-09 08:21:47 172.20.0.4 - 09/Mar/2023:00:21:42 +0000 "PUT /index.php" 200
2023-03-09 08:21:47 172.20.0.4 - 09/Mar/2023:00:21:47 +0000 "POST /index.php" 200
2023-03-09 08:21:50 172.20.0.4 - 09/Mar/2023:00:21:48 +0000 "POST /index.php" 200
2023-03-09 08:21:50 2023-03-09 00:21:50,777 INFO reaped unknown pid 272 (exit status 0)
2023-03-09 08:21:50 2023-03-09 00:21:50,777 INFO reaped unknown pid 273 (exit status 0)
504: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.23.3</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
504: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.23.3</center>
</body>
</html>
Error log from invoiceninja_prod-server-1 nginx
2023-03-09 08:20:55 2023/03/09 00:20:55 [notice] 1#1: start worker process 44
2023-03-09 08:26:34 2023/03/09 00:26:34 [error] 42#42: *29 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.20.0.1, server: _, request: "POST /api/v1/live_preview?entity=invoice&entity_id=k8mepp6eMy HTTP/1.1", upstream: "fastcgi://172.20.0.3:9000", host: "invoice.localhost.test"
Now, a temporary workaround, has been to ping the hostname both in ubuntu server, and then ping the hostname in the nginx server but after i perform the following:
apt-get update
apt-get install iputils-ping
is there anyway that NGINX server can do a DNS lookup? it is odd because it works some times, then other times it doesn’t and reverts to some ‘default’ ip that has never been used.
Thank you.
Kind regards