Dfu refused connection

Hi, I’m trying to use golioth for dfu ota. The board I use is nrf9160dk and ncs is 2.2.0, I had some problem with connecting lte but now it works, there’s only two things mcuboot image is not confirmed, it says magic=unset for primary and secondary image. The other things is that golioth return:
golioth_system: failed to connect: -111
and I don’t know why and where it comes from. I found errno.h that have -ECONNREFUSED but is the only file where i found it.
I use psk authentication, I have to use the other method too. Why my connection is refused the address is coap.golioth.io and default port.
I need help asap.

Hi Serjo,

Sorry to hear you’re having issues. Hopefully we can help get you unstuck. It sound like it may be more than one issue. Let’s start with some basic information:

What version of the Golioth SDK are you using? (You can run git rev-parse HEAD in the modules/lib/golioth directory to find this info.)

Are you using the samples/dfu application or trying to add OTA to an existing project?

The version is 2f301e6784cfd75daede917b308fd15e7a34bbe8
I tried with dfu sample and with a new project.