<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63338/failed-to-connect-to-cloud-error--7</link><description>Hi! 
 Running the Asset-Tracker routine will fail to connect to the cloud(ncs1.3.0). The serial port displays an error say Failed to connect to cloud, error -7. 
 
 Error -7 is Invalid private key. 
 
 It worked fine yesterday, but it&amp;#39;s been running today</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jul 2020 14:16:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63338/failed-to-connect-to-cloud-error--7" /><item><title>RE: Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/thread/260835?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 14:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8e40bca-3325-4af6-baa4-dcdd62478def</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Both the traces you attached were empty. When you take a trace, please make sure that the file size is increasing as the application is running, see the red square below.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-eb6fb473535d4ebcb45c554f76852d38/modem_5F00_trace_5F00_size.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/thread/259442?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 12:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c656a2a7-bac2-461e-aee6-3acdc7233b9a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;I have forwarded the traces to the nRF91 modem team. I will let you know when I know more.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/thread/259342?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 07:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:365d6d0b-1fc5-42e2-bbc4-4eb0781b8157</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tracked it twice.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2020_2D00_07_2D00_10T07_2D00_22_2D00_41.729Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2020_2D00_07_2D00_10T07_2D00_22_2D00_41.729Z.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2020_2D00_07_2D00_10T07_2D00_26_2D00_56.784Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2020_2D00_07_2D00_10T07_2D00_26_2D00_56.784Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/thread/259190?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 12:51:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efed8a71-84e2-4d3d-a1ac-1be4b6724522</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;Can you please try to capture a modem trace? You can capture a modem trace by following this guide:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And I will send it to our modem and cloud team. Perhaps they can see what&amp;#39;s going on, and why it doesn&amp;#39;t connect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/thread/259117?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 09:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f51b386-5aac-4c77-92fd-4432b4da3efa</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have renewed my certificate again.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/QQ_2A62FE56_20200709164034.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m in Shenzhen, China. Only NB-IOT is supported here. Here is my prj.conf.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2019 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_ASSERT=y
CONFIG_REBOOT=y
CONFIG_LOG=y
CONFIG_LOG_IMMEDIATE=y

# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y

# LTE link control
CONFIG_POWER_OPTIMIZATION_ENABLE=n
CONFIG_LTE_LINK_CONTROL=y
#CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y

CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y
CONFIG_LTE_LEGACY_PCO_MODE=y
CONFIG_LTE_PSM_REQ_RPTAU=&amp;quot;00000110&amp;quot;
CONFIG_LTE_PSM_REQ_RAT=&amp;quot;00000010&amp;quot;

# Modem info
CONFIG_MODEM_INFO=y

# BSD library
CONFIG_BSD_LIBRARY=y
CONFIG_BSD_LIBRARY_TRACE_ENABLED=n

# nRF Cloud
CONFIG_CLOUD_API=y
CONFIG_NRF_CLOUD=y
CONFIG_NRF_CLOUD_LOG_LEVEL_DBG=y
CONFIG_NRF_CLOUD_AGPS=y
CONFIG_NRF_CLOUD_CONNECTION_POLL_THREAD=y
CONFIG_NRF_CLOUD_NONBLOCKING_SEND=y
# Needed for the cloud codec
CONFIG_CJSON_LIB=y
# Shorter to prevent NAT timeouts
CONFIG_MQTT_KEEPALIVE=120
# Don&amp;#39;t resubscribe to topics if broker remembers them
CONFIG_CLOUD_PERSISTENT_SESSIONS=y

# Sensors
CONFIG_ACCEL_USE_SIM=y
CONFIG_TEMP_USE_SIM=y
CONFIG_CLOUD_BUTTON=n

# GPS
CONFIG_NRF9160_GPS=y
# CONFIG_GPS_USE_SIM=y
CONFIG_NRF9160_GPS_LOG_LEVEL_DBG=y
CONFIG_GPS_USE_EXTERNAL=y
CONFIG_GPS_DEV_NAME=&amp;quot;NRF9160_GPS&amp;quot;
CONFIG_GPS_CONTROL_PSM_ENABLE_ON_START=y

CONFIG_GPS_CONTROL_FIRST_FIX_CHECK_DELAY=10
CONFIG_GPS_CONTROL_FIX_CHECK_INTERVAL=30
CONFIG_GPS_CONTROL_FIX_TRY_TIME=360
CONFIG_GPS_CONTROL_PSM_DISABLE_ON_STOP=n

# Library for buttons and LEDs
CONFIG_DK_LIBRARY=y
CONFIG_DK_LIBRARY_INVERT_LEDS=n

# Console
CONFIG_CONSOLE_SUBSYS=y
CONFIG_CONSOLE_HANDLER=y
CONFIG_CONSOLE_GETCHAR=y

# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_MAIN_STACK_SIZE=8192
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_HW_STACK_PROTECTION=y

# MCUBOOT
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y

# Flash
CONFIG_FLASH=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y

# AWS FOTA
CONFIG_AWS_FOTA=y
CONFIG_FOTA_DOWNLOAD=y
CONFIG_AWS_FOTA_LOG_LEVEL_DBG=y
CONFIG_AWS_JOBS_LOG_LEVEL_DBG=y
CONFIG_DFU_TARGET=y

# Download client (needed by AWS FOTA)
CONFIG_DOWNLOAD_CLIENT=y
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096

# Fatal error
CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_WATCHDOG=y
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This error just happened again. Especially in the afternoon, it happens a lot and the connection is slow.&amp;nbsp;It&amp;#39;s about morning in the Nordic.&amp;nbsp;Is there something wrong with the cloud?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/QQ_2A62FE56_20200709165228.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/thread/259082?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 06:45:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860e0fe7-7ac6-46aa-be5a-02ff3486c49e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So the issue is that the key is invalid.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to follow this guide:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-cloud-certificate-update"&gt;https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-cloud-certificate-update&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Perhaps you have invalid certificates, which could lead to error -7.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does the issue occur even if you revert the changes to the prj.conf, and disable NB-IoT?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/thread/258857?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 16:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a744c1b0-df93-40cb-809f-cc5b0446cd26</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am sorry for the late reply, but due to low staffing in R&amp;amp;D and Tech.support, we are having trouble answering all incoming questions. Unfortunately, I don&amp;#39;t know how to approach the issue that you describe. I will try to reach out for the right people tomorrow.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/thread/258303?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 12:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c626fe70-17f4-4d87-a02a-d8ade5624703</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I didn&amp;#39;t make any changes to the example.I just modified prj.conf to support NB-iot.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After constant testing, found that sometimes connected and sometimes not connected.This is also the case with NCS1.2.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to connect to cloud, error -7</title><link>https://devzone.nordicsemi.com/thread/258302?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 12:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:122943c2-5a3c-43d1-94db-d3dcf29a7fd6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Probably a stupid question, but have you ensured that your private key is valid? Did you make any changes from yesterday before running into this error? The error &amp;quot;-7&amp;quot; should only be caused by your private key not being valid.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>