Langsung ke konten

Debugging

codeDeskripsi
InvalidIpPengguna berada di pusat data Google dan pembaruan berusia kurang dari 4 jam. Ini dilakukan untuk mencegah perangkat bot Google dihitung sebagai perangkat di akun Anda.
needPlanUpgrade (sebelumnya needUpgrade)Menunjukkan bahwa Anda telah mencapai batas paket Anda, dan perangkat tidak akan menerima pembaruan sampai Anda meningkatkan atau sampai bulan berikutnya.
noNewPerangkat memiliki versi terbaru yang tersedia.
disablePlatformIosPerangkat berada di platform iOS, tetapi itu dinonaktifkan di pengaturan channel.
disablePlatformAndroidPerangkat berada di platform Android, tetapi itu dinonaktifkan di pengaturan channel.
disableAutoUpdate”major"
disableAutoUpdateUnderNativePerangkat memiliki versi (1.2.3), dan channel memiliki pembaruan (1.2.2) di bawah versi perangkat untuk dikirim, tetapi itu dinonaktifkan di pengaturan channel.
disableDevBuildPerangkat memiliki build dev, tetapi itu dinonaktifkan di pengaturan channel.
disableEmulatorPerangkat adalah emulator, tetapi itu dinonaktifkan di pengaturan channel.
cannotGetBundleGagal menghasilkan URL yang ditandatangani yang valid untuk unduhan bundle. Ini terjadi ketika pembuatan URL bundle gagal atau mengembalikan URL yang tidak valid (tidak dimulai dengan http/https) dan tidak ada manifest yang tersedia sebagai fallback.
cannotUpdateViaPrivateChannelPerangkat mencoba untuk mengaitkan diri dengan channel privat, tetapi pengaturan channel tidak mengizinkan pengaitan perangkat sendiri (allow_device_self_set adalah false) dan channel tidak publik.
channelMisconfiguredChannel dikonfigurasi untuk menonaktifkan auto-update berdasarkan nomor versi (disable_auto_update: 'version_number'), tetapi field min_update_version bundle adalah null, sehingga tidak mungkin untuk menentukan perangkat mana yang harus menerima pembaruan.
disableAutoUpdateMetadataAuto-update dinonaktifkan oleh metadata nomor versi. Channel memerlukan versi perangkat minimal min_update_version, tetapi versi perangkat saat ini lebih rendah dari ambang batas ini.
disableAutoUpdateToMajorPengaturan channel disable_auto_update: 'major' mencegah pembaruan yang akan meningkatkan nomor versi major (misalnya, memblokir 1.x.x dari pembaruan ke 2.x.x).
disableAutoUpdateToMinorPengaturan channel disable_auto_update: 'minor' mencegah pembaruan yang akan meningkatkan nomor versi minor (misalnya, memblokir 1.2.x dari pembaruan ke 1.3.x).
disableAutoUpdateToPatchPengaturan channel disable_auto_update: 'patch' mencegah pembaruan yang akan meningkatkan nomor versi patch, atau hanya mengizinkan pembaruan tingkat patch dalam versi major.minor yang sama (misalnya, 1.2.3 dapat memperbarui ke 1.2.4 tetapi tidak 1.2.2 atau 1.3.0).
missingBundleBundle yang ditetapkan ke channel ini tidak memiliki konten yang dapat diunduh. Ini berarti bundle tidak memiliki external_url, tidak ada r2_path, bukan versi built-in, dan tidak ada entri manifest yang tersedia untuk diunduh.
NoChannelOrOverrideTidak ada channel default yang dikonfigurasi untuk aplikasi ini dan perangkat tidak memiliki override channel spesifik yang ditetapkan. Setidaknya satu harus ada agar pembaruan dapat bekerja.
rateLimitedPerangkat telah dibatasi rate karena permintaan yang berlebihan.
codeDeskripsi
pingInternal test action used to verify the stats system is working correctly.
getInfo for downloading the new version has been sent to the device.
deleteOne bundle has been deleted on the device.
setA bundle has been set on the device.
set_failThe bundle failed to set.
resetThe device reset to the builtin bundle.
download_XXA new bundle has been downloaded - progress indicated by XX% (increments of 10%).
download_completeThe new bundle has finished downloading.
download_manifest_startThe device started downloading the update manifest.
download_manifest_completeThe device finished downloading the update manifest.
download_zip_startThe device started downloading the bundle archive.
download_zip_completeThe device finished downloading the bundle archive.
download_manifest_file_failOne manifest entry failed to download; the stats payload puts version_name in the form version:fileName to pinpoint the asset.
download_manifest_checksum_failThe manifest file failed checksum validation.
download_manifest_brotli_failThe manifest file failed to decompress using Brotli.
download_failThe new bundle failed to download.
update_failThe new bundle has been installed but failed to call notifyAppReady.
checksum_failThe new bundle failed to validate the checksum. If you’re using Capgo Cloud and encounter this error, it typically means your app version is expecting a different checksum type. The latest version of the CLI and plugins (version 5.10.0+, 6.25.0+ or 7+) use SHA256 checksums, while older plugins used CRC32. If you see a checksum fail, check if the checksum is CRC32 (a shorter hash) rather than SHA256. This usually indicates the bundle was uploaded with an old version of the CLI. Verify your bundle version in the Capgo dashboard - bundles created since version 5.10.0/6.25.0/7 should use SHA256. If you’re seeing CRC32 checksums, ensure you have the latest plugin version installed locally (the CLI checks your local plugin version to determine which checksum type to upload), then upgrade your CLI and re-upload the bundle.
windows_path_failThe zip has files who contain windows path who are illegal
canonical_path_failThe path of files is not canonical
directory_path_failThere is an error in the path of zip files
unzip_failunzip failed
low_mem_failDownload failed because of low memory in the device
app_moved_to_backgroundThe application entered the background state.
app_moved_to_foregroundThe application entered the foreground state.
decrypt_failFailed to decrypt the downloaded bundle.
getChannelThe current channel for the device was queried.
setChannelA channel was successfully set for the device.
uninstallThe application was uninstalled or Capgo data cleared.
blocked_by_server_urlServer.url is present in your capacitor config, this make Capacitor serve remote url and ignore local files, while our updater is made to function with local file, Server.url Is consider by Capacitor Makers as bad practice in production and will lead to many issue and plugin not working correctly.
  • SUCCESS: install bundle done
  • ERROR: install or download failed
  • PENDING: Download done, pending release
  • DELETED: Bundle deleted, still presented for stats
  • DOWNLOADING: Currently downloading a bundle

There is a debug command for Capgo cloud users.

Terminal window
npx @capgo/cli@latest app debug

This will allow you to check all events happening in the app and find a solution if updates don’t happen.

to find your logs on Xcode

to find your logs on Android studio

  • Failed to download from => same as download_fail
  • notifyAppReady was not called, roll back current bundle => same as as update_fail

To debug on iOS, you need to dump the app on your computer, you can do it like this:

Xcode has a built-in feature for inspecting the file system of developer-installed apps on an iOS device. Xcode Window menu showing Devices and Simulators option

To achieve this:

  • Connect your device to your Mac and select Window > Devices in the Xcode menubar.
  • Select your device in the left pane under the Devices section.
  • This will show a list of developer-installed apps for that device.
  • Select the app you want to inspect and then select the 3 dots icon near the bottom of the screen.
  • Here you can view the current file system by selecting download a snapshot of it.

Xcode Devices panel showing app container download option

Selecting Download Container… will download and export a snapshot of the file system as a .xcappdata file that you can browse through.

Downloaded xcappdata file with Show Package Contents context menu

Right-click on this file and select Show Package Contents to open the folder.

Open the App Data folder, and you should now see a few folders like Documents, Library, tmp, etc.

iOS app container folder structure showing Documents and Library folders

Then you will find a version in 2 folders:

library/NoCloud/ionic_built_snapshots is necessary after the app reboot

and documents/versions for hot reload

To debug on Android, you need to access the device from Android Studio:

  • Click View > Tool Windows > Device File Explorer or click the Device File Explorer button in the tool window bar to open the Device File Explorer.
  • Select a device from the dropdown list.
  • Open the path data/data/APP_NAME/ where APP_NAME is your app ID.

Android Studio Device File Explorer showing app data directory

Then Find the versions folder to see all the versions