• Support
  • Update Button Not Doing Anything.... Again

My Notes:

Current ITFlow location: /var/www/html/.

when "recloned" to new test (new directory) location folder structure was: /var/www/test/itflow/.

would not having the "../../../itflow/" folder cause this issue?

@johnny

For what it's worth, my install is also saved to /var/www/html/. I don't have a /itflow/ subdirectory.

@johnny - so I borked my install, and had to restore from sql backup. Import of the backup went successfully but I can't login (confirmed I'm using the right credentials). I have the master encryption key, but no where in any of the restore process have I used it yet - could this be causing my problem?

Did you reinstall using the script then import the DB?

@johnny

No I did not, Manual install just recloned the repo and rebuilt the db and imported the old DB on top based off another forum post.

Make sure when you imported that there is actually data in the tables, You can check the users table to see if the user exisits

@johnny can confirm I see all my users data, however when I login with the account I made when standing up the new database I do not see them within the webapp.

TL😃R they exist in the database, but don't show up as users in the website - same with the rest of the data I imported.

afiadam

I've spent some time looking into this and doing some testing. Would you try running the following commands whilst SSH'ed into your server as root:

(You need to replace /var/www/html with the directory of your ITFlow instance, if not at /var/www/html).

git config --system --add safe.directory '*'

sudo chmod -R 775 /var/www/html/

-

Then navigate to your ITFlow directory (cd /var/www/html) and run:

git reset --hard

git pull

-

You'll need to rm [file] any files it says are conflicting ("The following untracked working tree files would be overwritten by merge") in order to allow the update, but this may potentially allow future updates to work.

Please let me know?

    5 days later

    wrongecho Sorry for the late reply, I just got around to doing this. I followed those instructions and it does seem to have updated everything. I'll keep an eye out for future updates and see if it lets me run those in ITFlow itself. I did notice two things though. The first was it wouldn't let me run the git pull without specifying the URL of your github repo. That's not a problem, just wanted to see if that was different than expected. The second thing is I didn't see any instances of "The following untracked……." like you specified. Would the lack of that line change your theory at all?

    wrongecho Sadly no dice. Saw there was an update, hit the update button and it just blinked green again without actually updating.

      afiadam I believe you need to set the remote source

      change to the directory of ITFlow and run

      sudo -u www-data git remote add origin https://github.com/itflow-org/itflow.git

      then run sudo -u www-data git remote -v

      to verify the source is correct Please let me know what the output is

        johnny
        sudo -u www-data git remote add origin https://github.com/itflow-org/itflow.git
        error: remote origin already exists.
        sudo -u www-data git remote -v
        origin https://github.com/itflow-org/itflow.git (fetch)
        origin https://github.com/itflow-org/itflow.git (push)

        try the commands in the itflow directory @wrongecho stated in POST 12 but with sudo -u www-data

        sudo -u www-data git config --system --add safe.directory '*'

        sudo -u www-data git reset --hard

        sudo -u www-data git pull

        This will assure the command run as web user and not root. I think the problem is running them as root and then root perms get set when pulling down files

        You can easily post screenshots now

          You get a permission denied error when running the first command. It's a little concerning that even as root you can't edit the git config file. I'd start troubleshooting there.

            wrongecho So it lets me run sudo git config --system --add safe.directory '*' without any issues, but when I do sudo -u www-data in the command then it does give that permission denied error. I tried running sudo -u www-data git config --add safe.directory '*' (no --system flag) and that did seem to run without errors. I'll watch for the next update and see if it lets me run the updater properly then.

            johnny Well, good and bad news. Bad news is it still didn't actually update. The good news is that it actually seems to have tried first. Previously when I clicked the update button it would instantly flash "update successful" despite not updating. This time when I clicked to update it ran for a minute seeming like it was downloading the update before saying update successful and not doing anything.

              okay drop to shell

              go into the itflow directory run

              sudo -u www-data git fetch --all

              sudo -u www-data git reset --hard origin/master

              If these work im gonna add a force update dropdown to the update button that will execute those commands from the UI.