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

[Bug]: can't install realm binary #1060

Closed
amondnet opened this issue Dec 14, 2022 · 1 comment · Fixed by #1061
Closed

[Bug]: can't install realm binary #1060

amondnet opened this issue Dec 14, 2022 · 1 comment · Fixed by #1061
Assignees

Comments

@amondnet
Copy link
Contributor

amondnet commented Dec 14, 2022

What happened?

An error occurs when multiple users install realm binary on one computer.
The realm binary is always downloaded to the same location.

    final destinationFile = File(path.join(Directory.systemTemp.absolute.path, "realm-binary", archiveName));

Repro steps

  1. [user 1] Build an app that uses realm
  2. [user 2] Build an app that uses realm

Version

3.3.8

What Realm SDK flavor are you using?

MongoDB Atlas (i.e. Sync, auth, functions)

What type of application is this?

Flutter Application

Client OS and version

any

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

-> Installing realm (0.8.0+rc)
     > Running prepare command
       $ /bin/bash -c  set -e source "/Users/runner03/actions-runner/_work/chatbot-mobile/chatbot-mobile/package/balancefriends/ios/Flutter/flutter_export_environment.sh" && cd "$FLUTTER_APPLICATION_PATH" && "$FLUTTER_ROOT/bin/flutter" pub run realm install --target-os-type ios --package-name realm
       Downloading Realm binaries for realm@0.8.0+rc to /tmp/realm-binary/ios.tar.gz
    [!] /bin/bash -c 
    set -e
    source "/Users/runner03/actions-runner/_work/chatbot-mobile/chatbot-mobile/package/balancefriends/ios/Flutter/flutter_export_environment.sh" && cd "$FLUTTER_APPLICATION_PATH" && "$FLUTTER_ROOT/bin/flutter" pub run realm install --target-os-type ios --package-name realm

    Downloading Realm binaries for realm@0.8.0+rc to /tmp/realm-binary/ios.tar.gz
    Unhandled exception:
    FileSystemException: Cannot open file, path = '/tmp/realm-binary/ios.tar.gz' (OS Error: Permission denied, errno = 13)
    #0      _File.open.<anonymous closure> (dart:io/file_impl.dart:356:9)
    <asynchronous suspension>
    pub finished with exit code 255
@nielsenko
Copy link
Contributor

You are right. Will be fixed with #1061

@sync-by-unito sync-by-unito bot changed the title [Bug]: can't install realm binary [Bug]: can't install realm binary Feb 15, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants