Migrating from native install to tutor

First, I install Tutor 3.2.2 (Hawthorn), and migrate from Hawthorn native to Tutor 3.2.2. and then upgrade to Tutor 3.3.0 (Ironwood), also working fine
If I want to upgrade to Tutor 10.x.x (Juniper), can I upgrade straight from Tutor 3.3.0 (Ironwood) to Tutor 10.x.x (Juniper)? Or do I have to upgrade version by version, 3.3.0 → 3.3.1 → 3.3.2 → 3.3.4 → … → 10.x.x ?

The safest way would be to upgrade one version at a time.

If you can create a copy of your data across to a dummy server, you can try updating it directly to the latest version and see if that causes any issues.

we followed your suggestion to upgrade one version at a time, from 3.2.2 to 3.12.6

After 3.12.16, there is only 10.0.0, so we tried to upgrade to 10.0.0

but we have an error as below:

creating tutor_local_forum-job_run ... done
Waiting for mongodb/elasticsearch...
2021/12/01 14:28:18 Waiting for: tcp://mongodb:27017
2021/12/01 14:28:18 Waiting for: http://elasticsearch:9200
2021/12/01 14:28:18 Received 200 from http://elasticsearch:9200
2021/12/01 14:28:18 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
2021/12/01 14:28:23 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
2021/12/01 14:28:28 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s

Can you describe the step you did before getting to that error?

i want to upgrade tutor 3.12.6 to 10.0.0, this is my step

  1. sudo curl -L “https://github.com/overhangio/tutor/releases/download/v10.0.0/tutor-$(uname -s)_$(uname -m)” -o /usr/local/bin/tutor
  2. sudo cp -r $(./tutor config printroot)/data ~/backup/20211201-v3.12.6
  3. ./tutor local stop
  4. sudo rsync -avr “$(./tutor config printroot)”/ /tmp/tutor-backup/
  5. ./tutor local quickstart

in step 5 i got an error

creating tutor_local_forum-job_run ... done
Waiting for mongodb/elasticsearch...
2021/12/01 14:28:18 Waiting for: tcp://mongodb:27017
2021/12/01 14:28:18 Waiting for: http://elasticsearch:9200
2021/12/01 14:28:18 Received 200 from http://elasticsearch:9200
2021/12/01 14:28:18 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
2021/12/01 14:28:23 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
2021/12/01 14:28:28 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s

Can you provide the full stacktrace from the tutor local quickstart command?

For the record, it is unnecessary to upgrade to all minor releases before upgrading to a major release.

Indeed, you must upgrade one major version at a time, but you should not upgrade to all intermediate versions. Also, you should every time upgrade to the latest minor release of every major release.

In other words, you should follow this upgrade path:

pip install --upgrade 'tutor-openedx<10.0.0' # 3.12.6
pip install --upgrade 'tutor-openedx<11.0.0' # 10.5.4
pip install --upgrade 'tutor-openedx<12.0.0' # 11.3.1
pip install --upgrade 'tutor<13.0.0' # 12.1.7

etc.

Note that the python package name switched from “tutor-openedx” to “tutor” in v12.

1 Like

We have also seen this error when trying to restore a backup copy using an updated version of Tutor that did NOT match exactly the version from the backup. But, perhaps something else was going on.

If I recall correctly:

  • We downloaded the exact version of Tutor running when the backup was created
  • Started it and verified everything worked.
  • Stopped Tutor, moved Tutor to a different folder.
  • Moved the Tutor backup to ~/.local/share/tutor
  • Restarted using quickstart to verify the system works as expected
  • Then, upgraded Tutor to the desired version.

Hi @regis ,

this my error log

Your pastebin has expired before I got the time to look at it.
It’s really difficult for me to help you troubleshoot your upgrade issues, because it would require me to setup an old 10.0.0 environment, and it would take me some time.

Hi @regis , I’m sorry about that. this my error log.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.