Junos
Junos

SRX240 Commit issue

[ Edited ]
‎02-15-2018 12:42 AM

Hey Junos

 

I have issue in my SRX240 where i can't commit any config and once i commit i get:

 

[edit]
root# commit
error: /config/juniper.conf+: write failed: Broken pipe
error: /config/juniper.conf+: was not properly closed: Broken pipe
error: commit failed: commit to file failed during export to /config/juniper.conf+
-------------------------------------------------

 

and these error were showing during the boot-up

 

 

Can't stat /dev/bo0s3e: No such file or directory
Can't stat /dev/bo0s3e: No such file or directory
mount: /dev/bo0s3e : No such file or directory
WARNING: Mount of /dev/bo0s3e on /config failed
WARNING: Formatting /dev/bo0s3e before attempting mount again
newfs: /dev/bo0s3e: could not find special device
mount: /dev/bo0s3e : No such file or directory
ERROR: Mount of /dev/bo0s3e on /config failed
Can't stat /dev/bo0s3f: No such file or directory
Can't stat /dev/bo0s3f: No such file or directory
mount: /dev/bo0s3f : No such file or directory
WARNING: Mount of /dev/bo0s3f on /cf/var failed
WARNING: Formatting /dev/bo0s3f before attempting mount again
newfs: /dev/bo0s3f: could not find special device
mount: /dev/bo0s3f : No such file or directory
ERROR: Mount of /dev/bo0s3f on /cf/var failed
Loading configuration ...
mgd: error: Cannot open configuration file: /config/juniper.conf
mgd: warning: activating factory configuration
cannot create /config/juniper.conf+.gz: Read-only file system
mgd: error: /config/juniper.conf+: write failed: Broken pipe
mgd: error: /config/juniper.conf+: was not properly closed: Broken pipe
mgd: error: commit failed: commit to file failed during export to /config/juniper.conf+
Warning: Commit failed, activating partial configuration.
Warning: Edit the router configuration to fix these errors.
usage: mv [-f | -i | -n] [-v] source target
       mv [-f | -i | -n] [-v] source ... directory

 

--------------------------------------------------------------

thanks in advance...

9 REPLIES 9
Junos

Re: SRX240 Commit issue

‎02-15-2018 03:13 AM

This feels like a disk problem.  Check these two kb that outline commands you can use to repair the internal drive.

 

https://kb.juniper.net/InfoCenter/index?page=content&id=KB29069

 

https://kb.juniper.net/InfoCenter/index?page=content&id=KB20570

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Junos

Re: SRX240 Commit issue

‎02-15-2018 05:49 AM

Hi,

 

Could you try rescue system configuration and check if that helps to recover?

https://www.juniper.net/documentation/en_US/junos/topics/task/operational/junos-software-rescue-conf...

 

 

/Karan Dhanak
# Please mark my solution as accepted if it helped, Kudos are appreciated as well.

Junos

Re: SRX240 Commit issue

‎02-15-2018 07:53 PM

Hi,

Can you please share the output of "commit | display detail" and also try following from shell to see if that helps?

 

start shell user root

%mgd -I       >>> Use capital letter I

 

Thanks

 

Hope this helps

--------------------------------------------------------------------------------------------------------
If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!
--------------------------------------------------------------------------------------------------------
Junos

Re: SRX240 Commit issue

‎02-17-2018 05:45 AM

Hey Spuluka thanks for your responce, but it didnt work 

 

root@% nand-mediack -C
Media check on da0
root@%

 

and showing nth

Junos

Re: SRX240 Commit issue

‎02-17-2018 05:46 AM

Dinit work :/

Junos

Re: SRX240 Commit issue

‎02-17-2018 05:48 AM

hey Sarathirao

 

[edit]
root# commit | display detail
2018-02-17 15:44:48 UTC: start loading commit script changes
2018-02-17 15:44:48 UTC: no commit script changes
2018-02-17 15:44:48 UTC: no transient commit script changes
2018-02-17 15:44:48 UTC: finished loading commit script changes
2018-02-17 15:44:48 UTC: copying juniper.db to juniper.data+
2018-02-17 15:44:49 UTC: finished copying juniper.db to juniper.data+
2018-02-17 15:44:49 UTC: exporting juniper.conf
error: /config/juniper.conf+: was not properly closed: Unknown error: 0
error: commit failed: commit to file failed during export to /config/juniper.conf+

[edit]
root#

 

--------------------

 

root@% mgd -I
mgd: error: Cannot open configuration file: /config/juniper.conf
mgd: warning: activating factory configuration
cannot create /config/juniper.conf+.gz: Read-only file system
mgd: error: /config/juniper.conf+: write failed: Broken pipe
mgd: error: /config/juniper.conf+: was not properly closed: Broken pipe
mgd: error: commit failed: commit to file failed during export to /config/juniper.conf+
root@%

 

 

------------------------------

 

any ideas ?

 

 

Junos
Solution
Accepted by topic author Ahmed Ash
‎05-05-2018 04:50 AM

Re: SRX240 Commit issue

‎02-17-2018 08:10 AM

The reason for the problem is the failure to mount the partitions bo0s3e and bo0s3f. The partition" bo0s3e " has the configuration and the partition bo0s3f  has IDP signatures.

 

ERROR: Mount of /dev/bo0s3f on /cf/var failed
ERROR: Mount of /dev/bo0s3e on /config failed

 

The solution is to re-image the box, this will format the CF and re-partition it. Re-imaging can be done by several methods including the snapshot method suggested  by the below KB link.

 

https://kb.juniper.net/InfoCenter/index?page=content&id=KB24684

 

If there are no identical working SRX240H boxes for the snapshot method , please use the below procedure to reimage the box via loader prompt.

 

https://www.juniper.net/documentation/en_US/junos12.1x47/topics/topic-map/security-software-installa... (Refer section: Installing Junos OS on SRX Series Devices From the Boot Loader Using an USB Storage Device).

Junos

Re: SRX240 Commit issue

‎02-20-2018 12:33 AM
thanks rnayar your method worked Kind regards
Junos

Re: SRX240 Commit issue

‎02-20-2018 04:38 AM

Glad to know that issue is resolved. Please help to close the thread.


Regards,

Rahul