Handshake failed with error code X509 Certificate verification failed coreMQTT happened at version 202011

Describe the bug
when update from version 2020.07 to 2020.11,
Handshake failed with error code X509 Certificate verification failed happend
coreMQTT
All Code Works OK BEFORE VERSION 202011 from git source
System information

stm32f4
ac6
macos
newest git source and download from amazonaws.com
when upgrade the newst coreMQTT
run demo application: CONFIG_CORE_MQTT_CONNECTION_SHARING_DEMO_ENABLED

Expected behavior
34 7014 [iot_thread] [INFO] [MQTTDemo] [mqtt_demo_connection_sharing.c:958]
35 7021 [iot_thread] Creating a TLS connection to aaaaaaaamyqnami.ats.iot.xxxxxxxxxxxxxxxxxxxx:8883.
36 7030 [iot_thread]
37 8200 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed :
38 8214 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323]
39 8222 [iot_thread] Failed to establish new connection. secureSocketStatus=-1002.
40 8229 [iot_thread]
41 8231 [iot_thread] [WARN] [MQTTDemo] [mqtt_demo_connection_sharing.c:966]
42 8238 [iot_thread] Connection to the broker failed. Retrying connection with backoff and jitter.
43 8246 [iot_thread]
44 8300 [EMAC] Network buffers: 6 lowest 4
45 9248 [iot_thread] [INFO] [MQTTDemo] [mqtt_demo_connection_sharing.c:958]
Screenshots or console output
To reproduce
Code to reproduce the bug
Additional context

Hi, @eelaix .  Could you compare your mqtt_demo_mutual_auth_config.h in the working version to the non-working version?  I'm wondering about the root CA define.  If those files are the same, perhaps comparing the remaining configs would help.

Hi, @eelaix . Could you compare your mqtt_demo_mutual_auth_config.h in the working version to the non-working version? I'm wondering about the root CA define. If those files are the same, perhaps comparing the remaining configs would help.

I think This file a configure setting for one of demo application, It MAY NOT affect coreMQTT.
I have remove this file form my project early, so This file is not exists in my project.
I don't think this file a the reason.

MORE logs showed HERE:
63 19137 [iot_thread] [INFO ][DEMO][19137] Successfully initialized the demo. Network type for the demo: 4
64 19147 [iot_thread] [INFO] [MQTTDemo] [mqtt_demo_connection_sharing.c:958] 65 19154 [iot_thread] Creating a TLS connection to a1mnz5pmyqnami.ats.iot.cn-north-1.amazonaws.com.cn:8883.66 19163 [iot_thread]
67 19165 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 68 19171 [iot_thread] Successfully generated 4 random bytes.69 19177 [iot_thread]
70 19179 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 71 19184 [IP-task] Successfully generated 4 random bytes.72 19189 [IP-task]
73 19302 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 74 19307 [IP-task] Successfully generated 4 random bytes.75 19312 [IP-task]
76 19314 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 77 19320 [IP-task] Successfully generated 8 random bytes.78 19325 [IP-task]
79 19423 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1338] 80 19428 [iot_thread] Failed to initialize PKCS #11. PKCS #11 was already initialized.81 19436 [iot_thread]
82 19438 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1560] 83 19444 [iot_thread] Successfully Returned a PKCS #11 slot with ID 1 with a count of 1.84 19452 [iot_thread]
85 19454 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1798] 86 19460 [iot_thread] Assigned a 0x2 Type Session.87 19464 [iot_thread]
88 19466 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1809] 89 19472 [iot_thread] Assigned Mechanisms to no operation in progress.90 19479 [iot_thread]
91 19481 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1825] 92 19487 [iot_thread] Current session count at 193 19491 [iot_thread]
94 19493 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1913] 95 19499 [iot_thread] C_Login is not implemented.96 19503 [iot_thread]
97 19506 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 98 19512 [iot_thread] Successfully generated 32 random bytes.99 19517 [iot_thread]
100 19521 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1913] 101 19527 [iot_thread] C_Login is not implemented.102 19531 [iot_thread]
103 19533 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 104 19539 [iot_thread] Search parameters other than label are ignored.105 19546 [iot_thread]
106 19548 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3107] 107 19554 [iot_thread] Could not find the object handle in the list. Trying to search PKCS #11 PAL for object.108 19564 [iot_thread]
109 19566 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3134] 110 19572 [iot_thread] Found object in PAL. Adding object handle to list.111 19578 [iot_thread]
112 19580 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 113 19586 [iot_thread] Found object in list by handle.114 19591 [iot_thread]
115 19594 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2671] 116 19600 [iot_thread] Object was a private key.117 19604 [iot_thread]
118 19606 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 119 19612 [iot_thread] Search parameters other than label are ignored.120 19618 [iot_thread]
121 19621 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3107] 122 19627 [iot_thread] Could not find the object handle in the list. Trying to search PKCS #11 PAL for object.123 19636 [iot_thread]
124 19638 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3134] 125 19645 [iot_thread] Found object in PAL. Adding object handle to list.126 19651 [iot_thread]
127 19653 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 128 19659 [iot_thread] Found object in list by handle.129 19664 [iot_thread]
130 19666 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2687] 131 19672 [iot_thread] Object was a certificate.132 19677 [iot_thread]
133 19679 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 134 19685 [iot_thread] Found object in list by handle.135 19690 [iot_thread]
136 19692 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2687] 137 19698 [iot_thread] Object was a certificate.138 19702 [iot_thread]
139 19705 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 140 19711 [iot_thread] Search parameters other than label are ignored.141 19717 [iot_thread]
142 19719 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3107] 143 19725 [iot_thread] Could not find the object handle in the list. Trying to search PKCS #11 PAL for object.144 19735 [iot_thread]
145 20819 [iot_thread] [INFO] [PKCS11] [core_pkcs11_mbedtls.c:1880] 146 20825 [iot_thread] Successfully closed PKCS #11 session.147 20830 [iot_thread]
148 20832 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed :
149 20847 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 150 20855 [iot_thread] Failed to establish new connection. secureSocketStatus=-1002.151 20862 [iot_thread]
152 20865 [iot_thread] [WARN] [MQTTDemo] [mqtt_demo_connection_sharing.c:966] 153 20871 [iot_thread] Connection to the broker failed. Retrying connection with backoff and jitter.154 20880 [iot_thread]
155 20882 [iot_thread] [INFO] [MQTTDemo] [mqtt_demo_connection_sharing.c:958] 156 20889 [iot_thread] Creating a TLS connection to a1mnz5pmyqnami.ats.iot.cn-north-1.amazonaws.com.cn:8883.157 20899 [iot_thread]
158 20901 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 159 20907 [iot_thread] Successfully generated 4 random bytes.160 20912 [iot_thread]
161 20915 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 162 20921 [IP-task] Successfully generated 4 random bytes.163 20926 [IP-task]
164 20929 [EMAC] Network buffers: 6 lowest 4
165 20933 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 166 20938 [IP-task] Successfully generated 4 random bytes.167 20944 [IP-task]
168 21045 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1338] 169 21050 [iot_thread] Failed to initialize PKCS #11. PKCS #11 was already initialized.170 21058 [iot_thread]
171 21060 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1560] 172 21066 [iot_thread] Successfully Returned a PKCS #11 slot with ID 1 with a count of 1.173 21074 [iot_thread]
174 21076 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1798] 175 21082 [iot_thread] Assigned a 0x2 Type Session.176 21087 [iot_thread]
177 21089 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1809] 178 21095 [iot_thread] Assigned Mechanisms to no operation in progress.179 21102 [iot_thread]
180 21104 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1825] 181 21110 [iot_thread] Current session count at 1182 21114 [iot_thread]
183 21116 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1913] 184 21122 [iot_thread] C_Login is not implemented.185 21127 [iot_thread]
186 21129 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 187 21135 [iot_thread] Successfully generated 32 random bytes.188 21141 [iot_thread]
189 21145 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1913] 190 21151 [iot_thread] C_Login is not implemented.191 21155 [iot_thread]
192 21157 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 193 21163 [iot_thread] Search parameters other than label are ignored.194 21169 [iot_thread]
195 21172 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:881] 196 21178 [iot_thread] Found object in object list matching label.197 21183 [iot_thread]
198 21186 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3134] 199 21192 [iot_thread] Found object in PAL. Adding object handle to list.200 21198 [iot_thread]
201 21200 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 202 21206 [iot_thread] Found object in list by handle.203 21211 [iot_thread]
204 21213 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2671] 205 21219 [iot_thread] Object was a private key.206 21224 [iot_thread]
207 21226 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 208 21232 [iot_thread] Search parameters other than label are ignored.209 21238 [iot_thread]
210 21240 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:881] 211 21246 [iot_thread] Found object in object list matching label.212 21252 [iot_thread]
213 21254 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3134] 214 21260 [iot_thread] Found object in PAL. Adding object handle to list.215 21267 [iot_thread]
216 21269 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 217 21275 [iot_thread] Found object in list by handle.218 21280 [iot_thread]
219 21282 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2687] 220 21288 [iot_thread] Object was a certificate.221 21292 [iot_thread]
222 21295 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 223 21301 [iot_thread] Found object in list by handle.224 21305 [iot_thread]
225 21308 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2687] 226 21314 [iot_thread] Object was a certificate.227 21318 [iot_thread]
228 21320 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 229 21326 [iot_thread] Search parameters other than label are ignored.230 21333 [iot_thread]
231 21335 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3107] 232 21341 [iot_thread] Could not find the object handle in the list. Trying to search PKCS #11 PAL for object.233 21350 [iot_thread]
234 22478 [iot_thread] [INFO] [PKCS11] [core_pkcs11_mbedtls.c:1880] 235 22484 [iot_thread] Successfully closed PKCS #11 session.236 22489 [iot_thread]
237 22491 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed :
238 22506 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 239 22514 [iot_thread] Failed to establish new connection. secureSocketStatus=-1002.240 22521 [iot_thread]
241 22524 [iot_thread] [WARN] [MQTTDemo] [mqtt_demo_connection_sharing.c:966] 242 22530 [iot_thread] Connection to the broker failed. Retrying connection with backoff and jitter.243 22539 [iot_thread]
244 23541 [iot_thread] [INFO] [MQTTDemo] [mqtt_demo_connection_sharing.c:958] 245 23547 [iot_thread] Creating a TLS connection to a1mnz5pmyqnami.ats.iot.cn-north-1.amazonaws.com.cn:8883.246 23557 [iot_thread]
247 23559 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 248 23565 [iot_thread] Successfully generated 4 random bytes.249 23571 [iot_thread]
250 23573 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 251 23579 [IP-task] Successfully generated 4 random bytes.252 23584 [IP-task]
253 23587 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 254 23593 [IP-task] Successfully generated 4 random bytes.255 23598 [IP-task]
256 23712 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1338] 257 23718 [iot_thread] Failed to initialize PKCS #11. PKCS #11 was already initialized.258 23725 [iot_thread]
259 23728 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1560] 260 23734 [iot_thread] Successfully Returned a PKCS #11 slot with ID 1 with a count of 1.261 23742 [iot_thread]
262 23744 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1798] 263 23750 [iot_thread] Assigned a 0x2 Type Session.264 23754 [iot_thread]
265 23757 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1809] 266 23763 [iot_thread] Assigned Mechanisms to no operation in progress.267 23769 [iot_thread]
268 23771 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1825] 269 23777 [iot_thread] Current session count at 1270 23781 [iot_thread]
271 23784 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1913] 272 23790 [iot_thread] C_Login is not implemented.273 23794 [iot_thread]
274 23796 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 275 23802 [iot_thread] Successfully generated 32 random bytes.276 23808 [iot_thread]
277 23812 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1913] 278 23818 [iot_thread] C_Login is not implemented.279 23822 [iot_thread]
280 23825 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 281 23831 [iot_thread] Search parameters other than label are ignored.282 23837 [iot_thread]
283 23839 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:881] 284 23845 [iot_thread] Found object in object list matching label.285 23851 [iot_thread]
286 23853 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3134] 287 23859 [iot_thread] Found object in PAL. Adding object handle to list.288 23865 [iot_thread]
289 23868 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 290 23874 [iot_thread] Found object in list by handle.291 23878 [iot_thread]
292 23881 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2671] 293 23891 [iot_thread] Object was a private key.294 23895 [iot_thread]
295 23897 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 296 23903 [iot_thread] Search parameters other than label are ignored.297 23910 [iot_thread]
298 23912 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:881] 299 23918 [iot_thread] Found object in object list matching label.300 23924 [iot_thread]
301 23926 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3134] 302 23932 [iot_thread] Found object in PAL. Adding object handle to list.303 23938 [iot_thread]
304 23941 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 305 23947 [iot_thread] Found object in list by handle.306 23951 [iot_thread]
307 23954 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2687] 308 23960 [iot_thread] Object was a certificate.309 23964 [iot_thread]
310 23966 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 311 23972 [iot_thread] Found object in list by handle.312 23977 [iot_thread]
313 23979 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2687] 314 23985 [iot_thread] Object was a certificate.315 23990 [iot_thread]
316 23992 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 317 23998 [iot_thread] Search parameters other than label are ignored.318 24004 [iot_thread]
319 24006 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3107] 320 24012 [iot_thread] Could not find the object handle in the list. Trying to search PKCS #11 PAL for object.321 24022 [iot_thread]
322 25122 [iot_thread] [INFO] [PKCS11] [core_pkcs11_mbedtls.c:1880] 323 25128 [iot_thread] Successfully closed PKCS #11 session.324 25134 [iot_thread]
325 25136 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed :
326 25150 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 327 25158 [iot_thread] Failed to establish new connection. secureSocketStatus=-1002.328 25166 [iot_thread]
329 25168 [iot_thread] [WARN] [MQTTDemo] [mqtt_demo_connection_sharing.c:966] 330 25175 [iot_thread] Connection to the broker failed. Retrying connection with backoff and jitter.331 25183 [iot_thread]
332 26186 [iot_thread] [INFO] [MQTTDemo] [mqtt_demo_connection_sharing.c:958] 333 26192 [iot_thread] Creating a TLS connection to a1mnz5pmyqnami.ats.iot.cn-north-1.amazonaws.com.cn:8883.334 26202 [iot_thread]
335 26204 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 336 26210 [iot_thread] Successfully generated 4 random bytes.337 26216 [iot_thread]
338 26218 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 339 26224 [IP-task] Successfully generated 4 random bytes.340 26229 [IP-task]
341 26232 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 342 26238 [IP-task] Successfully generated 4 random bytes.343 26243 [IP-task]
344 26345 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1338] 345 26351 [iot_thread] Failed to initialize PKCS #11. PKCS #11 was already initialized.346 26359 [iot_thread]
347 26361 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1560] 348 26367 [iot_thread] Successfully Returned a PKCS #11 slot with ID 1 with a count of 1.349 26375 [iot_thread]
350 26377 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1798] 351 26383 [iot_thread] Assigned a 0x2 Type Session.352 26388 [iot_thread]
353 26390 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1809] 354 26396 [iot_thread] Assigned Mechanisms to no operation in progress.355 26402 [iot_thread]
356 26404 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:1825] 357 26410 [iot_thread] Current session count at 1358 26415 [iot_thread]
359 26417 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1913] 360 26423 [iot_thread] C_Login is not implemented.361 26427 [iot_thread]
362 26430 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 363 26436 [iot_thread] Successfully generated 32 random bytes.364 26441 [iot_thread]
365 26445 [iot_thread] [WARN] [PKCS11] [core_pkcs11_mbedtls.c:1913] 366 26451 [iot_thread] C_Login is not implemented.367 26456 [iot_thread]
368 26458 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 369 26464 [iot_thread] Search parameters other than label are ignored.370 26470 [iot_thread]
371 26472 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:881] 372 26478 [iot_thread] Found object in object list matching label.373 26484 [iot_thread]
374 26486 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3134] 375 26492 [iot_thread] Found object in PAL. Adding object handle to list.376 26499 [iot_thread]
377 26501 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 378 26507 [iot_thread] Found object in list by handle.379 26512 [iot_thread]
380 26514 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2671] 381 26520 [iot_thread] Object was a private key.382 26524 [iot_thread]
383 26527 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 384 26533 [iot_thread] Search parameters other than label are ignored.385 26539 [iot_thread]
386 26541 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:881] 387 26547 [iot_thread] Found object in object list matching label.388 26553 [iot_thread]
389 26555 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3134] 390 26561 [iot_thread] Found object in PAL. Adding object handle to list.391 26567 [iot_thread]
392 26570 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 393 26576 [iot_thread] Found object in list by handle.394 26580 [iot_thread]
395 26583 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2687] 396 26589 [iot_thread] Object was a certificate.397 26593 [iot_thread]
398 26595 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:913] 399 26601 [iot_thread] Found object in list by handle.400 26606 [iot_thread]
401 26608 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:2687] 402 26614 [iot_thread] Object was a certificate.403 26619 [iot_thread]
404 26621 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3006] 405 26627 [iot_thread] Search parameters other than label are ignored.406 26633 [iot_thread]
407 26635 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:3107] 408 26642 [iot_thread] Could not find the object handle in the list. Trying to search PKCS #11 PAL for object.409 26651 [iot_thread]
410 27741 [iot_thread] [INFO] [PKCS11] [core_pkcs11_mbedtls.c:1880] 411 27747 [iot_thread] Successfully closed PKCS #11 session.412 27752 [iot_thread]
413 27754 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed :
414 27769 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 415 27777 [iot_thread] Failed to establish new connection. secureSocketStatus=-1002.416 27784 [iot_thread]
417 27786 [iot_thread] [WARN] [MQTTDemo] [mqtt_demo_connection_sharing.c:966] 418 27793 [iot_thread] Connection to the broker failed. Retrying connection with backoff and jitter.419 27802 [iot_thread]
420 30804 [iot_thread] [INFO] [MQTTDemo] [mqtt_demo_connection_sharing.c:958] 421 30810 [iot_thread] Creating a TLS connection to a1mnz5pmyqnami.ats.iot.cn-north-1.amazonaws.com.cn:8883.422 30820 [iot_thread]
423 30822 [iot_thread] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 424 30828 [iot_thread] Successfully generated 4 random bytes.425 30834 [iot_thread]
426 30836 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 427 30842 [IP-task] Successfully generated 4 random bytes.428 30847 [IP-task]
429 30850 [IP-task] [DEBUG] [PKCS11] [core_pkcs11_mbedtls.c:4755] 430 30856 [IP-task] Successfully generated 4 random bytes.431 30861 [IP-task]

Hi, I'm sorry I referenced the wrong file.  Can you compare your aws_clientcredential_keys.h file in the working version to the non-working version?  Also, do you have logs available from your working version?

Hi, I'm sorry I referenced the wrong file. Can you compare your aws_clientcredential_keys.h file in the working version to the non-working version? Also, do you have logs available from your working version?

This file never changed in my project and i will check all files from remove git server, my "amazon-freertos" directory will keep sync to git server every day.
I don't think this file is the problem, because this file never changed in my project.
my devcert and devprivatekey is provided by "vendor/my/boards/myboard/ports/core_pkcs11_pal.c"
and devcert/privatekey(s) are saved in I2C memory.
I am wonder what changed in source coreMQTT or corePKCS11 at version of 2020.11

When i execute secure_socket_tests with TLS (FULL_TCP_TESTS) i got these Logs,  anybody can help me on this?
---------STARTING TESTS---------
TEST(Full_TCP, AFQP_SOCKETS_CloseInvalidParams) PASS
TEST(Full_TCP, AFQP_SOCKETS_CloseWithoutReceiving)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1199::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_ShutdownInvalidParams) PASS
TEST(Full_TCP, AFQP_SOCKETS_ShutdownWithoutReceiving)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1275::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_Recv_On_Unconnected_Socket)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1325::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_Connect_InvalidParams) PASS
TEST(Full_TCP, AFQP_SOCKETS_Connect_InvalidAddressLength)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:2309::FAIL: Expected 0 Was -116. Socket connect failed.
TEST(Full_TCP, AFQP_SOCKETS_Socket_TCP) PASS
TEST(Full_TCP, AFQP_SOCKETS_SetSockOpt_RCVTIMEO)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1420::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_NonBlocking_Test)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1501::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_SetSockOpt_InvalidParams)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1589::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_Shutdown)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1683::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_Close)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1789::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_Recv_ByteByByte)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1855::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_SendRecv_VaryLength)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1934::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_Socket_ConcurrentCount) PASS
TEST(Full_TCP, AFQP_SOCKETS_Socket_InvalidInputParams) PASS
TEST(Full_TCP, AFQP_SOCKETS_Send_Invalid)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:2366::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_Recv_Invalid)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:2433::FAIL: Expected 0 Was -116. Failed to connect
TEST(Full_TCP, AFQP_SOCKETS_htons_HappyCase) PASS
TEST(Full_TCP, AFQP_SOCKETS_inet_addr_quick_HappyCase) PASS
TEST(Full_TCP, AFQP_SECURE_SOCKETS_CloseInvalidParams) PASS
13 328750 [TestRunner] ERROR: Failed to parse custom server certificates X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected :
14 329012 [TestRunner] ERROR: Failed to parse custom server certificates X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected :
15 329429 [TestRunner] ERROR: Failed to parse custom server certificates X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected :
16 330165 [TestRunner] ERROR: Failed to parse custom server certificates X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected :
17 331485 [TestRunner] ERROR: Failed to parse custom server certificates X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected :
18 334011 [TestRunner] ERROR: Failed to parse custom server certificates X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected :
19 338926 [TestRunner] ERROR: Failed to parse custom server certificates X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected :
TEST(Full_TCP, AFQP_SECURE_SOCKETS_CloseWithoutReceiving)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1199::FAIL: Expected 0 Was -1002. Failed to connect
TEST(Full_TCP, AFQP_SECURE_SOCKETS_ShutdownInvalidParams) PASS
20 339376 [TestRunner] ERROR: Failed to parse custom server certificates X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected :
21 339635 [TestRunner] ERROR: Failed to parse custom server certificates X509 - The CRT/CRL/CSR format is invalid, e.g. different type expected :
22 340045 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 23 340051 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.24 340063 [TestRunner]
25 340764 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 26 340771 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.27 340782 [TestRunner]
28 342091 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 29 342097 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.30 342109 [TestRunner]
31 344606 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 32 344612 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.33 344624 [TestRunner]
34 349546 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 35 349552 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.36 349563 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_ShutdownWithoutReceiving)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1275::FAIL: Expected 0 Was 177. Failed to connect
37 349887 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 38 349893 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.39 349904 [TestRunner]
40 350167 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 41 350173 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.42 350184 [TestRunner]
43 350592 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 44 350599 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.45 350613 [TestRunner]
46 351332 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 47 351338 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.48 351350 [TestRunner]
49 352657 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 50 352663 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.51 352675 [TestRunner]
52 355177 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 53 355183 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.54 355195 [TestRunner]
55 360103 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 56 360109 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.57 360121 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_Recv_On_Unconnected_Socket)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1325::FAIL: Expected 0 Was 177. Failed to connect
58 360347 [EMAC] Network buffers: 6 lowest 4
59 360442 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 60 360448 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.61 360460 [TestRunner]
62 360709 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 63 360715 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.64 360727 [TestRunner]
65 361137 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 66 361143 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.67 361155 [TestRunner]
68 361858 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 69 361864 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.70 361876 [TestRunner]
71 363184 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 72 363190 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.73 363201 [TestRunner]
74 365713 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 75 365719 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.76 365731 [TestRunner]
77 370630 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 78 370636 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.79 370648 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_SetSockOpt_TRUSTED_SERVER_CERTIFICATE)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:2547::FAIL: Expected 0 Was 177. Failed to connect
80 371068 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 81 371074 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.82 371086 [TestRunner]
83 371088 [TestRunner] expected 0, got 177
84 371092 [TestRunner] retrying "xResult = prvConnect( xSocket, xConn )", 1 of 6, in 150 ms
85 371251 [TestRunner] prvAwsIotBrokerConnectHelper: Failed to setSockOpt SOCKETS_SO_REQUIRE_TLS
86 371260 [TestRunner] expected 0, got -127
87 371264 [TestRunner] retrying "xResult = prvConnect( xSocket, xConn )", 2 of 6, in 300 ms
88 371573 [TestRunner] prvAwsIotBrokerConnectHelper: Failed to setSockOpt SOCKETS_SO_REQUIRE_TLS
89 371582 [TestRunner] expected 0, got -127
90 371586 [TestRunner] retrying "xResult = prvConnect( xSocket, xConn )", 3 of 6, in 600 ms
91 372195 [TestRunner] prvAwsIotBrokerConnectHelper: Failed to setSockOpt SOCKETS_SO_REQUIRE_TLS
92 372204 [TestRunner] expected 0, got -127
93 372208 [TestRunner] retrying "xResult = prvConnect( xSocket, xConn )", 4 of 6, in 1200 ms
94 373417 [TestRunner] prvAwsIotBrokerConnectHelper: Failed to setSockOpt SOCKETS_SO_REQUIRE_TLS
95 373426 [TestRunner] expected 0, got -127
96 373430 [TestRunner] retrying "xResult = prvConnect( xSocket, xConn )", 5 of 6, in 2400 ms
97 375839 [TestRunner] prvAwsIotBrokerConnectHelper: Failed to setSockOpt SOCKETS_SO_REQUIRE_TLS
98 375848 [TestRunner] expected 0, got -127
99 375852 [TestRunner] retrying "xResult = prvConnect( xSocket, xConn )", 6 of 6, in 4800 ms
100 380661 [TestRunner] prvAwsIotBrokerConnectHelper: Failed to setSockOpt SOCKETS_SO_REQUIRE_TLS
101 380670 [TestRunner] expected 0, got -127
TEST(Full_TCP, AFQP_SECURE_SOCKETS_SetSockOpt_SERVER_NAME_INDICATION)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:2494::FAIL: Expected 0 Was -127. Failed to connect
TEST(Full_TCP, AFQP_SECURE_SOCKETS_Connect_InvalidParams) PASS
TEST(Full_TCP, AFQP_SECURE_SOCKETS_Connect_InvalidAddressLength) PASS
102 391452 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 103 391458 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.104 391470 [TestRunner]
105 391732 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 106 391738 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.107 391750 [TestRunner]
108 392152 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 109 392158 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.110 392170 [TestRunner]
111 392872 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 112 392878 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.113 392890 [TestRunner]
114 394191 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 115 394197 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.116 394209 [TestRunner]
117 396718 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 118 396725 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.119 396736 [TestRunner]
120 401644 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 121 401650 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.122 401662 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_SetSockOpt_RCVTIMEO)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1420::FAIL: Expected 0 Was 177. Failed to connect
123 401981 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 124 401987 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.125 401999 [TestRunner]
126 402258 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 127 402264 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.128 402276 [TestRunner]
129 402683 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 130 402690 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.131 402701 [TestRunner]
132 403404 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 133 403411 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.134 403422 [TestRunner]
135 404733 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 136 404739 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.137 404751 [TestRunner]
138 407257 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 139 407263 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.140 407275 [TestRunner]
141 412179 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 142 412185 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.143 412197 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_NonBlocking_Test)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1501::FAIL: Expected 0 Was 177. Failed to connect
144 412525 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 145 412531 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.146 412543 [TestRunner]
147 412794 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 148 412800 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.149 412812 [TestRunner]
150 413219 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 151 413225 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.152 413237 [TestRunner]
153 413944 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 154 413950 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.155 413962 [TestRunner]
156 415264 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 157 415270 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.158 415282 [TestRunner]
159 417785 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 160 417791 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.161 417803 [TestRunner]
162 422706 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 163 422712 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.164 422724 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_SetSockOpt_InvalidParams)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1589::FAIL: Expected 0 Was 177. Failed to connect
165 423055 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 166 423061 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.167 423073 [TestRunner]
168 423325 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 169 423331 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.170 423343 [TestRunner]
171 423746 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 172 423752 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.173 423764 [TestRunner]
174 424465 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 175 424471 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.176 424483 [TestRunner]
177 425784 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 178 425790 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.179 425802 [TestRunner]
180 428311 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 181 428317 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.182 428329 [TestRunner]
183 433228 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 184 433234 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.185 433246 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_Shutdown)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1683::FAIL: Expected 0 Was 177. Failed to connect
186 433572 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 187 433578 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.188 433590 [TestRunner]
189 433856 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 190 433862 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.191 433874 [TestRunner]
192 434280 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 193 434286 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.194 434298 [TestRunner]
195 434996 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 196 435003 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.197 435014 [TestRunner]
198 436317 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 199 436323 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.200 436335 [TestRunner]
201 438838 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 202 438844 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.203 438856 [TestRunner]
204 443757 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 205 443763 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.206 443775 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_Close)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1789::FAIL: Expected 0 Was 177. Failed to connect
207 444104 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 208 444110 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.209 444121 [TestRunner]
210 444382 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 211 444388 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.212 444400 [TestRunner]
213 444798 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 214 444804 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.215 444816 [TestRunner]
216 445538 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 217 445544 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.218 445556 [TestRunner]
219 446858 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 220 446864 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.221 446876 [TestRunner]
222 449383 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 223 449390 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.224 449401 [TestRunner]
225 454300 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 226 454306 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.227 454318 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_Recv_ByteByByte)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1855::FAIL: Expected 0 Was 177. Failed to connect
228 454643 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 229 454649 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.230 454661 [TestRunner]
231 454911 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 232 454917 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.233 454929 [TestRunner]
234 455327 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 235 455334 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.236 455345 [TestRunner]
237 456049 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 238 456055 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.239 456067 [TestRunner]
240 457379 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 241 457386 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.242 457397 [TestRunner]
243 459940 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 244 459946 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.245 459958 [TestRunner]
246 464860 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 247 464866 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.248 464878 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_SendRecv_VaryLength)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:1934::FAIL: Expected 0 Was 177. Failed to connect
249 465200 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 250 465207 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.251 465218 [TestRunner]
252 465470 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 253 465477 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.254 465488 [TestRunner]
255 465890 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 256 465897 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.257 465908 [TestRunner]
258 466617 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 259 466623 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.260 466634 [TestRunner]
261 467950 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 262 467956 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.263 467968 [TestRunner]
264 470477 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 265 470483 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.266 470495 [TestRunner]
267 475407 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 268 475413 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.269 475425 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_Send_Invalid)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:2366::FAIL: Expected 0 Was 177. Failed to connect
270 475742 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 271 475748 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.272 475760 [TestRunner]
273 476022 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 274 476028 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.275 476040 [TestRunner]
276 476441 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 277 476447 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.278 476459 [TestRunner]
279 477174 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 280 477180 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.281 477192 [TestRunner]
282 478502 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 283 478508 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.284 478520 [TestRunner]
285 481022 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 286 481029 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.287 481040 [TestRunner]
288 485950 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 289 485956 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.290 485968 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_Recv_Invalid)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:2433::FAIL: Expected 0 Was 177. Failed to connect
291 486383 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 292 486389 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.293 486401 [TestRunner]
TEST(Full_TCP, AFQP_SECURE_SOCKETS_SockEventHandler)/dir/amazon-freertos/libraries/abstractions/secure_sockets/test/iot_test_tcp.c:2628::FAIL: Expected 177 to be less than 0. Connection permitted with untrusted server CA cert
TEST(Full_TCP, AFQP_SECURE_SOCKETS_NonBlockingConnect) PASS
294 486833 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 295 486839 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.296 486851 [TestRunner]
297 487105 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 298 487111 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.299 487123 [TestRunner]
300 487525 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 301 487531 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.302 487543 [TestRunner]
303 488243 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 304 488249 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.305 488261 [TestRunner]
306 489564 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 307 489571 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.308 489582 [TestRunner]
309 492085 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 310 492091 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.311 492103 [TestRunner]
312 497004 [TestRunner] [ERROR] [PKCS11] [core_pkcs11_mbedtls.c:1817] 313 497011 [TestRunner] Could not open a session. All sessions have been taken. Consider increasing value of pkcs11configMAX_SESSIONS.314 497022

WoW!!!   MQTTv4 all tests PASSed, BUT FULL_TCP_TLS fail.    the following logs are from MQTTv4 tests.
WHAT happened??????????????
---------STARTING TESTS---------
TEST(MQTT_Unit_Validate, ValidateConnectInfo) PASS
TEST(MQTT_Unit_Validate, ValidatePublish) PASS
TEST(MQTT_Unit_Validate, ValidateOperation) PASS
TEST(MQTT_Unit_Validate, ValidateSubscriptionList) PASS
TEST(MQTT_Unit_Subscription, ListInsertRemove) PASS
TEST(MQTT_Unit_Subscription, ListFindByTopicFilter) PASS
TEST(MQTT_Unit_Subscription, ListFindByPacket) PASS
TEST(MQTT_Unit_Subscription, SubscriptionRemoveByPacket) PASS
TEST(MQTT_Unit_Subscription, SubscriptionRemoveByTopicFilter) PASS
TEST(MQTT_Unit_Subscription, SubscriptionAddDuplicate) PASS
TEST(MQTT_Unit_Subscription, SubscriptionAddMallocFail) PASS
TEST(MQTT_Unit_Subscription, ProcessPublish) PASS
TEST(MQTT_Unit_Subscription, ProcessPublishMultiple) PASS
TEST(MQTT_Unit_Subscription, SubscriptionReferences) PASS
TEST(MQTT_Unit_Subscription, TopicFilterMatchTrue) PASS
TEST(MQTT_Unit_Subscription, TopicFilterMatchFalse) PASS
TEST(MQTT_Unit_Receive, DecodeRemainingLength) PASS
TEST(MQTT_Unit_Receive, InvalidPacket) PASS
TEST(MQTT_Unit_Receive, ConnackValid) PASS
TEST(MQTT_Unit_Receive, ConnackInvalid) PASS
TEST(MQTT_Unit_Receive, PublishValid) PASS
TEST(MQTT_Unit_Receive, PublishInvalid) PASS
TEST(MQTT_Unit_Receive, PubackValid) PASS
TEST(MQTT_Unit_Receive, PubackInvalid) PASS
TEST(MQTT_Unit_Receive, SubackValid) PASS
TEST(MQTT_Unit_Receive, SubackInvalid) PASS
TEST(MQTT_Unit_Receive, UnsubackValid) PASS
TEST(MQTT_Unit_Receive, UnsubackInvalid) PASS
TEST(MQTT_Unit_Receive, Pingresp) PASS
TEST(MQTT_Unit_API, OperationCreateDestroy) PASS
TEST(MQTT_Unit_API, OperationWaitTimeout) PASS
TEST(MQTT_Unit_API, ConnectParameters) PASS
TEST(MQTT_Unit_API, ConnectMallocFail) PASS
TEST(MQTT_Unit_API, ConnectRestoreSessionMallocFail) PASS
TEST(MQTT_Unit_API, DisconnectMallocFail) PASS
TEST(MQTT_Unit_API, PublishQoS0Parameters) PASS
TEST(MQTT_Unit_API, PublishQoS0MallocFail) PASS
TEST(MQTT_Unit_API, PublishQoS1) PASS
TEST(MQTT_Unit_API, SubscribeUnsubscribeParameters) PASS
TEST(MQTT_Unit_API, SubscribeMallocFail) PASS
TEST(MQTT_Unit_API, UnsubscribeMallocFail) PASS
14 27759 [TestRunner]
15 29361 [iot_thread] KeepAlivePeriodic 1 of 10 DONE at 29361 ms.
16 30461 [iot_thread] KeepAlivePeriodic 2 of 10 DONE at 30461 ms (+ 1100 ).
17 31561 [iot_thread] KeepAlivePeriodic 3 of 10 DONE at 31561 ms (+ 1100 ).
18 32661 [iot_thread] KeepAlivePeriodic 4 of 10 DONE at 32661 ms (+ 1100 ).
19 33761 [iot_thread] KeepAlivePeriodic 5 of 10 DONE at 33761 ms (+ 1100 ).
20 34861 [iot_thread] KeepAlivePeriodic 6 of 10 DONE at 34861 ms (+ 1100 ).
21 35961 [iot_thread] KeepAlivePeriodic 7 of 10 DONE at 35961 ms (+ 1100 ).
22 37061 [iot_thread] KeepAlivePeriodic 8 of 10 DONE at 37061 ms (+ 1100 ).
23 38161 [iot_thread] KeepAlivePeriodic 9 of 10 DONE at 38161 ms (+ 1100 ).
24 39261 [iot_thread] KeepAlivePeriodic 10 of 10 DONE at 39261 ms (+ 1100 ).
TEST(MQTT_Unit_API, KeepAlivePeriodic) PASS
TEST(MQTT_Unit_API, KeepAliveJobCleanup) PASS
TEST(MQTT_Unit_API, WaitAfterDisconnect) PASS
TEST(MQTT_Unit_Metrics, Generate_MD5Hash) PASS
TEST(MQTT_Unit_Metrics, Get_DeviceIdentifier) PASS
TEST(MQTT_Unit_Metrics, Get_DeviceMetrics) PASS
TEST(MQTT_System, SubscribePublishWaitQoS0) PASS
TEST(MQTT_System, SubscribePublishWaitQoS1) PASS
TEST(MQTT_System, SubscribePublishAsync) PASS
TEST(MQTT_System, LastWillAndTestament) PASS
TEST(MQTT_System, RestorePreviousSession) PASS
TEST(MQTT_System, SubscribeCompleteReentrancy) PASS
TEST(MQTT_System, IncomingPublishReentrancy) PASS

54 Tests 0 Failures 0 Ignored
OK
-------ALL TESTS FINISHED-------

Following logs are SHADOWv4 working perfect!   Free heap before and after tests was not the same.

21 Tests 1 Failures 0 Ignored
FAIL

Hi @eelaix,
Have you followed the steps outlined in the porting guide here https://docs.aws.amazon.com/freertos/latest/portingguide/afr-echo-server.html for the Full_TCP test group?
Thanks,
Carl

Hi @eelaix,
Have you followed the steps outlined in the porting guide here https://docs.aws.amazon.com/freertos/latest/portingguide/afr-echo-server.html for the Full_TCP test group?
Thanks,
Carl

yes! i Have followed that step porting guide .
you can see The Demo "CONFIG_CORE_MQTT_CONNECTION_SHARING_DEMO_ENABLED" Shows error first, so it is not the porting guide step error.
==================================================
i have do more and more testing, The following test working good
testrunnerFULL_MQTTv4_ENABLED
testrunnerFULL_SHADOWv4_ENABLED
testrunnerFULL_DEVICE_SHADOW_ENABLED
testrunnerFULL_TCP_ENABLED   (without TLS)
The following part failed:
#define testrunnerFULL_MQTT_AGENT_ENABLED          0
#define testrunnerFULL_TCP_ENABLED                 1
#define testrunnerFULL_SHADOW_ENABLED              0
#define testrunnerFULL_PKCS11_ENABLED              0
CONFIG_CORE_MQTT_CONNECTION_SHARING_DEMO_ENABLED
the following never started:
#define testrunnerFULL_CRYPTO_ENABLED              0
#define testrunnerFULL_TLS_ENABLED                 0

@eelaix,
Are you receiving any output on the echo server? You can get verbose output with verbose set to "true" in the echo server config.json. Is the echo server on the same network as your device?
Thanks,
Carl

@eelaix,
Are you receiving any output on the echo server? You can get verbose output with verbose set to "true" in the echo server config.json. Is the echo server on the same network as your device?
Thanks,
Carl

yes i can recieve message in echo server console such as :
2020/11/24 09:37:32 Opening secure TCP server listening to port 8443
2020/11/24 09:44:57 Read 1 bytes.
2020/11/24 09:44:57 Message:
2020/11/24 09:44:57 Succesfully echoed back 1 bytes.
2020/11/24 09:45:04 Error remote error: tls: unknown certificate authority while reading data. Expected an EOF to signal end of connection
2020/11/24 09:45:46 Read 1200 bytes.
2020/11/24 09:45:46 Message:
0 TxRx with of length 1200KLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~0123456789:;<=>
2020/11/24 09:45:46 Succesfully echoed back 1200 bytes.
2020/11/24 09:45:53 Error read tcp <IP_ADDRESS>:8443-><IP_ADDRESS>:6300: read: connection reset by peer while reading data.

Hi @eelaix,
I tested this with the Windows simulator and did not have any issue. On Friday I will check with an STML4. Are you running two echo servers at once? The expectation is you have one for TLS and one for non-TLS connections, I hope that helps.
Is my understanding correct, that now the only issue is with the Full_TCP suite, and the other test groups are working?
Thanks,
Carl

Hi @eelaix,
I tested this with the Windows simulator and did not have any issue. On Friday I will check with an STML4. Are you running two echo servers at once? The expectation is you have one for TLS and one for non-TLS connections, I hope that helps.
Is my understanding correct, that now the only issue is with the Full_TCP suite, and the other test groups are working?
Thanks,
Carl

Hi @lundinc2
I execute every test complete compiled and restart the echo server.   every test runs more than one time.
the FULL_TCP_TEST without TLS work perfect.
for above logs shows, i even found the DEMO application and FULL_TCP_TEST (WITH TLS) give me the same issue: "Handshake Failed with error code X509 Certificate verification failed".
Today, i Downgrade to git tag source Version 202007, NOW i had success run demo application and my own application perfect, i will continue to run tests application in few hours.

Hi @eelaix,
I am sorry for the delay. I was able to pass the TLS tests on the STML4. I believe the issue you are facing is the server CA certificate not being correctly configured in https://github.com/aws/amazon-freertos/blob/b2217ded7a33f1b041fc5e630fe19ca2dbcd4068/tests/include/aws_test_tcp.h#L62. It may be worth revisiting the instructions here in case of a mistake https://github.com/aws/amazon-freertos/tree/master/tools/echo_server.
I verified my connection using the below OpenSSL command. You can use this to make sure your credentials are correct, before trying to establish the connection on your device.
openssl s_client -connect <ip address>:<port> -cert client.pem -key client.key -CAfile server.pem.
I am really sorry that this has been a pain point for you, I hope this helps unblock you, please let me know if you are unable to connect after following these steps.

Hi  @lundinc2 ,
I Checked everything as your words, i am sure my setting/codes is always correct, i have read the document more times, execute the command more times, the same error appears.

Hi @eelaix,
Can you post a pastebin with the output if you have mbed TLS debug enabled? Judging by the logs it seems that you are running mbed TLS, it can be enabled by uncommenting this line https://github.com/aws/amazon-freertos/blob/d6736703410b6bf0a71278f764f580717d52cee5/libraries/3rdparty/mbedtls_config/aws_mbedtls_config.h#L2221.
I do not see the STM32F4 in our device catalog, did you mean to say you are running on the STM32 L4? I will need to order an STM 32F4, but I don't believe the code we are hosting in this repository will run on it.
Thanks,
Carl

Hi @eelaix,
Can you post a pastebin with the output if you have mbed TLS debug enabled? Judging by the logs it seems that you are running mbed TLS, it can be enabled by uncommenting this line
https://github.com/aws/amazon-freertos/blob/d6736703410b6bf0a71278f764f580717d52cee5/libraries/3rdparty/mbedtls_config/aws_mbedtls_config.h#L2221
.
I do not see the STM32F4 in our device catalog, did you mean to say you are running on the STM32 L4? I will need to order an STM 32F4, but I don't believe the code we are hosting in this repository will run on it.
Thanks,
Carl

YES！ I am running amazon-freertos VER 202007 on my custom Board STM32F407VGTx+ I2CMemory + RMIIETH +LTE(UART6,X-CUBE-CELLULAR5.2) + SPIsensor(templete,ATT7053...).  Everythings worked perfect in 202007.
I have saved the DevCertificate and PrivateKey in I2C Memory then read and use from "*_pkcs11_pal.c"
I will TEST VER 202011 by your advice later.

Hi, looks like i have same issue.
I am testing mqtt_demo_mutual_auth.c demo.
51 549 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed : <No-Low-Level-Code>
52 549 [iot_thread] TLS_Connect fail (0x2700, NULL)

I am testing with latest version from git, ESP32 hardware and Windows Simulator, both have same error.
Also test with version 202011, 202012 and firmware downloaded from AWS IoT console all are with same results.
Try to enable mbedTLS debug option with MBEDTLS_DEBUG_C, unfortunately could not see debug logs.

Hi, looks like i have same issue.
I am testing mqtt_demo_mutual_auth.c demo.
51 549 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed : <No-Low-Level-Code>
52 549 [iot_thread] TLS_Connect fail (0x2700, NULL)

I am testing with latest version from git, ESP32 hardware and Windows Simulator, both have same error.
Also test with version 202011, 202012 and firmware downloaded from AWS IoT console all are with same results.
Try to enable mbedTLS debug option with MBEDTLS_DEBUG_C, unfortunately could not see debug logs.

Hi @timdesi,
Are you using the "ats" endpoint or the regular endpoint? Please see https://aws.amazon.com/blogs/iot/aws-iot-core-ats-endpoints/ for some background. Currently the default demo will use Amazon CA1, which is used on the ats endpoint.
Here is an example of what an ATS endpoint would look like: {account}-ats.iot.us-west-2.amazonaws.com.

Hi @lundinc2,
I am testing with ATS endpoint (********-ats.iot.eu-central-1.amazonaws.com).
I have double check certificate and policy attached.
269 [eventTask] [INFO ][DEMO][2690] Connected to WiFi access point, ip address: <IP_ADDRESS>.
5 270 [iot_thread] [INFO ][DEMO][2700] Successfully initialized the demo. Network type for the demo: 1
6 270 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:745] 7 270 [iot_thread] Creating a TLS connection to **********-ats.iot.eu-central-1.amazonaws.com:8883.8 270 [iot_thread]
GAP procedure initiated: stop advertising.
GAP procedure initiated: stop advertising.
E (3164) PKCS11: failed nvs get file size 4354 0
9 301 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed : <No-Low-Level-Code>
10 301 [iot_thread] TLS_Connect fail (0x2700, NULL)
11 301 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 12 301 [iot_thread] Failed to establish new connection. secureSocketStatus=-1.13 301 [iot_thread]
14 303 [iot_thread] [WARN] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:753] 15 303 [iot_thread] Connection to the broker failed. Attempting connection retry after backoff delay.16 303 [iot_thread]
17 347 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:689] 18 347 [iot_thread] Retry attempt 2 out of maximum retry attempts 5.19 347 [iot_thread]
20 347 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:745] 21 347 [iot_thread] Creating a TLS connection to  269 [eventTask] [INFO ][DEMO][2690] Connected to WiFi access point, ip address: <IP_ADDRESS>.
5 270 [iot_thread] [INFO ][DEMO][2700] Successfully initialized the demo. Network type for the demo: 1
6 270 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:745] 7 270 [iot_thread] Creating a TLS connection to ************-ats.iot.eu-central-1.amazonaws.com:8883.8 270 [iot_thread]
GAP procedure initiated: stop advertising.
GAP procedure initiated: stop advertising.
E (3164) PKCS11: failed nvs get file size 4354 0
9 301 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed : <No-Low-Level-Code>
10 301 [iot_thread] TLS_Connect fail (0x2700, NULL)
11 301 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 12 301 [iot_thread] Failed to establish new connection. secureSocketStatus=-1.13 301 [iot_thread]
14 303 [iot_thread] [WARN] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:753] 15 303 [iot_thread] Connection to the broker failed. Attempting connection retry after backoff delay.16 303 [iot_thread]
17 347 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:689] 18 347 [iot_thread] Retry attempt 2 out of maximum retry attempts 5.19 347 [iot_thread]
20 347 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:745] 21 347 [iot_thread] Creating a TLS connection to ***********-ats.iot.eu-central-1.amazonaws.com:8883.22 347 [iot_thread]
E (3884) PKCS11: failed nvs get file size 4354 0
23 373 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed : <No-Low-Level-Code>
24 373 [iot_thread] TLS_Connect fail (0x2700, NULL)
25 373 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 26 374 [iot_thread] Failed to establish new connection. secureSocketStatus=-1.27 374 [iot_thread]
28 375 [iot_thread] [WARN] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:753] 29 375 [iot_thread] Connection to the broker failed. Attempting connection retry after backoff delay.30 375 [iot_thread]
31 388 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:689] 32 388 [iot_thread] Retry attempt 3 out of maximum retry attempts 5.33 388 [iot_thread]
34 388 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:745] 35 388 [iot_thread] Creating a TLS connection to ************-ats.iot.eu-central-1.amazonaws.com:8883.36 388 [iot_thread]
E (4284) PKCS11: failed nvs get file size 4354 0
37 414 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed : <No-Low-Level-Code>
38 414 [iot_thread] TLS_Connect fail (0x2700, NULL)
39 414 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 40 414 [iot_thread] Failed to establish new connection. secureSocketStatus=-1.41 414 [iot_thread]
42 415 [iot_thread] [WARN] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:753] 43 415 [iot_thread] Connection to the broker failed. Attempting connection retry after backoff delay.44 415 [iot_thread]
45 443 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:689] 46 443 [iot_thread] Retry attempt 4 out of maximum retry attempts 5.47 443 [iot_thread]
48 443 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:745] 49 443 [iot_thread] Creating a TLS connection to a3pzitw5orfizl-ats.iot.eu-central-1.amazonaws.com:8883.50 443 [iot_thread]
 269 [eventTask] [INFO ][DEMO][2690] Connected to WiFi access point, ip address: <IP_ADDRESS>.
5 270 [iot_thread] [INFO ][DEMO][2700] Successfully initialized the demo. Network type for the demo: 1
6 270 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:745] 7 270 [iot_thread] Creating a TLS connection to ************-ats.iot.eu-central-1.amazonaws.com:8883.8 270 [iot_thread]
GAP procedure initiated: stop advertising.
GAP procedure initiated: stop advertising.
E (3164) PKCS11: failed nvs get file size 4354 0
9 301 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed : <No-Low-Level-Code>
10 301 [iot_thread] TLS_Connect fail (0x2700, NULL)
11 301 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 12 301 [iot_thread] Failed to establish new connection. secureSocketStatus=-1.13 301 [iot_thread]
14 303 [iot_thread] [WARN] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:753] 15 303 [iot_thread] Connection to the broker failed. Attempting connection retry after backoff delay.16 303 [iot_thread]
17 347 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:689] 18 347 [iot_thread] Retry attempt 2 out of maximum retry attempts 5.19 347 [iot_thread]
20 347 [iot_thread] [INFO] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:745] 21 347 [iot_thread] Creating a TLS connection to ************-ats.iot.eu-central-1.amazonaws.com:8883.22 347 [iot_thread]
E (3884) PKCS11: failed nvs get file size 4354 0
23 373 [iot_thread] ERROR: Handshake failed with error code X509 - Certificate verification failed, e.g. CRL, CA or signature check failed : <No-Low-Level-Code>
24 373 [iot_thread] TLS_Connect fail (0x2700, NULL)
25 373 [iot_thread] [ERROR] [Transport_Secure_Sockets] [transport_secure_sockets.c:323] 26 374 [iot_thread] Failed to establish new connection. secureSocketStatus=-1.27 374 [iot_thread]
28 375 [iot_thread] [WARN] [MQTT_MutualAuth_Demo] [mqtt_demo_mutual_auth.c:753] 29 375 [iot_thread] Connection to the broker failed. Attempting connection retry after backoff delay.30 375 [iot_thread]

Also to be sure test with aws-iot-device-sdk-embedded-c, everything works as expected.
[timdesi@home bin]$ ./mqtt_demo_mutual_auth
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:628] Establishing a TLS session to **********-ats.iot.eu-central-1.amazonaws.com:8883.
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:1327] Creating an MQTT connection to **********-ats.iot.eu-central-1.amazonaws.com.
[INFO] [MQTT] [core_mqtt.c:886] Packet received. ReceivedBytes=2.
[INFO] [MQTT] [core_mqtt_serializer.c:970] CONNACK session present bit not set.
[INFO] [MQTT] [core_mqtt_serializer.c:912] Connection accepted.
[INFO] [MQTT] [core_mqtt.c:1563] Received MQTT CONNACK successfully from broker.
[INFO] [MQTT] [core_mqtt.c:1829] MQTT connection established with the broker.
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:1096] MQTT connection successfully established with broker.

[INFO] [DEMO] [mqtt_demo_mutual_auth.c:1359] A clean MQTT connection is established. Cleaning up all the stored outgoing publishes.

[INFO] [DEMO] [mqtt_demo_mutual_auth.c:1377] Subscribing to the MQTT topic aws-freertos-test1/example/topic.
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:1160] SUBSCRIBE sent for topic aws-freertos-test1/example/topic to broker.

[INFO] [MQTT] [core_mqtt.c:886] Packet received. ReceivedBytes=3.
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:983] Subscribed to the topic aws-freertos-test1/example/topic. with maximum QoS 1.

[INFO] [DEMO] [mqtt_demo_mutual_auth.c:1421] Sending Publish to the MQTT topic aws-freertos-test1/example/topic.
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:1258] PUBLISH sent for topic aws-freertos-test1/example/topic to broker with packet ID 2.

[INFO] [MQTT] [core_mqtt.c:886] Packet received. ReceivedBytes=2.
[INFO] [MQTT] [core_mqtt.c:1162] Ack packet deserialized with result: MQTTSuccess.
[INFO] [MQTT] [core_mqtt.c:1175] State record updated. New state=MQTTPublishDone.
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:1008] PUBACK received for packet id 2.

[INFO] [DEMO] [mqtt_demo_mutual_auth.c:723] Cleaned up outgoing publish packet with packet id 2.

[INFO] [MQTT] [core_mqtt.c:886] Packet received. ReceivedBytes=48.
[INFO] [MQTT] [core_mqtt.c:1045] De-serialized incoming PUBLISH packet: DeserializerResult=MQTTSuccess.
[INFO] [MQTT] [core_mqtt.c:1058] State record updated. New state=MQTTPubAckSend.
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:812] Incoming QOS : 1.
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:827] Incoming Publish Topic Name: aws-freertos-test1/example/topic matches subscribed topic.
Incoming Publish message Packet Id is 1.
Incoming Publish Message : Hello World!.

[INFO] [DEMO] [mqtt_demo_mutual_auth.c:1442] Delay before continuing to next iteration.


Added active status of jobset for integration with kueue

Fixes #185
/kind feature

/ok-to-test

/retest

/label tide/merge-method-squash
/lgtm
/approve


Deploy sample web apps to website

cc @fryn

No real incoming links so it's safe(ish) to change the URL structure. Will update the project URL and delete the old folders once it lands and deploy once.


Linux Support

Linux support is currently in progress. I am using JuNest to try and install the packages. Here is my progress so far:

[X] Install JuNest by using a zip file. (Completed: https://github.com/PulseBeat02/JuNest-Mirror).
[X] Run a bash script that changes the export paths of JuNest to be proper (so future bash scripts can be executed).
[ ] Run a bash script that installs the proper VLC package downloaded previously.
[ ] Set the proper paths in NativeDiscovery to the JuNest directory.

Scrap this idea. I am going to make a custom player using JavaCV and then use that instead. VLC installation instead will be up to the user that is using Linux.


tetragon: make gops address configurable

It would be nice to make the gops address configurable so we can set it to a predictable
value in helm and expose it via the helm chart. That way we can easily get gops data
via a port forward.
Signed-off-by: William Findlay<EMAIL_ADDRESS>

😇


Display violated rule number on output

When I run tslint I see a bunch of errors and the filename/line number the rule violation occurred.  I do not however see the rule number violated.  This would be very useful.  Please add it.

By "rule number" you mean the rule name?
If yes, just use verbose formatter: add -t verbose CLI argument.
Or do you mean the total number of failures?

Ah, verbose was what I wanted.

fwiw #2228 tracks making verbose the default formatter.


Test against Emacs 26.2

EVM now supports Emacs 26.2, see https://github.com/rejeep/evm/issues/118

Belated thanks for this, but in the end I replaced EVM with my nix-emacs-ci solution (used via the setup-emacs GitHub Action).

Yes, I'm using that one too now 😊


Update README.md

I have sent an invite from tkrclient's account

You can edit when you accept invite

Yes I made the github website

Hello


Export components from @jupyter/chat

Exports the components from the package @jupyter/chat.
This will allow reusing it in other applications.
It also renames the RendermimeMarkdown to MarkdownRenderer for clarification.

Bump CI

Merging this one since it mostly about adding components to export.


Reversal of scrolling is ignored

VSCode Version:1.5.3
OS Version: Debian 8 (XFCE)

Steps to Reproduce:

In mouse setting set trackpad to use reverse scrolling [1]

observe that scrolling is not reversed as it is in Chrome, other editors (vim/gvim, sublime text) and basically all other system applications

[1]

@milanaleksic There is a workaround:
"editor.mouseWheelScrollSensitivity": -1


Independent scrolling of lists not working correctly

The independent scrolling of lists requires the structure of the HTML markup to be
body > .container > .row {
	height: 100%;
	padding-bottom: 50px;

}

So this means that if my page structure is body > form > container > row then scrolling isn't working. Workaround for me is to define a class name to apply to the row to set the height to 100%

I stumbled upon this thread and was wondering how to get scrolling working when I am using aurelia's custom routing engine.  So essentially my path is body > router-view > .container > .row.  Moving the html into the index file without using the router works fine, but it seems strange to me this won't work with the html structure described above.  I also added the wrapper to the .row with no change.


added Kubeflow Pipeline v2 caching doc

added Kubeflow Pipeline v2 caching doc

/assign @bobgy

/lgtm
Thank you Xiyue for the change!
If we can put Caching and Caching V2 pages under a new folder called Caching, it can improve document navigation under KFP section. But feel free to do it in future PR if it sounds good to you.

/lgtm
/approve


Refactor Logger.init(logger_type,logger_title,logger_footer,logger_info,logger_timestamp,log_to,client)

I've selected Logger.init(logger_type,logger_title,logger_footer,logger_info,logger_timestamp,log_to,client) for refactoring, which is a unit of 8 lines of code and 7 parameters. Addressing this will make our codebase more maintainable and improve Better Code Hub's Keep Unit Interfaces Small guideline rating! 👍
Here's the gist of this guideline:

Definition 📖
Limit the number of parameters per unit to at most 4.
Why❓
Keeping the number of parameters low makes units easier to understand, test and reuse.
How 🔧
Reduce the number of parameters by grouping related parameters into objects. Alternatively, try extracting parts of units that require fewer parameters.

You can find more info about this guideline in Building Maintainable Software. 📖

ℹ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the 🔲  next to them. The risk profile below the candidates signals (✅) when it's enough! 🏁

Good luck and happy coding! :shipit: :sparkles: :100:

Fixed


misc: 'sim{out/err}' -> 'sim{out/err}.txt'

By default, the --stderr-file and --stdout-file arguments were directing the simulator output to files named "simerr" and "simout" respectively if an output redirect was requested.
A small annoyance is these files lack an extension meaning programs refuse to open them, or to do so without some additional effort. On many systems they are assumed to scripts.
This patch adds the .txt extension to both, thus clearly indicating to other programs these are text files and can be opened to be read as such.

This is a significant API change since many outside scripts will process these files. Let's be sure this goes through some kind of community feedback phase before merging.

This is a significant API change since many outside scripts will process these files. Let's be sure this goes through some kind of community feedback phase before merging.

Yes, that's fair.
It's just a small personal annoyance, If it breaks anything for anyone I'll stall it for now.

Thanks! I've incorporated the fixes.

LGTM


Invalid p-tag wrapping for nested shortcodes

To fix issue #1148 I updated to master branch, and now I have a somewhat similar issue.
When I use 2 levels of shortcode, whatever come after {{ .Inner }} is wrapped with a
. I created a project to reproduce the problem: https://raw.githubusercontent.com/bclermont/hugo-issue-1387/
In this example all shortcode are simple
 like that:
https://github.com/bclermont/hugo-issue-1387/blob/master/layouts/shortcodes/column.html
and the following markdown:
https://raw.githubusercontent.com/bclermont/hugo-issue-1387/master/content/test.md
render as:

Before Container

begin container.

before row

row content

before column

Content column 1

between columsn

Content column 2

after column

After row

after container

Note the

.

I added a PR for the test case showing a workaround -- or I would call it a solution for this case. I will, eventually, figure out where that p is coming from, but having inner content with only a div screams for the {{< shortcode syntax.

OK, I think I see the problem.

Also see https://github.com/spf13/hugo/issues/1387

This is #1387

I know ... now. But there is another one ... similar.

#1642

:+1:

This issue has been automatically marked as stale because it has not been commented on for at least four months.
The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still valuable, please open a proposal at https://discuss.gohugo.io/.
This issue will automatically be closed in four months if no further activity occurs. Thank you for all your contributions.

Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't.
If this is a bug and you can still reproduce this error on the latest release or the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.


How can I show some value pre-filled in text input?

I am using it in my user profile screen where we ask user to select city from google-places-autocomplete. Once user updates profile and come back to profile screen I would like to show this field with city they have selected earlier. How can I achieve that and using which prop?

You can use the getDefaultValue prop.
<GooglePlacesAutocomplete
        query={{
          key: GOOGLE_PLACES_API_KEY,
          language: 'en', // language of the results
        }}
        getDefaultValue={() => '123 Main St New York, NY 111234'}
      />

You can also use a ref and set it with setAddressText.
Here is an example using a ref.
If you pass null or undefined to getDefaultValue you will get an error.

This props has been deleted and is no longer available. getDefaultValue


Filter Field on Trigger Handler doesn't work with Number/Currency fields

If you select a Number, Currency, or any field that uses numeric data type (i.e. percentage, rollup summary, formula) the TDTM filtering doesn't work. The class is still run.
Steps to Reproduce

Create custom field on Contact such as Household Income (Currency 18,0)
Set the Filter Field on a Contact-related Trigger Handler (such as CON_DoNotContact_TDTM) to Household_Income__c
Set the Filter Value to 50000
Create or update a Contact with 50000 in the Household Income field
Check Deceased and Save
Notice that the trigger runs even though there is a filter

I tested the above with a simple Number field and a Rollup Summary field that returns a number and got the same result.

Included in beta release 1.51 (Beta 5)

Included in production release rel/1.51


Alphabetical sorting?

Shouldn't this list be ordered in some useful fashion, so people can peruse the entries easily?
The current ordering (most recent at top), seems to render this useless for anything other than being a link collection for SEO purposes. 😦

Awesome @deekoder. :smile:


When setting "editor.minimap.renderCharacters" : false, the minimap will still render comments as Markdown code in .ps1 files

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.94.2
OS Version: 24H2 26100.2033

Steps to Reproduce:

Set "editor.minimap.renderCharacters" : false
Open a PowerShell file (.ps1) with comments (lines starting with "#")
The minimap will show large letters for those comment lines

/question
That's separate feature from rendering actual code in minimap,that's region titles and you have explicit region with titke.
https://code.visualstudio.com/updates/v1_88#_minimap-section-headers
Try setting "editor.minimap.showRegionSectionHeaders": false and/or "editor.minimap.showMarkSectionHeaders": false,


Contenteditable elements require a child ?

when an element is contenteditable it now gets run through a function which checks it has a child. This seems to be because its looking for a single child of m.trust(value). However whenever using contenteditables with mithril before I have always set the value user innerText or innerHtml or whatever it is in the attrs onject.

The condition is faulty - an empty array is the default value for vnode.children. Why were no tests written for this feature?

Perhaps the error should state that the value of a contenteditable must be set through content rather than a js object attribute.

Nah it was just plain wrong. If you don't pass any children in to hyperscript, it always creates a vnode with an empty array of children, so it's flat out wrong for contenteditable to complain when it sees the array. I've got a fix pending in #1425

#1425 is merged


Cleanup inside AbstractPermissionAwareCrudService

We now delete empty permission collections.
Besides, the abstract definition has been removed from the class.
@buehner : Should the classname change?

Yes. A renaming from AbstractPermissionAwareCrudService to PermissionAwareCrudService would be nice!

Renamed, checks green

:+1: i'll merge now


Support methods

Summary

Modify new (about man TH)
support some methods

lf
p
s
ul
li
nf

LGTM


Uploading File along with metadata in moleculer framework

Hello,
I tried following the moleculer framework documentation for uploading the file as multipart, by making change in ApiGateway route & setting the aliases with the rest route as mutlipart:service.action. Below is the snap of the ApiGateway settings
 {
                    path: "/api2",
                    authorization: true, //run method `authorize` before calling handler
                    // Use bodyparser module
                    bodyParsers: {
                        json: false,
                        urlencoded: false
                    },
                    mappingPolicy: "all",
                    aliases: {
                        // File upload from HTML multipart form
                        "POST /v2.dataviewer.upload": "multipart:v2.dataviewer.upload"
                    },
                    // Route level busboy config.
                    // More info: https://github.com/mscdex/busboy#busboy-methods
                    busboyConfig: {
                        limits: { files: 1 }
                        // Can be defined limit event handlers
                        // `onPartsLimit`, `onFilesLimit` or `onFieldsLimit`
                    },
                    // Call before `broker.call`
                    onBeforeCall(ctx, route, req) {
                        this.addExtraMetaData_beforeCall(ctx, route, req);
                    },
                    // Call after `broker.call` and before send back the response
                    onAfterCall(ctx, route, req, res, data) {
                        this.addExtraMetaData_afterCall(
                            ctx,
                            route,
                            req,
                            res,
                            data
                        );

                        //do stuff
                        let urlSplit = req.url.split('/'),
                            services = '/' + urlSplit[1] + '/' + urlSplit[2];
                        // Increment this metric (api.usage.total) counter by 1 everytime a particular api is called.
                        // This metric is used in grafana to see how many times this api is called by a individual user
                        this.broker.metrics.increment("api.usage.total", {
                            endpoint: req.url,
                            services: services,
                            login: ctx.meta.user.login,
                            version: this.version
                        }, 1);
                        //!important, has to return data after doing stuff
                        return data;
                    },
                    onError(req, res, err) {
                        // Increment this metric (api.error.total) counter by 1 everytime there is an error in API call.
                        // This metric is used in grafana to see how many times API failed for user level
                        this.formatAndSendError(res, err);
                        this.broker.metrics.increment("api.error.total", {
                            endpoint: req.url,
                            login: req.$ctx.meta.user ? req.$ctx.meta.user.login : "@unauthorized",
                            version: this.version
                        }, 1);
                    }
                }

But still in the service layer I'm getting undefined in the service Action method
@Action({
		cache: false,
		params: {
		}
	})
	async upload(ctx) {
		let request = ctx.params;
		request.user = ctx.meta.user;
		console.log('CTX', ctx);
		console.log('Params', ctx.params);
		console.log('ctx.meta.$multipart', ctx.meta.$multipart); //undefined
		console.log("Received upload $params:", ctx.meta.$params); //undefined
		return null;
	}

Any help is highly appreciated.

Hi @vishalgilbilemoodys is this issue resolved? i am facing the same issue!


This thing is wrong!

Steps to reproduce:
Actual result:
Expected result:

Reported by: Bob Rafferty<EMAIL_ADDRESS>- Contact via Marker.io
Source URL: https://dev-simpscar.pantheonsite.io/
Console: ℹ  1 info
BrowserChrome 99.0.4844.83Screen Size2560 x 1440OSOS X 10.15.7Viewport Size1689 x 944Pixel Ratio@2x

🤖 Marker.io bot - Bob Rafferty<EMAIL_ADDRESS>commented via Marker.io:

This is my comment.

Reply here

🤖 Marker.io bot - Bob Rafferty<EMAIL_ADDRESS>commented via Marker.io:

Another Comment

Reply here


WCF Service dependency tracking only auth requests resulting into 401 response

If you are reporting bug/issue, please provide detailed Repro instructions.
Repro Steps

Create an ASP.NET (target framework 4.6.1) Web API application using Visual Studio 2017 (by default, it refers to Application Insights 2.2 SDK)
Packages.config:

<package id="Microsoft.ApplicationInsights" version="2.2.0" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.0.6" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.DependencyCollector" version="2.2.0" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.PerfCounterCollector" version="2.2.0" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.Web" version="2.2.0" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.WindowsServer" version="2.2.0" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="2.2.0" targetFramework="net461" />

Update the Application Insights nuget packages to either 2.4 or 2.6.1
Packages.config:

<package id="Microsoft.ApplicationInsights" version="2.6.1" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.4.0" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.DependencyCollector" version="2.6.1" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.PerfCounterCollector" version="2.6.1" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.Web" version="2.6.1" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.WindowsServer" version="2.6.1" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="2.6.1" targetFramework="net461" />

Specify the Application Insights instrumentation key in the ApplicationInsights.config file.
Add a service reference to a WCF service that uses basicHttpBinding and has been configured for Transport Security using Windows Authentication.
Write code to invoke WCF operation from the Web API controller (e.g. ValuesController)
Either deploy/host the Web API in Azure App Services or host in IIS or simply run using Visual Studio/IIS Express
Invoke Web API method (e.g. values/get)
Visit Application Insights Log Analytics and query both requests and dependencies tables.

Actual Behavior
Query to dependencies for the corresponding operation_Id of the request will show only records with type=WCF Service, resultCode=401, Success=FALSE though the service call was successful. It’s only tracking the authentication request resulting into 401 response code. The subsequent HTTP POST request with user credentials and response code 200, isn’t tracked. Ideally, it should combine both and show as a single dependency as done in AI 2.2 SDK.
Expected Behavior
Dependencies should combine the duration for both auth handshake related HTTP request and actual operation and list it as a single record with resultCode=200.
Version Info
SDK Version : 2.4 or 2.6.1
.NET Version :	4.6.1
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : Visual Studio
OS : Windows 10 (Version 1607)
Hosting Info (IIS/Azure WebApps/ etc) : Both IIS and Azure App Services - API App

This issue significantly reduces the usefulness of app insights in apps that have Windows authenticated web api dependencies.
Is this something that would need fixing in ApplicationInsights? Or is it something in the behaviour of the HttpClient? I would assume it's ApplicationInsights interpreting the HttpClient responses.
See similar/same issues https://github.com/microsoft/ApplicationInsights-dotnet/issues/1394
https://github.com/microsoft/ApplicationInsights-dotnet/issues/1627


[docs] update CPU dockerfiles (fixes #5550)

Fixes #5550.
The Dockerfiles in docker/ can be used to build container images for running different builds of LightGBM. It's
This PR proposes some changes to the non-GPU Dockerfiles there, to hopefully make them easier to use, especially for people who are new to LightGBM.

updates from Ubuntu 16.04 (entered only-getting-security-patches mode in 2021)  to Ubuntu 20.04
installs OpenMP in every image
ensures that you can copy, paste, and run examples with 0 modification
switches from CMake-based build of the R package to CRAN-style package, since it's less likely to have installation issues
other misc. minor cleanup (like indentation so flags in docker run are easier to read)

removals of the interactive terminal

Thanks for that! You're right, for these cases the -it for docker run was unnecessary. Just applied those suggestions, I'll merge this once CI builds.


docs: improve juju_jaas_group datasource example

Description
Update example to conform to norms for other examples.
QA steps
Review the updated docs/data-sources/jaas_group.md file, comparing against other data source docs.

/merge


Added GuiValueBoxF for floating point numbers

added a personally needed and requested feature for a value box that works with floating point numbers

tried on linux and windows