Bug 256527 - Akonadi crashes on startup if .local is not readable
Summary: Akonadi crashes on startup if .local is not readable
Status: RESOLVED DUPLICATE of bug 238217
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 1.4.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 17:23 UTC by João Eiras
Modified: 2010-11-10 17:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description João Eiras 2010-11-10 17:23:57 UTC
Version:           1.4.0 (using KDE 4.5.1) 
OS:                Linux

If the ~/.local folder is not readable by the mysqld process that akonadi uses, akonadi crashes during startup.

Reproducible: Always

Steps to Reproduce:
I have setup my home folder not to be readable by others "chmod -R o-rwx ." (a sane safety measure).
This had the side effect that akonadi then started failing.

Quickly diagnosing the problem revealed the following error when starting mysqld:
# Test 5:  ERROR
# MySQL server log contains errors.
# InnoDB: Unable to lock ./ib_logfile0, error: 11

ib_logfile0 is located in ~/.local/share/akonadi/db_data/ hence it was not readable by the mysqld process.



Expected Results:  
Akonadi should use logfiles in /tmp by default, or as fallback if the file inside the home folder is not accessible, but more important, should not crash that easily.

Bug 238217 is related (also log file handling)
Comment 1 João Eiras 2010-11-10 17:59:00 UTC
After all, this is not very well related to file permissions.

*** This bug has been marked as a duplicate of bug 238217 ***