Juniper migration requirements

Hi,

I am trying to upgrade to Juniper…

Tutor is located at : /home/ubuntu/.local/bin/tutor as recommended in this related post Help needed to update tutor to v3.12.3

To avoid ending up with two binaries installed on the server, i used “the alternative installation method”

sudo apt install python3 libyaml-dev

Reading package lists… Done

Building dependency tree

Reading state information… Done

libyaml-dev is already the newest version (0.1.7-2ubuntu3).

python3 is already the newest version (3.6.7-1~18.04).

0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

But when i run

pip install tutor-openedx

I get

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

Defaulting to user installation because normal site-packages is not writeable

ERROR: Could not find a version that satisfies the requirement tutor-openedx (from versions: none)

ERROR: No matching distribution found for tutor-openedx

Similarly, when i run

git clone https://github.com/overhangio/tutor

I get

fatal: destination path ‘tutor’ already exists and is not an empty directory.

When running

pip install -e .

I get

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
ERROR: File “setup.py” not found. Directory cannot be installed in editable mode: /home/ubuntu/tutor/tutor

What is strange here is that

sudo apt install python3 libyaml-dev seems to confirm that Python 3.6.7 is installed while > pip install -e . suggets not and recommands to update Python from 2.7

I tried, too

pip install --upgrade --user tutor-openedx

with similar error…

Any help would be greatly appreciated to get migration on the track.

Thanks

pip probably runs with Python 2.7 while pip3 runs with Python 3.6. I suggest you run:

pip uninstall tutor-openedx
pip3 install --user tutor-openedx

Thank you for your reply.

Does “pip uninstall tutor-openedx” erase any existing config or data?

Thanks

No it doesn’t. Have faith :wink:

I do :slight_smile:

So this is what happened when moving forward…

Tutor upgraded to 10.0.7

However when running “tutor local quickstart” the system generates the following error

docker-compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local rm --stop --force
ERROR: yaml.scanner.ScannerError: while scanning a simple key
in “/home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml”, line 20, column 11
could not find expected ‘:’
in “/home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml”, line 22, column 5
Error: Command failed with status 1: docker-compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local rm --stop --force

Thanks
HN

What’s at line 20 of this file?

head -20 .local/share/tutor/env/local/docker-compose.prod.yml

Hi,

Here is the content of the file

version: "3.7"
services:
  openedx-assets:
    image: docker.io/overhangio/openedx:10.0.7
    volumes:
      - ../../data/openedx:/var/www/openedx
    command: sh -c "rm -rf /var/www/openedx/staticfiles && cp -r /openedx/staticfiles/ /var/www/openedx/"

  nginx:
    image: docker.io/nginx:1.13
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    
    networks:
      default:
        aliases:
          - "mydomain.com"
          "minio.mydomain.com"
    
    volumes:
      - ../apps/nginx:/etc/nginx/conf.d/:ro
      - ../../data/openedx:/var/www/openedx:ro
      - ../../data/openedx-media:/var/www/openedx-media:ro
      - ../../data/letsencrypt:/etc/letsencrypt/:ro
      
    depends_on: ["lms", "cms"]

I changed the actual domain name with “mydomain”

Thanks

It looks like you are running an older release of the Minio plugin. All plugins should be upgraded to v10+.

You can check the plugins versions with:

tutor plugins list

In your case, you should upgrade with:

pip uninstall tutor-minio
pip3 install --user --upgrade tutor-minio

Thanks,

Well, that means plugins should be upgrared before tutor… am I right?

I will give it try.

Thank you regis

I successfully uninstalled minio

Successfully uninstalled tutor-minio-0.1.5
ubuntu@i…:~$ tutor plugins list
xqueue==10.0.0
notes==10.0.0
figures==0.2.2
enablespecialexam==0.1.0
enablecertgenerinst==0.1.0
enableextention==0.1.0

However, running

pip3 install --user --upgrade tutor-minio

Installs -0.1.5

I am a bit confused…because when I go here https://pypi.org/project/tutor-minio/ I still see tutor-minio 0.1.5 as the latest release…

@nachham Somehow, I forgot to tag the new release of the minio plugin with the proper version number. v10.0.0 will be published in a few minutes. Sorry about this.

Thank you @regis

Minio upgraded seamlessly to 10.0.0

Going forward with the upgrade generated the below error after 10 mn or so. Tutor is: 10.0.8

(This bug has been documented here as well Failure to initialise forum - No such host )

Initialising forum…
docker-compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm forum-job sh -e -c export MONGOHQ_URL=“mongodb://$MONGODB_AUTH$MONGODB_HOST:$MONGODB_PORT/cs_comments_service”

bundle exec rake search:initialize
bundle exec rake search:rebuild_index
Waiting for mongodb/elasticsearch…
2020/06/23 18:06:10 Waiting for: tcp://mongodb:27017
2020/06/23 18:06:10 Waiting for: http://elasticsearch:9200
2020/06/23 18:06:10 Received 200 from http://elasticsearch:9200
2020/06/23 18:06:10 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:06:15 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:06:20 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:06:25 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:06:30 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:06:35 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:06:40 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:06:45 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:06:50 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:06:55 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:00 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:05 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:10 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:15 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:20 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:25 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:30 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:36 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:41 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:46 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:51 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:07:56 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:01 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:06 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:11 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:16 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:21 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:26 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:31 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:36 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:41 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:46 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:51 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:08:56 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:09:01 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:09:06 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:09:11 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5s
2020/06/23 18:09:16 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: no such host. Sleeping 5

Any Idea?
Thanks

Let’s debug this there. I suspect it’s just a matter of running the upgrade script: tutor local upgrade --from=ironwood.

Upgrade successful. Thanks @regis