Junos
Highlighted
Junos

error: could not get initial lock on database: Resource temporarily unavailable

‎10-09-2019 07:32 AM

Hi,


Has anyone seen this error? How can we recover from this state?


{master}[edit]
admin@core1-re0# commit and-quit
re0:
re1:
error: could not get initial lock on database: Resource temporarily unavailable
error: Database lock failed for file '/var/run/db/juniper.db': Resource temporarily unavailable
error: Could not initialize database
Database was created by software version: MGD release 18.3R1-S2.1 built by builder on 2019-01-25 15:50:16 UTCCurrent software version: MGD release 18.3R1-S2.1 built by builder on 2019-01-25 15:50:16 UTC
The database can be re-created with the current software version andreloaded with the currently committed configuration (using rollback).

^C[abort]

{master}[edit]
admin@core1-re0#


Thank you

1 REPLY 1
Highlighted
Junos

Re: error: could not get initial lock on database: Resource temporarily unavailable

‎10-09-2019 11:23 AM

Hi Parau,

 

This errors seems to be because of some commit which did not go through on RE 1 but was successful on RE0 causing a lock on the RE0 database. You can verify this by comparing the "show system commit". Can also a problem with some MGD process causing a database corruption.

 

To fix this, reinitialize the database on RE1 by running the command "mgd -I" from RE1 shell.

 

Thanks,
Pradeep
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!

Feedback