Closed lapwingcloud closed 3 years ago
@jchenrev do you use our webpack-plugin by any chance? Or do you issue commands directly through the CLI?
If former, please update packages to the newer versions, as there was one issue with logging that we fixed here and has been released as 1.64.1
:
https://github.com/getsentry/sentry-cli/pull/949 https://github.com/getsentry/sentry-webpack-plugin/issues/187
If directly, can you still update, retry, and provide new logs? They should now include some timings data around the whole process, which can help us trace the issue down.
Uploading dSYMs for iOS within Xcode, as described in our docs , hangs for a long time as well. I'm using sentry-cli 1.66.0
, but uploading the dSYMs from the command line works sentry-cli upload-dif macOS-Sample.xcarchive
.
Not working with sentry-cli 1.67.2 either.
sentry-cli 1.67.2 has started hanging forever in our CI system as well, ever since 2021-07-15.
My hands are kinda tied without any possibility to reproduce this issue, and I tried in a lot of ways right now. It's almost impossible to proceed without that.
sentry-cli 1.67.2 has also started hanging forever in our CI system as well for 90 minutes at which point the build is aborted.
I have a repro for you @kamilogorek. I'm on sentry-cli 1.66.0. Do the following
I also added a video to show you how to do it.
https://user-images.githubusercontent.com/2443292/127524437-6d30ab0f-778e-4119-bd09-9775e6955d5a.mov
Update I also tried with 1.66.2 and it didn't work.
We are experiencing similar problems - but for me it works on older macos10.5 machines, but it hangs on macos11… and only happens on GitHub virtual machines - works fine on local machine
I'm able to (somewhat) reproduce it locally now. Could someone verify if forcing the foreground process fixes the issue for them? in CLI it's --force-foreground flag, for fastlane its :force_foreground config param.
I'm able to (somewhat) reproduce it locally now. Could someone verify if forcing the foreground process fixes the issue for them? in CLI it's --force-foreground flag, for fastlane its :force_foreground config param.
I gave it a shot with this in Fastlane but apparently that's not valid:
sentry_upload_dsym(
auth_token: ENV["SENTRY_AUTH_TOKEN"],
org_slug: "my-org",
project_slug: "my-project-slug",
force_foreground: true
)
I looked at the docs but couldn't find anything about force_foreground. Can you recommend a way to try it out for dSYMs @kamilogorek?
@jgale you can use the sentry_upload_dif
command instead. It supports force_foreground
. sentry_upload_dif
is the new official way, anyways.
@philipphofmann I briefly read through the docs, but I'm not sure if I understand. I'm not using Bitcode. If I use sentry_upload_dif
will I have full symbolication without doing anything else (e.g. configuring an Sentry with an App Store Connect API Key)
Yes, you can use sentry_upload_dif to upload dSYMS without Bitcode. I just realized our docs are not up to date. I'm going to open up a PR soon (just did https://github.com/getsentry/sentry-fastlane-plugin/pull/98) to lay out all possible configurations. In the meantime, you can check out the following file to see all possible options: https://github.com/getsentry/sentry-fastlane-plugin/blob/master/lib/fastlane/plugin/sentry/actions/sentry_upload_dif.rb
@philipphofmann Great, thanks for taking it on to update the docs.
I tried:
sentry_upload_dif(
auth_token: ENV["SENTRY_AUTH_TOKEN"],
org_slug: "shift-1",
project_slug: "consumer-app",
force_foreground: true
)
But I got the error:
ERROR [2021-10-07 18:31:14.84]: error: Found argument '--force_foreground' which wasn't expected, or isn't valid in this context
DEBUG [2021-10-07 18:31:14.84]: Did you mean --force-foreground?
Then I tried it with force-foreground
with a hyphen, but I got:
[20:15:47]: 116: org_slug: "shift-1",
[20:15:47]: 117: project_slug: "consumer-app",
[20:15:47]: => 118: force-foreground: true
[20:15:47]: 119: )
[20:15:47]: 120: upload_to_testflight(
[!] Syntax error in your Fastfile on line 118: Fastfile:118: syntax error, unexpected ':', expecting =>
force-foreground: true
^
Fastfile:194: syntax error, unexpected end, expecting end-of-input
Sorry about the error, @jgale. I opened a PR to fix this (https://github.com/getsentry/sentry-fastlane-plugin/pull/99) and will release a hotfix soon.
@jgale, hotfix is out https://github.com/getsentry/sentry-fastlane-plugin/releases/tag/1.10.1. Please try again.
Unfortunately it stilled timed out for me. 😢
INFO [2021-10-08 15:03:26.82]: -------------------------------
INFO [2021-10-08 15:03:26.82]: --- Step: sentry_upload_dif ---
INFO [2021-10-08 15:03:26.82]: -------------------------------
INFO [2021-10-08 15:03:26.93]: sentry-cli 1.69.1 installed!
INFO [2021-10-08 15:03:26.93]: Starting sentry-cli...
DEBUG [2021-10-08 15:03:26.93]: sentry-cli command:
INFO [2021-10-08 15:03:26.93]: $ ["sentry-cli", "upload-dif", ".", "--force-foreground"]
DEBUG [2021-10-08 15:03:26.93]:
timeout after 5400 seconds
I'm gathering all related issues to a single one so its easier to keep track of the progress. Please use https://github.com/getsentry/sentry-cli/issues/1015 for further discussions.
Just as documentation point, I installed the CLI today 4.nov.2021 and this problem was happening to me (not using fastlane) adding the --force-foreground flag on the XCode run script phase, did solve the issue
We are still having issues that occasionally this upload sourcemap step hangs in our CI for 1.5 hours, while usually the whole upload sourcempa step should only take at most 10 min to complete (depends on the source map sizes).
This looks like #840 but we are on 1.63.1 which should already include the fix of #840, so opening a new issue here. Here is the full debug log where it gets stuck, it just hangs at the last line
> Bundled 3782 files for upload
.