Bug Report Failed to connect error when start streaming

Matt Jackson

New Member
When I click "Start Streaming" in OBS Studio I will get a failed to connect error message saying I need to check the stream key. If I close the error message and click "Start Streaming" again sometimes I connect successfully, other times I will get the error message again. The error message can happen multiple times before the stream starts successfully when I click "Start Streaming".

I know the RTMP server (DaCast streaming service) login credentials are correct because the stream will eventually connect to the RTMP server after enough attempts.

You can see from this log https://gist.github.com/anonymous/8e5ff6a022f2c4fa603907d1b3577362 it took 8 failed attempts before I was able to connect on the 9th try. Note: none of the login credentials were changed between connection attempts.

And this log https://gist.github.com/anonymous/113715f14ac08ea1babfc49167859f0e shows it took 15 failed attempts before it connected on the 16th try. Note: again...none of the login credentials were changed between connection attempts.

The log says the error is caused by a wrong password. But, here's the kicker, the password is correct! If it was wrong, then I would never be able to connect and start streaming.

Interestingly, some of the failed attempts in the log say the reason is: cannot_load_password_file instead of wrong password. This sounds like a potential problem with OBS if it is unable to load a password file.

I contacted the DaCast streaming service support and they said there were no known issues with their servers rejecting OBS connections. They suggested there may be a bug with the OBS authentication timing when connecting to the RTMP server.

Is this a known issue?
 
Last edited:

R1CH

Forum Admin
Developer
RTMP authentication is not well tested since not many servers support it. The "cannot_load_password_file" message is coming from the RTMP server, so while it does sound like an issue with the server, I wouldn't rule out OBS simply because not many services use RTMP authentication.

If you're able to provide test credentials for this server I could take a look at it.
 
Top