Another active Homebrew process is already in progress

brew cleanup
uninstall homebrew
brew update
updating homebrew stuck
homebrew usr/local
brew install from source
homebrew options
how to stop brew install

When I try to do this:

brew install node

I get this message:

 /usr/local/Homebrew/Library/Homebrew/utils/lock.sh: line 19: /usr/local/var/homebrew/locks/update: Permission denied
-e:1:in `initialize': Bad file descriptor (Errno::EBADF)
    from -e:1:in `new'
    from -e:1:in `<main>'
Error: Another active Homebrew process is already in progress.
Please wait for it to finish or terminate it to continue.
Error: Permission denied - /usr/local/var/homebrew/locks/node.brewing

Any idea on how to solve this?

If the above answer does not resolve your problem try removing the homebrew process locks with this command:

rm -rf /usr/local/var/homebrew/locks

Terminating active homebrew process · Issue #5159 · Homebrew , Error: Another active Homebrew process is already in progress. Please wait for it to finish or terminate it to continue. Warning: gnupg2-2.0.30_2  Brew says there is "Another active Homebrew process" but there isn't, according to ps. brew update Checking out v1.0.4 in /usr/local/Homebrew # .. success .. # .. no warnings about failing to, e.g. delete a lock file .. brew update Error: Another active Homebrew process is already in progress.

As this thread suggests at some point, my problem was to run brew command with sudo privileges for the first time. This causes brew to try to access privileged files and folders and it fails. If that's the case for you, run these commands and try installing node again.

sudo chown -R "$USER":admin /usr/local

brew cleanup

Another active Homebrew process is already using openblas. · Issue , I get: Error: Operation already in progress for openblas Another active Homebrew process is already using openblas. Please wait for it to finish or terminate it to  Error: Operation already in progress for openblas Another active Homebrew process is already using openblas. Please wait for it to finish or terminate it to continue. But there is no active homebrew process. OSX 10.8.2, Ruby 1.8.7.

just close the terminal and reopen another

Hombrew active process, Error: Another active Homebrew update process is already in progress. Please wait for it to finish or terminate it to continue. I keep running into  Error: Operation already in progress for protobuf Another active Homebrew process is already using protobuf. Please wait for it to finish or terminate it to continue. That you are running Homebrew in parallel and it is having resource contention.

In my case on OSX, I interrupted node install and then I try to start install node again so I got the error mentioned in the question. I tried below steps from other responses:

sudo chown -R "$USER":admin /usr/local

brew cleanup

and

rm -rf /usr/local/var/homebrew/locks

but this message appear again - so don't know if above steps helped.

Then I closed the terminal tab and in new one ran

brew install -v node

It took 11 minutes to finish successfully node installation

Another active Homebrew process is already in progress, Another active Homebrew process is already in progress - homebrew. Error: Permission denied - /usr/local/var/homebrew/locks/node.brewing Any idea on  This is a long time in brewland! To update Homebrew, run `brew update`. -e:1:in `initialize': Bad file descriptor (Errno::EBADF) from -e:1:in `new' from -e:1:in `<main>' Error: Another active Homebrew process is already in progress. Please wait for it to finish or terminate it to continue.

Simply type the following into your terminal:

brew cleanup

This should clean up any issues. Follow the command with:

brew doctor

All done.

Solution: Another active Homebrew update process is already in , Bad file descriptor (Errno::EBADF) from -e:1:in `new' from -e:1:in `<main>' Error: Another active Homebrew process is already in progress. executing command [brew install gazebo] ==> Installing gazebo from osrf/homebrew-simulation Error: Operation already in progress for protobuf Another active Homebrew process is already using protobuf. Please wait for it to finish or terminate it to continue. ERROR:

Another active Homebrew process is already in progress, Solution: Another active Homebrew update process is already in progress., Programmer Sought, the best programmer technical posts sharing site.

Comments
  • why not stay safer with for file in ls *lock; do mv $file $file.old; done?
  • Changing permissions for /usr/local/Homebrew and /usr/local/var/homebrew is exactly what helped me