Bug 1077241 - [abrt] abrt-addon-vmcore: abrt-harvest-vmcore:104:write_to_file:IOError: [Errno 2] No such file or directory: '/var/tmp/abrt/vmcore-127.0.0.1-2013.09.07-13:42:25.new/uuid'
Summary: [abrt] abrt-addon-vmcore: abrt-harvest-vmcore:104:write_to_file:IOError: [Err...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: abrt
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:b8db45fa3c93a48e41a431b7c8e...
Depends On:
Blocks: 1311100
TreeView+ depends on / blocked
 
Reported: 2014-03-17 14:55 UTC by Milan Bouchet-Valat
Modified: 2016-02-23 11:56 UTC (History)
6 users (show)

Fixed In Version: abrt-2.2.2-2.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1311100 (view as bug list)
Environment:
Last Closed: 2015-04-28 12:59:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (872 bytes, text/plain)
2014-03-17 14:56 UTC, Milan Bouchet-Valat
no flags Details
File: environ (72 bytes, text/plain)
2014-03-17 14:56 UTC, Milan Bouchet-Valat
no flags Details

Description Milan Bouchet-Valat 2014-03-17 14:55:58 UTC
Version-Release number of selected component:
abrt-addon-vmcore-2.1.12-2.fc20

Additional info:
reporter:       libreport-2.1.12
cmdline:        /usr/bin/python /usr/sbin/abrt-harvest-vmcore
executable:     /usr/sbin/abrt-harvest-vmcore
kernel:         3.13.3-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
abrt-harvest-vmcore:104:write_to_file:IOError: [Errno 2] No such file or directory: '/var/tmp/abrt/vmcore-127.0.0.1-2013.09.07-13:42:25.new/uuid'

Traceback (most recent call last):
  File "/usr/sbin/abrt-harvest-vmcore", line 290, in <module>
    harvest_vmcore()
  File "/usr/sbin/abrt-harvest-vmcore", line 276, in harvest_vmcore
    create_abrtd_info(destdirnew)
  File "/usr/sbin/abrt-harvest-vmcore", line 164, in create_abrtd_info
    write_to_file(os.path.join(dest, 'uuid'), hashobj.hexdigest())
  File "/usr/sbin/abrt-harvest-vmcore", line 104, in write_to_file
    with open(path, 'w') as wfile:
IOError: [Errno 2] No such file or directory: '/var/tmp/abrt/vmcore-127.0.0.1-2013.09.07-13:42:25.new/uuid'

Local variables in innermost frame:
content: '9e3b539426b2a0bc19e54f67ec033240d75a4eee'
path: '/var/tmp/abrt/vmcore-127.0.0.1-2013.09.07-13:42:25.new/uuid'

Comment 1 Milan Bouchet-Valat 2014-03-17 14:56:10 UTC
Created attachment 875515 [details]
File: backtrace

Comment 2 Milan Bouchet-Valat 2014-03-17 14:56:13 UTC
Created attachment 875516 [details]
File: environ

Comment 3 Milan Bouchet-Valat 2014-08-10 17:42:23 UTC
Seen once again with up-to-date F20. This is annoying since I cannot report kernel crashes using abrt-vmcore.

Comment 4 Jakub Filak 2014-11-27 11:52:37 UTC
Thank you for the report! I opened a pull request for this bug report:
https://github.com/abrt/abrt/pull/883

Comment 5 Milan Bouchet-Valat 2014-11-27 13:09:41 UTC
Thanks! But does that fix the problem, or just the handling of the error, i.e. does that mean that reporting kernel crashed will work?

Comment 6 Jakub Filak 2014-11-27 14:05:38 UTC
(In reply to Milan Bouchet-Valat from comment #5)
> Thanks! But does that fix the problem, or just the handling of the error,
> i.e. does that mean that reporting kernel crashed will work?

Yes, the patch only makes sure that the service will remain working if something removed the destination problem directory (I can't imagine how is that possible, perhaps something remounted /var or a temporary data cleaner did that). In such a case, the service will skip the currently processed vmcore and will continue with the next one.

I verified that the processing of vmcores works as expected under normal circumstances.

Comment 7 Milan Bouchet-Valat 2014-11-27 14:26:15 UTC
OK, I'll see whether harvesting vmcores now works on F21.

Comment 8 Fedora Update System 2015-02-16 13:56:04 UTC
abrt-2.2.2-2.fc20,libreport-2.2.3-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/abrt-2.2.2-2.fc20,libreport-2.2.3-3.fc20

Comment 9 Fedora Update System 2015-02-17 08:10:10 UTC
Package abrt-2.2.2-2.fc20, libreport-2.2.3-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing abrt-2.2.2-2.fc20 libreport-2.2.3-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2191/abrt-2.2.2-2.fc20,libreport-2.2.3-3.fc20
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2015-04-28 12:59:22 UTC
abrt-2.2.2-2.fc20, libreport-2.2.3-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.