Bug 16329 - meteo-qt doesnt start - cant create meteo-qt.log automatically
Summary: meteo-qt doesnt start - cant create meteo-qt.log automatically
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA5-64-OK advisory
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2015-07-09 10:36 CEST by psyca
Modified: 2015-07-30 23:09 CEST (History)
5 users (show)

See Also:
Source RPM: meteo-qt
CVE:
Status comment:


Attachments

Description psyca 2015-07-09 10:36:53 CEST
Description of problem:
meteo-qt doesnt start. If you start it with the console you see the following error message:

Traceback (most recent call last):
  File "/bin/meteo-qt", line 5, in <module>
    meteo_qt.main()
  File "/usr/lib/python3.4/site-packages/meteo_qt/meteo_qt.py", line 723, in main
    filename=log_filename, level=log_level)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1739, in basicConfig
    h = FileHandler(filename, mode)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1006, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python3.4/logging/__init__.py", line 1030, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/jurgen/.config/meteo-qt/meteo-qt.log'



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


Steps to Reproduce:
I made an clean install of Mageia 5 with the LXDE and LXQt Desktopenvironment.
After the first boot i tried to start meteo-qt with no success.

Workaround:
I had to create manualy the file ".config/meteo-qt/meteo-qt.log" in my home directory and after that it started. Somehow meteo-qt cannot create it.

Reproducible: 

Steps to Reproduce:
psyca 2015-07-09 10:37:12 CEST

Assignee: bugsquad => dglent

psyca 2015-07-09 10:41:35 CEST

Summary: meteo-qt doesnt start - cant create meteo-qt.log automaticly => meteo-qt doesnt start - cant create meteo-qt.log automatically

Comment 1 Florian Hubold 2015-07-09 16:50:25 CEST
Reproduced here.

CC: (none) => doktor5000

Comment 2 Dimitrios Glentadakis 2015-07-10 04:20:40 CEST
Yes i can reproduce it in fresh install (by deleting the folder meteo-qt in ~/.confing)

I am away from my computer for this month, i will fix the next month.

Thanks for reporting it
Comment 3 Dimitrios Glentadakis 2015-07-27 20:41:14 CEST
I have uploaded the update of version 0.7.1 for Mageia 5

Suggested advisory:
========================
This update fix the following error:
Traceback (most recent call last):
  File "/bin/meteo-qt", line 5, in <module>
    meteo_qt.main()
  File "/usr/lib/python3.4/site-packages/meteo_qt/meteo_qt.py", line 723, in main
    filename=log_filename, level=log_level)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1739, in basicConfig
    h = FileHandler(filename, mode)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1006, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python3.4/logging/__init__.py", line 1030, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/jurgen/.config/meteo-qt/meteo-qt.log'

========================

Updated packages in core/updates_testing:
========================
meteo-qt-0.7.1-1.mga5.noarch.rpm

Source RPMs: 
meteo-qt-0.7.1-1.mga5.src.rpm
Dimitrios Glentadakis 2015-07-27 20:41:41 CEST

Assignee: dglent => qa-bugs

Comment 4 psyca 2015-07-28 00:18:40 CEST
Works for me.
Comment 5 Otto Leipälä 2015-07-28 05:43:09 CEST
I can confirm this bug too,i tested this and it fix bug this is ready to be pushed.
Validating to wait advisory.
Can sysadmins push this to updates.

Keywords: (none) => validated_update
CC: (none) => ozkyster, sysadmin-bugs

Dimitrios Glentadakis 2015-07-28 06:27:26 CEST

CC: (none) => dglent

Comment 6 Samuel Verschelde 2015-07-28 10:14:34 CEST
Next time please do not validate an update that has an empty whiteboard, it looks like it's not been tested. What arch of Mageia 5 have you tested on?

Also, the advisory is not good, so I'm removing the validated_update until a better advisory is provided either by the packager (preferred) or QA.


(In reply to Dimitrios Glentadakis from comment #3)
> I have uploaded the update of version 0.7.1 for Mageia 5
> 
> Suggested advisory:

Sorry, this does not qualify as an advisory. Advisory are meant to be read by users, not technical-savvy people. Please translate that into english words, with context, such as "This fixes a bug where meteo-qt would crash upon starting if the file ~/.config/meteo-qt/meteo-qt.log did not exist. This made it impossible to start for most users."

Keywords: validated_update => (none)

Comment 7 Dimitrios Glentadakis 2015-07-28 14:53:32 CEST
Suggested advisory:
========================
This fixes a bug when launching meteo-qt version 0.7.0 with a fresh install (no ~/.config/meteo-qt folder present) the application crashes with the following error (if meteo-qt is executed in a terminal):

Traceback (most recent call last):
  File "/bin/meteo-qt", line 5, in <module>
    meteo_qt.main()
  File "/usr/lib/python3.4/site-packages/meteo_qt/meteo_qt.py", line 723, in main
    filename=log_filename, level=log_level)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1739, in basicConfig
    h = FileHandler(filename, mode)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1006, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python3.4/logging/__init__.py", line 1030, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] The file or folder cannot be found: '/home/jurgen/.config/meteo-qt/meteo-qt.log'

========================

Updated packages in core/updates_testing:
========================
meteo-qt-0.7.1-1.mga5.noarch.rpm

Source RPMs: 
meteo-qt-0.7.1-1.mga5.src.rpm
Comment 8 Dimitrios Glentadakis 2015-07-28 15:26:59 CEST
Advisory:
========================
This fixes a bug when launching meteo-qt version 0.7.0 with a fresh install (no ~/.config/meteo-qt folder present) the application crashes with the following error (if meteo-qt is executed in a terminal):

Traceback (most recent call last):
  File "/bin/meteo-qt", line 5, in <module>
    meteo_qt.main()
  File "/usr/lib/python3.4/site-packages/meteo_qt/meteo_qt.py", line 723, in main
    filename=log_filename, level=log_level)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1739, in basicConfig
    h = FileHandler(filename, mode)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1006, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python3.4/logging/__init__.py", line 1030, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] The file or folder cannot be found: '/home/jurgen/.config/meteo-qt/meteo-qt.log'

========================

Updated packages in core/updates_testing:
========================
meteo-qt-0.7.1-1.mga5.noarch.rpm

Source RPMs: 
meteo-qt-0.7.1-1.mga5.src.rpm
Comment 9 Samuel Verschelde 2015-07-28 15:30:27 CEST
We don't put stacktraces into advisories. A stacktrace is not english, it's not a language for normal users. And an advisory should not contain things such as "/home/jurgen" :)
Comment 10 Dimitrios Glentadakis 2015-07-28 16:09:28 CEST
May be remove completely the Traceback ?

Advisory:
========================

This fixes a bug when launching meteo-qt version 0.7.0 with a fresh install (no ~/.config/meteo-qt folder present) the application crashes
========================

Updated packages in core/updates_testing:
========================

meteo-qt-0.7.1-1.mga5.noarch.rpm

Source RPMs: 
meteo-qt-0.7.1-1.mga5.src.rpm
Comment 11 Samuel Verschelde 2015-07-28 16:19:20 CEST
Yes, thanks. Starting from your proposal I suggest :

Advisory:
========================

This fixes a bug when launching meteo-qt version 0.7.0 from a system where meteo-qt had never been used before (no ~/.config/meteo-qt folder present): the application crashes.
Comment 12 Otto Leipälä 2015-07-28 16:33:06 CEST
Hups my bad i forget to add whiteboard thx for notice that.
Comment 13 Otto Leipälä 2015-07-28 16:33:59 CEST
I'll mark only mga5-64-ok as this is noarch package same to both arch.

Whiteboard: (none) => MGA5-64-OK

Comment 14 Samuel Verschelde 2015-07-28 16:37:12 CEST
We usually test the updates on both arches even for noarch packages, you never know what arch packages they rely on and this allows to make sure it's tested on two different systems. However in the current surge of updates only one test is OK for such a package as meteo-qt.

Keywords: (none) => validated_update

Comment 15 Dimitrios Glentadakis 2015-07-28 20:46:12 CEST
Advisory:
========================

This fixes a bug when launching meteo-qt version 0.7.0 from a system where meteo-qt had never been used before (no ~/.config/meteo-qt folder present): the application crashes.
========================

Updated packages in core/updates_testing:
========================

meteo-qt-0.7.1-1.mga5.noarch.rpm

Source RPMs: 
meteo-qt-0.7.1-1.mga5.src.rpm
Dave Hodgins 2015-07-29 14:27:54 CEST

CC: (none) => davidwhodgins
Whiteboard: MGA5-64-OK => MGA5-64-OK advisory

Comment 16 Mageia Robot 2015-07-30 23:09:32 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0077.html

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


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