lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.46k stars 1.45k forks source link

can't launch lens within centos7 #903

Closed wplatform closed 1 year ago

wplatform commented 3 years ago

launch log

innerError Error: Cannot find module '../build/Debug/pty.node' Require stack:

(kontena-lens:15793): GdkPixbuf-WARNING **: 14:45:08.678: Cannot open pixbuf loader module file '/home/cms/snap/kontena-lens/common/.cache/gdk-pixbuf-loaders.cache': No such file or directory

This likely means that your installation is broken. Try running the command gdk-pixbuf-query-loaders > /home/cms/snap/kontena-lens/common/.cache/gdk-pixbuf-loaders.cache to make things work again for the time being. GLib-GIO-Message: 14:45:09.179: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.

israelKusayev commented 3 years ago

I get the exact same error on centos 7

pmdawood commented 3 years ago

Got the same error when i have tried to launch lens on centos 7.can you help on this? ./Lens-4.0.7.AppImage [13561:0124/165009.189457:FATAL:electron_main_delegate.cc(254)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. Trace/breakpoint trap (core dumped) [root@myuser]# ./Lens-4.0.7.AppImage --no-sandbox Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank" innerError Error: Cannot find module '../build/Debug/pty.node' Require stack:

OttawaSquirrel commented 3 years ago

I am also seeing the same error. Mint with a DEB install. error.log

Nokel81 commented 3 years ago

Seems to be the same issue as #1038 does the workaround there help?

dawoodmohamed commented 3 years ago

@Nokel81 i have tried the solution mentioned#1038 but still i didn't work for me.please help us,all our machine are centos based , and we are completely struck here.

Nokel81 commented 3 years ago

@Nachasic any ideas?

savioteles commented 3 years ago

Any ideas? We are facing the same problem here.

sortel64 commented 2 years ago

No success building the latest release on CentOS 7 here. We are completely stuck here too. It seems that when Mirantis says Linux they really mean Ubuntu Linux.

Has anyone tried to run this in a Docker container?

brcros commented 2 years ago

Try to add these 2 libs into /opt/Lens :

It works for me, using Lens 5.3.1. The point is to find the good release. Lens will tell you if the version is not the one...

Bruno

sortel64 commented 2 years ago

Thanks for the hint! May I ask where you found these? A particular Linux (e.g. Ubuntu vX, or Fedora X, etc)?

Scott

On Dec 1, 2021, at 3:40 PM, brcros @.***> wrote:

Try to add these 2 libs into /opt/Lens :

libstdc++.so.6 libc.musl-x86_64.so.1 It works for me. The point is to find the good release. Lens will tell you if the version is not the one...

Bruno

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lensapp/lens/issues/903#issuecomment-984036506, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQIJS6P3V7WTEYWBOCUGUTUO2B3ZANCNFSM4RP6JBDA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

urlichLivonian commented 2 years ago

I got the same error on Ubuntu 20.04. It seems that during the installation process the ASAR archive is not unpacked. I had to do it manually and it works!

For DEB install:

npm install -g asar cd /opt/Lens/resources npx asar extract app.asar ./unpack mv app.asar app.asar.orig mv unpack app.asar

ymartineau commented 2 years ago

here is the workaround I used to install and use k8s lens on centos 7 (and also without account):

$ wget https://api.k8slens.dev/binaries/Lens-5.5.4-latest.20220609.2.x86_64.rpm
$ sudo yum install Lens-5.5.4-latest.20220609.2.x86_64.rpm 
according to https://forums.centos.org/viewtopic.php?t=68062#p285777: > CXXABI_1.3.9 is associated with gcc version 5.1. CentOS 7 has gcc 4.8.5. install more recent gcc version to get a more recent libstdc++ version. build gcc (following instructions from https://jdhao.github.io/2017/09/04/install-gcc-newer-version-on-centos/ with the latest current gcc version) Other dependencies might be required (at least "Development Tools" group, etc.) ``` $ cd $HOME/programs ``` (you can use your local mirror https://gcc.gnu.org/mirrors.html) ``` $ wget https://ftp.lip6.fr/pub/gcc/releases/gcc-12.1.0/gcc-12.1.0.tar.gz ``` ``` $ yum install gmp-devel mpfr-devel libmpc-devel $ tar xzf gcc-12.1.0.tar.gz $ mkdir gcc-12.1.0-build $ mkdir gcc-12.1.0-local $ cd gcc-12.1.0-build $ ../gcc-12.1.0/configure --prefix=$HOME/programs/gcc-12.1.0-local/ --enable-languages=c,c++ --disable-multilib $ make -j$(nproc) && make install ``` add symlink to this more recent libstdc++.so library: ``` $ cd /opt/Lens $ sudo ln -s $HOME/programs/gcc-12.1.0-local/lib64/libstdc++.so.6 ``` By default lens is asking for an account. https://twitter.com/k8slens/status/1529470612380344321?s=21&t=yvydstNYJkrBPcKI_PTrwQ To avoid the use of this account and use it locally: ``` $ sudo vi /etc/hosts ``` add: ``` 127.0.0.1 app.k8slens.dev ```
Nokel81 commented 1 year ago

We have started building RPM packages on rocky Linux and now have a YUM repo so this should now be resolved.