Bug 734019
Summary: | [iptraf] - Warning: unable to tag this process | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | xset1980 | ||||
Component: | iptraf | Assignee: | Nikola Pajkovsky <npajkovs> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 15 | CC: | demonust, dhoward, npajkovs, orion | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | iptraf-ng-1.1.0-2.fc15 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-01-24 19:56:06 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
xset1980
2011-08-29 08:17:58 UTC
Created attachment 520320 [details]
The text describe the proposed solution (no patch i'm not dev)
[SOLVED]: The bug is present in older versions of iptraf (rhel56), the bug is the system f15, is not present /var/lock/iptraf directory. The guide of iptraf say about this message: Warning: unable to tag this process IPTraf normally tags itself when it runs to prevent multiple instances of the statistical facilities from running. This message means the program was unable to create the necessary tag file. This may be due to a bad or improper installation. Try running the make install procedure or the Setup in the distribution's top-level directory. So, iptraf any version find the /var/lock/iptraf/ directory for create iptrag.tag file, if the director is created: mkdir -p /var/lock/iptraf the problem is solved. Suggestion: iptraf obviously was compiled properly, the problem is that the rpm installation does not create the directory to be in Fedora 15, or does not exist. Please recreate a new rpm iptraf be possible that in your installation create /var/lock/iptraf Greetings Sorry, the bug is persistent. After create /var/lock/iptraf and reboot the bug is again present: strace: strace iptraf execve("/usr/bin/iptraf", ["iptraf"], [/* 23 vars */]) = 0 brk(0) = 0x93f4000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb778a000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=101226, ...}) = 0 mmap2(NULL, 101226, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7771000 close(3) = 0 open("/usr/lib/libpanelw.so.5", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 woH4\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=12008, ...}) = 0 mmap2(0x486f7000, 13324, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x486f7000 mmap2(0x486fa000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x486fa000 close(3) = 0 open("/lib/libncursesw.so.5", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \361kH4\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=202824, ...}) = 0 mmap2(0x486b9000, 204424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x486b9000 mmap2(0x486ea000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x30) = 0x486ea000 close(3) = 0 open("/lib/libtinfo.so.5", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`m\250H4\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=124020, ...}) = 0 mmap2(0x48a81000, 126224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x48a81000 mmap2(0x48a9d000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b) = 0x48a9d000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\225\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1854840, ...}) = 0 mmap2(NULL, 1620552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x110000 mprotect(0x295000, 4096, PROT_NONE) = 0 mmap2(0x296000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x185) = 0x296000 mmap2(0x299000, 10824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x299000 close(3) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=17956, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7770000 mmap2(NULL, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x29c000 mmap2(0x29f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x29f000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb776f000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb776f6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0x29f000, 4096, PROT_READ) = 0 mprotect(0x296000, 8192, PROT_READ) = 0 mprotect(0x43c000, 4096, PROT_READ) = 0 munmap(0xb7771000, 101226) = 0 getuid32() = 0 brk(0) = 0x93f4000 brk(0x9415000) = 0x9415000 brk(0) = 0x9415000 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=104997424, ...}) = 0 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb756f000 mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0x1166) = 0xb7789000 close(3) = 0 open("/var/lock/iptraf/iptraf.tag", O_RDONLY) = -1 ENOENT (No such file or directory) open("/var/lib/iptraf/iptraf.cfg", O_RDONLY) = -1 ENOENT (No such file or directory) ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 stat64("/root/.terminfo", 0xbfc81e70) = -1 ENOENT (No such file or directory) stat64("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 access("/etc/terminfo/x/xterm", R_OK) = -1 ENOENT (No such file or directory) stat64("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 access("/usr/share/terminfo/x/xterm", R_OK) = 0 open("/usr/share/terminfo/x/xterm", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=3270, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7788000 read(3, "\32\0010\0&\0\17\0\235\1l\5xterm|xterm terminal"..., 4096) = 3270 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7788000, 4096) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, TIOCGWINSZ, {ws_row=39, ws_col=125, ws_xpixel=0, ws_ypixel=0}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, TIOCGWINSZ, {ws_row=39, ws_col=125, ws_xpixel=0, ws_ypixel=0}) = 0 brk(0) = 0x9415000 brk(0x9436000) = 0x9436000 ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 brk(0) = 0x9436000 brk(0x9457000) = 0x9457000 ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_STOP or SNDRV_TIMER_IOCTL_GINFO or TCSETSW, {B38400 opost isig -icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_STOP or SNDRV_TIMER_IOCTL_GINFO or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0 rt_sigaction(SIGTSTP, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGTSTP, {0x486d2b10, [], SA_RESTART}, NULL, 8) = 0 rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGINT, {0x486d2a20, [], SA_RESTART}, NULL, 8) = 0 rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGTERM, {0x486d2a20, [], SA_RESTART}, NULL, 8) = 0 rt_sigaction(SIGWINCH, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGWINCH, {0x486d2a00, [], 0}, NULL, 8) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0 open("/var/lock/iptraf/iptraf.tag", O_WRONLY|O_CREAT|O_TRUNC, 0600) = -1 ENOENT (No such file or directory) write(2, "\nWarning: unable to tag this pro"..., 38 Warning: unable to tag this process ) = 38 write(2, "Press Enter to continue.\n", 25Press Enter to continue. ) = 25 fstat64(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7788000 read(0, ----------------------------------------------------------------------------- Tested other versions of iptraf (centos 5.x, f13) and all versions reproduce the same bug under Fedora 15. Under Fedora 14 not. Bug in Debian http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=170802 iptraf needs to put the following into /etc/tmpfiles.d/ipraf: d /var/lock/iptraf 0755 root root To get systemd to create the /var/lock/iptraf directory on boot. same bug in F16, some fix? possible fix (hack), add in rc.local mkdir -p /var/lock/iptraf ? I can confirm this bug. Package versions: iptraf-3.0.1-11.fc15.i686. iptraf-ng-1.1.0-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/iptraf-ng-1.1.0-1.fc15 iptraf-ng-1.1.0-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/iptraf-ng-1.1.0-1.fc16 Package iptraf-ng-1.1.0-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing iptraf-ng-1.1.0-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-0453/iptraf-ng-1.1.0-1.fc16 then log in and leave karma (feedback). iptraf-ng-1.1.0-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/iptraf-ng-1.1.0-2.fc16 iptraf-ng-1.1.0-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/iptraf-ng-1.1.0-2.fc15 iptraf-ng-1.1.0-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. iptraf-ng-1.1.0-2.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |