Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry CLI Xcode background uploads are not working #1895

Closed
krystofwoldrich opened this issue Jan 16, 2024 · 1 comment · Fixed by #1896
Closed

Sentry CLI Xcode background uploads are not working #1895

krystofwoldrich opened this issue Jan 16, 2024 · 1 comment · Fixed by #1896

Comments

@krystofwoldrich
Copy link
Member

krystofwoldrich commented Jan 16, 2024

Environment

What version of the CLI and what OS are you running?

macOS 14.1.2
Xcode 15.2 (15C500b)
Sentry CLI 2.21.4 – 2.25.0

Steps to Reproduce

Related:

This issue is a follow-up to the RN SDK issue, I reproduced the bug outside of RN projects.

Execute the following command in the run build script build phase.

sentry-cli debug-files upload "$DWARF_DSYM_FOLDER_PATH"

The last version where the background upload is working is 2.21.3.

Expected Result

The command should finish uploading debug files in the background.

Actual Result

The command stopped after going to the background without any error, no files were uploaded.

Logs

When filing a bug report, please attach debug logs, either by using --log-level=debug flag or SENTRY_LOG_LEVEL=debug environment variable.

Before going to the background:

  WARN    2024-01-16 13:12:28.286868 +01:00 Failed to find file referenced by SENTRY_PROPERTIES (sentry.properties)
  DEBUG   2024-01-16 13:12:28.287177 +01:00 sentry-cli version: 2.21.4, platform: "darwin", architecture: "arm64"
  INFO    2024-01-16 13:12:28.287200 +01:00 sentry-cli was invoked with the following command line: "/Users/krystofwoldrich/repos/sentry-cli/sentry-cli-Darwin-arm64.2.21.4" "debug-files" "upload" "--log-level=debug" "/Users/krystofwoldrich/Library/Developer/Xcode/DerivedData/Sentry_CLI_Background_Test-csojtsktdkcocielvfjoqmdlcrbz/Build/Products/Debug-iphonesimulator"
  INFO    2024-01-16 13:12:28.287226 +01:00 Issuing a command for Organization: sentry-sdks Project: sentry-react-native
Continuing in background.

From background redirected stdout and stderr:

�[30m�[43m  DEBUG  �[0m �[2m2024-01-16 10:39:50.899044 +01:00�[0m request GET https://sentry.io/api/0/organizations/sentry-sdks/chunk-upload/�[2m�[0m
�[30m�[43m  DEBUG  �[0m �[2m2024-01-16 10:39:50.899127 +01:00�[0m using token authentication�[2m�[0m
�[30m�[43m  DEBUG  �[0m �[2m2024-01-16 10:39:50.899183 +01:00�[0m retry number 0, max retries: 0�[2m�[0m
@krystofwoldrich
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant