question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to prevent creating realm-object-server folder?

See original GitHub issue

When I launch my node app like node app.js everything is ok

When I’m trying to launch it like node /nodes/someapp/app.js it fails with error

terminate called after throwing an instance of 'realm::util::File::PermissionDenied'
what():  make_dir() failed: Permission denied

I guess that realm tries to create realm-object-server folder on every require('realm') right in ./ folder. So when I’m trying to launch my app from / realm tries to create that folder in /.

Looks like bug! Could you please fix it?

Version of Realm and Tooling

  • Realm JS SDK Version: 1.10.0
  • Node or React Nattive: NodeJS 8
  • Client OS & Version: Debian 9
  • Which debugger for React Native: None

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
knethcommented, Aug 12, 2019

In what order do you process.chdir() and require('realm')?

1reaction
knethcommented, Aug 7, 2019

@Eyesonly88 Do you get permission denied or a different error message?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Realm Object Server Documentation
Open the realm-mobile-platform folder. You can start the Realm Object Server by double-clicking start-object-server.command .
Read more >
Install Realm Object Server - MongoDB
You will need to create a public key for the Realm Object Server to access ... simply by stopping the server and copying...
Read more >
Realm Object Server. Sync initial Local DB - Stack Overflow
The easiest solution to this is to make a new synchronized Realm, and then copy the data from the pre-bundled Realm into the...
Read more >
Securing the Realm Object Server with Let's Encrypt
Drop that in a non-public folder (e.g., /etc/realm/keys/ ) and make sure to make it executable ( chmod 500 /etc/realm/keys/post-renew.sh ).
Read more >
Integrating Realm Database in an Android Application - Auth0
In the above, we create a Realm model classe by extending the RealmObject base class. Realm supports the following field types: boolean ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found