action #133673
closed
nginx on ariel logs in multiple locations size:M
Added by livdywan over 1 year ago.
Updated over 1 year ago.
Category:
Regressions/Crashes
Description
Observation¶
tail /space/logs/nginx/openqa.error_log
2023/08/02 08:29:41 [error] 1617#1617: *17865027 open() "/var/lib/openqa/share/factory/repo/openSUSE-Tumbleweed-oss-armv7hl-Snapshot20230801/docu/directory.yast" failed (2: No such file or directory), client: 195.135.221.150, server: openqa.opensuse.org, request: "GET /assets/repo/openSUSE-Tumbleweed-oss-armv7hl-Snapshot20230801/docu/directory.yast HTTP/2.0", host: "openqa.opensuse.org"
sudo tail /var/log/nginx/error.log
2023/07/26 13:59:08 [error] 2027#2027: *1214215 no live upstreams while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "http://webui/", host: "localhost"
Acceptance criteria¶
- AC1: nginx logs are found in one well-known location
Suggestions¶
- Just don't specify a path, leave out the "openQA" in the name and use symlinks for the directory /var/log/nginx/ pointing to /space
- Don't worry about the installed templates. The log statements are custom already anyway
- Copied from action #132167: asset uploading failed with http status 502 size:M added
- Description updated (diff)
- Subject changed from nginx logs in multiple locations to nginx on ariel logs in multiple locations size:M
- Description updated (diff)
- Status changed from New to Workable
- Status changed from Workable to In Progress
- Assignee set to okurz
- Status changed from In Progress to Resolved
I did
systemctl stop nginx && mv /var/log/nginx/* /space/logs/nginx/ && rmdir /var/log/nginx/ && ln -s /space/logs/nginx/ /var/log/nginx && systemctl start nginx && sed -i 's@/space/logs/nginx/openqa.access_log @@' /etc/logrotate.d/nginx
and the logs look good now
# ls -latr /space/logs/nginx/
total 2027280
drwxr-xr-x 4 martchus users 4096 Jun 1 14:18 ..
-rw-r--r-- 1 root root 152664 Jun 30 00:18 openqa.error_log-20230630.xz
-rw-r--r-- 1 root root 144492 Jul 5 00:07 openqa.error_log-20230705.xz
-rw-r--r-- 1 root root 154140 Jul 7 11:23 openqa.error_log-20230708.xz
-rw-r--r-- 1 root root 12506884 Jul 8 00:00 access.log-20230708.xz
-rw-r--r-- 1 nginx root 83392 Jul 8 18:16 error.log-20230709.xz
-rw-r--r-- 1 nginx root 6763720 Jul 9 00:01 access.log-20230709.xz
-rw-r--r-- 1 nginx root 6746176 Jul 10 00:00 access.log-20230710.xz
-rw-r--r-- 1 nginx root 15512168 Jul 11 00:05 access.log-20230711.xz
-rw-r--r-- 1 nginx root 2081704 Jul 11 12:35 access.log-20230712.xz
-rw-r--r-- 1 nginx root 78968 Jul 12 23:22 openqa.error_log-20230713.xz
-rw-r--r-- 1 root root 3822008 Jul 14 23:59 openqa.error_log-20230715.xz
-rw-r--r-- 1 root root 192216 Jul 20 00:02 openqa.error_log-20230720.xz
-rw-r--r-- 1 root root 471736664 Jul 20 00:04 openqa.access_log-20230720.xz
-rw-r--r-- 1 nginx root 233409119 Jul 21 23:52 error.log-20230722
-rw-r--r-- 1 nginx root 1710860 Jul 22 00:00 access.log-20230722.xz
-rw-r--r-- 1 nginx root 2553044 Jul 23 00:00 access.log-20230723.xz
-rw-r--r-- 1 nginx root 651708 Jul 24 00:00 access.log-20230724.xz
-rw-r--r-- 1 nginx root 16226860 Jul 25 00:00 access.log-20230725.xz
-rw-r--r-- 1 nginx root 8375920 Jul 26 00:00 access.log-20230726.xz
-rw-r--r-- 1 nginx root 15290496 Jul 26 08:45 openqa.access_log-20230726.xz
-rw-r--r-- 1 nginx root 63044 Jul 26 22:27 openqa.error_log-20230727.xz
-rw-r--r-- 1 nginx root 357080 Jul 27 00:00 access.log-20230727.xz
-rw-r--r-- 1 nginx root 13752976 Jul 27 14:49 openqa.access_log-20230727.xz
-rw-r--r-- 1 nginx root 9918192 Jul 28 00:00 access.log-20230728.xz
-rw-r--r-- 1 nginx root 38420336 Jul 28 10:37 openqa.access_log-20230728.xz
-rw-r--r-- 1 nginx root 764784 Jul 29 00:00 access.log-20230729.xz
-rw-r--r-- 1 nginx root 16269928 Jul 29 03:00 openqa.access_log-20230729.xz
-rw-r--r-- 1 nginx root 94844 Jul 29 22:46 openqa.error_log-20230730.xz
-rw-r--r-- 1 nginx root 2110504 Jul 30 00:00 access.log-20230730.xz
-rw-r--r-- 1 nginx root 18996384 Jul 30 03:30 openqa.access_log-20230730.xz
-rw-r--r-- 1 nginx root 1271892 Jul 31 00:00 access.log-20230731.xz
-rw-r--r-- 1 nginx root 10615260 Jul 31 12:04 openqa.access_log-20230731.xz
-rw-r--r-- 1 nginx root 63744 Jul 31 23:47 openqa.error_log-20230801.xz
-rw-r--r-- 1 nginx root 2363952 Aug 1 00:00 access.log-20230801.xz
-rw-r--r-- 1 nginx root 22170012 Aug 1 16:13 openqa.access_log-20230801.xz
-rw-r--r-- 1 nginx root 1846912 Aug 2 00:00 access.log-20230802.xz
-rw-r--r-- 1 nginx root 22701752 Aug 2 09:57 openqa.access_log-20230802.xz
-rw-r--r-- 1 nginx root 4809559 Aug 2 22:16 openqa.error_log-20230803
-rw-r--r-- 1 nginx root 45925765 Aug 3 00:00 access.log-20230803
-rw-r--r-- 1 nginx root 468436725 Aug 3 07:03 openqa.access_log-20230803
-rw-r--r-- 1 root root 693307 Aug 3 09:28 openqa.error_log
-rw-r--r-- 1 root root 386723045 Aug 3 09:29 openqa.access_log
drwxr-xr-x 2 root root 4096 Aug 3 09:31 .
-rw-r--r-- 1 nginx root 3267677 Aug 3 09:39 error.log
-rw-r--r-- 1 nginx root 80840852 Aug 3 09:40 access.log
Also available in: Atom
PDF