Skip to content

gnutls_handshake() failed: An unexpected TLS packet was received => replacing gnutls by openssl in libcurl4 ? #866

@Guepi

Description

@Guepi

Hi there.

On a fresh raspian install, I've installed bfgminer using the repository from raspian.
=> unsuccessful (it was a question of "Protocol "stratum+tcp" not supported or disabled in libcurl" I thought).

So I've uninstalled the package and start to clone and configure the application.

@luke-jr : there is an issue you could validate with the git URLs to be replaced from git:// to https://

after having made the app, I've tried it in benchmark mode : OK

And after trying to connect to my old pool (still up and with no issue on it) I got always the same error.

[2025-12-31 20:15:04] Testing pool stratum+tcp://stratum.braiins.com:3333
[2025-12-31 20:15:04] HTTP request failed: Protocol "stratum+tcp" not supported or disabled in libcurl
[2025-12-31 20:15:04] Failed to connect in json_rpc_call
[2025-12-31 20:15:04] initiate_stratum with sockbuf=(nil)
[2025-12-31 20:15:06] Stratum connect failed with TLS to pool 0: gnutls_handshake() failed: An unexpected TLS packet was received.
[2025-12-31 20:15:06] Pool 0 stratum session id: 1
[2025-12-31 20:15:06] Generated target 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
[2025-12-31 20:15:06] Socket closed waiting in recv_line
[2025-12-31 20:15:06] Closing socket for stratum pool 0
[2025-12-31 20:15:06] Failed to parse a \n terminated string in recv_line
[2025-12-31 20:15:06] No servers were found that could be used to get work from.
[2025-12-31 20:15:06] Please check the details from the list below of the servers you have input
[2025-12-31 20:15:06] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers

The first error "Protocol "stratum+tcp" not supported or disabled in libcurl" seems legit, as far I've read here (I think I've read that is was expected).

The second one looks strange : "gnutls_handshake() failed: An unexpected TLS packet was received."
On the first answer of that AskUbuntu it written that gnutls is the problem, and that openssl works fine.

So I'm gonna try to rebuild the app with libcurl4-openssl-dev instead of libcurl4-gnutls-dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions