com.couchbase.lite.internal.database.sqlite.exception.SQLiteException: no such table: docs (code 1): , while compiling: SELECT doc_id, docid FROM docs

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by AnthonyTTaylor
, 1 year ago
no such table: docs (code 1): , while compiling: SELECT doc_id, docid FROM docs
via GitHub by mtrakal
, 7 months ago
no such table: maps_1 (code 1): , while compiling: SELECT key, value, docid, revs.sequence FROM 'maps_1', revs, docs WHERE 1 AND revs.sequence = 'maps_1'.sequence AND docs.doc_id = revs.doc_id ORDER BY key, docid LIMIT ? OFFSET ?
via GitHub by mtrakal
, 1 year ago
no such table: maps_١ (code 1): , while compiling: SELECT key, value, docid, revs.sequence FROM 'maps_١', revs, docs WHERE 1 AND revs.sequence = 'maps_١'.sequence AND docs.doc_id = revs.doc_id ORDER BY key, docid LIMIT ? OFFSET ?
com.couchbase.lite.internal.database.sqlite.exception.SQLiteException: no such table: docs (code 1): , while compiling: SELECT doc_id, docid FROM docs
at com.couchbase.lite.internal.database.sqlite.SQLiteConnection.nativePrepareStatement(SQLiteConnection.java)
at com.couchbase.lite.internal.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:718)
at com.couchbase.lite.internal.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:431)
at com.couchbase.lite.internal.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:595)
at com.couchbase.lite.internal.database.sqlite.SQLiteProgram.(SQLiteProgram.java:64)
at com.couchbase.lite.internal.database.sqlite.SQLiteQuery.(SQLiteQuery.java:37)
at com.couchbase.lite.internal.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:48)
at com.couchbase.lite.internal.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1300)
at com.couchbase.lite.internal.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1239)
at com.couchbase.lite.storage.SQLiteStorageEngineBase.rawQuery(SQLiteStorageEngineBase.java:183)
at com.couchbase.lite.DatabaseUpgrade.importData(DatabaseUpgrade.java:109)
at com.couchbase.lite.Manager.upgradeDatabase(Manager.java:857)
at com.couchbase.lite.Manager.upgradeOldDatabaseFiles(Manager.java:798)
at com.couchbase.lite.Manager.(Manager.java:130)
at com.ontimeapp.ontime.services.imp.CouchDbCacheKt.makeOrBuild(CouchDbCache.kt:59)
at com.ontimeapp.ontime.services.imp.CouchDbCache.(CouchDbCache.kt:74)
at com.ontimeapp.ontime.services.CityCache.(CityCache.kt:22)
at com.ontimeapp.ontime.services.CityCache$Companion.getInstance(CityCache.kt:48)
at com.ontimeapp.ontime.MainMenuFragment.onStart(MainMenuFragment.kt:70)
at android.support.v4.app.Fragment.performStart(Fragment.java:2106)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1146)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1272)
at android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:2154)
at android.support.v4.app.FragmentController.dispatchStart(FragmentController.java:212)
at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
at com.ontimeapp.ontime.MainActivity.onStart(MainActivity.kt:116)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1248)
at android.app.Activity.performStart(Activity.java:6681)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2609)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.