Update Button Not Doing Anything.... Again
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?
- Edited
- Edited
Did you reinstall using the script then import the DB?
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
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?
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?
- Edited
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.