| Summary: | mgaapplet configuration problem. logs check | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Antonin Roussel <antonin.roussel> |
| Component: | RPM Packages | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | REOPENED --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | antonin.roussel, luigiwalser, yvesbrungard |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | mgaonline-3.20-1.mga6.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: |
mgaapplet: Computing new updates -then- Failed to open urpmi database
mgaapplet: Computing new updates -then- Failed to open urpmi database mgaapplet: Computing new updates -then- Failed to open urpmi database |
||
|
Description
Antonin Roussel
2017-04-29 10:29:39 CEST
Created attachment 9237 [details]
mgaapplet: Computing new updates -then- Failed to open urpmi database
Created attachment 9238 [details]
mgaapplet: Computing new updates -then- Failed to open urpmi database
journalctl -af
Attachment 9237 is obsolete:
0 =>
1
Antonin Roussel
2017-04-29 10:38:21 CEST
CC:
(none) =>
antonin.roussel looks close to : bug 9911 - mga-applet is failing to notify regarding updates bug 12796 - Possible bug in mgaapplet-update-checker
Rémi Verschelde
2017-04-29 10:46:51 CEST
Assignee:
bugsquad =>
mageiatools What's the error message displayed in the error window? error window should be for "Failed to open urpmi database"
Erreur fatale
Une erreur fatale est survenue : impossible d'ouvrir la base de donnée rpm.
OK
Created attachment 9239 [details]
mgaapplet: Computing new updates -then- Failed to open urpmi database
Attachment 9238 is obsolete:
0 =>
1
Frédéric "LpSolit" Buclin
2017-10-08 15:28:40 CEST
CC:
LpSolit =>
(none) This is an "out of the box" configuration problem, when installing mageia system in secure mode (instead of standard). By default, msec is maintaining permissions of file /var/lib/rpm/Packages as follow : rpm rpm 640. Which make it unreadable by mgaapplet run by user. To solve this, a msec customized rule can be added : /var/lib/rpm/Packages rpm rpm 644 Status:
NEW =>
RESOLVED The rights 640 are explicitly defined in /etc/security/msec/perm.secure: /var/lib/rpm/Packages rpm.rpm 640 Thus, this has to be changed in msec source. CC:
(none) =>
yves.brungard_mageia mgaapplet probably shouldn't be relying on being able to read the Packages file as user, but in secure mode, I think the thought generally is that you don't have regular users updating the system anyway. The secure mode isn't really aimed at workstations, though it can be used on them (and I did so at my previous job) but it can cause some minor issues here and there. I would suggest just having the system administrator update the system, or put the rule from Comment 7 in /etc/security/msec/perms.conf and run 'msecperms -e' I'll let the Mageia tools maintainers decide if they want to fix mgaapplet to work without direct access to the rpm database, but if not, this can be closed. |