# Icloud connect failure

**URL:** <https://community.getmailspring.com/t/icloud-connect-failure/1586>\
**Category:** Sync Issues\
**Tags:** icloud, needs-reproduction, critical\
**Created:** [April 30, 2021, 1:56am UTC](https://community.getmailspring.com/t/icloud-connect-failure/1586 "2021-04-30T01:56:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![knussear](https://community.getmailspring.com/user_avatar/community.getmailspring.com/knussear/32/2037_2.png) [@knussear](https://community.getmailspring.com/u/knussear)\
**Post date:** [April 30, 2021, 1:56am UTC](https://community.getmailspring.com/t/icloud-connect-failure/1586/1 "2021-04-30T01:56:39Z")

</div>

Description  
Icloud account has repeated connection failure.

To Reproduce…

Steps to reproduce the behavior:

1. Start mailspring

Expected Behavior  
expect my icloud account to sync - it does not sync  
I get a red error -  
Go to preferences to re connect account.  
I get an error that says "Sorry this folder does not exist (IMAP)

Screenshots  
 ![reconnect](https://community.getmailspring.com/uploads/default/original/2X/7/71e6fd0acefc7ca66b74e097cf2066b7ba271e03.png)  
Setup

Mailspring Version: 1.9.1-30ef802f  
Platform: linux  
Pop!\_OS 20.10

Install method -

snap from the snap store

Additional Context  
I am only having problems with icloud. Gmail and Exchange are both working. I cannot post the log info because I am a “new user” and am only allowed “2 links” go figure.

---

<div class="post-metadata">

**Author:** ![knussear](https://community.getmailspring.com/user_avatar/community.getmailspring.com/knussear/32/2037_2.png) [@knussear](https://community.getmailspring.com/u/knussear)\
**Post date:** [April 30, 2021, 1:57am UTC](https://community.getmailspring.com/t/icloud-connect-failure/1586/2 "2021-04-30T01:57:13Z")

</div>

This is what is in the error log mentioned below

```
Mailspring Version: 1.9.1-30ef802f
Platform: linux
Account State: sync_error
Account Provider: icloud
IMAP Server: imap dot mail dot me dot com
SMTP Server: smtp dot mail dot me dot com
--------------------------------------------
***

128680 [2021-04-29 18:39:53.424] [main] [info] Identity created at 1566074685 - using ID Schema 1
128680 [2021-04-29 18:39:53.425] [main] [info] ------------- Starting Sync (knussear@mac.com) ---------------
128680 [2021-04-29 18:39:53.429] [metadata] [info] Metadata delta stream starting...
128680 [2021-04-29 18:39:55.429] [background] [info] Marking all folders as `busy`
128680 [2021-04-29 18:39:55.434] [background] [info] Syncing folder list...
128680 [2021-04-29 18:39:55.861] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"syncFoldersAndLabels - fetchAllFolders","key":"ErrorNonExistantFolder","retryable":false,"what":"std::exception"}
***

128703 [2021-04-29 18:39:56.010] [main] [info] Identity created at 1566074685 - using ID Schema 1
128703 [2021-04-29 18:39:56.011] [main] [info] ------------- Starting Sync (knussear@mac.com) ---------------
128703 [2021-04-29 18:39:56.015] [metadata] [info] Metadata delta stream starting...
128703 [2021-04-29 18:39:58.015] [background] [info] Marking all folders as `busy`
128703 [2021-04-29 18:39:58.021] [background] [info] Syncing folder list...
128703 [2021-04-29 18:39:58.423] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"syncFoldersAndLabels - fetchAllFolders","key":"ErrorNonExistantFolder","retryable":false,"what":"std::exception"}
***

128722 [2021-04-29 18:39:58.569] [main] [info] Identity created at 1566074685 - using ID Schema 1
128722 [2021-04-29 18:39:58.570] [main] [info] ------------- Starting Sync (knussear@mac.com) ---------------
128722 [2021-04-29 18:39:58.573] [metadata] [info] Metadata delta stream starting...
128722 [2021-04-29 18:40:00.573] [background] [info] Marking all folders as `busy`
128722 [2021-04-29 18:40:00.578] [background] [info] Syncing folder list...
128722 [2021-04-29 18:40:00.953] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"syncFoldersAndLabels - fetchAllFolders","key":"ErrorNonExistantFolder","retryable":false,"what":"std::exception"}
***

128738 [2021-04-29 18:40:01.100] [main] [info] Identity created at 1566074685 - using ID Schema 1
128738 [2021-04-29 18:40:01.101] [main] [info] ------------- Starting Sync (knussear@mac.com) ---------------
128738 [2021-04-29 18:40:01.105] [metadata] [info] Metadata delta stream starting...
128738 [2021-04-29 18:40:03.105] [background] [info] Marking all folders as `busy`
128738 [2021-04-29 18:40:03.110] [background] [info] Syncing folder list...
128738 [2021-04-29 18:40:03.608] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"syncFoldersAndLabels - fetchAllFolders","key":"ErrorNonExistantFolder","retryable":false,"what":"std::exception"}
***
```

---

<div class="post-metadata">

**Author:** ![markring40-git](https://community.getmailspring.com/user_avatar/community.getmailspring.com/markring40-git/32/456_2.png) [@markring40-git](https://community.getmailspring.com/u/markring40-git)\
**Post date:** [April 30, 2021, 7:22pm UTC](https://community.getmailspring.com/t/icloud-connect-failure/1586/3 "2021-04-30T19:22:23Z")

</div>

Did you request your app-specific password from Apple, then paste that into the appropriate text window?

---

<div class="post-metadata">

**Author:** ![knussear](https://community.getmailspring.com/user_avatar/community.getmailspring.com/knussear/32/2037_2.png) [@knussear](https://community.getmailspring.com/u/knussear)\
**Post date:** [May 4, 2021, 10:01pm UTC](https://community.getmailspring.com/t/icloud-connect-failure/1586/4 "2021-05-04T22:01:24Z")

</div>

Yes - I have had mail successfully running for nearly a year. This is a recent problem

---

<div class="post-metadata">

**Author:** ![benjamincoffin](https://community.getmailspring.com/user_avatar/community.getmailspring.com/benjamincoffin/32/7686_2.png) [@benjamincoffin](https://community.getmailspring.com/u/benjamincoffin)\
**Post date:** [October 4, 2023, 10:35pm UTC](https://community.getmailspring.com/t/icloud-connect-failure/1586/5 "2023-10-04T22:35:35Z")

</div>

I just created an app-specific password using the instructions provided and pasted it in as my password to set-up/sync my iCloud account, and it keeps giving me an authentication error. Is anyone else having this issue?

---

<div class="post-metadata">

**Author:** ![Tarun](https://community.getmailspring.com/user_avatar/community.getmailspring.com/tarun/32/8427_2.png) [@Tarun](https://community.getmailspring.com/u/Tarun)\
**Post date:** [February 25, 2024, 11:28am UTC](https://community.getmailspring.com/t/icloud-connect-failure/1586/6 "2024-02-25T11:28:41Z")

</div>

i am facing same issue just with my icloud account. other gmails accounts are working fine. earlier icloud acc used to work fine to. ive tried everything but not working
