| Summary: | abrt hools for ccpp and oops are not set anymore | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Thomas Meyer <thomas.mey> |
| Component: | abrt | Assignee: | Denys Vlasenko <dvlasenk> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | djuran, dvlasenk, iprikryl, jmoskovc, kklic, marinaz, mmilata, mtoman, npajkovs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | abrt-2.0.10-4 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-10 08:01:44 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Thomas Meyer
2011-10-13 21:48:05 UTC
Was it update from F15 to F16? or this happen after update in already installed F16? The old init scripts are deleted as they are superseded by systemd scripts. Hi Jiri, my system is a Fedora 15 system that was upgraded via the upgrade DVD to Fedora 16 (Beta). what part should call above progam to install the hooks in the systemd world? I dont' see any ExecPreStart in the abrtd.service file. Should be these files: /lib/systemd/system/abrt-ccpp.service /lib/systemd/system/abrt-oops.service try: $ systemctl enable abrt-oops.service $ systemctl enable abrt-ccpp.service - but it should be done automatically during the update, so if it didn't it's a bug okay, that did the trick. I did start and enable both services now. I had a quick look at the postinstall script of the abrt-addon-ccpp package but I couldn't figure out the meaning of the first argument of the script "$1":
assuming the argument was greater 1 this would have been run at package upgrade time:
if [ $1 -gt 1 ]; then # Is this an upgrade?
/sbin/chkconfig --add abrt-ccpp > /dev/null 2>&1 || :
/sbin/pidof abrtd >/dev/null 2>&1
if [ $? -eq 0 ]; then # Is abrtd running?
service abrt-ccpp restart >/dev/null 2>&1 || :
fi
fi
doing this manually, results in:
$ chkconfig --add abrt-ccpp
error reading information on service abrt-ccpp: No such file or directory
an strace revelas that it tries to read these files:
open("/home/thomas/.popt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/etc/init.d/abrt-ccpp", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/xinetd.d/abrt-ccpp", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "error reading information on ser"..., 74error reading information on service abrt-ccpp: No such file or directory
) = 74
exit_group(1)
btw the latest abrt version doesn't seem to add the bug reporter to the CC address list, so I'm not informed about updates of my bug reports. Bug or feature? Same thing happened to me after an upgrade from F15 to F16 with preupgrade. abrt was not working. /proc/sys/kernel/core_pattern contained the word "core". Doing echo "|/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" > /proc/sys/kernel/core_pattern as root fixed the problem. Should be fixed since abrt-2.0.10-4. |