Bug 256527

Summary: Akonadi crashes on startup if .local is not readable
Product: [Frameworks and Libraries] Akonadi Reporter: João Eiras <joao.eiras>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 1.4.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***