Error "fatal: Remote branch open-release/nutmeg.2 not found in upstream origin" when upgrading tutor from nutmeg to olive

Hello,

I am upgrading tutor to olive (from nutmeg), yet when I run tutor local launch -I, the following error occurs:

> [discussions-src 1/2] RUN git clone https://github.com/openedx/frontend-app-discussions --branch open-release/nutmeg.2 --depth 1 .:                                                        
#0 0.841 Cloning into '.'...                                                                                                                                                                  
#0 1.248 warning: Could not find remote branch open-release/nutmeg.2 to clone.                                                                                                                
#0 1.248 fatal: Remote branch open-release/nutmeg.2 not found in upstream origin                                                                                                              
------                                                                                                                                                                                        
failed to solve: executor failed running [/bin/sh -c git clone https://github.com/openedx/frontend-app-discussions --branch open-release/nutmeg.2 --depth 1 .]: exit code: 128                
Error: Command failed with status 17: 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 -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local up --remove-orphans --build -d 

The error is quite self-explanatory as the open-release/nutmeg.2 branch has been deleted from https://github.com/openedx/frontend-app-discussionshttps://github.com/openedx/frontend-app-discussions

How can I finish the upgrade?

Thanks. Best,
MartĂ­

What’s the output of the following commands?

$ tutor config printvalue OPENEDX_COMMON_VERSION
$ grep OPENEDX_COMMON_VERSION "$(tutor config printroot)/config.yml" 

Hello,

thank you for your response. In both cases I get open-release/nutmeg.2. Also FYI, tutor version is 15.1.0.

Best,
MartĂ­

You must have manually set this value. You should remove it with:

tutor config save --unset OPENEDX_COMMON_VERSION

Then run tutor local launch again.

1 Like

Hello again,

indeed I had set this value in a github workflow that I had not updated. I have corrected it manually in my staging server and re-run tutor local launch again. However, the command is unable to finish. I have tried running it several times and I even have tried docker system prune -a and tutor local launch again but it always errors at some point and exits my ssh connection (see a full example log below). How may I debug this? Is there any way that I can see the full logs of tutor local launch and the underlying commands npm run build?

Thank you in advance. Best,
MartĂ­

tutor local launch -I
==================================================
        Interactive platform configuration
==================================================
Configuration saved to /home/ubuntu/.local/share/tutor/config.yml
Environment generated in /home/ubuntu/.local/share/tutor/env
==============================================
        Stopping any existing platform
==============================================
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 -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local stop
======================================================
        Starting the platform in detached mode
======================================================
docker-compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/dev/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/dev/docker-compose.tmp.yml --project-name tutor_dev stop
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 -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local up --remove-orphans --build -d
[+] Building 186.7s (95/106)                                                                                                                                                                  
 => [authn-prod 1/1] RUN npm run build                                                                                                                                                 185.9s
[+] Building 225.1s (95/106)                                                                                                                                                                  
 => [authn-prod 1/1] RUN npm run build                                                                                                                                                 224.2s
 => => # Running with resolved config:                                                                                                                                                       
 => => # /openedx/app/webpack.prod.config.js                                                                                                                                                 
 => => # Browserslist: caniuse-lite is outdated. Please run:                                                                                                                                 
 => => #   npx browserslist@latest --update-db                                                                                                                                               
 => => #   Why you should do it regularly:                                                                                
 => CACHED [learning-i18n 2/4] COPY --from=i18n /openedx/i18n/learning /openedx/i18n/learning                                                                                            0.0s
 => CACHED [learning-i18n 3/4] COPY --from=i18n /openedx/i18n/i18n-merge.js /openedx/i18n/i18n-merge.js                                                                                  0.0s
 => CACHED [learning-i18n 4/4] RUN /openedx/i18n/i18n-merge.js /openedx/app/src/i18n/messages /openedx/i18n/learning /openedx/app/src/i18n/messages                                      0.0s
 => CACHED [learning-common 5/5] COPY --from=learning-i18n /openedx/app/src/i18n/messages /openedx/app/src/i18n/messages                                                                 0.0s
 => [discussions-prod 1/1] RUN npm run build                                                                                                                                           224.2s
 => => # Running with resolved config:                                                                                                                                                       
 => => # /openedx/app/node_modules/@edx/frontend-build/config/webpack.prod.config.js                                                                                                         
 => => # Browserslist: caniuse-lite is outdated. Please run:                                                                                                                                 
 => => #   npx browserslist@latest --update-db                                                                                                                                               
 => => #   Why you should do it regularly:                                                                                
 => [learning-prod 1/1] RUN npm run build                                                                                                                                              224.2s
 => CACHED [course-authoring-src 1/2] RUN git clone https://github.com/openedx/frontend-app-course-authoring --branch open-release/olive.1 --depth 1 .                                   0.0s
 => CACHED [course-authoring-src 2/2] RUN stat /openedx/app/src/i18n/messages 2> /dev/null || (echo "missing messages folder" && mkdir -p /openedx/app/src/i18n/messages)                0.0s
 => CACHED [course-authoring-common 1/5] COPY --from=course-authoring-src /openedx/app/package.json /openedx/app/package.json                                                            0.0s
 => CACHED [course-authoring-common 2/5] COPY --from=course-authoring-src /openedx/app/package-lock.json /openedx/app/package-lock.json                                                  0.0s  => CACHED [course-authoring-common 3/5] RUN npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/   && rm -rf ~/.npm                                            0.0s
 => CACHED [course-authoring-common 4/5] COPY --from=course-authoring-src /openedx/app /openedx/app                                                                                      0.0s
 => CACHED [course-authoring-i18n 1/4] COPY --from=course-authoring-src /openedx/app/src/i18n/messages /openedx/app/src/i18n/messages                                                    0.0s
 => CACHED [course-authoring-i18n 2/4] COPY --from=i18n /openedx/i18n/course-authoring /openedx/i18n/course-authoring                                                                    0.0s
 => CACHED [course-authoring-i18n 3/4] COPY --from=i18n /openedx/i18n/i18n-merge.js /openedx/i18n/i18n-merge.js                                                                          0.0s
 => CACHED [course-authoring-i18n 4/4] RUN /openedx/i18n/i18n-merge.js /openedx/app/src/i18n/messages /openedx/i18n/course-authoring /openedx/app/src/i18n/messages                      0.0s
 => CACHED [course-authoring-common 5/5] COPY --from=course-authoring-i18n /openedx/app/src/i18n/messages /openedx/app/src/i18n/messages                                                 0.0s
 => CACHED [profile-src 1/2] RUN git clone https://github.com/openedx/frontend-app-profile --branch open-release/olive.1 --depth 1 .                                                     0.0s
 => CACHED [profile-src 2/2] RUN stat /openedx/app/src/i18n/messages 2> /dev/null || (echo "missing messages folder" && mkdir -p /openedx/app/src/i18n/messages)                         0.0s
 => CACHED [profile-common 1/5] COPY --from=profile-src /openedx/app/package.json /openedx/app/package.json                                                                              0.0s
 => CACHED [profile-common 2/5] COPY --from=profile-src /openedx/app/package-lock.json /openedx/app/package-lock.json                                                                    0.0s
 => CACHED [profile-common 3/5] RUN npm clean-install --no-audit --no-fund --registry=https://registry.npmjs.org/   && rm -rf ~/.npm                                                     0.0s
 => CACHED [profile-common 4/5] COPY --from=profile-src /openedx/app /openedx/app                                                                                                        0.0s
 => CACHED [profile-i18n 1/4] COPY --from=profile-src /openedx/app/src/i18n/messages /openedx/app/src/i18n/messages                                                                      0.0s
 => CACHED [profile-i18n 2/4] COPY --from=i18n /openedx/i18n/profile /openedx/i18n/profile                                                                                               0.0s
 => CACHED [profile-i18n 3/4] COPY --from=i18n /openedx/i18n/i18n-merge.js /openedx/i18n/i18n-merge.js                                                                                   0.0s
 => CACHED [profile-i18n 4/4] RUN /openedx/i18n/i18n-merge.js /openedx/app/src/i18n/messages /openedx/i18n/profile /openedx/app/src/i18n/messages                                        0.0s
 => CACHED [profile-common 5/5] COPY --from=profile-i18n /openedx/app/src/i18n/messages /openedx/app/src/i18n/messages                                                                   0.0s
 => [course-authoring-prod 1/1] RUN npm run build                                                                                                                                      224.2s
 => => # Running with resolved config:                                                                                                                                                       
 => => # /openedx/app/node_modules/@edx/frontend-build/config/webpack.prod.config.js                                                                                                         
 => => # Browserslist: caniuse-lite is outdated. Please run:                                                                                                                                 
 => => #   npx update-browserslist-db@latest                                                                                                                                                 
 => => #   Why you should do it regularly:                                                                                                   
 => [profile-prod 1/1] RUN npm run build                                                                                                                                               224.2s
 => => # > @edx/frontend-app-profile@1.0.0-semantically-released build                                                                                                                       
 => => # > fedx-scripts webpack                                                                                                                                                              
 => => # Running with resolved config:                                                                                                                                                       
 => => # /openedx/app/node_modules/@edx/frontend-build/config/webpack.prod.config.js                                                                                                         
Connection to 206.81.24.156 closed by remote host.
Connection to 206.81.24.156 closed.

What’s the tutor-mfe plugin version? (hint: it should be the latest one, 15.0.4)

tutor plugins list | grep mfe

this solved the issue. Thank you very much!

MartĂ­