sentry-cli: Artifacts upload timeout when CLI is used through Fastlane

The sentry-cli is timing out every time when running on bitrise CI, using fastlane. Tried on macOS 11, 10.5.4 and below.

Here is the log:


+------------------------------------------------------------------------------+
| (4) Symbols WBTVD-iOS                                                        |
+------------------------------------------------------------------------------+
| id: fastlane                                                                 |
| version: 3.2.3                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2021-09-01T23:05:22Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
Config:
- WorkDir: .
- Lane: upload_symbols  app_id:com.wbtvd.tvd  platform:ios  project:wbtvd-ios version:2021.8
- BitriseConnection: automatic
- AppleID: 
- Password: 
- AppSpecificPassword: 
- APIKeyPath: 
- APIIssuer: 
- UpdateFastlane: true
- VerboseLog: [REDACTED]
- EnableCache: [REDACTED]
- GemHome: 
- BuildURL: https://app.bitrise.io/build/056cb5cc-b5ec-4b31-87fc-f72db0e49c42
- BuildAPIToken: *****

Expand WorkDir
Expanded WorkDir: /Users/vagrant/git

$ rbenv "versions"
  system
  2.4.5
  2.5.3
* 2.6.5 (set by /Users/vagrant/.rbenv/version)
  2.7.2
  3.0.0

Bitrise Apple Developer Connection with Apple ID found.

Determine desired Fastlane version
Gem lockfile does not exist

Update system installed Fastlane
$ gem "install" "fastlane" "--no-document"
Successfully installed optparse-0.1.1
Successfully installed fastlane-2.193.0
2 gems installed
$ rbenv "rehash"

Fastlane version
$ fastlane "--version"
fastlane installation at path:
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.193.0/bin/fastlane
-----------------------------
fastlane 2.193.0

Run Fastlane
Fastlane authentication-related environment varibale(s) ([FASTLANE_PASSWORD]) are set, overriding.
To stop overriding authentication-related environment variables, please set Bitrise Apple Developer Connection input to 'off' and leave authentication-related inputs empty.
$ fastlane "upload_symbols" "app_id:com.wbtvd.tvd" "platform:ios" "project:wbtvd-ios" "version:2021.8"
[23:05:55]: fastlane detected a Gemfile in the current directory
[23:05:55]: However, it seems like you didn't use `bundle exec`
[23:05:55]: To launch fastlane faster, please use
[23:05:55]: 
[23:05:55]: $ bundle exec fastlane upload_symbols app_id:com.wbtvd.tvd platform:ios project:wbtvd-ios version:2021.8
[23:05:55]: 
[23:05:55]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[23:05:58]: Installing Ruby gem 'fastlane-plugin-sentry'...
[23:06:00]: Successfully installed 'fastlane-plugin-sentry'
+------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                                              Used plugins                                                                                                               |
+------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Plugin                 | Version | Action                                                                                                                                                                                               |
+------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| fastlane-plugin-sentry | 1.9.0   | sentry_upload_dsym, sentry_set_commits, sentry_upload_sourcemap, sentry_finalize_release, sentry_upload_file, sentry_create_deploy, sentry_upload_proguard, sentry_create_release, sentry_upload_dif |
+------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

[23:06:00]: Sending anonymous analytics information
[23:06:00]: Learn more at https://docs.fastlane.tools/#metrics
[23:06:00]: No personal or sensitive data is sent.
[23:06:00]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[23:06:00]: Driving the lane 'upload_symbols' πŸš€
[23:06:00]: ----------------------------
[23:06:00]: --- Step: download_dsyms ---
[23:06:00]: ----------------------------
[23:06:00]: Login to App Store Connect (admin@wbtvd.com)
Session loaded from environment variable is not valid. Continuing with normal login.
[23:06:03]: Login successful
[23:06:08]: Looking for dSYM files for 'com.wbtvd.tvd' on platform IOS v2021.8
[23:06:24]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1632 to 'com.wbtvd.tvd-2021.8-1632.dSYM.zip'
[23:06:26]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1631 to 'com.wbtvd.tvd-2021.8-1631.dSYM.zip'
[23:06:26]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1630 to 'com.wbtvd.tvd-2021.8-1630.dSYM.zip'
[23:06:27]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1629 to 'com.wbtvd.tvd-2021.8-1629.dSYM.zip'
[23:06:28]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1628 to 'com.wbtvd.tvd-2021.8-1628.dSYM.zip'
[23:06:28]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1627 to 'com.wbtvd.tvd-2021.8-1627.dSYM.zip'
[23:06:30]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1626 to 'com.wbtvd.tvd-2021.8-1626.dSYM.zip'
[23:06:30]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1625 to 'com.wbtvd.tvd-2021.8-1625.dSYM.zip'
[23:06:31]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1624 to 'com.wbtvd.tvd-2021.8-1624.dSYM.zip'
[23:06:32]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1623 to 'com.wbtvd.tvd-2021.8-1623.dSYM.zip'
[23:06:33]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1622 to 'com.wbtvd.tvd-2021.8-1622.dSYM.zip'
[23:06:34]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1621 to 'com.wbtvd.tvd-2021.8-1621.dSYM.zip'
[23:06:34]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1620 to 'com.wbtvd.tvd-2021.8-1620.dSYM.zip'
[23:06:35]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1619 to 'com.wbtvd.tvd-2021.8-1619.dSYM.zip'
[23:06:37]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1618 to 'com.wbtvd.tvd-2021.8-1618.dSYM.zip'
[23:06:38]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1617 to 'com.wbtvd.tvd-2021.8-1617.dSYM.zip'
[23:06:38]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1616 to 'com.wbtvd.tvd-2021.8-1616.dSYM.zip'
[23:06:39]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1615 to 'com.wbtvd.tvd-2021.8-1615.dSYM.zip'
[23:06:40]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1614 to 'com.wbtvd.tvd-2021.8-1614.dSYM.zip'
[23:06:41]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1613 to 'com.wbtvd.tvd-2021.8-1613.dSYM.zip'
[23:06:42]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1612 to 'com.wbtvd.tvd-2021.8-1612.dSYM.zip'
[23:06:43]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1611 to 'com.wbtvd.tvd-2021.8-1611.dSYM.zip'
[23:06:44]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1610 to 'com.wbtvd.tvd-2021.8-1610.dSYM.zip'
[23:06:45]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1609 to 'com.wbtvd.tvd-2021.8-1609.dSYM.zip'
[23:06:46]: πŸ”‘  Successfully downloaded dSYM file for 2021.8 - 1608 to 'com.wbtvd.tvd-2021.8-1608.dSYM.zip'
[23:06:47]: --------------------------------
[23:06:47]: --- Step: sentry_upload_dsym ---
[23:06:47]: --------------------------------
[23:06:47]: sentry-cli 1.68.0 installed!
[23:06:47]: Starting sentry-cli...
timeout after 5400 seconds

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 8
  • Comments: 35 (13 by maintainers)

Most upvoted comments

Hey, guys, hi! We in our team faced exactly the same problem - the shipment of downloaded sims just stuck. The team and I have been searching for a long time and found out by experience that it’s all about sentry-cli 1.68.0. everything works successfully in 1.67.0! But, you will not be able to roll back through brew (there are no formulas for such). We found the following way out:

  1. brew uninstall sentry-cli
  2. Pull out the shell script to install the sentry-cli via bash: https://sentry.io/get-cli/
  3. Create this script locally and change the version in it to the desired one (in our case 1.67.0)
  4. Run it from the command line of the CI machine.

After these manipulations, we managed to deliver the necessary sentry-cli package, and after re-launching our dsyms shipping lane, we succeeded!

Good luck to you guys!)

Oh my, my, my! That’s such a good news, thanks!

Closing the issue, as it seems like the original issue has been resolved. Please do not hesitate to ping me if it is still relevant, and I will happily reopen it. Cheers!

Hi!

Fighting with this issue I found workaround.

sentry_upload_dsym action was replaced with

  lane :upload_dsym_file do |options|
    sh "sentry-cli --url \"#{ENV["SENTRY_URL"]}\" --auth-token \"#{ENV["SENTRY_AUTH_TOKEN"]}\" upload-dsym --org \"#{options[:org_slug]}\" --project \"#{options[:project_slug]}\" \"#{options[:dsym_path]}\""
  end

upload_dsym_file lane works fast, extra stable and besides print detailed logs.

Fastlane plugin fastlane-plugin-sentry deleted(davay dosvidaniya)

But this issue is still open πŸ€”

Also confirming 1.70.1 fixes it for me. Thanks so much for sticking with this and trying to figure something out!!

@kamilogorek Success! 1.70.1 is working for us!

@kamilogorek Seems to work for me with 1.70.1

Sentry team - any fix in the works for this?

See:

I never used fastlane nor bitrise CI, so may I ask someone to help me get the reproduction steps for this issue? Thanks

Hello @kamilogorek, I can confirm that it works fine on 1.67.0 and it is timing out on 1.67.1.

Thanks! That’s at least some clue

Can someone confirm that it’s also timing out on 1.67.1? If so, the only change that this version includes is this commit - https://github.com/getsentry/sentry-cli/commit/0af08560161b7a2eccdd613ba847ea8667a36e74 which does nothing else than printing more debug logs. Other than this, there were 2 minor deps updates, I wonder if that may be the issue.

I never used fastlane nor bitrise CI, so may I ask someone to help me get the reproduction steps for this issue? Thanks