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

How to do a Update? #35

Open
porschberg opened this issue Sep 23, 2019 · 11 comments
Open

How to do a Update? #35

porschberg opened this issue Sep 23, 2019 · 11 comments

Comments

@porschberg
Copy link

Hi,
we use your docker-image for a long time now with success. Thank you.
However: Did you have an upgrade-guide? What is when I want to upgrade to a new version of Limesurvey? Currently we use Version 2.72.3+171020.
I fear that a simple docker-compose build will not work with my current version of Limesurvey and I want not lose my old surveys.

Thomas

@crramirez
Copy link
Owner

Hello,

Good to know :)

First, make a backup of your database and the config and update directory. I understand that you are using docker-compose. In this case, just do a docker-compose pull && docker-compose up -d. Limesurvey 3 is backward compatible with 2 so, once you upgrade the image and recreate the container it will upgrade your database.

Another option (and recommended) is to use comfort update. I think they offer a few for free. Inside LimeSurvey in the administration go to Confort Update, it will update your LimeSurvey and your database.

In each case please backup everything before.

Regards,
Carlos

@porschberg
Copy link
Author

I pulled the new docker-image. Now i get a "LimeSurvey installer" dialogue. Does it recognize the old database?

@crramirez
Copy link
Owner

Yes, put the same parameters it will say that there is an existing database

@porschberg
Copy link
Author

Good point. When I login into the docker-container I see:

root@7303394b11c0:/var/lib/mysql# ls
ib_logfile0  ib_logfile1  ibdata1  limesurvey  mysql  performance_schema

So my database is called limesurvey probably. Yes?
Can I read the USER/PASSWORD somewhere from the environment?

I wrote down my password and user, but I'm not sure if it's true.

@crramirez
Copy link
Owner

crramirez commented Sep 23, 2019 via email

@porschberg
Copy link
Author

I did a backup via the UI and I have now a file LimeSurvey_limesurvey_dump_2019-09-23.sql .
In this file I see a INSERT into table lime_users with name=admin.

After my first installation of limesurvey I wrote down two user/password pairs:
user: root password:
user: admin password:
However when I login into my container and try to connect via mysql I get
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
The same for user root.

This should work at command line?!

@porschberg
Copy link
Author

porschberg commented Sep 23, 2019

Ok, could connect now with user root. The installation process recognizes the old databases but gives an error:
CDbException Die Tabelle "{{template_configuration}}" für die ActiveRecord-Klasse "TemplateConfiguration" kann nicht in der Datenbank gefunden werden.

English:
CDbException The {{template_configuration}} table for the TemplateConfiguration ActiveRecord class can not be found in the database

@crramirez
Copy link
Owner

OK, It allows you to continue? you can go back modifying your docker-compose.yml to

image:
  crramirez/limesurvey:2

But probably you will need to restore the backup. And export your surveys and begin from scratch then import the surveys

@porschberg
Copy link
Author

Okay. I'm back now. I updated in my docker-compose to crramirez/limesurvey:2.
I see my old surveys. I had not to restore my backup. "ComfortUpdate" is not available for me.
How should I proceed?

When I login into the container and do a
mysql> SELECT * FROM template_configuration; ERROR 1146 (42S02): Table 'limesurvey.template_configuration' doesn't exist
This problematic table does still not exist. Is it possible to upgrade to limesurvey3?

@crramirez
Copy link
Owner

Hello,

You should be in 2.73.1 now, the latest 2.x. You can try the upgrade process again. If it doesn't work, the only way is to export your surveys, start from scratch and import them again.

Regards

@porschberg
Copy link
Author

Seems to be the way. It is not possible to upgrade from 2 to 3. Same error as before.

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