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

Recent builds are not working with RHEL7 #5006

Closed
kneth opened this issue Oct 13, 2022 · 5 comments
Closed

Recent builds are not working with RHEL7 #5006

kneth opened this issue Oct 13, 2022 · 5 comments
Labels

Comments

@kneth
Copy link
Member

kneth commented Oct 13, 2022

How frequently does the bug occur?

All the time

Description

Version 10.21.0 doesn't work on older Linux systems.

Stacktrace & log output

node:internal/modules/cjs/loader:1183
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /root/test/node_modules/realm/build/Release/realm.node)
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at bindings (/root/test/node_modules/bindings/bindings.js:112:48)
    at getRealmConstructor (/root/test/node_modules/realm/lib/index.js:28:37)
    at Object.<anonymous> (/root/test/node_modules/realm/lib/index.js:53:26)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) {
  code: 'ERR_DLOPEN_FAILED'
}

Can you reproduce the bug?

Yes, always

Reproduction Steps

const Realm = require("realm");

Version

10.21.0

What SDK flavour are you using?

Local Database only

Are you using encryption?

No, not using encryption

Platform OS and version(s)

RHEL7

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

@kneth kneth added the T-Bug label Oct 13, 2022
@jayademola
Copy link

Same problem

iamer added a commit that referenced this issue Oct 27, 2022
This is to avoid linking to newer Glibc versions causing errors on older Linux
distros as seen in #5006
iamer added a commit to iamer/realm-js that referenced this issue Oct 28, 2022
This is to avoid linking to newer Glibc versions causing errors on older Linux
distros as seen in realm#5006
iamer added a commit to iamer/realm-js that referenced this issue Oct 28, 2022
This is to avoid linking to newer Glibc versions causing errors on older Linux
distros as seen in realm#5006
iamer added a commit to iamer/realm-js that referenced this issue Oct 28, 2022
This is to avoid linking to newer Glibc versions causing errors on older Linux
distros as seen in realm#5006
iamer added a commit to iamer/realm-js that referenced this issue Oct 28, 2022
This is to avoid linking to newer Glibc versions causing errors on older Linux
distros as seen in realm#5006
iamer added a commit to iamer/realm-js that referenced this issue Oct 29, 2022
This is to avoid linking to newer Glibc versions causing errors on older Linux
distros as seen in realm#5006
iamer added a commit that referenced this issue Oct 29, 2022
This is to avoid linking to newer Glibc versions causing errors on older Linux
distros as seen in #5006
iamer added a commit to iamer/realm-js that referenced this issue Nov 3, 2022
This is to avoid linking to newer Glibc versions causing errors on older Linux
distros as seen in realm#5006
iamer added a commit that referenced this issue Nov 7, 2022
This is to avoid linking to newer Glibc versions causing errors on older Linux
distros as seen in #5006
@kneth
Copy link
Member Author

kneth commented Nov 11, 2022

We have merged a PR which will enable builds for older versions of glibc in order to support Centos/RHEL 7. Binaries will be released from next release.

@sync-by-unito sync-by-unito bot closed this as completed Nov 11, 2022
@nickbeaulieu
Copy link

Will the fix for this issue be included in version v10.24.0 or only in version v11.2.0? It is only mentioned in the major version 11 release notes and not the major version 10 release notes.

We had a report of this crash from a few of our users on RHEL.

@kneth
Copy link
Member Author

kneth commented Nov 17, 2022

@nickbeaulieu It has only been included in v11.2.0.

Is there any reason why you cannot upgrade to v11.2.0?

@nickbeaulieu
Copy link

Sorry for the delay.

TLDR; expo 46 uses react-native < 0.70 so we aren't able to use realm 11 which requires react native >=0.70.

Background
We have realm in both a react native app and electron app. The electron app was fine to upgrade to > 11.2.0 (which we needed for the linux fix). The mobile app has been having issues since upgrading to Expo 47. We started randomly seeing a crash in production builds only after moving from 46 -> 47.

Going back to Expo 46 means we have to use react-native < 0.70 which means we have to use realm < 11. Until we are able to sort out the crashing we'll be sticking with Expo 46.

Reason
We wanted to use the same version of the realm SDK in both projects but in reality it seems like it's not that important. We haven't set up sync for the mobile app yet (still using local while under development) so hopefully we don't run into any issues mixing realm versions between the two apps 🤞🏻

I assume many others are in the same boat of using Expo 46 or less. Not being able to upgrade (or not yet choosing to) to Expo 47 is pretty common since it just came out, but my perception could be off there.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants