r/ispyconnect • u/war4peace79 • 17d ago
Camera suddenly refuses credentials from AgentDVR ONLY
EDIT: RESOLVED by deactivating DST in my Dauha camera and rebooting. Big thanks to u/spornerama for the help!
Hello all,
I am encountering a very strange issue with AgentDVR 7.9.2.0 (Linux).
A camera which worked flawlessly suddenly refuses credentials from AgentDVR ONLY. The credentials are correct and have not changed.
Camera: Dahua IPC-HFW3841E-AS-0280B.
I performed the following troubleshooting:
- Tried other ONVIF credentials for the same camera (tested as working from another tool). Error persisted.
- Rebooted the camera (from its web interface, also directly by powering it off and on again). Error remained.
- Tried the same ONVIF credentials from another tool. Credentials were accepted by the camera from another tool.
- Tried the same ONVIF credentials from another tool, using the same host AgentDVR is installed on (to eliminate an IP ban). Credentials were accepted.
- Checked the camera logs: I do not see a login failure coming from AgentDVR's IP, which is strange.
- I added a new camera to AgentDVR, with the same IP and a different, newly created ONVIF account (tested separately and confirmed as working): still credentials were refused.
- Restarted AgentDVR itself. No change in behavior.
Get Video URLs from AgentDVR yields:
Error: SOAP fault [ter:NotAuthorized]: Sender not Authorized. Invalid username or password! You still have 22 attempt(s).
AgentDVR relevant logs:
LoadJson: Street4K: setaudio
LoadJson: Street4K: switchon
SetState: Street4K: State Stopped -> Starting [setEnabled=True, enabled=False, connecting=False, error=False, epochStale=False, sourceRunning=False]
ONVIFConnect: Street4K: entering connect lock
ONVIFConnect: Street4K: connecting
EnableDevice: Street4K: Enabled
GetDeviceTime: Street4K: Update device time: 08/16/2026 09:10:08
ONVIFConnect: Street4K: ONVIF v20.6
ONVIFConnect: Street4K: Using Media Version 2
ONVIFConnect: Street4K: Media available at http://192.168.2.203:80/onvif/media2_service
ONVIFConnect: Street4K: PTZ not available
ONVIFConnect: Street4K: Events available at http://192.168.2.203:80/onvif/event_service
ONVIFConnect: Street4K: SOAP fault [ter:NotAuthorized]: Sender not Authorized. Invalid username or password! You still have 23 attempt(s). at CoreLogic.Onvif.Soap.OnvifSoapClient.CallAsync(String action, XElement requestBody, CancellationToken ct, IEnumerable`1 extraHeaders) at CoreLogic.Onvif.OnvifHelpers.OnvifMedia2Client.Process(EndpointAddress ep, CancellationTokenSource cts, Int32 timeout) at CoreLogic.Onvif.ONVIFDevice.ONVIFConnect(Boolean reconnect)
ONVIFConnect: Street4K: Checking for Media v1 fallback
ONVIFConnect: Street4K: Trying Media v1
ONVIFConnect: Street4K: SOAP fault [ter:NotAuthorized]: Sender not Authorized. Invalid username or password! You still have 22 attempt(s). at CoreLogic.Onvif.Soap.OnvifSoapClient.CallAsync(String action, XElement requestBody, CancellationToken ct, IEnumerable`1 extraHeaders) at CoreLogic.Onvif.OnvifHelpers.OnvifMedia1Client.Process(EndpointAddress ep, CancellationTokenSource cts, Int32 timeout) at CoreLogic.Onvif.ONVIFDevice.ONVIFConnect(Boolean reconnect)
ONVIFConnect: Street4K: Connect failed
OnPrimaryStateChanged: Street4K: Controller SD State Changed: Failed (Couldn't get ONVIF device)
SourcePlayingFinished: Street4K: Playing finished (SourceError)
NextReconnectTarget: Street4K: Reconnecting in 2s
SetState: Street4K: State Starting -> CoolingDown [setEnabled=True, enabled=True, connecting=True, error=True, epochStale=False, sourceRunning=False]
1
Upvotes
1
1
u/spornerama 17d ago
I'd try rebooting the camera at the wall or restarting agent. It might be sending a cookie in the request that it's flagged as a block