Hi

It's been a while since I logged into the system, I got this error message on the update, I tried to force update but it didn't work.

WARNING: Could not find execute 'git fetch'.

Error details:- error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed

Things to check: Is Git installed? Is the Git origin/remote correct? Are web server file permissions too strict?

Seek support on the Forum if required - include relevant PHP error logs & ITFlow debug output

On my server I had to ssh into the server and reset the /var/www/html/.git folder permissions to www-data:www-data.

cd /var/www/html/
chown -R www-data:www-data ./.git

For some reason root had taken ownership of several of the .git subfolders.

    Also check that git considers it a safe directory

    cd /var/www/html (Change this to the directory you use)
    sudo git config –system –add safe.directory '*'

    Thank you all for your response, I have installed ITFlow using the script

    Inside /var/www/html there is one file index.html

    Bigbug I installed this instance in May of 2023 and don't remember how it was installed. Probably with the script at the time.

    The instance at my office is much older than that having been installed when ITFlow supported multi-companies.

    Regardless, that's where I have to go to reset permissions when git fails to update.

    7 days later

    @Bigbug I appreciate any guidance to fix it please

    I did git reset --hard origin/master and git pull

    On the update page it says

    ITFlow release version: 25.02.3

    Current DB Version: 1.8.2

    Latest DB Version: 1.8.7

    I tried to update several times with no luck, found that Database Structure Comparison

    Column `asset_purchase_reference` missing in table `assets` Missing Column
    Table `certificate_history` missing in database Missing Table
    Extra column `login_vendor_id` in table `logins` not present in db.sql Extra Column
    Extra column `login_software_id` in table `logins` not present in db.sql Extra Column
    Table `quote_files` missing in database Missing Table
    Column `software_purchase_reference` missing in table `software` Missing Column
    Column `software_vendor_id` missing in table `software` Missing Column
    Extra column `software_login_id` in table `software` not present in db.sql Extra Column