Not logging this in the bugs section, but poking at the new webapp feature...

laplace:annex jtang$ git annex webapp -d
[2012-07-26 19:02:50 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","show-ref","git-annex"] 
[2012-07-26 19:02:50 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","show-ref","--hash","refs/heads/git-annex"] 
[2012-07-26 19:02:50 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..731005d121426a38b206c4544da02cdb3b974974","--oneline","-n1"] 
[2012-07-26 19:02:50 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..d36d8d88847decc2320f0be22892ad94a8abe594","--oneline","-n1"] 
[2012-07-26 19:02:50 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..57bcddc14d03b61028f7002e2dabcc5181d74f3d","--oneline","-n1"] 
[2012-07-26 19:02:50 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..372aceaf49b60ebe31cc3fe2e52ba4fbe99c134f","--oneline","-n1"] 
[2012-07-26 19:02:50 IST] chat: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","cat-file","--batch"] 
[2012-07-26 19:02:50 IST] read: git ["config","--null","--list"] 
[2012-07-26 19:02:50 IST] call: open ["file:///Users/jtang/annex/.git/annex/webapp.html"] 
The file /Users/jtang/annex/.git/annex/webapp.html does not exist.
git-annex: failed to start web browser on url file:///Users/jtang/annex/.git/annex/webapp.html

I would have expected the open command to open up http://localhost:port/ instead of a file on my machine. Anyway, its just an observation on the current state of the webapp feature, not expecting it to work enough for me to test it ;)

This could happen if you already had an old version of git-annex assistant running in that repository.

Try:

git annex assistant --stop ; git annex webapp

Comment by http://joeyh.name/ Thu Jul 26 18:17:40 2012

The last few commits fixed the webapp startup quirk, it doesn't work yet for me as the watch command is probably failing

laplace:annex jtang$ git annex webapp  -d
[2012-07-26 21:41:15 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","show-ref","git-annex"] 
[2012-07-26 21:41:15 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","show-ref","--hash","refs/heads/git-annex"] 
[2012-07-26 21:41:15 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..731005d121426a38b206c4544da02cdb3b974974","--oneline","-n1"] 
[2012-07-26 21:41:15 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..d36d8d88847decc2320f0be22892ad94a8abe594","--oneline","-n1"] 
[2012-07-26 21:41:15 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..57bcddc14d03b61028f7002e2dabcc5181d74f3d","--oneline","-n1"] 
[2012-07-26 21:41:15 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..372aceaf49b60ebe31cc3fe2e52ba4fbe99c134f","--oneline","-n1"] 
[2012-07-26 21:41:15 IST] chat: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","cat-file","--batch"] 
[2012-07-26 21:41:15 IST] read: git ["config","--null","--list"] 
git-annex: failed to start git-annex assistant

it doesn't segfault or anything, it just states that the assistant command failed to start :P

Comment by jtang Thu Jul 26 20:42:37 2012

I've been improving this code path, so make sure you're current. I just made it wait for longer than the 10 seconds it was waiting before giving up.

If it still fails, try running git-annex assistant --debug --foreground in one terminal, wait for it to start up, and then run git annex webapp in another. If that still fails, check if .git/annex/webapp.html exists.

Comment by http://joeyh.name/ Thu Jul 26 22:07:25 2012
Oh, wait, you're right, if the assistant process that watch forks off is segfaulting, that error message is about the best we can hope for. You can try the manual startup of the assistant to confirm it's crashing..
Comment by http://joeyh.name/ Thu Jul 26 22:08:53 2012
I can confirm that the watch command is crashing when i start it up manually.
FYI, the webapp starts up and sends me to a web browser with the correct page ;) this is after the other issue of Watch command as of commit 6cecc26206c4a539999b04664136c6f785211a41 segfaults got fixed.
Comment by jtang Fri Jul 27 18:21:17 2012
Comments on this page are closed.