Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Error "Can not create report log..." on first run #185

Open
AloisMahdal opened this issue Nov 30, 2016 · 3 comments
Open

Error "Can not create report log..." on first run #185

AloisMahdal opened this issue Nov 30, 2016 · 3 comments
Labels

Comments

@AloisMahdal
Copy link
Collaborator

First run, i.e. when /var/log/preupgrade does not exist, preupg shows error messages:

[0 root@qeos-244 preupgrade-assistant]# preupg
Can not create report log '/var/log/preupgrade/preupg-report.log'
Can not create debug log '/var/log/preupgrade/preupg.log'
No handlers could be found for logger "preupgrade-assistant-debug"
The Preupgrade Assistant is a diagnostics tool 
and does not perform the actual upgrade.
...

If you go on and re-run preupg again later, the errors are not shown again (first logs could be incomplete, though).

This is from current master (65f3ac7).

@bocekm
Copy link
Collaborator

bocekm commented Dec 1, 2016

You've installed the tool by 'python setup.py install' I guess. Currently the /var/log/preupgrade/ is created within spec file, so it works correctly only when you install the tool using rpm package.
I know about this issue. I'll fix it by creating the folder in preupg/logger.py if the folder does not exist.

@AloisMahdal AloisMahdal added this to the el610toel75b0 milestone Apr 4, 2018
@AloisMahdal
Copy link
Collaborator Author

I'll fix it [...]

Is this still valid? I can't test it now. Would it be easy to do in this MS?

@pirat89
Copy link
Collaborator

pirat89 commented Apr 5, 2018

It is still valid. Probably it can. Depends on priorities. We will see.

@bocekm bocekm added the bug label Apr 12, 2018
@bocekm bocekm removed this from the el610toel75b0 milestone May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants