Go-ipfs: panic: qtls.ClientSessionState not compatible with tls.ClientSessionState

Created on 14 Aug 2020  路  10Comments  路  Source: ipfs/go-ipfs

Version information:

panic: qtls.ClientSessionState not compatible with tls.ClientSessionState

goroutine 1 [running]:
github.com/lucas-clemente/quic-go/internal/handshake.init.2()
        C:/Users/natob/Go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/handshake/unsafe.go:26 +0x20e
OS: Windows 10 Pro x86_64
Host: System manufacturer
Kernel: 10.0.19041
Uptime: 20 hours, 48 mins
Shell: bash 4.4.23
Resolution: 1920x1080
DE: Aero
WM: Explorer
WM Theme: Custom
Terminal: Windows Terminal
CPU: Intel i5-3570K (4) @ 3.470GHz
Memory: 10395MiB / 24519MiB
go version go1.15 windows/amd64

Description:

I tried to compile the master branch, but the output can't run.

panic: qtls.ClientSessionState not compatible with tls.ClientSessionState

goroutine 1 [running]:
github.com/lucas-clemente/quic-go/internal/handshake.init.2()
        C:/Users/natob/Go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/handshake/unsafe.go:26 +0x20e
kinbug neetriage

Most helpful comment

This issue is related to quic-go and Go 1.15. https://github.com/lucas-clemente/quic-go/issues/2614

@marten-seemann ^^

All 10 comments

FWIW, I got the same error. I am on Ubuntu 16.04. I just upgraded to go1.15. I pulled the latest go-ipfs , did make clean and make install .

Ubuntu 18.04 and go1.15, the same error.

Can you see if downgrading to the previous go version gets around this issue? If you're on Ubuntu you can run:

sudo snap remove go # assuming you installed Go using Snap in the first place.
sudo snap install go --channel=1.14/stable --classic

That works for me on Ubuntu 16.04. I removed the Go installation and installed go1.14.7 . Then I did make clean and make install. Now I can run ipfs daemon .

This issue is related to quic-go and Go 1.15. https://github.com/lucas-clemente/quic-go/issues/2614

@marten-seemann ^^

Wait, I didn't even know it was a thing to support more than one Go version. Why even bother?

https://github.com/libp2p/go-libp2p-quic-transport/pull/171 is merged!

On master, this works.

go get -u github.com/libp2p/go-libp2p-quic-transport
go install ./cmd/ipfs
ipfs version --all
go-ipfs version: 0.7.0-dev
Repo version: 10
System version: amd64/windows
Golang version: go1.15

Yep, merged and released. The update will be in 0.7.0

It works!

go-ipfs version: 0.8.0-dev-c5825c29a
Repo version: 10
System version: arm64/linux
Golang version: go1.15
Was this page helpful?
0 / 5 - 0 ratings

Related issues

slrslr picture slrslr  路  3Comments

whyrusleeping picture whyrusleeping  路  4Comments

daviddias picture daviddias  路  3Comments

lidel picture lidel  路  3Comments

zignig picture zignig  路  3Comments