]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/error:_failed_to_push_some_refs_to___39__ssh:__47____47__git__64__localhost__47__brains.git__39__.mdwn
Add ikistrap plugin for ikistrap theme.
[git.ikiwiki.info.git] / doc / bugs / error:_failed_to_push_some_refs_to___39__ssh:__47____47__git__64__localhost__47__brains.git__39__.mdwn
1 Some people in our office edit ikiwiki via command line, and others via the Web interface. At a certain point, the following error popped up in Apache error logs:
3 ````
4 To ssh://git@localhost/brains.git
5    d7e8496..8a75b3b  master -> master
6 Switched to branch 'throw_away_8a75b3b1da256452ae87b8543b5bec3d2f586ac5'
7 Switched to branch 'master'
8 From .
9  * branch            throw_away_8a75b3b1da256452ae87b8543b5bec3d2f586ac5 -> FETCH_HEAD
10 Automatic merge went well; stopped before committing as requested
11 Already on 'master'
12 To ssh://git@localhost/brains.git
13  ! [rejected]        master -> master (fetch first)
14 error: failed to push some refs to 'ssh://git@localhost/brains.git'
15 hint: Updates were rejected because the remote contains work that you do
16 hint: not have locally. This is usually caused by another repository pushing
17 hint: to the same ref. You may want to first integrate the remote changes
18 hint: (e.g., 'git pull ...') before pushing again.
19 hint: See the 'Note about fast-forwards' in 'git push --help' for details.
20 'git push origin master' failed:  at /usr/share/perl5/IkiWiki/Plugin/git.pm line 220.
21 From ssh://localhost/brains
22    927cc73..29c557b  master     -> origin/master
23 'git pull --prune origin' failed:  at /usr/share/perl5/IkiWiki/Plugin/git.pm line 220.
24 fatal: cannot do a partial commit during a merge.
25 error: Pull is not possible because you have unmerged files.
26 hint: Fix them up in the work tree, and then use 'git add/rm <file>'
27 hint: as appropriate to mark resolution and make a commit.
28 fatal: Exiting because of an unresolved conflict.
29 'git pull --prune origin' failed:  at /usr/share/perl5/IkiWiki/Plugin/git.pm line 220.
30 fatal: cannot do a partial commit during a merge.
31 error: Pull is not possible because you have unmerged files.
32 hint: Fix them up in the work tree, and then use 'git add/rm <file>'
33 hint: as appropriate to mark resolution and make a commit.
34 fatal: Exiting because of an unresolved conflict.
35 ...
36 ````
38 It looks like commits via the Web interface continued to appear to work mostly as normal, but weren't being commited in the public facing git repo that contains the `.ikiwiki/` directory. I did notice a page that I edited contained ">>>>>" text, but not "====.." or "<<<<.." text in the Web version, but not in my git checkout (from the master git repo). Also some people reported problems with the Web interface after the fact.
40 When I went in to fix the repo, I quickly removed those uncommitted changes, but that was clearly a mistake, because I lost the edits that had been created via the Web after a certain point in time.
42 We're using ikiwiki version 3.20160121 on Trisquel 8, which is based on Ubuntu 16.04.
44 If you have any thoughts about what caused this issue, I'd be happy to hear it. At this point, we've mostly moved on from the data loss.
46 Thanks! : )