Unsolvable UPLINK_MIC Error

I have installed a RAK7248 gateway server in a production environment and a second RAK7248 gateway server in a development environment, both running ChirpStack Gateway OS 4.8.1 using region ID us915_1. Both servers successfully run an identical application using Radio Bridge water sensors.

My problem is that when I attempt to install a Strega Smart Valve in the production RAK7248, I continuallly get the error “MIC of join-request is invalid, make sure keys are correct”, but when I install the same Strega Smart Valve in the development environment with the same DevEUI, JoinEUI, AppKey and Device Profile the device installation succeeds.

I tried deleting and re-installing both the application and the Strega Smart Valve in the production environment numerous times, but the UPLINK_MIC continues to occur. I also tried moving the Strega Smart Valve closer to the production RAK7248 during OTAA activation without success.

I am puzzled and discouraged that the production environment device installation continues to generate a MIC error while the development environment device installation succeeds.

Is there a way to verify that production and development servers are both generating the same MIC (Message Integrity Code)?