Bug 726122

Summary: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory
Product: Red Hat Enterprise Linux 6 Reporter: Michal Nowak <mnowak>
Component: abrtAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: ahecox, dvlasenk, gavin, kklic, mlichvar, mnowak, npajkovs, ohudlick, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: abrt-2.0.4-8.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 12:16:45 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 Michal Nowak 2011-07-27 15:26:16 UTC
Description of problem:

Found following msg in /var/log/messages. It's from abrtd after processing crash:

    Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory

Dunno whether is it harmful or anything.

Version-Release number of selected component (if applicable):

abrt-2.0.4-1.el6.x86_64
libreport-2.0.5-1.el6.x86_64
btparser-0.13-1.el6.x86_64

Comment 2 Jiri Moskovcak 2011-07-28 12:53:36 UTC
Seems like compatibility problem with old abrt dumps, but if I remember it correctly even the previous abrt had uuid. Can you test it with old abrt?

Comment 3 Michal Nowak 2011-07-28 13:32:22 UTC
It started on July 22 when I updated to abrt v2. abrt v1 is OK.

[newman@dhcp-25-35 ~]$ sudo grep "abrtd.* or directory" /var/log/messages*
/var/log/messages:Jul 27 16:41:42 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory
/var/log/messages:Jul 27 17:13:21 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory
/var/log/messages:Jul 27 17:30:22 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory
/var/log/messages:Jul 27 17:37:06 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-2011-07-27-17:37:04-3736/uuid': No such file or directory
/var/log/messages:Jul 27 17:37:06 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory
/var/log/messages:Jul 28 12:11:38 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory
/var/log/messages:Jul 28 13:17:08 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory
/var/log/messages:Jul 28 14:14:20 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-2011-07-28-14:13:30-10308/uuid': No such file or directory
/var/log/messages:Jul 28 14:14:44 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-2011-07-28-14:13:30-10308/uuid': No such file or directory
/var/log/messages-20110725:Jul 22 11:38:07 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory
/var/log/messages-20110725:Jul 22 11:42:06 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory
/var/log/messages-20110725:Jul 22 11:43:24 dhcp-25-35 abrtd: Can't open file '/var/spool/abrt/ccpp-1310991931-5029/uuid': No such file or directory


I guess /var/spool/abrt/ccpp-1310991931-5029/ is from abrt v1 and /var/spool/abrt/ccpp-2011-07-28-14:13:30-10308/ from abrt v2 so it happens for both old & new crash dirs.

Comment 4 Michal Nowak 2011-08-02 14:52:22 UTC
(In reply to comment #2)
> Seems like compatibility problem with old abrt dumps, but if I remember it
> correctly even the previous abrt had uuid. Can you test it with old abrt?

[root@localhost ~]# ll /var/spool/abrt/ccpp-1312296061-1297/uuid /var/spool/abrt/ccpp-1312296191-1440/uuid
ls: cannot access /var/spool/abrt/ccpp-1312296061-1297/uuid: No such file or directory
ls: cannot access /var/spool/abrt/ccpp-1312296191-1440/uuid: No such file or directory

First was created by root, second by user. Reporting changed that by creating some global_uuid.

Comment 5 Jiri Moskovcak 2011-08-15 14:21:12 UTC
Can you please re-check it after installing abrt-2.0.4-2 (and later) it has posttrans script to convert the abrt1 db into abrt2 files and creates even uuid if it's missing.

Comment 6 Jiri Moskovcak 2011-08-15 14:27:00 UTC
btw, the script lives in /usr/librexec/abrt1-to-abrt2 in case you want to test it manually

Comment 7 Michal Nowak 2011-08-16 14:02:48 UTC
What if abrt-db is not in /var/spool/abrt/ (DBPath option from plugins/SQLite3.conf)?

$ sudo /usr/libexec/abrt1-to-abrt2 
Traceback (most recent call last):
  File "/usr/libexec/abrt1-to-abrt2", line 46, in <module>
    crashes = db.execute("SELECT * FROM abrt_v4")
sqlite3.OperationalError: no such table: abrt_v4

Comment 8 Jiri Moskovcak 2011-08-16 14:08:24 UTC
(In reply to comment #7)
> What if abrt-db is not in /var/spool/abrt/ (DBPath option from
> plugins/SQLite3.conf)?
> 
> $ sudo /usr/libexec/abrt1-to-abrt2 
> Traceback (most recent call last):
>   File "/usr/libexec/abrt1-to-abrt2", line 46, in <module>
>     crashes = db.execute("SELECT * FROM abrt_v4")
> sqlite3.OperationalError: no such table: abrt_v4

you're experiencing the 730696, can you please try it with the patch? From which abrt version your abrt-db comes from?

Comment 9 Michal Nowak 2011-08-16 15:09:57 UTC
That fixes the issue of empty or missing DB, but what about when the DB is placed somewhere else via DBPath option from ABRTv1? It won't do the conversion since it can't find the DB file where it expects it by default.

Comment 10 Miroslav Lichvar 2011-08-25 16:44:35 UTC
DBPath is now parsed from SQLite3.conf.

Comment 13 errata-xmlrpc 2011-12-06 12:16:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1598.html