I first installed ITFlow about 1 month ago. A few weeks back I tried to do an update for the first time and it didn't work. I got distracted and only now got back to it. I just tried to do an update again. When I click the "Update App" button, it spins for a minute, shows a green pop-up box that says "update successful", then nothing changes. The pending updates are still there. I tried to run a git pull
as mentioned in other posts, but I got an error saying fatal: detected dubious ownership in repository at '/var/www/html'. It mentions adding an exception, which I'm happy to do, but I didn't want to do something like that without at least posting and seeing what the expected behavior would be.
Settings > Update not doing anything
- Edited
Hi @afiadam
see here
https://forum.itflow.org/d/81-update-issue
Let me know if that resolves the issue with the updates. This will over-ride any changes you made directly to the code.
johnny Apologies for the late reply. A vacation followed by all the tickets to deal with after said vacation distracted me for a bit and I'm just coming back to this.
When I try to run the git fetch --all
command I get an error stating:
fatal: detected dubious ownership in repository at '/var/www/html
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/html
Should I add the exception it mentions? To be honest I'm not sure what's causing both the error and issues updating. As far as I remember I didn't do any manual changes to ITFlow pages or code.
try this as root
chown -R www-data:www-data /var/www
It may just be a permission issue.
- Edited
Lets blast the git out of the way here and recreating by doing the following:
cd into the itflow directory
delete .git directory rm -rf .git
while in the that directory run the following commands 1 by 1
git init
git remote add origin https://github.com/itflow-org/itflow.git
git fetch
git reset --hard origin/master
root@ITFlow:/var/www/html# rm -rf .git
root@ITFlow:/var/www/html# git init
Initialized empty Git repository in /var/www/html/.git/
root@ITFlow:/var/www/html# git remote add origin https://github.com/itflow-org/itflow.git
fatal: detected dubious ownership in repository at '/var/www/html'
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/html
try the suggestion there
git config --global --add safe.directory /var/www/html
then retry the following
git fetch
git reset --hard origin/master
- Edited
Were getting there, keep clicking update database until no more db updates as you have to update the db sequentially
That seems to have done it, thanks. It's still giving me that error about not having git fetch installed though. Do I need to worry about that at all?
yeah thats interesting, im not sure why thats coming up because you obviously have git installed
I'm gonna submit a small update lets see if it shows up
okay I just pushed out an update, lets see if your ITFlow sees it and can update to it
- Edited
hmmm so for some reason your web server is not able to communicate with git on the shell. There should absolutely be an update there
Did you install this via install script? Tell me some details on your install? OS Version, PHP ver, How you installed
okay,
try this
in your itflow directory
sudo -u www-data -- git remote add origin https://github.com/itflow-org/itflow.git
it may be a path issue for git
im referencing @wrongecho in this post:
https://forum.itflow.org/d/40-warning-could-not-find-execute-git-fetch-do-you-have-git-installed/10