learnt commented on issue #9536:
URL: https://github.com/apache/apisix/issues/9536#issuecomment-1890820980

   i got the same issue, maybe it happens when the logs path is a soft link.
   
   > [root@apisix0 apisix]# pwd
   > /usr/local/apisix
   > [root@apisix0 apisix]# ll logs
   > lrwxrwxrwx. 1 root root 18 7月  12 2023 logs -> /home/apisix/logs/
   > [root@apisix0 apisix]# ll logs/
   > 总用量 64
   > -rw-r--r--. 1 nobody root 10863 1月  16 00:09 
2024-01-16_00-00-00__access.log
   > -rw-r--r--. 1 nobody root 48489 1月  16 00:09 2024-01-16_00-00-00__error.log
   > -rw-r--r--. 1 nobody root     0 1月  16 00:00 access.log
   > -rw-r--r--. 1 nobody root     0 1月  16 00:00 error.log
   > -rw-r--r--. 1 root   root     7 1月  14 09:39 nginx.pid
   > [root@apisix0 apisix]# echo `curl 127.0.0.1/just_a_test_to_log`
   >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
   >                                  Dload  Upload   Total   Spent    Left  
Speed
   > 100   174    0   174    0     0  35590      0 --:--:-- --:--:-- --:--:-- 
43500
   > <!DOCTYPE HTML><html><head><title>404 Not 
Found</title></head><body><h1>Not Found</h1><p>The requested URL 
/just_a_test_to_log was not found on this server.</p></body></html>
   > [root@apisix0 apisix]# ll logs/
   > 总用量 64
   > -rw-r--r--. 1 nobody root 11008 1月  16 00:09 
2024-01-16_00-00-00__access.log
   > -rw-r--r--. 1 nobody root 48718 1月  16 00:09 2024-01-16_00-00-00__error.log
   > -rw-r--r--. 1 nobody root     0 1月  16 00:00 access.log
   > -rw-r--r--. 1 nobody root     0 1月  16 00:00 error.log
   > -rw-r--r--. 1 root   root     7 1月  14 09:39 nginx.pid


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to