Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message about lock when updating #631

Open
JVAQUEROM opened this issue Oct 23, 2024 · 3 comments
Open

Message about lock when updating #631

JVAQUEROM opened this issue Oct 23, 2024 · 3 comments

Comments

@JVAQUEROM
Copy link

When I get prompted if I want to look for updates in OMB, I hit Y and it seems to update (I get the insertions and deletions messages and so on) and then I get this:

Hooray! Oh My Bash has been updated and/or is at the current version.
To keep up on the latest news and updates, follow us on GitHub: https://github.com/ohmybash/oh-my-bash
oh-my-bash/check_for_updgrade: Failed to get a lock.  Please make sure that no
other process is trying to update Oh My Bash and remove
"/home/USER/.oh-my-bash/log/update.lock"

Then I check if update.lock exists but it does not. Only thing in the log folder is a .gitkeep file which is empty.

@jkemp814
Copy link

jkemp814 commented Nov 4, 2024

I'm getting the same output on multiple machines also.

When I manually run upgrade_oh_my_bash I do not get that output.
Screenshot From 2024-11-03 20-19-50

@lucafulgenzi
Copy link

lucafulgenzi commented Nov 5, 2024

I had the same problem. I solved it this way:

  1. cat /home/${USER}/.oh-my-bash/log/update.lock
  2. If file exist remove it and retry upgrade_oh_my_bash
  3. If file not exist create with touch /home/${USER}/.oh-my-bash/log/update.lock and then remove it with rm /home/${USER}/.oh-my-bash/log/update.lock , after this retry upgrade_oh_my_bash

These steps worked for me

image

@EsDmitrii
Copy link

I had the same problem. I solved it this way:

  1. cat /home/${USER}/.oh-my-bash/log/update.lock
  2. If file exist remove it and retry upgrade_oh_my_bash
  3. If file not exist create with touch /home/${USER}/.oh-my-bash/log/update.lock and then remove it with rm /home/${USER}/.oh-my-bash/log/update.lock , after this retry upgrade_oh_my_bash

These steps worked for me

image

it worked for me on macos
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants