MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

MM Update - GIT error



  • Hey guys,

    i want to update my MM system from version 2.1.3 -> 2.4.x.

    It looks like i am to stupid for it -.-

    I am in the MagicMirror folder an try to make an GIT pull. I received an error immediatly.

    May you have an idea for this issue ?

    sudo git pull && npm install
    error: object file .git/objects/5d/fba0b834306cc81693307ab0d1bf24e798a46a is empty
    error: object file .git/objects/5d/fba0b834306cc81693307ab0d1bf24e798a46a is empty
    fatal: loose object 5dfba0b834306cc81693307ab0d1bf24e798a46a (stored in .git/objects/5d/fba0b834306cc81693307ab0d1bf24e798a46a) is co                    rrupt
    fatal: The remote end hung up unexpectedly
    

  • Module Developer

    @Pakmann
    2 ideas:

    • in which folder are you trying to run the pull? It should be /MagicMirror/
    • do it without sudo rights

    AxLED



  • @AxLed
    strange behaviour… i am in my root folder for MagicMirror: /home/pi/MagicMirror/

    without sudo command same result


  • Module Developer

    @pakmann

    delete the file giving he error…

    .git/objects/5d/fba0b834306cc81693307ab0d1bf24e798a46a is empty



  • @justjim1220

    thanks a lot! This works, but now the next issue -.-

    git pull && npm install
    error: refs/remotes/origin/develop does not point to a valid object!
    error: refs/remotes/origin/develop does not point to a valid object!
    error: refs/remotes/origin/develop does not point to a valid object!
    error: refs/remotes/origin/develop does not point to a valid object!
    remote: Enumerating objects: 507, done.
    remote: Counting objects: 100% (507/507), done.
    error: object file .git/objects/36/766f9a0089766d4a0e164f3f0b198dadcf60c4 is empty
    fatal: SHA1 KOLLISION MIT 36766f9a0089766d4a0e164f3f0b198dadcf60c4 GEFUNDEN !
    fatal: index-pack fehlgeschlagen
    
    

  • Module Developer

    @pakmann

    try…

    npm rebuild
    from the MagicMirror directory

    then reboot your system



  • @justjim1220 said in MM Update - GIT error:

    @pakmann

    try…

    npm rebuild
    from the MagicMirror directory

    then reboot your system

    rebuild was sucessfull, but not working. Problem still alive


  • Module Developer

    @pakmann

    delete the file causing new error…

    .git/objects/36/766f9a0089766d4a0e164f3f0b198dadcf60c4 is empty

    Then rebuild again…

    npm rebuild

    then reboot again

    if this doesn’t work, you may need to do the git pull && npm install again



  • @justjim1220 said in MM Update - GIT error:

    git pull && npm install

    • detele file: check
    • npm rebuild: check
    • reboot: check
    • new request for git pull && npm install: same behaviour…
    git pull && npm install
    error: refs/remotes/origin/develop does not point to a valid object!
    error: refs/remotes/origin/develop does not point to a valid object!
    error: refs/remotes/origin/develop does not point to a valid object!
    error: refs/remotes/origin/develop does not point to a valid object!
    remote: Enumerating objects: 507, done.
    remote: Counting objects: 100% (507/507), done.
    remote: Total 1591 (delta 507), reused 507 (delta 507), pack-reused 1084
    Empfange Objekte: 100% (1591/1591), 691.80 KiB | 463.00 KiB/s, Fertig.
    error: object file .git/objects/df/fc042df5d96cc8f7a956c12a2e002004d4cf7d is empty
    fatal: SHA1 KOLLISION MIT dffc042df5d96cc8f7a956c12a2e002004d4cf7d GEFUNDEN !
    fatal: index-pack fehlgeschlagen
    
    

  • Module Developer

    @pakmann

    Well, I am not sure what is happening…
    My best guess is to delete the .git folder then redo the git pull && npm install