# Troubleshooting IndexedDB Errors

### Background

PixieBrix uses the browser's on-device high-performance [IndexedDB database](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API) to store package/mod definitions and logs.

In the Extension Console, Sidebar, and Page Editor, PixieBrix will show a banner if it's unable to connect to IndexedDB:

<figure><img src="/files/U0rB2x0KsL448uP73jp2" alt="" width="423"><figcaption><p>Banner displayed if PixieBrix cannot connect to the on-device IndexedDB</p></figcaption></figure>

Additionally, PixieBrix may report one of the following errors:

* Internal error opening backing store for IndexedDB.open
* Failed to read large IndexedDB value
* IndexedDB Full
* Encountered full disk while opening backing store for indexedDB.open

### Solution 1: restart the browser profile

In many cases, restarting the browser will correct the problem. Because, when Chrome restarts, it will force close all local database connections.

### Solution 2: delete local databases via the Chrome Developer Tools

{% hint style="info" %}
This solution requires that your organization does not restrict your access to the Chrome Developer Tools. See [Chrome documentation](https://knowledge.workspace.google.com/kb/manage-developer-tools-for-chrome-browser-000009587#:~:text=In%20the%20Admin%20console%20go,accordingly%20and%20save%20the%20changes)
{% endhint %}

* Open the PixieBrix Extension Console by either:
  * Open the PixieBrix sidebar and click the gear icon in the upper-right
  * Navigate directly to:
    * Stable Release: `chrome-extension://mpjjildhmpddojocokjkgmlkkkfjnepo/options.html`
    * Beta Release: `chrome-extension://mpapkmgkphbggmlekkfnoilmafnbfile/options.html`
* Open the Chrome Dev Tools by either:
  * Right click on the page and select "Inspect", or:
  * Press F12
* If `Inspect` is disabled in the context menu for the page, contact your organization administrator to get access to the Chrome Dev Tools. See [Chrome documentation](https://knowledge.workspace.google.com/kb/manage-developer-tools-for-chrome-browser-000009587#:~:text=In%20the%20Admin%20console%20go,accordingly%20and%20save%20the%20changes)
* Click on the Applications tab
* Under Storage > IndexedDB, for each of the following databases, select the database and click the `Delete database` button in the detail pane:
  * `BRICK_REGISTRY`
  * `LOG`
  * `TRACE`
  * `telemetrydb`

<figure><img src="/files/IF2TFspLdHrQZTYdMN4f" alt="" width="563"><figcaption><p>Select each database under Storage > IndexedDB and click the "Delete database" button</p></figcaption></figure>

### Solution 3: manually delete IndexedDB files from the file system

* Locate the IndexedDB storage location:
  * Navigate to the IndexedDB internals page:
    * Stable Release: `chrome://indexeddb-internals/#chrome-extension://mpjjildhmpddojocokjkgmlkkkfjnepo`
    * Beta Release: `chrome://indexeddb-internals/#chrome-extension://mpapkmgkphbggmlekkfnoilmafnbfile`
  * Locate the database paths under "Paths"

    <figure><img src="/files/qT9QgDLslGbQ94b8kA0w" alt="" width="563"><figcaption><p>Locating the IndexedDB paths on the IndexedDB internals page</p></figcaption></figure>
* Close Chrome. Closing Chrome which will cause Chrome to close all connections to the database and release it's locks on the directories/files
* On Windows, delete the IndexedDB folders for the PixieBrix extension. For example, on Windows (replace `<username>` with your username):&#x20;

```
C:\Users\<username>\AppData\Local\Google\Chrome\User%20Data\Default\IndexedDB\chromeextension_mpjildhmpddojocokjkgmlkkkfjnepo_0.indexeddb.leveldb\
C:\Users\<username>\AppData\Local\Google\Chrome\User%20Data\Default\IndexedDB\chromeextension_mpjildhmpddojocokjkgmlkkkfjnepo_0.indexeddb.blob\
```

<figure><img src="/files/gzJTtQVVzfmZ90AsVaee" alt="" width="563"><figcaption><p>Folders to delete on Windows</p></figcaption></figure>

* Re-open Chrome

### Solution 4: recover local databases

{% hint style="info" %}
These steps require the PixieBrix support team to enable Extension Storage Diagnostics for your account. Email <support@pixiebrix.com> for access before completing the steps
{% endhint %}

* Close local database connections:

  * In a new Chrome tab, visit the IndexedDB Internals page:&#x20;
    * Stable Release: `chrome://indexeddb-internals/#chrome-extension://mpjjildhmpddojocokjkgmlkkkfjnepo`
    * Beta Release: `chrome://indexeddb-internals/#chrome-extension://mpapkmgkphbggmlekkfnoilmafnbfile`
  * Click "Force Close"

  <figure><img src="/files/E4palcrpsVSfmRNJH3xN" alt="" width="563"><figcaption><p>Click "Force Close" to force close local database connections</p></figcaption></figure>
* Recover the local PixieBrix databases
  * Navigate to the Extension Console > Settings page, by either:
    * Open the Extension Console, and click "Settings" in the left side-nav, or
    * Navigate directly to: `chrome-extension://mpjjildhmpddojocokjkgmlkkkfjnepo/options.html#/settings`
  * Click "Recover Databases". If you do not seen the "Extension Storage Statistics" section, contact <support@pixiebrix.com>

    <figure><img src="/files/DBphcbum4XOafCkNL9Hu" alt="" width="375"><figcaption><p>Click "Recover Databases" to recover the local database</p></figcaption></figure>

### Frequently Asked Questions

#### How do I determine if my Chrome profile is corrupted?

*Method 1: create a new Chrome profile*

* [Create a new Chrome profile](https://support.google.com/chrome/answer/2364824?hl=en\&co=GENIE.Platform%3DDesktop) and install the PixieBrix extension
* If PixieBrix works in the the new profile, that indicates your other profile is corrupt

*Method 2: delete your existing Chrome profile*

{% hint style="info" %}
Before deleting your Chrome profile, back up your bookmarks or any other information if it's not synced with your Google Account
{% endhint %}

* Visit `chrome://version/` in a new tab
* Find "Profile Path" and copy the folder path for your profile
* Close Chrome completely
* In File Explorer (Windows) or Finder (Mac), open the profile path you copied
* Delete the directory
* Open Chrome

#### How do I determine if IndexedDB database connections are blocked/deadlocked?

* In a new Chrome tab, visit:
  * Stable Release:  `chrome://indexeddb-internals/#chrome-extension://mpjjildhmpddojocokjkgmlkkkfjnepo`
  * Beta Release: `chrome://indexeddb-internals/#chrome-extension://mpapkmgkphbggmlekkfnoilmafnbfile`
* Refer to the "Open Connections:" count.
* Chrome will also display the status of open connections, e.g., Running, Blocked, etc.
* &#x20;If a transaction is blocking other transactions, you'll see a transaction as "Running" with other transactions marked as "Blocked"

#### **How do I fix an "Unable to create sequential file" error?**

The error "IO Error: .../NNNNN.log: Unable to create sequential file" indicates Chrome is unable to create an IndexedDB transaction file. To fix the error, complete the IndexedDB recovery steps described above.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pixiebrix.com/how-to/troubleshooting/troubleshooting-indexeddb-errors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
