How to prevent creating realm-object-server folder?
See original GitHub issueWhen 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:
- Created 6 years ago
- Comments:16 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

In what order do you
process.chdir()andrequire('realm')?@Eyesonly88 Do you get permission denied or a different error message?