This article shows the reason why the mgd fails to load the configuration file and how to resolve it.
@ 1718348391 [2024-06-14 06:59:51 UTC] mgd start Creating initial configuration: ... mgd: error: Cannot open configuration file: /config/juniper.conf <<------- mgd: warning: activating factory configuration [1] 13349 mgd: commit complete @ 1718348404 [2024-06-14 07:00:04 UTC] mgd done /var/pdb/profile_db initialized Profile database initialized lag enhanced disabled 0 No core dumps found. Prefetching /usr/sbin/rpd ... Prefetching /usr/libexec64/rpd ... Prefetching /usr/sbin/lacpd ... Prefetching /usr/sbin/chassisd ... Starting jlaunchhelperd. Invoking jdid_diag_mode_setup.sh on junos Starting cron. Fri Jun 14 07:00:06 UTC 2024 FreeBSD/amd64 (Amnesiac) (ttyu0) <<<<<------------------
Failed to open the configuration file