Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
Error: An error occurred: Other restart currently in progress. Aborting. 

or

The site is currently locked by another activation process. Please try again later.

Status
colourGreen
titleLAST TESTED ON CHECKMK 2.2.0P1


Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

Problem

If you face this problem You may face ones of these problems while activating changes:

Image Added
 

Code Block
languagebash
themeRDark
Error running automation call restart (exit code 1). error: An error occurred: Other restart currently in progress. Aborting.

or

The site is currently locked by another activation process. Please try again later.



Solution A (recommended)


  1. Check the entries within the site's web.log,

...

  1. you may see entries like below:

    Code Block
    languagebash
    themeRDark
    title~/var/log/web.log
    022-02-23 15:13:35,705 [30] [cmk.web.automations 7098] 'check_mk --automation restart' returned 'An error occurred: Other restart currently in progress. Aborting.
    2022-02-23 15:13:35,705 [40] [cmk.web.automations 7098] Error running 'check_mk --automation restart' (exit code 1)
    2022-02-23 15:13:35,706 [40] [cmk.web.site[<sitename>] 7098] error activating changes
    
    Traceback (most recent call last):
    File "/omd/sites/mysite/lib/python3/cmk/gui/watolib/activate_changes.py", line 1388, in _do_run
    configuration_warnings = self._do_activate()
    File "/omd/sites/mysite/lib/python3/cmk/gui/watolib/activate_changes.py", line 1651, in _do_activate
    configuration_warnings = self._call_activate_changes_automation()
    File "/omd/sites/mysite/lib/python3/cmk/gui/watolib/activate_changes.py", line 1661, in _call_activate_changes_automation
    return execute_activate_changes(domains)
    File "/omd/sites/mysite/lib/python3/cmk/gui/watolib/activate_changes.py", line 1792, in execute_activate_changes
    warnings = domain_class().activate()
    File "/omd/sites/mysite/lib/python3/cmk/gui/watolib/config_domains.py", line 60, in activate
    return check_mk_local_automation(config.wato_activation_method)
    File "/omd/sites/mysite/lib/python3/cmk/gui/watolib/automations.py", line 143, in check_mk_local_automation
    raise _local_automation_failure(command=command,
    cmk.utils.exceptions.MKGeneralException: Error running automation call <tt>restart</tt> (exit code 1), error: <pre>An error occurred: Other restart currently in progress. Aborting.

...


  1. Stop the site
  2. Most likely, there are lingering files within the site's ~/tmp/check_mk/wato/activation/ directory. 

  3. A restart of the operating system will clear out these files and should allow you to activate changes again.


Solution B

If for whatever reason you do not want to restart the server, you can delete the files manually.


  1. Login as your site user

    Reload the config
    Code Block
    languagebash
    themeRDark
  2. OMD[mysite]:~$ omd stop

    .

  3. root@linux:~# su - mysite


    .

  4. Check to see if you have old directories within ~/tmp/check_mk/wato/activation/

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ cd tmp/check_mk/wato/activation/
    OMD[mysite]:~$ cmk -O

    .

    Start the site again

     ll
    total 0
    
    drwxrwx--- 3 mysite mysite 100 Jan 4 11:12 6ecd4860-611e-4a4c-912f-74a6f1123e99/
    drwxrwx--- 3 mysite mysite 100 Jan 4 11:12 bec06bbc-1d35-4668-a421-151828b8500d/
    drwxrwx--- 3 mysite mysite 920 Jan 3 18:34 e55a7651-40ce-40da-b11f-880d0778481f/

    It looks like there is one old directory that couldn't be deleted. The files here should be deleted after one minute.



  5. Remove the lingering directory and activate the changes again:

    Code Block
    languagebash
    themeRDark
    drwxrwx--- 3 mysite mysite 920 Jan 3 18:34 e55a7651-40ce-40da-b11f-880d0778481f/


    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ omd startrm -R e55a7651-40ce-40da-b11f-880d0778481f/



Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "troubleshooting" , "activate_changes" ) and type = "page" and space = "KB"
labelstroubleshooting activate_changes

...