[Nexus S Q&A, Help & Troubleshooting] jifman:
And database corruption

I/SqliteDatabaseCpp(20432): sqlite returned: error code = 11, msg = database corruption at line 4672

6 of [8609a15dfa], db=/data/data/com.android.providers.downloads/databases/downloads.db

I/SqliteDatabaseCpp(20432): sqlite returned: error code = 11, msg = database corruption at line 4676

4 of [8609a15dfa], db=/data/data/com.android.providers.downloads/databases/downloads.db

I/SqliteDatabaseCpp(20432): sqlite returned: error code = 11, msg = statement aborts at 4: [SELECT _

data FROM downloads] , db=/data/data/com.android.providers.downloads/databases/downloads.db

E/DefaultDatabaseErrorHandler(20432): Corruption reported by sqlite on database: /data/data/com.andr

oid.providers.downloads/databases/downloads.db

I/SqliteDatabaseCpp(20432): sqlite returned: error code = 14, msg = cannot open file at line 26525 o

f [8609a15dfa], db=/data/data/com.android.providers.downloads/databases/downloads.db

E/DefaultDatabaseErrorHandler(20432): deleting the database file: /data/data/com.android.providers.d

ownloads/databases/downloads.db

W/dalvikvm(20432): threadid=10: thread exiting with uncaught exception (group=0x40a441f8)

I/SqliteDatabaseCpp(20432): sqlite returned: error code = 14, msg = os_unix.c: open() at line 26525

- "" errno=30 path=/data/data/com.android.providers.media/databases/external.db-shm, db=/data/data/c

om.android.providers.downloads/databases/downloads.db

I/SqliteDatabaseCpp(20432): sqlite returned: error code = 14, msg = unable to open database file, db

=/data/data/com.android.providers.downloads/databases/downloads.db

E/SqliteDatabaseCpp(20432): CREATE TABLE android_metadata failed

E/AndroidRuntime(20432): FATAL EXCEPTION: Thread-1169

E/AndroidRuntime(20432): android.database.sqlite.SQLiteDatabaseCorruptException: database disk image

is malformed

E/AndroidRuntime(20432): at android.database.sqlite.SQLiteQuery.nativeFillWindow(Native Metho

d)

E/AndroidRuntime(20432): at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:8

6)

E/AndroidRuntime(20432): at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java

:164)

E/AndroidRuntime(20432): at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:1

56)

E/AndroidRuntime(20432): at android.content.ContentResolver.query(ContentResolver.java:317)

E/AndroidRuntime(20432): at com.android.providers.downloads.StorageManager.removeSpuriousFile

s(StorageManager.java:378)

E/AndroidRuntime(20432): at com.android.providers.downloads.StorageManager.access$000(Storage

Manager.java:43)

E/AndroidRuntime(20432): at com.android.providers.downloads.StorageManager$1.run(StorageManag

er.java:121)

E/SQLiteDatabase(20432): Failed to open the database. closing it.

E/SQLiteDatabase(20432): android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open dat

abase file

E/SQLiteDatabase(20432): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Me

thod)

E/SQLiteDatabase(20432): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.j

ava:2074)

E/SQLiteDatabase(20432): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabas

e.java:1014)

E/SQLiteDatabase(20432): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabas

e.java:986)

E/SQLiteDatabase(20432): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLit

eDatabase.java:1051)

E/SQLiteDatabase(20432): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:770

)

E/SQLiteDatabase(20432): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLi

teOpenHelper.java:157)

E/SQLiteDatabase(20432): at com.android.providers.media.MediaProvider$DatabaseHelper.getWrita

bleDatabase(MediaProvider.java:323)

E/SQLiteDatabase(20432): at com.android.providers.media.MediaProvider.attachVolume(MediaProvi

der.java:4401)

E/SQLiteDatabase(20432): at com.android.providers.media.MediaProvider.onCreate(MediaProvider.

java:516)

E/SQLiteDatabase(20432): at android.content.ContentProvider.attachInfo(ContentProvider.java:9

44)

E/SQLiteDatabase(20432): at android.app.ActivityThread.installProvider(ActivityThread.java:42

37)

E/SQLiteDatabase(20432): at android.app.ActivityThread.installContentProviders(ActivityThread

.java:3992)

E/SQLiteDatabase(20432): at android.app.ActivityThread.handleBindApplication(ActivityThread.j

ava:3946)

E/SQLiteDatabase(20432): at android.app.ActivityThread.access$1300(ActivityThread.java:123)

E/SQLiteDatabase(20432): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:11

85)

E/SQLiteDatabase(20432): at android.os.Handler.dispatchMessage(Handler.java:99)

E/SQLiteDatabase(20432): at android.os.Looper.loop(Looper.java:137)

E/SQLiteDatabase(20432): at android.app.ActivityThread.main(ActivityThread.java:4424)

E/SQLiteDatabase(20432): at java.lang.reflect.Method.invokeNative(Native Method)

E/SQLiteDatabase(20432): at java.lang.reflect.Method.invoke(Method.java:511)

E/SQLiteDatabase(20432): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(Zygote

Init.java:784)

E/SQLiteDatabase(20432): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

E/SQLiteDatabase(20432): at dalvik.system.NativeStart.main(Native Method)

E/MediaProvider(20432): failed to open database external.db

E/MediaProvider(20432): android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open data

base file

E/MediaProvider(20432): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Me

thod)

E/MediaProvider(20432): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.j

ava:2074)

E/MediaProvider(20432): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabas

e.java:1014)

E/MediaProvider(20432): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabas

e.java:986)

E/MediaProvider(20432): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLit

eDatabase.java:1051)

E/MediaProvider(20432): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:770

)

E/MediaProvider(20432): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLi

teOpenHelper.java:157)

E/MediaProvider(20432): at com.android.providers.media.MediaProvider$DatabaseHelper.getWrita

bleDatabase(MediaProvider.java:323)

E/MediaProvider(20432): at com.android.providers.media.MediaProvider.attachVolume(MediaProvi

der.java:4401)

E/MediaProvider(20432): at com.android.providers.media.MediaProvider.onCreate(MediaProvider.

java:516)

E/MediaProvider(20432): at android.content.ContentProvider.attachInfo(ContentProvider.java:9

44)

E/MediaProvider(20432): at android.app.ActivityThread.installProvider(ActivityThread.java:42

37)

E/MediaProvider(20432): at android.app.ActivityThread.installContentProviders(ActivityThread

.java:3992)

E/MediaProvider(20432): at android.app.ActivityThread.handleBindApplication(ActivityThread.j

ava:3946)

E/MediaProvider(20432): at android.app.ActivityThread.access$1300(ActivityThread.java:123)

E/MediaProvider(20432): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:11

85)

E/MediaProvider(20432): at android.os.Handler.dispatchMessage(Handler.java:99)

E/MediaProvider(20432): at android.os.Looper.loop(Looper.java:137)

E/MediaProvider(20432): at android.app.ActivityThread.main(ActivityThread.java:4424)

E/MediaProvider(20432): at java.lang.reflect.Method.invokeNative(Native Method)

E/MediaProvider(20432): at java.lang.reflect.Method.invoke(Method.java:511)

E/MediaProvider(20432): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(Zygote

Init.java:784)

E/MediaProvider(20432): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

E/MediaProvider(20432): at dalvik.system.NativeStart.main(Native Method)

W/ActivityManager( 150): Process android.process.media has crashed too many times: killing!

I/ActivityManager( 150): Killing proc 20432:android.process.media/10012: crash

I/ActivityManager( 150): Kill com.android.vending (pid 20391): provider com.android.providers.downl

oads.DownloadProvider in dying process android.process.media

W/ActivityManager( 150): Unable to launch app com.android.providers.downloads/10012 for provider do

wnloads: launching app became null

W/ActivityManager( 150): Unable to launch app com.android.providers.downloads/10012 for provider do

wnloads: launching app became null

E/DropBoxManagerService( 150): Can't write: system_app_crash

E/DropBoxManagerService( 150): java.io.FileNotFoundException: /data/system/dropbox/drop1309.tmp: op

en failed: EROFS (Read-only file system)

E/DropBoxManagerService( 150): at libcore.io.IoBridge.open(IoBridge.java:406)

E/DropBoxManagerService( 150): at java.io.FileOutputStream.<init>(FileOutputStream.java:88)

E/DropBoxManagerService( 150): at java.io.FileOutputStream.<init>(FileOutputStream.java:73)

E/DropBoxManagerService( 150): at com.android.server.DropBoxManagerService.add(DropBoxManag

erService.java:193)

E/DropBoxManagerService( 150): at android.os.DropBoxManager.addText(DropBoxManager.java:272

)

E/DropBoxManagerService( 150): at com.android.server.am.ActivityManagerService$11.run(Activ

ityManagerService.java:7630)

E/DropBoxManagerService( 150): Caused by: libcore.io.ErrnoException: open failed: EROFS (Read-only

file system)

E/DropBoxManagerService( 150): at libcore.io.Posix.open(Native Method)

E/DropBoxManagerService( 150): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)

E/DropBoxManagerService( 150): at libcore.io.IoBridge.open(IoBridge.java:390)