Repository pull doesn't work / can't import commit details
Event Timeline
Is the Phabricator query wrong then? I've tried loading the commit data based on the commit "id" value rather than "commitIdentifier" here:
$commit_id = idx($this->getTaskData(), 'commitID');
But I've failed to find where $data (what getTaskData() returns) is populated/loaded, so I could pull "id" instead.
Your SQL is wrong. It should be:
SELECT * FROM phabricator_repository.repository_commit WHERE id == 77039
If you imported and destroyed a repository earlier, that would explain this error.
Indeed, there's nothing there by that ID - but why?
We've created two or more repositories for our main projects, which would hang at 0.00% imported. We then tried with some smaller projects and eventually a dummy folder with just 1 revision - all of them failed the same.
Should I truncate the phabricator_repository database tables and recreate the diffusion repository?
By importing repositories, you have amassed a large number of commit import tasks. By deleting those repos, you've made all these tasks obsolete, and they will fail in this manner.
Your safest action now it to wait it out; You can increase the number of task-processing daemons by running ./bin/phd launch 4 PhabricatorTaskmasterDaemon, and let them clear out the bad tasks.
The quicker alternative is to delete all databases, and start a fresh install of Phabricator; Then import the repository only once, and let it work.
Deleting the repository will only add more bad tasks to the queue, which will need to be processed.
We had only imported one repository when we saw 0.00% progress and nothing but errors on the logs. I'll delete the database and reinstall Phabricator, this time with just our dummy test project to see if it finishes importing.