zplug: zplug update: Unknown error if the repo is already updated

Problem Summary

Run zplug update. Then again. You’ll get Unknown errors instead of Up-to-date.

System Information

  • uname -a
Linux fsociety 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  • zsh version
zsh 5.1.1 (x86_64-ubuntu-linux-gnu)
  • zplug version/commit
2.4.1

Minimal zshrc

source ~/.zplug/init.zsh

zplug "modules/history",    from:prezto                                                                                                                                
zplug "modules/utility",    from:prezto                                                                                                                                
zplug "modules/ruby",       from:prezto                                                                                                                                
zplug "modules/ssh",        from:prezto                                                                                                                                
zplug "modules/terminal",   from:prezto                                                                                                                                
zplug "modules/directory",  from:prezto 

zplug "zsh-users/zsh-completions", defer:0
zplug "zsh-users/zsh-autosuggestions",          defer:2, on:"zsh-users/zsh-completions" 
zplug load --verbose

Steps to Reproduce

  1. Run zplug update. Then again. You’ll get Unknown errors instead of Up-to-date.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 9
  • Comments: 25 (8 by maintainers)

Most upvoted comments

I had the same problem. In my case, the unknown errors happened with both zplug update and zplug install. I have solved the problem by installing gawk.

I was having this problem just today and the solution from @youxkei to install gawk seems to have solved this for me

Installing gawk solves the problem though I do not know why :😂

Same error here. After zplug update, no index.lock file exists. But every plugin shows:

[zplug] Start to update 15 plugins in parallel

 ✘  Unknown error         lukechilds/zsh-nvm
 ✘  Unknown error         zsh-users/zsh-completions
 ✘  Unknown error         ~/.zsh
 ✘  Unknown error         junegunn/fzf-bin
 ✘  Unknown error         plugins/docker
 ✘  Unknown error         modules/ssh
 ✘  Unknown error         lukechilds/zsh-better-npm-completion
 ✘  Unknown error         bhilburn/powerlevel9k
 ✘  Unknown error         jimeh/zsh-peco-history
 ✘  Unknown error         zsh-users/zsh-syntax-highlighting
 ✘  Unknown error         b4b4r07/enhancd
 ✘  Unknown error         zplug/zplug
 ✘  Unknown error         peco/peco
 ✘  Unknown error         plugins/git
 ✘  Unknown error         jreese/zsh-titles

[zplug] Elapsed time: 11.6030 sec.
 ==> Updating finished successfully!

trace file shows plenty of:

{"pid":4457,"shlvl":1,"level":"ERROR","dir":"/home/<user>/.zplug/repos/b4b4r07/enhancd","message":"fatal: Unable to create '/home/<user>/.zplug/repos/b4b4r07/enhancd/.git/index.lock': File exists.\n\nAnother git process seems to be running in this repository, e.g.\nan editor opened by 'git commit'. Please make sure all processes\nare terminated then try again. If it still fails, a git process\nmay have crashed in this repository earlier:\nremove the file manually to continue.","trace":["__zplug::log::capture::error:8","__zplug::utils::git::checkout:45","__zplug::core::cache::plugins:10","__load__:52","__zplug::core::core::run_interfaces:14","zplug:12","/home/<user>/.zshrc:25","zsh:0"],"date":"2017-01-15T11:28:35+0100"}