realm-object-server | issues related to the Realm Object Server | Database library
kandi X-RAY | realm-object-server Summary
kandi X-RAY | realm-object-server Summary
The perfect backend for the next generation of reactive mobile apps.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of realm-object-server
realm-object-server Key Features
realm-object-server Examples and Code Snippets
Community Discussions
Trending Discussions on realm-object-server
QUESTION
I am trying to connect to a Realm instance from an aws lambda (node) with the following code:
...ANSWER
Answered 2019-Feb-15 at 00:50I ran into the same issue using Realm from a Google Cloud Function. None of the Realm configuration options like path
or inMemory
seemed to have any effect. After much digging, the solution I found was to call process.chdir('/tmp')
prior to opening the Realm. This changes the current NodeJS process's working directory as explained in the NodeJS documentation. This allowed me to open the realm successfully.
QUESTION
I'm trying to build a Dockerfile based on the realm/realm-object-server image. To create a container with that image, I have to run the command:
$ docker run -p 9080:9080 -e ROS_TOS_EMAIL_ADDRESS="your-email-address" realm/realm-object-server
providing an email.
My Dockerfile starts:
FROM realm/realm-object-server:latest
how can I pass the ROS_TOS_EMAIL_ADDRESS environment variable to the FROM image? Otherwise it gives me an error later when executing the realm-object-server.
...ANSWER
Answered 2018-Feb-03 at 00:01Oh, nevermind.
An ENV ROS_TOS_EMAIL_ADDRESS="email-goes-here" after FROM works. I thought it had to be set before FROM and only ARG was possible for that, which did not set an environment variable just a variable for the Dockerfile context.
Now it works.
QUESTION
I am using Realm Object Server 1.8.3 manually installed from a .deb file (found on packagecloud.io) on my Ubuntu 16.10 and I would like to upgrade to a 2.x release (2.5.1 is the latest at the time of writing).
Unfortunately, packagecloud.io does not have 2.x packages (except some 2.0.0 release candidates and alpha versions) available and the installation instructions are using a different mechanism and do not integrate with systemd as far as I can tell.
Any hints on how to best do this or where to find a package?
...ANSWER
Answered 2018-Jan-21 at 00:01There's no .deb file because ROS 2.x is published as an npm package. While you're right that there's no integration with systemd, because it's an npm package, you can use pm2 to daemonize your install (pm2 integrates with systemd).
Before you can daemonize it though, you'll need to follow the step-by-step guide on upgrading ROS 1.x to 2.x (won't repost it here as it's fairly lengthy and may become obsolete as new versions of ROS are released).
After you've done that, running it with pm2 is fairly straightforward:
QUESTION
https://realm.io/docs/realm-object-server/latest/#extending-functionality
Here I see what appear to be instructions for extending the ROS to be a web service. Server side access is called a pro feature in the pricing page https://realm.io/pricing#price-cards so are those functions only available in the pro edition?
...ANSWER
Answered 2018-Jan-18 at 23:58No - those features are available in the developer edition. What is referred to as server-side access concerns writing server-side apps that use synchronized realms outside of ROS.
QUESTION
I am trying to setup a Realm Object Server for my company's mobile application. I have to use a custom authentication to allow users to access the database.
...ANSWER
Answered 2017-Dec-08 at 10:35The realm url was incorrect: it should have been realm://${URL}/~/abc
instead of realm://${URL}/abc
QUESTION
I've recently tried to install Realm Object Server from NPM (I'm on macOS). I was used to the Realm Dashboard which was embedded in the "macOS Bundle" available for the 1.x version. It is unfortunately unavailable when attempting to reach http://localhost:9080
.
There are now two things I think could be responsible for my issue:
- This feature was only present in the 1.x version
- This feature is not embedded in the NPM version
Please note that I'm using (or at least want to use) the Developer Edition.
I have been using ROS for a couple months now so I understand most of its functions but their subscription plans are very unclear because some features are supposed to be reserved to the Enterprise edition but on macOS you can temporarily have access to them for an unknown duration... Maybe what I'm looking for is no longer available ?
...ANSWER
Answered 2017-Oct-18 at 18:34The web dashboard for Realm Object Server was removed in the 2.0 release. Instead, we moved most of the functionality into a new product: Realm Studio. This is a cross-platform desktop application that combines the functionality from the web dashboard with functionality previously only available in our macOS Realm Browser.
We made this decision because we felt it was stronger for all of our users to unify the experience of working with Realm data in a UI. The 1.x version of Realm Object Server had a web data browser but it lacked features available in the macOS Realm Browser. With Realm Studio all functionality is available whether you are working with synced or non-synced local Realms.
Our focus will be entirely on Realm Studio going forward. It offers auto-updating so you can easily stay up-to-date as we add new functionality.
QUESTION
I would like to know more about how the temp folder on the Realm Object Server works so that I can delete files that aren't needed.
On my server, in var/lib/realm/object-server/tmp I have:
- 38 items (core.something) that are all 0 bytes from Monday August 21st.
- 272 items (core.something) that are 700mb - 3.5gb from Wednesday August 23rd.
- 1 file (core.something) that is 2.5gb from Sunday August 27th.
- 8 files (core.something) that are 1-3.5gb from Wednesday August 30th.
- 6 files (core.something) that are 1-3.4gb from Thursday August 31st.
- 9 files (core.something) that are 1-2.1gb from Friday September 1st.
- 2 files (core.something) that are 1-2.7gb from Monday September 4th.
- realm-object-server folder with folders from Aug 11th through September 4th.
My question is if I can delete anything off out of this folder. There are giant gaps in the days that these files dates say, and especially the ones from August 23rd are taking up 342gb of space on the server. If these are outdated, is there something that will automatically remove these files, or will it hurt anything if I remove them?
It is very confusing how there is so much data being stored on the server and so little data (comparatively) being transferred in/out from the server.
(side note: we were mistakenly storing images in the realms and have since switched to storing them on devices and storing the urls, but we haven't migrated the realms that were storing photos, so they still are, but all new realms will only store references. that's why there is so much bloat. but I don't see any documentation on manually clearing out the temp files or if that is something that is done automatically, when that should be done to make sure that it is working properly.)
...ANSWER
Answered 2017-Sep-11 at 11:02The files in the var/lib/realm/object-server/tmp directory can be deleted while ROS is stopped. There is no lasting damage from deleting those files. The tmp files will be created by ROS when needed again.
Realm's backup service does not backup the tmp directory either.
QUESTION
I'm running the developers edition of Realm Object Server v1.8.3 as a mac app. I start it with the start-object-server.command. It has been running fine for a number of days and everything was working really well, but ROS is now crashing within seconds of starting it.
Clearly the issue is with the JavaScript element, but I am not sure what has led to this position, nor how best to recover from this error. I have not created any additional functions, so not adding any NODE.js issues: it's just ROS with half a dozen realms.
The stack dump I get from the terminal session is as below. Any thoughts on recovery steps and how to prevent it happening again would be appreciated.
Last few GCs
607335 ms: Mark-sweep 1352.1 (1404.9) -> 1351.7 (1402.9) MB, 17.4 / 0.0 ms [allocation failure] [GC in old space requested]. 607361 ms: Mark-sweep 1351.7 (1402.9) -> 1351.7 (1367.9) MB, 25.3 / 0.0 ms [last resort gc]. 607376 ms: Mark-sweep 1351.7 (1367.9) -> 1351.6 (1367.9) MB, 15.3 / 0.0 ms [last resort gc].
JS stacktrace
...Security context: 0x3eb4332cfb39 1: DoJoin(aka DoJoin) [native array.js:~129] [pc=0x1160420f24ad] (this=0x3eb433204381 ,w=0x129875f3a8b1 ,x=3,N=0x3eb4332043c1 ,J=0x3828ea25c11 ,I=0x3eb4332b46c9 ) 2: Join(aka Join) [native array.js:180] [pc=0x116042067e32] (this=0x3eb433204381 ,w=0x129875f3a8b1
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 1: node::Abort() [/Applications/realm-mobile-platform/realm-object-server/.prefix/bin/node] 2: node::FatalException(v8::Isolate*, v8::Local, v8::Local) [/Applications/realm-mobile-platform/realm-object-server/.prefix/bin/node] 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Applications/realm-mobile-platform/realm-object-server/.prefix/bin/node] 4: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [/Applications/realm-mobile-platform/realm-object-server/.prefix/bin/node] 5: v8::internal::Runtime_StringBuilderJoin(int, v8::internal::Object**, v8::internal::Isolate*) [/Applications/realm-mobile-platform/realm-object-server/.prefix/bin/node] 6: 0x1160411092a7 /Applications/realm-mobile-platform/start-object-server.command: line 94: 39828 Abort trap: 6 node "$package/node_modules/.bin/realm-object-server" -c configuration.yml (wd: /Applications/realm-mobile-platform/realm-object-server/object-server)
ANSWER
Answered 2017-Sep-11 at 08:26Your ROS instance has run out of memory. To figure out why it runs out of memory, it would be helpful to see the log file of the server. Can you turn on the debug level for logging.
If you want to send a log file to Realm, it is better to open an issue for this at https://github.com/realm/realm-mobile-platform/issues.
QUESTION
I am using Realm Object Server running on Digital Ocean the lowest option ($5/month) on Ubuntu server. I keep getting connection refused errors; and I don't know if the error is from DO or ROS.
I am no expert on Ubuntu; therefore, I went in and cleared all the logs from /var/log and tried to reconnect. When there are large records to sync I keep getting the following error (on iOS, the client side):
...ANSWER
Answered 2017-Jul-11 at 05:26After reading the logs carefully, I found out that Realm Object Server was crashing. I don't know why yet, but now I know the problem is with the ROS.
* EDIT * The app was crashing due to not enough memory. By increasing the server's memory everything started work as expected.
QUESTION
I'm still learning how to implement realm.io in my next project. I'm really amazed in the Realm Mobile Platform (offline-sync).
I'm reading https://realm.io/docs/realm-object-server/#access-control but what I need is preventing user accessing certain data in a model. (let's say they only can access data only their own data).
Thank You
...ANSWER
Answered 2017-Jul-07 at 20:28In addition to the Realm documentation. There are a couple overviews on Multi-Realm setups you could check out. They go over permissions and database design.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install realm-object-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page