1 I am following the laptop wiki with git tip page. I have set up my local and remote wiki as suggested. However, when I try to push my local changes back to the server I get the following error:
3 Writing objects: 100% (4/4), 359 bytes, done.
4 Total 4 (delta 2), reused 0 (delta 0)
5 cannot write to /home/ian/ianbarton/.ikiwiki/commitlock: No such file or directory
6 To ian@wilkesley.org:~/ikiwiki/ianbarton.git
7 5cf9054..16a871d master -> master
9 The relevnt bit of my setup file is:
11 git_wrapper => '/home/ian/ianbarton.git/hooks/post-commit',
13 Now ~/ianbarton/.ikiwiki exists and is owned and writable by me. I have tried touching commitlock and also removing lock and commitlock before pushing. Any suggestions for further trouble shooting?
17 > I'm guessing that this is some kind of permissions problem,
18 > and that the error message is just being misleading.
20 > When you push the changes to the server, what user is
21 > git logging into the server as? If that user is different
22 > than `ian` (possibly due to using git-daemon?), the post-commit
23 > wrapper needs to be setuid to `ian`. This ensures that ikiwiki
24 > runs as you and can see and write to the files. --[[Joey]]
26 The user is logging as ian, the same user as the laptop. I can push and pull git repos on the same server owned by the same user via ssh with no problem. I have deleted and re-started from scratch several times. However, for my use case I think it's simpler to keep the repo on my local computer and just rsync the web pages to the server.
30 Ian, you've copied over the repo created by ikiwiki --setup, which contains hook/post-update - just remove that file which is not required anymore on the git server side.