Description

An ACX boots up into recovery mode or on a restore configuration after a power cycle.

 

The box will also have jdhcpd core dump files:

 

root@re0> show system core-dumps
re0:
--------------------------------------------------------------------------
-rw-r--r-- 1 root root   3777546 Oct 27 19:27 /var/core/re0/jdhcpd.re.re0.8122.2023_10_27.19_25_55.tar.gz
total files: 1


With the console reporting the following errors;

 

Oct 27 19:25:55 re0 run_mgd_init[7695]: Junos Dynamic Host Configuration Protocol process: jdhcpd: ../../../../../../src/junos/lib/libbbe-svcsgbl/bbe_smgd_env_support_linux.c:262: bbe_check_bbe_mode_cfg: Assertion `0' failed.
Oct 27 19:25:55 re0 run_mgd_init[7695]: Junos Dynamic Host Configuration Protocol process: jdhcpd: ../../../../../../src/junos/lib/libbbe-svcsgbl/bbe_smgd_env_support_linux.c:262: bbe_check_bbe_mode_cfg: Assertion `0' failed.
Oct 27 19:26:00 re0 mgd[7698]: UI_CHILD_SIGNALED: Child received signal: PID 8122, signal Aborted, core dumped, command='/usr/sbin/jdhcpd'
Oct 27 19:26:00 re0 run_mgd_init[7695]: mgd: error: Check-out pass for Junos Dynamic Host Configuration Protocol process (/usr/sbin/jdhcpd) dumped core (0x86)
Oct 27 19:26:00 re0 run_mgd_init[7695]: mgd: error: Check-out pass for Junos Dynamic Host Configuration Protocol process (/usr/sbin/jdhcpd) dumped core (0x86)
Oct 27 19:26:02 re0 run_mgd_init[7695]: mgd: error: configuration check-out failed
Oct 27 19:26:02 re0 run_mgd_init[7695]: mgd: error: configuration check-out failed
Oct 27 19:26:02 re0 run_mgd_init[7695]: Warning: Failed to commit active configuration.
Oct 27 19:26:02 re0 run_mgd_init[7695]: Warning: Trying to commit recovery mode configuration.
Oct 27 19:26:03 re0 run_mgd_init[7695]: mgd: error: Unable to find the rescue configuration file: /config/rescue.conf
Oct 27 19:26:03 re0 run_mgd_init[7695]: mgd: error: Unable to find the rescue configuration file: /config/rescue.conf
Oct 27 19:26:03 re0 run_mgd_init[7695]: Warning: Commit failed, activating partial configuration.
Oct 27 19:26:03 re0 run_mgd_init[7695]: Warning: Edit the router configuration to fix these errors.
Oct 27 19:26:03 re0 systemd[1]: mgd-init.service: Main process exited, code=exited, status=1/FAILURE
Oct 27 19:26:03 re0 systemd[1]: mgd-init.service: Failed with result 'exit-code'.
Oct 27 19:26:03 re0 systemd[1]: Failed to start MGD initialization of schema and database.
Oct 27 19:26:03 re0 systemd[1]: Starting Management daemon (mgd) on RE...
Oct 27 19:26:03 re0 is_mgd_active.sh[8828]: mgd -N status=activating. mgd still not ready. Please wait!

Symptoms

ACX boots up in recovery mode or running a restore configuration after a power cycle.

Solution

The issue is tied to the presence of DHCP configuration, or even traceoptions for dhcp-service:

 

  processes {
    dhcp-service {
      traceoptions {
        file dhcp_logfile size 10m;
        level all;
        flag packet;
      }
    }
  }

 

That cause the jdhcpd daeamon to run. Legacy DHCP will not have this problem. Issue is resolved in PR1771227:
 

https://prsearch.juniper.net/PR1771227

 

Modification History

2024-06-12 : Article Created