Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem after updating and also clean install Baikal 0.6.0: Calendars disappeared #827

Closed
BobWs opened this issue Sep 14, 2019 · 6 comments

Comments

@BobWs
Copy link

BobWs commented Sep 14, 2019

Baikal version: 0.4.6 to 0.6.0

Expected behaviour:

Current behaviour: Calendars disappeared

Steps to reproduce:

So I have a bit of a strange problem. After an successful update yesterday (after the fix #810)
I’ve noticed that not all my Calendars and events are showing in the admin dashboard properly. I’ve added some screenshots, as you can see the difference between before and after updating to the latest version 0.6.0

baikal-0 4 6
This is the result before updating Baikal server

Steps I have done trying to fix this:

  1. restore the database with a recent backup (didn’t help)
  2. created a new clean database and restore the data from a database backup
    Now it got worse, all my calendars disappeared only the Calendars events showing and my addressbooks with entries and my users. (see screenprint)

baikal-0 6 0

Result after updating baikal server to version 0.6.0 (Entries doesn't match)

To test my problem I installed this time a (clean) docker version of Baikal-server 0.6.0 with mariadb 10.4 and I had the same result as mentioned above. Then I reverted back to version 0.4.6 and everything was okay all my Calendars showed up an all the entries.

restore-baikal-0 6 0

Result after restoring backup into a clean database. And an clean install of the docker version to see if the problem was also there.

When inspecting the database through phpmyadmin I can see all the Calendars, events, entries and users. But the Calendars don't show up in the dashboard of the adminpage.

So I’m a bit confused. How do I solve this?

Can you please help me figure out this problem?

@ByteHamster
Copy link
Member

Result after restoring backup into a clean database.

A backup of the 0.4.6 database or the 0.6.0 database? You can not simply restore the old database to a new version of Baikal. Version 0.5.1 added a new calendarinstances table that now contains the data, while the calendars table just points to the instances. That's done automatically on upgrade but it looks like something went wrong on your end...

As for the number of events: That dashboard entry displays the number of rows in the calendaritems table. There were no changes in that table in the last few updates. I don't know where the different number here comes from.

@BobWs
Copy link
Author

BobWs commented Sep 14, 2019

Result after restoring backup into a clean database.

A backup of the 0.4.6 database or the 0.6.0 database? You can not simply restore the old database to a new version of Baikal. Version 0.5.1 added a new calendarinstances table that now contains the data, while the calendars table just points to the instances. That's done automatically on upgrade but it looks like something went wrong on your end...

As for the number of events: That dashboard entry displays the number of rows in the calendaritems table. There were no changes in that table in the last few updates. I don't know where the different number here comes from.

The backup is a mysqldump from the 0.4.6 version. So How do I restore a 0.4.6 database backup into a 0.6.0 version? Also before I restored the database dump I just updated the server without touching the database.

@BobWs
Copy link
Author

BobWs commented Sep 14, 2019

So I guess I could try this:

  1. Reinstall version 0.4.6 and restore the 0.4.6 database dump
  2. update to version 0.5.1 and if everything goes well that update to version 0.6.0
    Theoretically this should solve the problem. What do you think?

@ByteHamster
Copy link
Member

How do I restore a 0.4.6 database backup into a 0.6.0 version?

Only by installing 0.4.6 and upgrading. Apart from doing the upgrades manually, there is no other way.

update to version 0.5.1 and if everything goes well that update to version 0.6.0
Theoretically this should solve the problem. What do you think?

I don't think this will have a higher chance at fixing things as directly upgrading. Baikal does all upgrade steps that are needed if you skip versions, too. Additionally, there was no database change between 0.5.1 and 0.6.0:

if (version_compare($sVersionFrom, '0.5.1', '<')) {

@BobWs
Copy link
Author

BobWs commented Sep 14, 2019

Okay I will try to reinstall version 0.4.6 restore the 0.4.6 database and than update to version 0.6.0 and see what happens. I will report back!

@BobWs
Copy link
Author

BobWs commented Sep 14, 2019

So it worked!
I've completely reinstalled version 0.4.6 with a clean Maraidb database, than I restored my 0.4.6 backup mysqldump. After this successfully restore I've updated the baikal-server to version 0.6.0 and after completion checking dashboard on adminpage everything was okay. All my calendars, users, addresbooks en entries where as before.

So thank you for clarifying thing for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants