Upgrade to 0.76 kills recorder; duplicate column name

Here is the log snipped. Saw in the release notes some modifications, might be related?

2018-08-19
 16:55:35 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:55:35 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:55:35 WARNING (MainThread) [homeassistant.components.http] You have been advised to set http.api_password. 2018-08-19
 16:55:38 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:55:38 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:55:41 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:55:41 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:55:44 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds. 2018-08-19
 16:55:44 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:55:44 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:55:47 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:55:47 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:55:50 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:55:50 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:55:53 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:55:53 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:55:56 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:55:56 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:55:59 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:55:59 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:56:02 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) 2018-08-19
 16:56:02 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (sqlite3.OperationalError) duplicate column name: context_id [SQL: 'ALTER TABLE events ADD COLUMN context_id CHARACTER(36)'] (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds) 2018-08-19
 16:56:02 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Component failed to initialize.

Probably. If there’s nothing there that’s critical, shut down Home Assistant, delete the database (or rename it), and start HA again

Thanks for the quick response. I did rename it, was almost 4G in size, is that normal?

After the reboot all works fine again.

About the critical part, what is typically in the database? I read is history of all devices, any other stuff?

for those who run into the same, here is the docs for the recorder (Recorder - Home Assistant) and what to do is;

The default database engine is SQLite which doesn’t require any configuration. The database is stored in your Home Assistant configuration directory (.homeassistant) and called home-assistant_v2.db.

To start and stop via CLI;

$ hassio homeassistant start
$ hassio homeassistant stop

thanks again!

had the same issue. I forgot the note about the DB migration and got impatient (thinking it had not worked after 5 min so killed docker and restarted. Migration had failed of course.
Ended up deleting the DB and creating a new one which did the trick. I didn’t mind as I export data to influx but I would think people wanting to keep historical data would not be happy with this.
would be nice to know what SQL commands are run for the migration so a manual work around can be done if it failed…