• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Problem updating to v2.3.1

Scheduled Pinned Locked Moved Troubleshooting
17 Posts 6 Posters 7.5k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    Bob
    last edited by Apr 2, 2018, 6:40 PM

    Just tried to update today to v2.3.1 and got the following error when running “git pull” in the ~/MagicMirror directory

    Removing tests/unit/translations/same_keys.js
    Removing tests/unit/functions/class_spec.js
    Auto-merging modules/default/currentweather/README.md
    CONFLICT (content): Merge conflict in modules/default/currentweather/README.md
    Automatic merge failed; fix conflicts and then commit the result.

    Anyone got any ideas as to what I may be doing wrong ? (I’m running 2 mirrors, and both have the same error)

    1 Reply Last reply Reply Quote 0
    • Y Offline
      yawns Moderator
      last edited by Apr 2, 2018, 7:35 PM

      I did not attempt to update, but you could try to delete/rename/move the file it could not merge and try again

      1 Reply Last reply Reply Quote 0
      • K Offline
        Kristianson
        last edited by Apr 3, 2018, 12:08 PM

        get the same error when upgrading - I just did: git pull && npm install
        how do I find what the conflicts are?

        N 1 Reply Last reply Apr 3, 2018, 12:20 PM Reply Quote 0
        • N Offline
          NoNameRo @Kristianson
          last edited by Apr 3, 2018, 12:20 PM

          @Kristianson
          if you have the same error as @Bob

          have you deleted or renamed the readme file under “/home/pi/MagicMirror/modules/default/currentweather/README.md”

          1 Reply Last reply Reply Quote 0
          • K Offline
            Kristianson
            last edited by Apr 3, 2018, 12:23 PM

            Not exactly the same, that’s the problem it does not say what’s conflicting:

            pi@raspberrypi_7:~/MagicMirror $ sudo git pull && npm install
            error: Pulling is not possible because you have unmerged files.
            hint: Fix them up in the work tree, and then use 'git add/rm ’
            hint: as appropriate to mark resolution and make a commit.
            fatal: Exiting because of an unresolved conflict.
            pi@raspberrypi_7:~/MagicMirror $

            N 1 Reply Last reply Apr 3, 2018, 12:28 PM Reply Quote 0
            • N Offline
              NoNameRo @Kristianson
              last edited by Apr 3, 2018, 12:28 PM

              @Kristianson
              did you run git reset --hard and then git pull && npm install

              1 Reply Last reply Reply Quote 0
              • K Offline
                Kristianson
                last edited by Apr 3, 2018, 12:31 PM

                No, tried that and a bit more info:

                pi@raspberrypi_7:~/MagicMirror $ git reset
                Unstaged changes after reset:
                M .eslintrc.json
                M .travis.yml
                M CHANGELOG.md
                M README.md
                M installers/raspberry.sh
                M js/class.js
                M js/main.js
                M js/module.js
                M js/translator.js
                M modules/README.md
                M modules/default/alert/README.md
                M modules/default/calendar/README.md
                M modules/default/calendar/calendarfetcher.js
                M modules/default/calendar/vendor/ical.js/test/test.js
                M modules/default/compliments/README.md
                M modules/default/compliments/compliments.js
                M modules/default/currentweather/README.md
                M modules/default/currentweather/currentweather.js
                M modules/default/newsfeed/README.md
                M modules/default/newsfeed/fetcher.js
                M modules/default/newsfeed/newsfeed.js
                M modules/default/updatenotification/updatenotification.js
                M modules/default/weatherforecast/weatherforecast.js
                M package-lock.json
                M package.json
                M tests/configs/check_config.js
                D tests/unit/functions/class_spec.js
                M tests/unit/functions/cmp_versions_spec.js
                D tests/unit/translations/same_keys.js
                M translations/af.json
                M translations/bg.json
                M translations/ca.json
                M translations/cs.json
                M translations/cy.json
                M translations/da.json
                M translations/de.json
                M translations/en.json
                M translations/es.json
                M translations/et.json
                M translations/fi.json
                M translations/fr.json
                M translations/hu.json
                M translations/id.json
                M translations/is.json
                M translations/kr.json
                M translations/nb.json
                M translations/nl.json
                M translations/nn.json
                M translations/pl.json
                M translations/pt.json
                M translations/ro.json
                M translations/ru.json
                M translations/sv.json
                M translations/zh_cn.json
                pi@raspberrypi_7:~/MagicMirror $ git pull && npm install
                error: Your local changes to the following files would be overwritten by merge:
                .eslintrc.json
                .travis.yml
                CHANGELOG.md
                README.md
                installers/raspberry.sh
                js/class.js
                js/main.js
                js/module.js
                js/translator.js
                modules/README.md
                modules/default/alert/README.md
                modules/default/calendar/README.md
                modules/default/calendar/calendarfetcher.js
                modules/default/calendar/vendor/ical.js/test/test.js
                modules/default/compliments/README.md
                modules/default/compliments/compliments.js
                modules/default/currentweather/README.md
                modules/default/currentweather/currentweather.js
                modules/default/newsfeed/README.md
                modules/default/newsfeed/fetcher.js
                modules/default/newsfeed/newsfeed.js
                modules/default/updatenotification/updatenotification.js
                modules/default/weatherforecast/weatherforecast.js
                package-lock.json
                package.json
                tests/configs/check_config.js
                tests/unit/functions/cmp_versions_spec.js
                translations/af.json
                translations/bg.json
                translations/ca.json
                translations/cs.json
                translations/cy.json
                translations/da.json
                translations/de.json
                translations/en.json
                translations/es.json
                translations/et.json
                translations/fi.json
                translations/fr.json
                translations/hu.json
                translations/id.json
                translations/is.json
                translations/kr.json
                translations/nb.json
                translations/nl.json
                translations/nn.json
                translations/pl.json
                translations/pt.json
                translations/ro.json
                translations/ru.json
                translations/sv.json
                translations/zh_cn.json
                Please commit your changes or stash them before you merge.
                error: The following untracked working tree files would be overwritten by merge:
                dangerfile.js
                fonts/yarn.lock
                module-types.ts
                tests/configs/data/StripComments.json
                tests/configs/data/TranslationTest.json
                tests/configs/data/en.json
                tests/e2e/translations_spec.js
                tests/unit/classes/class_spec.js
                tests/unit/classes/deprecated_spec.js
                tests/unit/classes/translator_spec.js
                tests/unit/classes/utils_spec.js
                vendor/yarn.lock
                yarn.lock
                Please move or remove them before you merge.
                Aborting
                pi@raspberrypi_7:~/MagicMirror $

                Where are these files? Should I just remove them?

                N 1 Reply Last reply Apr 4, 2018, 3:16 AM Reply Quote 0
                • N Offline
                  NoNameRo @Kristianson
                  last edited by Apr 4, 2018, 3:16 AM

                  @Kristianson
                  Did you solve the problem, have you run

                  git reset --hard
                  
                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    Kristianson
                    last edited by Apr 4, 2018, 6:58 AM

                    Hi! Thank you for checking… I ran the git reset --hard and then the git pull && npm install but shorter error now… not sure if I should just remove the files? Never had this problem before:

                    pi@raspberrypi_7:~/MagicMirror $ sudo git reset --hard
                    HEAD is now at 532143c Merge pull request #1149 from bonaime/patch-1
                    pi@raspberrypi_7:~/MagicMirror $ sudo git pull && npm install
                    error: The following untracked working tree files would be overwritten by merge:
                    dangerfile.js
                    fonts/yarn.lock
                    module-types.ts
                    tests/configs/data/StripComments.json
                    tests/configs/data/TranslationTest.json
                    tests/configs/data/en.json
                    tests/e2e/translations_spec.js
                    tests/unit/classes/class_spec.js
                    tests/unit/classes/deprecated_spec.js
                    tests/unit/classes/translator_spec.js
                    tests/unit/classes/utils_spec.js
                    vendor/yarn.lock
                    yarn.lock
                    Please move or remove them before you merge.
                    Aborting
                    pi@raspberrypi_7:~/MagicMirror $

                    N 1 Reply Last reply Apr 4, 2018, 1:54 PM Reply Quote 0
                    • B Offline
                      Bob
                      last edited by Apr 4, 2018, 8:25 AM

                      Not sure what I’ve done but when I run a git pull I now have a message that says I need to run “git commit -a” to fix the issues.

                      What would happen if I did that ? Would it overwrite the main branch, or just create my own version of that branch ? I don’t have a git account, so would that cause issues as well ?

                      C 1 Reply Last reply Apr 15, 2018, 10:59 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        2/17
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy