Want to subscribe to topics you're interested in?
Become a Member

Upgrade Unable to update Centminmod: "unpack-objects failed"

Discussion in 'Install & Upgrades or Pre-Install Questions' started by deltahf, Jan 16, 2021.

  1. deltahf

    deltahf Premium Member Premium Member

    Jun 8, 2014
    Local Time:
    9:14 AM
    I have a staging server on Vultr. I left it as a dormant image during the holidays and now brought it back online to work with it some more. Everything was fine but now, with this new image, I am unable to update the Centminmod code base.

    Code (Text):
    $ cmupdate
    No local changes to save
    remote: Enumerating objects: 77, done.
    remote: Counting objects: 100% (77/77), done.
    remote: Compressing objects: 100% (20/20), done.
    remote: Total 61 (delta 50), reused 52 (delta 41), pack-reused 0
    error: unable to create temporary file: Not a directory
    fatal: failed to write object
    fatal: unpack-objects failed

    My production server (dedicated server not on Vultr) can run this command just fine.

    Any idea what is going on here?
    • CentOS Version: CentOS Linux release 7.9.2009 (Core)
    • Centmin Mod Version Installed: 123.09beta01
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ?
    Code (Text):
    $ cat /etc/centminmod/custom_config.inc

    (I didn't set that myself and I don't know why it's in there, but... it's there. :))
    Last edited: Jan 16, 2021
  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    11:14 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Just do a fresh Centmin Mod code replacement by wiping /usr/local/src/centminmod as outlined similar to update guide here for older than .07 releases.

    replace branchname with branch you want either 123.08stable or 123.09beta01

    first verify that github repo link is working and you don't have connectivity issues to github.com via curl header inspection - look for HTTP 200 status code = ok
    Code (Text):
    curl -I https://github.com/centminmod/centminmod

    Code (Text):
    curl -I https://github.com/centminmod/centminmod
    HTTP/1.1 200 OK
    Server: GitHub.com
    Date: Fri, 03 May 2019 09:37:50 GMT
    Content-Type: text/html; charset=utf-8
    Status: 200 OK

    Then do clean Centmin Mod code replacement using below SSH commands
    Code (Text):
    cd /usr/local/src
    rm -rf centminmod*
    git clone -b ${branchname} --depth=1 https://github.com/centminmod/centminmod.git centminmod
    cd centminmod