No yast apps starting

After updates and patches of yesterday 3/28, I find this morning that no yast apps start. Gui yast asks for root pw, accepts it, and opens the main yast window to select a function. All functions seem to be listed. None start though, including software management. They try to load, i.e., spinning icon but none start.
Commandline zypper functions from a terminal.
I did reboot and still no yast.

Ran yast2 from cli. See below.

(base) tom@mydesktop:~> sudo yast2
[sudo] password for root: 
Traceback (most recent call last):
        11: from /usr/lib/YaST2/bin/y2start:11:in `<main>'
        10: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         9: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         8: from /usr/lib64/ruby/vendor_ruby/2.5.0/yast.rb:47:in `<top (required)>'
         7: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         6: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         5: from /usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:7:in `<top (required)>'
         4: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         3: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         2: from /usr/lib64/ruby/2.5.0/cgi.rb:293:in `<top (required)>'
         1: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- cgi/core (LoadError)

Ruby issue? Any ideas of how to fix,
Kernel in use is: 5.14.21-150400.24.49-default
thanks, tom kosvic

I updated last thursday (2023-03-28). My kernel:

boven:~ # uname -r
5.14.21-150400.24.46-default
boven:~ # 

And I do not see the one you have offered in YaST > Software Management.
Wasn’t the one you have the retracted one? Was there no warning about that?

I only did zypper up and zypper patch and saw no error messages. Both ran successfully.

If I could get on yast software management, I could look at the history of the installs.
Perhaps zypper has a way to look at install history. I will look into that.
thanks, tom kosvic

Doing those in this sequence and without much in between is useless. zypper up already includes all that zypper patch would do.

Maybe check what is installed now:

zypper se -si kernel-default
(base) tom@mydesktop:~> zypper se -si kernel-default
Loading repository data...
Reading installed packages...

S  | Name                    | Type    | Version                | Arch   | Repository
---+-------------------------+---------+------------------------+--------+-----------
i+ | kernel-default          | package | 5.14.21-150400.24.46.1 | x86_64 | sle-update
iR | kernel-default          | package | 5.14.21-150400.24.49.3 | x86_64 | sle-update
i  | kernel-default-devel    | package | 5.14.21-150400.24.46.1 | x86_64 | sle-update
i  | kernel-default-devel    | package | 5.14.21-150400.22.1    | x86_64 | oss
iR | kernel-default-devel    | package | 5.14.21-150400.24.49.3 | x86_64 | sle-update
i  | kernel-default-extra    | package | 5.14.21-150400.24.46.1 | x86_64 | sle-update
iR | kernel-default-extra    | package | 5.14.21-150400.24.49.3 | x86_64 | sle-update
i  | kernel-default-optional | package | 5.14.21-150400.24.46.1 | x86_64 | sle-update
iR | kernel-default-optional | package | 5.14.21-150400.24.49.3 | x86_64 | sle-update
(base) tom@mydesktop:~> uname -r
5.14.21-150400.24.49-default
(base) tom@mydesktop:~> 

there are two defaule kernels.

How can I eliminate the unwanted one.
thanks, tom kosvic

You want multiple kernels to allow dropping back if you have problems with a new one. Older will go away as you get newer ones.

Wenn you boot simply press advanced and chose the 5.14.21-150400.24.46.1 one. After that you can go into yast >bootloader and change it to boot from that one…

So you still have kernel …46.

Reboot, go into the grub menu and choose the …46 version.

I assume you then can work normal again.

Rebooted into 46.1 kernel and yast does not work and stil give same error message when started from commandline. See below.

(base) tom@mydesktop:~> uname -r
5.14.21-150400.24.46-default
(base) tom@mydesktop:~> sudo yast2
[sudo] password for root: 
Traceback (most recent call last):
        11: from /usr/lib/YaST2/bin/y2start:11:in `<main>'
        10: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         9: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         8: from /usr/lib64/ruby/vendor_ruby/2.5.0/yast.rb:47:in `<top (required)>'
         7: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         6: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         5: from /usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:7:in `<top (required)>'
         4: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         3: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
         2: from /usr/lib64/ruby/2.5.0/cgi.rb:293:in `<top (required)>'
         1: from /usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- cgi/core (LoadError)
(base) tom@mydesktop:~> 

Any further ideas? Perhaps reload ruby?

thanks, tom kosvic

Perhaps try below as cobbled from other threads to reinstall ruby from commandline.

zypper in --no-recommends -f $(rpm -qa  ruby* --qf '%{NAME} ') 

thanks, tom kosvic

Have you try launching yast2 using the terminal. Might see some errors.

That is the resulting error command listing I have been including

Yes I know. After doing a zypper patch, zypper up still has more items to load

Yes, from the non-official repos like Packman you have.

Lately, I have been using:

zypper patch --with-update

which combines patching with other updates.

Does anyone think that reload of ruby is warranted?

Will the commandline below reinstall all ruby files?
zypper in --no-recommends -f $(rpm -qa ruby* --qf '%{NAME} ')

From the error string from above when loading yast by cli, does anyone see the cause of the yast problem?

bor@10:~> rpm -qla | grep cgi/core
/usr/lib64/ruby/2.5.0/cgi/core.rb
bor@10:~> rpm -qf /usr/lib64/ruby/2.5.0/cgi/core.rb
ruby2.5-stdlib-2.5.9-150000.4.26.1.x86_64
bor@10:~> zypper se -sx ruby2.5-stdlib
Loading repository data...
Reading installed packages...

S | Name           | Type    | Version             | Arch   | Repository
--+----------------+---------+---------------------+--------+-------------------------------------------------------------
i | ruby2.5-stdlib | package | 2.5.9-150000.4.26.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
v | ruby2.5-stdlib | package | 2.5.9-150000.4.23.1 | x86_64 | Main Repository
v | ruby2.5-stdlib | package | 2.5.9-150000.4.23.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
bor@10:~> 
(base) tom@mydesktop:~> rpm -qla | grep cgi/core
/usr/lib64/ruby/2.5.0/cgi/core.rb
(base) tom@mydesktop:~> rpm -qf /usr/lib64/ruby/2.5.0/cgi/core.rb
ruby2.5-stdlib-2.5.9-150000.4.26.1.x86_64
(base) tom@mydesktop:~> zypper se -sx ruby2.5-stdlib
Repository 'packman' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'leap 15.4 -- science' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'leap 15.4 -- geo' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'sle-update' is out-of-date. You can run 'zypper refresh' as root to update it.
Loading repository data...
Reading installed packages...

S | Name           | Type    | Version             | Arch   | Repository
--+----------------+---------+---------------------+--------+-----------
i | ruby2.5-stdlib | package | 2.5.9-150000.4.26.1 | x86_64 | sle-update
v | ruby2.5-stdlib | package | 2.5.9-150000.4.23.1 | x86_64 | oss
v | ruby2.5-stdlib | package | 2.5.9-150000.4.23.1 | x86_64 | sle-update
(base) tom@mydesktop:~> 

Got identical responses but yast stilllets me login but does not run any yast apps

It looks as if you do not have those repos set for auto-refresh.

May I suggest:

zypper refresh
zypper up