แอป Mac ที่เปิดใช้งาน iCloud ไม่สามารถเชื่อมต่อกับเซิร์ฟเวอร์ CloudKit


1

ฉันกำลังพัฒนาแอป macOS โดยใช้เทคโนโลยี CloudKit ของ Apple และได้รับรายงานข้อผิดพลาดจากผู้ใช้รายหนึ่งที่ไม่สามารถซิงโครไนซ์ข้อมูลกับเซิร์ฟเวอร์ iCloud ของ Apple ได้เนื่องจากข้อผิดพลาด "Network Unavailable" ฉันค่อนข้างแน่ใจว่ามันเป็นปัญหากับการกำหนดค่าเครือข่ายของเขาเพราะฉันไม่เห็นอะไรจากไคลเอนต์ของเขาในไฟล์บันทึก iCloud ของฉันและมันเกิดขึ้นสำหรับผู้ใช้เฉพาะรายนี้เท่านั้น เราต้องการติดตามปัญหาและลองทำตามขั้นตอนต่อไปนี้แล้ว:

  • ผู้ใช้ติดตั้ง LittleSnitch และปิดตัวกรองเครือข่ายชั่วคราวโดยไม่มีความแตกต่าง
  • ผู้ใช้ไม่สามารถ ping เซิร์ฟเวอร์ CloudKit ของ Apple:

    ping -c4 p61-ckdatabase.icloud.com:443
    ping: cannot resolve p61-ckdatabase.icloud.com:443: Unknown host
    
  • การซิงโครไนซ์ใน Apple Notes (ซึ่งใช้ CloudKit) ก็ใช้งานได้ดี

  • ปัญหายังคงมีอยู่เมื่อเขาเชื่อมต่อ Mac ของเขากับฮอตสปอตของ iPhone

ข้อความต่อไปนี้ปรากฏขึ้นในบันทึกของระบบขณะที่เริ่มแอพ:

problem 15:10:44.020090 +0200   cfprefsd    attempt to write to a container /var/root/Library/Group Containers/7T8DYS43CJ.de.lisczyk.felix.SnipNotes that does not yet exist. Using client-provided container path without resolving symlinks.
fehler  15:10:44.020238 +0200   SnipNotes   Failed to read values in CFPrefsPlistSource<0x6180000fe580> (Domain: 7T8DYS43CJ.de.lisczyk.felix.SnipNotes, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null)): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
standard    15:10:44.321589 +0200   SnipNotes   [Crashlytics] Version 3.8.4 (121)
standard    15:10:44.436198 +0200   SnipNotes   Faulting in NSHTTPCookieStorage singleton
standard    15:10:44.436230 +0200   SnipNotes   Faulting in CFHTTPCookieStorage singleton
standard    15:10:44.436253 +0200   SnipNotes   Creating default cookie storage with default identifier
standard    15:10:44.475833 +0200   SnipNotes   0x61000046e100 opened /var/folders/2r/_94bykls11dbzf_71qwcc47r0000gp/C/de.lisczyk.felix.SnipNotesMacApp//mds/mdsObject.db: 4636 bytes
standard    15:10:44.476194 +0200   SnipNotes   0x61800046ba00 opened /var/folders/2r/_94bykls11dbzf_71qwcc47r0000gp/C/de.lisczyk.felix.SnipNotesMacApp//mds/mdsDirectory.db: 50744 bytes
standard    15:10:44.477688 +0200   SnipNotes   0x61000046e100 opened /var/folders/2r/_94bykls11dbzf_71qwcc47r0000gp/C/de.lisczyk.felix.SnipNotesMacApp//mds/mdsDirectory.db: 50744 bytes
standard    15:10:44.479548 +0200   SnipNotes   0x608000c60180 opened /Users/user/Library/Keychains/login.keychain-db: 344032 bytes
standard    15:10:44.483240 +0200   SnipNotes   0x608000c60500 opened /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates: 25604 bytes
standard    15:10:44.485988 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.486137 +0200   SnipNotes   0x600001874e00 opened /Users/user/Library/Keychains/Microsoft_Entity_Certificates: 31108 bytes
standard    15:10:44.489005 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.489110 +0200   SnipNotes   0x61000046f5c0 opened /Library/Keychains/System.keychain: 163852 bytes
standard    15:10:44.491864 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.491965 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.492204 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.492360 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.492548 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.492670 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.492879 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.492983 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.493224 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.493317 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.493628 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.493755 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.493995 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.494104 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.494338 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.494438 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.494674 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.494801 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.495032 +0200   SnipNotes   TIC TCP Conn Start [1:0x618000381110]
standard    15:10:44.495793 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.495933 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.496195 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.496298 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.496605 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.496723 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.497016 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.497146 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.497395 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.497530 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.497785 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.497880 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.498038 +0200   SnipNotes   TIC TCP Conn Start [2:0x60800019e6b0]
standard    15:10:44.679542 +0200   SnipNotes   TIC TCP Conn Event [1:0x618000381110]: 1 Err(0)
standard    15:10:44.679567 +0200   SnipNotes   TIC TCP Conn Connected [1:0x618000381110]: Err(0)
standard    15:10:44.679687 +0200   SnipNotes   TIC Enabling TLS [1:0x618000381110]
standard    15:10:44.680485 +0200   SnipNotes   TIC TCP Conn Event [2:0x60800019e6b0]: 1 Err(0)
standard    15:10:44.680510 +0200   SnipNotes   TIC TCP Conn Connected [2:0x60800019e6b0]: Err(0)
standard    15:10:44.680690 +0200   SnipNotes   TIC Enabling TLS [2:0x60800019e6b0]
standard    15:10:44.825914 +0200   SnipNotes   TIC TLS Event [1:0x618000381110]: 2, Pending(0)
standard    15:10:44.829242 +0200   SnipNotes   TIC TLS Event [1:0x618000381110]: 11, Pending(0)
standard    15:10:44.830154 +0200   SnipNotes   TIC TLS Event [1:0x618000381110]: 12, Pending(0)
standard    15:10:44.830214 +0200   SnipNotes   TIC TLS Event [1:0x618000381110]: 14, Pending(0)
standard    15:10:44.831864 +0200   SnipNotes   TIC TLS Event [2:0x60800019e6b0]: 2, Pending(0)
standard    15:10:44.834275 +0200   SnipNotes   TIC TLS Trust Result [1:0x618000381110]: 0
standard    15:10:44.834397 +0200   SnipNotes   TIC TLS Event [2:0x60800019e6b0]: 11, Pending(0)
standard    15:10:44.837836 +0200   SnipNotes   TIC TLS Event [2:0x60800019e6b0]: 12, Pending(0)
standard    15:10:44.837882 +0200   SnipNotes   TIC TLS Event [2:0x60800019e6b0]: 14, Pending(0)
standard    15:10:44.842192 +0200   SnipNotes   TIC TLS Trust Result [2:0x60800019e6b0]: 0
standard    15:10:44.959226 +0200   SnipNotes   TIC TLS Event [1:0x618000381110]: 20, Pending(0)
standard    15:10:44.959586 +0200   SnipNotes   TIC TCP Conn Event [1:0x618000381110]: 8 Err(0)
standard    15:10:44.959619 +0200   SnipNotes   TIC TLS Handshake Complete [1:0x618000381110]
standard    15:10:44.960159 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.960309 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.960739 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.960976 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.961243 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.961423 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.961683 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.961795 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.962831 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.962977 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.963267 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.963430 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.963751 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.963947 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.964021 +0200   SnipNotes   TIC TLS Event [2:0x60800019e6b0]: 20, Pending(0)
standard    15:10:44.964297 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.964330 +0200   SnipNotes   TIC TCP Conn Event [2:0x60800019e6b0]: 8 Err(0)
standard    15:10:44.964356 +0200   SnipNotes   TIC TLS Handshake Complete [2:0x60800019e6b0]
standard    15:10:44.964496 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.964794 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.964914 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.965168 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.965316 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.965767 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.965969 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.966246 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.966379 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.966724 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.966888 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.967214 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.967405 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.967743 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.967853 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:44.968149 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Intermediate_Certificates
standard    15:10:44.968322 +0200   SnipNotes   skipping upgrade for locked keychain /Users/user/Library/Keychains/Microsoft_Entity_Certificates
standard    15:10:45.130344 +0200   SnipNotes   TIC TCP Conn Cancel [1:0x618000381110]
standard    15:10:46.587492 +0200   SnipNotes Helper    Performance: Please update this scripting addition to supply a value for ThreadSafe for each event handler: "/Library/ScriptingAdditions/SIMBL.osax"

ฉันขอขอบคุณคำแนะนำใด ๆ ที่คุณสามารถให้ฉันเกี่ยวกับวิธีการแยกปัญหา ขอบคุณ!

โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.