# Kolibri 0.13. and Kolibri-server 0.3.6 not running correctly after upgrading from 0.12.9

**URL:** <https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343>\
**Category:** Support\
**Created:** [January 15, 2020, 2:11pm UTC](https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343 "2020-01-15T14:11:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Fisher](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/bryan_fisher/32/160_2.png) [@Bryan\_Fisher](https://community.learningequality.org/u/Bryan_Fisher)\
**Post date:** [January 15, 2020, 2:11pm UTC](https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343/1 "2020-01-15T14:11:54Z")

</div>

OS: Ubuntu 16.04  
Kolibri: v 0.13  
kolibri-server: 0.3.6

You get through to setup up until “finish” then it says ‘something went wrong’

Please let me know if you came across this.

Thank you kindly.

![Screenshot (261)](http://community.learningequality.org/images/transparent.png) ![Screenshot (262)](http://community.learningequality.org/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![blaine](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/blaine/32/479_2.png) [@blaine](https://community.learningequality.org/u/blaine)\
**Post date:** [January 15, 2020, 7:32pm UTC](https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343/2 "2020-01-15T19:32:12Z")

</div>

Hello Bryan,

Could you please provide the version of PostgreSQL you are using?

Thanks,  
Blaine  
Software Developer at Learning Equality

---

<div class="post-metadata">

**Author:** ![Bryan\_Fisher](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/bryan_fisher/32/160_2.png) [@Bryan\_Fisher](https://community.learningequality.org/u/Bryan_Fisher)\
**Post date:** [January 16, 2020, 7:40am UTC](https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343/3 "2020-01-16T07:40:57Z")

</div>

Hi @blaine,

We have version PostgreSQL 9.5.19.

Kind regards,  
Bryan

---

<div class="post-metadata">

**Author:** ![blaine](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/blaine/32/479_2.png) [@blaine](https://community.learningequality.org/u/blaine)\
**Post date:** [January 16, 2020, 7:29pm UTC](https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343/4 "2020-01-16T19:29:46Z")

</div>

Hi Bryan,

Thank you for that information. Could you please try the following:

1. Stop the Kolibri server.
2. Find the `KOLIBRI_HOME` directory for the server ([here are the default locations for that directory](https://kolibri.readthedocs.io/en/latest/manage/get_support.html#home)).
3. Inside the `KOLIBRI_HOME` directory, delete the `.data_version` file.
4. Start the Kolibri server.

Let me know if Kolibri then starts successfully.  
-Blaine

---

<div class="post-metadata">

**Author:** ![Bryan\_Fisher](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/bryan_fisher/32/160_2.png) [@Bryan\_Fisher](https://community.learningequality.org/u/Bryan_Fisher)\
**Post date:** [January 16, 2020, 7:38pm UTC](https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343/5 "2020-01-16T19:38:02Z")

</div>

Good day @blaine,

I have already done it previously and upon your request just now. Please output (attached) ![Screenshot (264)](http://community.learningequality.org/images/transparent.png)

Please see log files:  
[https://drive.google.com/drive/folders/1fIE5Nk8DAF1z76UDDsMsK51Hb8uozUSH?usp=sharing](https://drive.google.com/drive/folders/1fIE5Nk8DAF1z76UDDsMsK51Hb8uozUSH?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Bryan\_Fisher](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/bryan_fisher/32/160_2.png) [@Bryan\_Fisher](https://community.learningequality.org/u/Bryan_Fisher)\
**Post date:** [January 16, 2020, 8:59pm UTC](https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343/6 "2020-01-16T20:59:49Z")

</div>

Hi @blaine do you have any updates please?

---

<div class="post-metadata">

**Author:** ![Bryan\_Fisher](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/bryan_fisher/32/160_2.png) [@Bryan\_Fisher](https://community.learningequality.org/u/Bryan_Fisher)\
**Post date:** [January 17, 2020, 11:58am UTC](https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343/7 "2020-01-17T11:58:32Z")

</div>

@blaine,

I have removed the Postgresql DB.

When I logged on to kolibri, Setup wizard was displayed ( i uninstalled the previous install) after clicking finish, a message displayed …“something went wrong etc…”  
I have removed the .data\_version file. Rebooted server then it starting doing this (please see video both on different browsers)  
I have commented all lines under ‘Database’ in options.ini file. Rebooted server. The issue still persist as in video)  
I have commented redis under Cache. rebooted the server. Logged on again and it successfully followed through the setup wizard. seem to be working now. Only downside is with no PostgreSQL DB connected.

---

<div class="post-metadata">

**Author:** ![benjamin](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/benjamin/32/574_2.png) [@benjamin](https://community.learningequality.org/u/benjamin)\
**Post date:** [January 17, 2020, 2:30pm UTC](https://community.learningequality.org/t/kolibri-0-13-and-kolibri-server-0-3-6-not-running-correctly-after-upgrading-from-0-12-9/1343/8 "2020-01-17T14:30:50Z")

</div>

I think this looks like an issue with Kolibri: When it updates, it’s supposed to run database migrations BEFORE accessing the database. Judging from below, it’s accessing the database prematurely:

```auto

INFO 2020-01-15 15:46:44,554 apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base
WARNING 2020-01-15 15:46:45,022 cli Skipped automatic database backup, not compatible with this DB engine.
INFO 2020-01-15 15:46:45,022 cli Version was 0.12.9, new version: 0.13.0
INFO 2020-01-15 15:46:45,023 cli Running update routines for new version...
INFO 2020-01-15 15:48:46,088 cli Already stopped: Stopped (1)
INFO 2020-01-15 15:48:55,056 apps Running Kolibri with the following settings: kolibri.deployment.default.settings.base
WARNING 2020-01-15 15:48:55,526 cli Skipped automatic database backup, not compatible with this DB engine.
INFO 2020-01-15 15:48:55,526 cli Version was 0.12.9, new version: 0.13.0
INFO 2020-01-15 15:48:55,527 cli Running update routines for new version...
ERROR 2020-01-15 15:54:28,887 exception Internal Server Error: /api/device/deviceprovision/
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/kolibri/dist/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: column "registered" of relation "kolibriauth_facilitydataset" does not exist
LINE 1: ...th_no_password", "show_download_button_in_learn", "registere...
                                                             ^

```

@Bryan_Fisher you also mentioned this:

> It looks like incompatibility of some sort, I have disconnected the DB and used the default SQLite DB.

There is no incompatibility in general, the message you see in the log saying “Skipped automatic database backup, not compatible with this DB engine” only refers to the automatic backup database dumps. This does, however, mean that updating on Postgres is a bit more risky than on SQLite, as there isn’t an automated backup taking place.
