Bug 28759

Summary: running isodumper returns nothing
Product: Mageia Reporter: peter lawford <petlaw726>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, ouaurelien
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: /home/alain4/.isodumper/isodumper2.log

Description peter lawford 2021-04-10 19:53:47 CEST
Description of problem:

[alain4@mag6 ~]$ rpm -q isodumper
isodumper-1.33-1.mga8
[alain4@mag6 ~]$ isodumper
Traceback (most recent call last):
  File "/usr/bin/isodumper", line 24, in <module>
    app = isodumper.IsoDumper()
  File "/usr/lib/python3.8/site-packages/isodumper/isodumper.py", line 610, in __init__
    logging.basicConfig(filename=os.path.join(logpath,"isodumper2.log"),
  File "/usr/lib64/python3.8/logging/__init__.py", line 1984, in basicConfig
    h = FileHandler(filename, mode)
  File "/usr/lib64/python3.8/logging/__init__.py", line 1143, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python3.8/logging/__init__.py", line 1172, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/home/alain4/.isodumper/isodumper2.log'
Version-Release number of selected component (if applicable):
 attached: /home/alain4/.isodumper/isodumper2.log'

I've uninstall and reinstall isodumper: nothing changes

How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 peter lawford 2021-04-10 19:54:58 CEST
Created attachment 12612 [details]
/home/alain4/.isodumper/isodumper2.log
Comment 2 Aurelien Oudelet 2021-04-10 20:14:43 CEST
This is because your .isodumper folder is not owned by your user.
Remove it as root.

CC: (none) => ouaurelien

Comment 3 Dave Hodgins 2021-04-10 21:17:16 CEST
Just to clarify on comment 2, most likely isodumper was previously run after
using just su to become root instead of "su -".
https://wiki.mageia.org/en/Never_use_just_su

As per that article, to fix it use ...
su -
chown -Rc alain4:alain4 /home/alain4

CC: (none) => davidwhodgins

Comment 4 peter lawford 2021-04-10 22:51:27 CEST
OK! it was stupide, sorry and thanks
Comment 5 Aurelien Oudelet 2021-04-10 23:03:51 CEST
(In reply to peter lawford from comment #4)
> OK! it was stupide, sorry and thanks

So this is fixed ? ;)

Closing.
Feel free to reopen if not fixed.

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME

Comment 6 peter lawford 2021-04-10 23:28:26 CEST
(In reply to Aurelien Oudelet from comment #5)
> (In reply to peter lawford from comment #4)
> > OK! it was stupide, sorry and thanks
> 
> So this is fixed ? ;)
> 
> Closing.
> Feel free to reopen if not fixed.

it is fixed!