realm / realm-core

Core database component for the Realm Mobile Database SDKs
https://realm.io
Apache License 2.0
1k stars 152 forks source link

install_baas.sh script not working on Linux #7503

Open jedelbo opened 3 months ago

jedelbo commented 3 months ago

After updating BAAS_VERSION in commit 666bb2580835, I get the following error when trying to start baas:

Work path: /opt/baas
jq version: jq-1.6
Checking out baas version 'acb71d0183b33eb304bb496390567efcfb8a6e60'
Previous HEAD position was 6bf5e11149 BAAS-29440: Update last deployed in sync migration pause pbs job (#13387)
HEAD is now at acb71d0183 BAAS-26552: Use the endpoints URL from AppDescription in Events soak test (#13290)
Using baas commit: acb71d0183b33eb304bb496390567efcfb8a6e60
Platform: Linux_x86_64 - linuxmint 21.1
Installing node and go to build baas and its dependencies
Node version: v14.17.0
Go version: go version go1.21.1 linux/amd64
mongod version: db version v7.0.3
mongosh version: 2.1.1
Starting mongodb
Initializing replica set
Adding baas user
{"level":"error","ts":1711018468.8200681,"caller":"libmongo/libmongo_init.go:36","msg":"plugin.Open(\"/opt/baas/baas/etc/libmongo/libmongo\"): plugin was built with a different version of package runtime"}
panic: libmongo.so cannot be found
sync-by-unito[bot] commented 3 months ago

➤ PM Bot commented:

Jira ticket: RCORE-2036

sync-by-unito[bot] commented 3 months ago

➤ jedelbo commented:

Seems like the problem is that BAASD has updated to go v1.21.6, but we download still v1.21.1. If I try to download the right version (https://s3.amazonaws.com/static.realm.io/evergreen-assets/go1.21.6.linux-amd64.tar.gz?) it does not exist.

sync-by-unito[bot] commented 3 months ago

➤ jedelbo commented:

[~jonathan.reams@mongodb.com] What to do here?

jbreams commented 3 months ago

The issue is that we need a new verison of libmongo.so that's built with the newer go toolchain. I guess what to do here is that I have to go track down new libmongo.so's for all the linuxes we want to support.