Hipchat Server upgrade hit into lock errors

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

 

 

問題

When executing Hipchat Server upgrade through the server's terminal/command-line, it hit into the following errors:

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
Updating system configuration, this may take a few minutes...
There was an unexpected error: Command '['sudo', '/opt/atlassian/hipchat/sbin/cs']' returned non-zero exit status 1


原因

Another upgrade process is already running or stuck in the background so new attempt to run an upgrade command would generate the lock errors.

ソリューション

  1. Run the following commands to remove the locks:

    sudo dont-blame-hipchat
    ls -ahl /var/lib/apt/lists/
    rm /var/lib/apt/lists/lock
    ls -ahl /var/lib/dpkg/
    rm /var/lib/dpkg/lock
    dpkg --configure -a
    
  2. Re-attempt the upgrade:

    hipchat upgrade --force-upgrade
    



 

最終更新日: 2018 年 1 月 19 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.