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

Add ubuntu 18.04 binary distros to automated release builds #610

Closed
lrettig opened this issue Oct 22, 2020 · 12 comments
Closed

Add ubuntu 18.04 binary distros to automated release builds #610

lrettig opened this issue Oct 22, 2020 · 12 comments

Comments

@lrettig
Copy link
Member

lrettig commented Oct 22, 2020

Describe the bug
After upgrading from 0.1.1 to 0.1.2, the app won't start. I get the following error:

$ /opt/Spacemesh/spacemesh_app 
(node:28841) DeprecationWarning: file property is deprecated and will be removed in v5.
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Failed to load /opt/Spacemesh/resources/app.asar/node_modules/grpc/src/node/extension_binary/electron-v8.4-linux-x64-glibc/grpc_node.node. /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.org.chromium.Chromium.v6ib4j)
    at process.func [as dlopen] (electron/js2c/asar.js:140:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1016:18)
    at Object.func [as .node] (electron/js2c/asar.js:149:18)
    at Module.load (internal/modules/cjs/loader.js:816:32)
    at Module._load (internal/modules/cjs/loader.js:728:14)
    at Function.Module._load (electron/js2c/asar.js:748:26)
    at Module.require (internal/modules/cjs/loader.js:853:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/opt/Spacemesh/resources/app.asar/node_modules/grpc/src/grpc_extension.js:32:13)
    at Module._compile (internal/modules/cjs/loader.js:968:30)
Xlib:  extension "XInputExtension" missing on display ":1".

To Reproduce
Steps to reproduce the behavior:

  1. Install v0.1.2 of smapp on a system with ubuntu 18.04: sudo dpkg -i spacemesh_app_0.1.2_amd64.deb
  2. Run the app

Desktop (please complete the following information):

$ uname -a
Linux smesh-dev-nyc-5 5.4.0-1028-gcp #29~18.04.1-Ubuntu SMP Mon Oct 5 16:41:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Additional context

I've run every previous release of the app on the same system, always upgrading in the same manner, and it always worked before. Suddenly this one doesn't. I haven't changed anything, other than running apt upgrade once in a while. It looks like the code of the app hasn't changed since the last release, so maybe it's something about how it was compiled? CC @avive @IlyaVi

$ ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1.2) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Possibly helpful:

@avive
Copy link
Contributor

avive commented Oct 22, 2020

This is exactly why we have to have automated builds for smapp asap on a predictable system.
This issue might be caused by build done by me on ubuntu 20. @IlyaVi

@avive
Copy link
Contributor

avive commented Oct 22, 2020

@IlyaVi - maybe as short term solution do a smapp build on 18 like the previous one you did?

@avive
Copy link
Contributor

avive commented Oct 23, 2020

@lrettig - can you please check on a fully patched u18.04 system. Meaning, with all core ubuntu updates installed? Does it resolve the problem if you are updating to the supported components? We will do another build on u18.04 but it will be interesting to know if this fixes this issue.

@lrettig
Copy link
Member Author

lrettig commented Oct 23, 2020

The latest build is launching on ubuntu 18.04, but now I see the spacemesh icon spin forever and I'm getting a different error (see below). I installed it on top of the previous one. @avive this system is fully patched (unless you mean something other than installing all the latest package updates using apt). I think the issue is lower level: ubuntu 18 supports glibc 2.27 (as you can see above), whereas the app was previously compiled with glibc 2.29 on a newer version of ubuntu.

I didn't mention above, but for future reference when I installed and tried to open the app from the UI, nothing happened, and the process hung. When I ran the command manually, I got the error above.

I now see this error repeated forever in the app log:

[2020-10-23 16:06:00.397] [error] In netService, in grpc isServiceReady, error is: Error: 14 UNAVAILABLE: failed to connect to all addresses
[2020-10-23 16:06:00.397] [info] In netService, in grpc isServiceReady, received: "true"
[2020-10-23 16:06:00.397] [error] In netService, in grpc isServiceReady, error is: Error: 14 UNAVAILABLE: failed to connect to all addresses
[2020-10-23 16:06:00.397] [info] In netService, in grpc isServiceReady, received: "true"
[2020-10-23 16:06:00.397] [error] In netService, in grpc isServiceReady, error is: Error: 14 UNAVAILABLE: failed to connect to all addresses
[2020-10-23 16:06:00.398] [info] In netService, in grpc isServiceReady, received: "true"
[2020-10-23 16:06:00.398] [error] In netService, in grpc isServiceReady, error is: Error: 14 UNAVAILABLE: failed to connect to all addresses
[2020-10-23 16:06:00.398] [info] In netService, in grpc isServiceReady, received: "true"
[2020-10-23 16:06:00.398] [error] In netService, in grpc isServiceReady, error is: Error: 14 UNAVAILABLE: failed to connect to all addresses
[2020-10-23 16:06:00.398] [info] In netService, in grpc isServiceReady, received: "true"

@tal-m
Copy link

tal-m commented Oct 23, 2020 via email

@lrettig
Copy link
Member Author

lrettig commented Oct 24, 2020

Latest ubuntu 18 .deb release is working beautifully, thanks. I'll test the snap release tomorrow as well.

@avive
Copy link
Contributor

avive commented Feb 11, 2021

We still need to add U 18 .deb and maybe even snap builds to automated build system. It is still quite popular.
@IlyaVi @narayanprusty

@avive avive changed the title glibc issue on ubuntu 18.04 with v0.1.2 Add ubuntu 18.04 binary distros to automated release builds Feb 11, 2021
@IlyaVi
Copy link
Contributor

IlyaVi commented Feb 11, 2021

I'll add "snap" build option to packager script, @narayanprusty you should add a new step for packing smapp using Ubuntu 18

@kvrvgixzis
Copy link

Cant run app om Ubuntu 18.04 with this problem/ Have fix? Download deb package from ofiicial site

nkt@v914636444:/opt/Spacemesh$ ./spacemesh_app 
(node:1668) DeprecationWarning: file property is deprecated and will be removed in v5.
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Failed to load /opt/Spacemesh/resources/app.asar/node_modules/grpc/src/node/extension_binary/electron-v8.4-linux-x64-glibc/grpc_node.node. /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.org.chromium.Chromium.ODnuJT)
    at process.func [as dlopen] (electron/js2c/asar.js:140:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1016:18)
    at Object.func [as .node] (electron/js2c/asar.js:149:18)
    at Module.load (internal/modules/cjs/loader.js:816:32)
    at Module._load (internal/modules/cjs/loader.js:728:14)
    at Function.Module._load (electron/js2c/asar.js:748:26)
    at Module.require (internal/modules/cjs/loader.js:853:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/opt/Spacemesh/resources/app.asar/node_modules/grpc/src/grpc_extension.js:32:13)
    at Module._compile (internal/modules/cjs/loader.js:968:30)

@rogerlzp
Copy link

failed in ubuntu20 also
./spacemesh_app
(node:149549) DeprecationWarning: file property is deprecated and will be removed in v5.
Segmentation fault (core dumped)

@avive
Copy link
Contributor

avive commented Jul 6, 2021

Are we satisfied with the Ubuntu 18.04 build in CI now and can close this issue or do we want to modify the CI to add more package types? @IlyaVi @lrettig

@IlyaVi
Copy link
Contributor

IlyaVi commented Jul 6, 2021

I think you can close this

@avive avive closed this as completed Jul 6, 2021
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

6 participants