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

2.4.2 Admin UI says upgrade available even when on the latest version #7072

Closed
celogeek opened this issue Jun 1, 2022 · 9 comments
Closed

Comments

@celogeek
Copy link

celogeek commented Jun 1, 2022

This is the same issue as here #6910
I'm trying to understand how to generate again the asset with the right version but no success so far.

@srh
Copy link
Contributor

srh commented Jun 1, 2022

You can generate it by checking out https://github.com/rethinkdb/rethinkdb/tree/old_admin and following the instructions in the readme.

However, the PVERSION parameter seems to be ignored. There is a bug in make generate or some script that it calls. It might be possible to work around this by setting the git tag you want on the current commit, and generating then.

@celogeek
Copy link
Author

celogeek commented Jun 2, 2022

Well, the issue is on the release, even on the debian package you also have the issue.
When we open the old admin ui, then we have a pop up indicating a fresher version is available despite the fact that we are using it.
may be the process to embed or release should include the generation of the asset with the right version.

@celogeek
Copy link
Author

celogeek commented Jun 2, 2022

I will take a look, but I really doubt I should do this extract step in the build of the server only.

@celogeek
Copy link
Author

celogeek commented Jun 4, 2022

I try to build the admin UI, but it loop forever.
I think the node6 (which is very outdated), can't build on my setup.
I know I have to apply 2 patches before to make it works

--- mk/support/pkg/v8.sh
+++ mk/support/pkg/v8.sh
@@ -155,7 +155,7 @@
         if [[ "$arch" = "ppc64" ]]; then
             arch_gypflags="$arch_gypflags -Duse_system_icu=1"
         fi
-        pkg_make $arch.$mode CXX=$CXX LINK=$CXX LINK.target=$CXX GYPFLAGS="-Dwerror= $arch_gypflags" V=1
+        pkg_make $arch.$mode CXX=$CXX LINK=$CXX LINK.target=$CXX GYPFLAGS="-Dwerror= -Dv8_use_snapshot=false $arch_gypflags" V=1
         for lib in `find "$build_dir/out/$arch.$mode" -maxdepth 1 -name \*.a` `find "$build_dir/out/$arch.$mode/obj.target" -name \*.a`; do
             name=`basename $lib`
             cp $lib "$install_dir/lib/${name/.$arch/}"
@@ -168,7 +168,7 @@
     # These are the necessary libraries recommended by the docs:
     # https://developers.google.com/v8/get_started#hello
      if [[ "$ARCH" != "ppc64le" ]]; then
-        for lib in libv8_{base,libbase,snapshot,libplatform}; do
+        for lib in libv8_{base,libbase,nosnapshot,libplatform}; do
              echo "$install_dir/lib/$lib.a"
         done
         for lib in libicu{i18n,uc,data}; do

and

--- deps/v8_inspector/third_party/v8_inspector/platform/v8_inspector/String16STL.cpp.old        2021-09-08 18:09:36.288899969 +0200
+++ deps/v8_inspector/third_party/v8_inspector/platform/v8_inspector/String16STL.cpp    2021-09-08 18:10:06.528708959 +0200
@@ -4,6 +4,7 @@

 #include "platform/inspector_protocol/InspectorProtocol.h"

+#include <limits>
 #include <algorithm>
 #include <cctype>
 #include <cstdio>

This is because my gcc is too recent for this node version.
Did you build this ui on an old machines ?

@srh
Copy link
Contributor

srh commented Jun 13, 2022

Branch https://github.com/rethinkdb/rethinkdb/tree/old_admin doesn't have a file mk/support/pkg/v8.sh. So you are not generating the admin UI on the latest commit in that branch.

@celogeek
Copy link
Author

I've got those patch on the previous version of rethink.
I've try to build the old admin with the last patch, and failed.
I'm on arch linux with everything up to date (gcc, clang ...).
It seems node 6 failed to build without patches there.

@srh
Copy link
Contributor

srh commented Jun 20, 2022

From #6910 :

We could remove this step if the web UI used r.db('rethinkdb').table('server_status') to retrieve the server version.

@srh srh changed the title 2.4.2 with web_asset.cc set to 2.4.1-24-xxx 2.4.2 Admin UI says upgrade available even when on the latest version Jun 20, 2022
@srh srh pinned this issue Jun 20, 2022
@srh
Copy link
Contributor

srh commented Jun 20, 2022

I've retitled this and have pinned this issue.

@srh
Copy link
Contributor

srh commented Dec 29, 2022

This is now fixed in the v2.4.x branch (as the 2.4.3-version-numbered web assets has been properly generated in preparation for the 2.4.3 release). I'm closing, but keeping this issue pinned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants