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

Error: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found #2973

Closed
hassan-xy opened this issue Feb 23, 2023 · 17 comments
Closed
Assignees
Labels
question Further information is requested

Comments

@hassan-xy
Copy link

Hi,
I have unzipped the zwave-js-ui-v8.8.6-linux-arm64.zip file and when I run ./zwave-js-ui,
I get the error message: Error: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found
I have tried updating my board using commands sudo apt update and sudo apt upgrade but it does not solve my issue. I will post the screenshot of my error and my board details.
Screenshot from 2023-02-23 10-27-41
Screenshot from 2023-02-23 10-02-46
Screenshot from 2023-02-23 09-57-55
Please have a look and guide me.
Thanks
Hassan

@hassan-xy hassan-xy added the question Further information is requested label Feb 23, 2023
@kpine
Copy link
Contributor

kpine commented Feb 23, 2023

What version of Ubuntu are you using? Can you upgrade?

@robertsLando
Copy link
Member

robertsLando commented Feb 23, 2023

@hassan-xy That's the same error that was happening with old os versions, I suggest to upgrade like @kpine suggested

Ref: #2211

@hassan-xy
Copy link
Author

Hi guys,
Thanks for your reply.
My configurations are:
Operating System: Ubuntu 18.04.6 LTS
Kernel: Linux 3.10.65
Architecture: arm64

@kpine
Copy link
Contributor

kpine commented Feb 23, 2023

Upgrading to even 20.04 LTS would solve the problem (having GLIBC 2.31). Ubuntu supports many arm64 platforms in their latest releases, including the latest LTS, 22.04.1.

@hassan-xy
Copy link
Author

Is there a way to run zwave-js-ui on older ubuntu versions, maybe a previous version of zwave-js-ui might help.
If you guys have an idea of a previous zwave-js-ui version compatible with ubuntu 18.04.6 then please let me know.

Thanks

@robertsLando
Copy link
Member

robertsLando commented Feb 23, 2023

@hassan-xy use docker or snap :)

BTW I really suggest to upgrade ubuntu, 18 reaches EOL on April

@kpine
Copy link
Contributor

kpine commented Feb 23, 2023

I don't think it is even possible to build from source, a supported version of Node cannot be installed in Ubuntu 18, at least currently: https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions.

EDIT: It might be possible to build from source using the official v16 release of Node, which works in Ubuntu 18, so you could try manually building from source with that version (Node 18 is not supported). You will be required to have several build tools to compile ZUI, along with node serialport.

It may just be easier to upgrade the OS or use Docker than do all of that.

@hassan-xy
Copy link
Author

hassan-xy commented Feb 23, 2023

@kpine @robertsLando Thanks for your reply.
Can you provide me with the source code. I will try building using the official v16 release of Node.
If you have any documentation, steps,tools, youtube tutorials that can help me in building from source then that would be great.
I appreciate any help that you guys can give as I am a complete beginner to all these things.

Thanks and Regards,
Hassan

@kpine
Copy link
Contributor

kpine commented Feb 23, 2023

The source code is this project. The build instructions are on the docs: https://zwave-js.github.io/zwave-js-ui/#/getting-started/other-methods

I used these commands to generate a package file for arm64:

# install build tools
apt update && apt install -y build-essential python3 python3-dev curl git zip

# install Node 16 for arm64
curl -sL https://nodejs.org/download/release/latest-v16.x/node-v16.19.1-linux-arm64.tar.gz | tar -xz --strip-components=1 -C /usr/local -v node-v16.19.1-linux-arm64/{bin,include,lib,share}

# check install
node --version

# install yarn build tool
npm install -g yarn

# download ZUI source
git clone -b v8.10.1 --depth 1 https://github.com/zwave-js/zwave-js-ui
cd zwave-js-ui

# install deps
yarn install --immutable

# build zui
yarn build

# create package
yarn pkg --skip-build --arch=arm64

I ran those commands inside an Ubuntu 18.04 docker container, running emulated arm64. I then copied the resulting pkg zip file to my RPi4 (arm64) and ZUI started up successfully. I didn't test further than that.

Keep in mind, you'll need to repeat this whenever ZUI has a new release, and it may take a long time to build it.

Is there a specific reason you can't upgrade Ubuntu though? That would be much easier in the long run.

@robertsLando
Copy link
Member

I agree that upgrading would be easier, but also docker way should work, check docs

@hassan-xy
Copy link
Author

Screenshot from 2023-02-27 10-44-00
Hi guys,
Thanks for all the help.
I have tried the above steps in my board, but still facing some issues as the last step: yarn pkg --skip-build --arch=arm64
I have recieved the message:
Warning Cannot find module 'zwave-js/Utils' from '/root/zwave-js-ui/server/lib' in /root/zwave-js-ui/server/lib/ZwaveClient.js
and then after few minutes list of failed messages, which i have attached below
Screenshot from 2023-02-27 10-38-43

Screenshot from 2023-02-27 10-44-00
NOTE: I am not using docker over here as have no experience or knowledge regarding it, and find it confusing as of now.
Trying to use the command: yarn start shows the following data
Screenshot from 2023-02-27 10-50-07
And the web portal at http://localhost:8091/ does not run and shows the below message.
Screenshot from 2023-02-27 10-51-34

Thanks and Regards,
Hassan

@hassan-xy
Copy link
Author

If you guys have any suggestions then do let me know
Thanks

@kpine
Copy link
Contributor

kpine commented Feb 27, 2023

Warning Cannot find module 'zwave-js/Utils' from '/root/zwave-js-ui/server/lib' in /root/zwave-js-ui/server/lib/ZwaveClient.js

They are warnings, not errors. As far as I can tell, they are harmless, but I could be wrong. You won't know until you actually configure the USB stick and try things out.

NOTE: I am not using docker over here as have no experience or knowledge regarding it, and find it confusing as of now.

IMO, learning Docker would be easier than what you are trying to do now.

Trying to use the command: yarn start shows the following data

The point of running yarn pkg was to generate the binary that you originally were trying to run. If you are going to run yarn start, there's no reason to make the package file.

And the web portal at http://localhost:8091 does not run and shows the below message.

Why are you using localhost? Is your screenshot from a web browser running on your ARM device? If not, it should be the IP of your device.

@hassan-xy
Copy link
Author

@kpine Hi, thanks for you reply.
I was using yarn start to run the application, I could not see any binary file generated.
I was making a mistake using localhost. and now using my ip address i get a different error.
Screenshot from 2023-02-27 11-18-11

@robertsLando
Copy link
Member

Application is running well the problem is that you didn't built the frontend:

yarn build

@hassan-xy
Copy link
Author

Hi guys,
Thanks for all your help
It seems all the issues that I am facing right now is due to incompatibility between nodejs code and the nodejs version.
If you have a look at the previously sent screenshots you would notice the message Failed to make bytecode node16-arm64. Also their is a missing settings.json file in store directory. I tried copying the settings.json file from another i.e zwave-js-ui version but recieved the below error.
Screenshot from 2023-02-28 10-36-11
Can you guys assist me on how to make the node files and the node-version compatible with each other.
Also please share a settings.json file which is node-16 compatible

@robertsLando
Copy link
Member

@hassan-xy I don't understand what you are doing here...

There are multiple ways to run zwave-js-ui (check docs):

  • Docker
  • PKG
  • Snap
  • Manually built

At start you tried the pkg version but both me and @kpine told you that the problem is your ubuntu version that need to be upgraded

Then you tried the manually built but you was using the wrong commands as you forgot to build frontend files so the UI wasn't working, also you was using yarn pkg to package your application and I dunno why

Now I dunno what you are asking for as from the logs you sent in above comment seems the application is running fine.

Based on this I could suggest you to read docs and choose one of the available ways to use ZUI or follow our suggestions of updating your ubuntu distro if you want to use the pkg version

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

No branches or pull requests

3 participants