The article below describes the events that transition a port into error-disabled state and the recovery options. Please see JUNOS EX Switch Guide for extensive details if required.
[edit ethernet-switching-options] Port-error-disable { Disable-timeout <10…3600> }