sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

`sentry-cli` SSLRead error during debug symbols upload

Open allen-hsu opened this issue 10 months ago • 5 comments

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.

allen-hsu avatar Mar 26 '24 09:03 allen-hsu

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"

krystofwoldrich avatar Mar 27 '24 11:03 krystofwoldrich

Screenshot 2024-04-12 at 1 41 11 pm

Facing the same issue

Nehal-Zeller avatar Apr 12 '24 08:04 Nehal-Zeller

@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?

krystofwoldrich avatar Apr 15 '24 09:04 krystofwoldrich

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.

BruceWind avatar Apr 23 '24 12:04 BruceWind

@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 avatar Apr 24 '24 16:04 krystofwoldrich

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".

BruceWind avatar Apr 29 '24 03:04 BruceWind

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

krystofwoldrich avatar Apr 29 '24 08:04 krystofwoldrich