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 SSLRead error during debug symbols upload #3716

Closed
6 tasks
allen-hsu opened this issue Mar 26, 2024 · 7 comments
Closed
6 tasks

sentry-cli SSLRead error during debug symbols upload #3716

allen-hsu opened this issue Mar 26, 2024 · 7 comments

Comments

@allen-hsu
Copy link

allen-hsu commented Mar 26, 2024

OS:

  • Windows
  • [ *] MacOS
  • Linux

Platform:

  • [*] iOS
  • Android

SDK:

  • [*] @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 5.6.0

react-native version: 0.72.12

Are you using Expo?

  • Yes
  • [ *] No

Are you using sentry.io or on-premise?

  • [*] sentry.io (SaaS)
  • on-premise

[Description]

When I was building an app with Xcode 15, I encountered an unexpected unknown error: 'Command PhaseScriptExecution failed with a nonzero exit code'. After repeated attempts, I found that the error occurred in one of the scripts for 'Upload Debug Symbols to Sentry':

$SENTRY_CLI debug-files upload "$INCLUDE_SOURCES_FLAG" "$DWARF_DSYM_FOLDER_PATH"

Deleting this line allows everything to work fine, but I need to upload Symbols to Sentry. Please advise me on how to fix it. If you use a version of Xcode lower than 15, it also works very well.

@krystofwoldrich
Copy link
Member

Hi @allen-hsu,
can you add --log-level=debug --force-foreground to the command, and share the log output with us?

$SENTRY_CLI debug-files upload --log-level=debug --force-foreground "$INCLUDE_SOURCES_FLAG" "$DWARF_DSYM_FOLDER_PATH"

@Nehal-Zeller
Copy link

Screenshot 2024-04-12 at 1 41 11 pm

Facing the same issue

@krystofwoldrich
Copy link
Member

krystofwoldrich commented Apr 15, 2024

@Nehal-Zeller Thank you for the message,
could you add export SENTRY_LOG_LEVEL=debug to the build phase and --force-foreground as mentioned in the previous comment.

And share the log with us?

Are you using sentry.io or self-hosted?

@BruceWind
Copy link

BruceWind commented Apr 23, 2024

I got the same error:

> Found 8 debug information files
> Prepared debug information files for upload
error: API request failed
  caused by: [56] Failure when receiving data from the peer (SSLRead() return error -36)

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

It always occurs on iOS build process. This uploading never get successful since I use sentry-RN.

And, I dont know how to add --force-foreground to command.

@krystofwoldrich
Copy link
Member

@BruceWind Thank you for the message,
please check if your build phase is up to date -> https://docs.sentry.io/platforms/react-native/manual-setup/manual-setup/#configure-automatic-debug-symbols-upload

Then you can use export SENTRY_CLI_RN_XCODE_EXTRA_ARGS="--force-foreground" to add the flag.

Does it happen locally or in CI?

@krystofwoldrich krystofwoldrich changed the title Xcode 15.3 Upload Debug Symbols to Sentry Fail sentry-cli SSLRead error during debug symbols upload Apr 26, 2024
@BruceWind
Copy link

BruceWind commented Apr 29, 2024

Hi, @krystofwoldrich krystofwoldrich thanks 4 ur reply. I've edited .xcode.env or sentry_xcode.sh to add 2 lines:

export SENTRY_CLI_RN_XCODE_EXTRA_ARGS="--force-foreground"

export SENTRY_LOG_LEVEL="debug"

and, then I open xcode to build(Archive), but I found uploading task got success.

In addition, you might want to know the version of sentry: "@sentry/react-native": "^5.19.3".

@krystofwoldrich
Copy link
Member

@BruceWind Thank you for the update, I'm happy the symbols uploaded successfully now.

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

No branches or pull requests

4 participants