Please describe the problem.
After an update the webapp won´t start. git-annex itself works just fine :) It doesn´t even try to open the browser. It seems like the command isn't recognised. (Invalid argument `webapp')
What steps will reproduce the problem?
git annex webapp
What version of git-annex are you using? On what operating system?
I just updated to version 10.20220822 via homebrew on MacOS 12.5.1 (Monterey)
Please provide any additional information below.
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
(scanning...) remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
ControlSocket .git/annex/ssh/git@gitlab.com already exists, disabling multiplexing
To ssh://git-annex-Backupserver.fritz.box-Florian_22_.2Fsrv.2Fmergerfs.2FPOOL01.2FBackupFlosSoundPodcast.2F/srv/mergerfs/POOL01/BackupFlosSoundPodcast/
d865495..82b25c1 git-annex -> synced/git-annex
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
To gitlab.com:gitannex1/FlosSoundPodcast.git
d865495..82b25c1 git-annex -> synced/git-annex
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
(started...)
(recording state in git...)
git-annex filter-process: git-annex: command not found
fatal: the remote end hung up unexpectedly
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
ControlSocket .git/annex/ssh/24d7fc76050b5b840322d70167a1797d already exists, disabling multiplexing
ControlSocket .git/annex/ssh/24d7fc76050b5b840322d70167a1797d already exists, disabling multiplexing
fatal: Unable to create '/Users/Florian/FlosSoundPodcast/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
user error (xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--force","--"] exited 1)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
To ssh://git-annex-Backupserver.fritz.box-Florian_22_.2Fsrv.2Fmergerfs.2FPOOL01.2FBackupFlosSoundPodcast.2F/srv/mergerfs/POOL01/BackupFlosSoundPodcast/
82b25c1..21d448b git-annex -> synced/git-annex
0856a3e..961a904 master -> synced/master
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
remote:
remote: To create a merge request for synced/master, visit:
remote: https://gitlab.com/gitannex1/FlosSoundPodcast/-/merge_requests/new?merge_request%5Bsource_branch%5D=synced%2Fmaster
remote:
To gitlab.com:gitannex1/FlosSoundPodcast.git
82b25c1..21d448b git-annex -> synced/git-annex
0856a3e..961a904 master -> synced/master
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
fatal: Unable to create '.git/index.lock': .git/index.lock: openFd: already exists (File exists)
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
Committer crashed: .git/index.lock: openFd: already exists (File exists)
(recording state in git...)
(recovering from race...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
(recording state in git...)
remote: error: cannot lock ref 'refs/heads/synced/git-annex': Unable to create '/home/florian/FlosSoundPodcast/.git/./refs/heads/synced/git-annex.lock': File exists.
remote:
remote: Another git process seems to be running in this repository, e.g.
remote: an editor opened by 'git commit'. Please make sure all processes
remote: are terminated then try again. If it still fails, a git process
remote: may have crashed in this repository earlier:
remote: remove the file manually to continue.
(recording state in git...)
To ssh://git-annex-SonyVaioLaptop.local-florian_22_FlosSoundPodcast/~/FlosSoundPodcast/
! [remote rejected] git-annex -> synced/git-annex (failed to update ref)
error: failed to push some refs to 'ssh://git-annex-SonyVaioLaptop.local-florian_22_FlosSoundPodcast/~/FlosSoundPodcast/'
(recording state in git...)
(recovering from race...)
To ssh://git-annex-SonyVaioLaptop.local-florian_22_FlosSoundPodcast/~/FlosSoundPodcast/
045d2fb..21d448b git-annex -> synced/git-annex
0856a3e..961a904 master -> synced/master
To ssh://git-annex-SonyVaioLaptop.local-florian_22_FlosSoundPodcast/~/FlosSoundPodcast/
21d448b..9aec50f git-annex -> synced/git-annex
Everything up-to-date
To ssh://git-annex-Backupserver.fritz.box-Florian_22_.2Fsrv.2Fmergerfs.2FPOOL01.2FBackupFlosSoundPodcast.2F/srv/mergerfs/POOL01/BackupFlosSoundPodcast/
21d448b..9aec50f git-annex -> synced/git-annex
To gitlab.com:gitannex1/FlosSoundPodcast.git
21d448b..9aec50f git-annex -> synced/git-annex
To ssh://git-annex-Backupserver.fritz.box-Florian_22_.2Fsrv.2Fmergerfs.2FPOOL01.2FBackupFlosSoundPodcast.2F/srv/mergerfs/POOL01/BackupFlosSoundPodcast/
961a904..f1e3307 master -> synced/master
To ssh://git-annex-SonyVaioLaptop.local-florian_22_FlosSoundPodcast/~/FlosSoundPodcast/
961a904..f1e3307 master -> synced/master
remote: error: cannot lock ref 'refs/heads/synced/master': is at f1e33074064f9c0055c9e1d7e629745136907957 but expected 961a904a20dbc6b246539f295129b1f5cc56cf08
To gitlab.com:gitannex1/FlosSoundPodcast.git
! [remote rejected] master -> synced/master (failed to update ref)
error: failed to push some refs to 'gitlab.com:gitannex1/FlosSoundPodcast.git'
Everything up-to-date
Everything up-to-date
Everything up-to-date
Everything up-to-date
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
To ssh://git-annex-SonyVaioLaptop.local-florian_22_FlosSoundPodcast/~/FlosSoundPodcast/
9aec50f..04bec1d git-annex -> synced/git-annex
To ssh://git-annex-Backupserver.fritz.box-Florian_22_.2Fsrv.2Fmergerfs.2FPOOL01.2FBackupFlosSoundPodcast.2F/srv/mergerfs/POOL01/BackupFlosSoundPodcast/
9aec50f..04bec1d git-annex -> synced/git-annex
To gitlab.com:gitannex1/FlosSoundPodcast.git
9aec50f..04bec1d git-annex -> synced/git-annex
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
Everything up-to-date
Everything up-to-date
Everything up-to-date
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
From ssh://git-annex-SonyVaioLaptop.local-florian_22_FlosSoundPodcast/~/FlosSoundPodcast
04bec1d..bdfba09 git-annex -> SonyVaioLaptop/git-annex
0856a3e..f1e3307 master -> SonyVaioLaptop/master
From ssh://git-annex-SonyVaioLaptop.local-florian_22_FlosSoundPodcast/~/FlosSoundPodcast
bdfba09..45d1d71 git-annex -> SonyVaioLaptop/git-annex
(merging SonyVaioLaptop/git-annex into git-annex...)
Everything up-to-date
To ssh://git-annex-SonyVaioLaptop.local-florian_22_FlosSoundPodcast/~/FlosSoundPodcast/
04bec1d..45d1d71 git-annex -> synced/git-annex
Everything up-to-date
Everything up-to-date
Everything up-to-date
Everything up-to-date
Everything up-to-date
Everything up-to-date
Everything up-to-date
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
Everything up-to-date
Everything up-to-date
Everything up-to-date
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
Everything up-to-date
Everything up-to-date
Everything up-to-date
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
Everything up-to-date
Everything up-to-date
Everything up-to-date
remote:
remote: ========================================================================
remote:
remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote:
remote: ========================================================================
remote:
(recording state in git...)
git-annex-shell: <stdin>: hGetChar: end of file
git-annex-shell: <stdin>: hGetChar: end of file
# End of transcript or log.
Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
I had tons of luck using git-annex. I am a non-programmer person and I could easily get the hang of it. At the moment I am using it for my podcast production. I can cut and export now from every available computer in my home. I have a central server on my LAN and git-annex also helps me to back up every episode. My next goal is to use it for my personal documents like scans of invoices, letter and so on. I think an archive repo will help me with this. So I can have all the stuff in one big folder. Thanks for inventing such a nice tool
First of all, look for and stop background git processes that are holding
/Users/Florian/FlosSoundPodcast/.git/index.lock
. Easiest way would be a restart. If the file persists a reboot, remove it.Next you should set
remote.<name>.annex-ignore
on the gitlab remote because gitlab does not support git-annex.What do the logs say after you've done that?
Hey, thanks a lot. I set: git config remote.origin.annex-ignore true
And I deleted the lock file. It was still there after rebooting.
What do you think is preventing git-annex from recognizing the webapp command?
Here is my log: recording state in git...) (scanning...) remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: ControlSocket .git/annex/ssh/git@gitlab.com already exists, disabling multiplexing remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: (started...) To gitlab.com:gitannex1/FlosSoundPodcast.git 217cb33..aa2388c git-annex -> synced/git-annex (recording state in git...) git-annex filter-process: git-annex: command not found fatal: the remote end hung up unexpectedly To ssh://git-annex-Backupserver.fritz.box-Florian_22_.2Fsrv.2Fmergerfs.2FPOOL01.2FBackupFlosSoundPodcast.2F/srv/mergerfs/POOL01/BackupFlosSoundPodcast/ 217cb33..aa2388c git-annex -> synced/git-annex remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: remote: remote: ======================================================================== remote: remote: ERROR: Unknown command: git-annex-shell 'notifychanges' '/~/gitannex1/FlosSoundPodcast.git'
remote: remote: ======================================================================== remote: git-annex filter-process: git-annex: command not found fatal: the remote end hung up unexpectedly
user error (xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--force","--"] exited 1) git-annex filter-process: git-annex: command not found fatal: the remote end hung up unexpectedly
user error (xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--force","--"] exited 1) git-annex filter-process: git-annex: command not found fatal: the remote end hung up unexpectedly
user error (xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--force","--"] exited 1) git-annex filter-process: git-annex: command not found fatal: the remote end hung up unexpectedly
user error (xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--force","--"] exited 1) git-annex filter-process: git-annex: command not found fatal: the remote end hung up unexpectedly
user error (xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--force","--"] exited 1) git-annex filter-process: git-annex: command not found fatal: the remote end hung up unexpectedly
user error (xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--force","--"] exited 1)Der
There are still errors but those shouldn't prevent git-annex from working.
Could you run
git annex sync
manually?Is the name of the gitlab remote really
origin
? Because it still seems to be trying to sync with it. Could you rungit remote -v
?git-annex can be built without support for
git-annex webapp
, and it seems that your updated build ended up with that turned off.It would be good to contact the homebrew developers and file a bug report about this. From what I can see, their formula for git-annex does not explicitly disable the webapp, but some problem may have caused it to get disabled.
I suspect what caused this is a problem with a new version of cabal. When I build git-annex (on linux) with cabal 3.4.1.0 and ghc 9.0.2, it builds without the webapp. This is even though the webapp is supposed to be build by default. Even
cabal configure -fWebapp
does not cause it to build the webapp. Made a bug for that at cabal builds without assistant.I've committed a workaround to that cabal problem, so assuming that was the cause of your problem, it will be fixed by the next git-annex release.
If something else caused it, the next git-annex release would probably fail to build on homebrew. Which the homebrew developers will follow up on.
So, I don't think this bug needs to be kept open any longer. Although you will need to wait, or install git-annex by another means than homebrew, in the meantime..