ssh session died while upgrading from 42.3 to 15 - what next?

Hello! I upgraded a Leap 42.3 (KDE 64bit, no extras, run level set to 3) via ssh which worked fine, until apparently the ssh session broke. Here the zypper log (end of the session) http://susepaste.org/72372160 Here the ssh session http://susepaste.org/47841016 after another 10 min or so (the output hadn’T changed for 20 20 min or so) the ssh session ended with

packet_write_wait: Connection to 192.168.1.25 port 22: Broken pipe

I can connect to the box via ssh, but zypper seems broken:

zypper ref  zypper: error while loading shared libraries: libzypp.so.1600: cannot open shared object file: No such file or directory

Any help on this? I don’t want to reboot as I expect the system will not come back…

PS: Trying to lauch yast gives me:

yast /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': /usr/lib64/ruby/vendor_ruby/2.1.0/x86_64-linux-gnu/yastx.so: undefined symbol: _ZNK11Y2Namespace4nameEv - /usr/lib64/ruby/vendor_ruby/2.1.0/x86_64-linux-gnu/yastx.so (LoadError)         from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'         from /usr/lib64/ruby/vendor_ruby/2.1.0/yast.rb:22:in `'         from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'         from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'         from /usr/lib/YaST2/bin/y2start:9:in `'

Better to read: http://susepaste.org/10032471

I found this here:

https://serverfault.com/questions/268662/zypper-error-while-loading-shared-libraries

Downloaded this

wget http://download.opensuse.org/update/leap/42.3/oss/x86_64/libzypp-16.19.0-30.1.x86_64.rpm
wget http://download.opensuse.org/update/leap/42.3/oss/x86_64/zypper-1.13.45-20.1.x86_64.rpm

and did

rpm -U *.rpm

but it doesn’t change anything. I also tried the (latest) Leap 15 versions of both files, but same error persists…

On Thu, 03 Jan 2019 18:56:03 +0000, suse rasputin wrote:

> PS: Trying to lauch yast gives me:
> Code:
> --------------------
> yast /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
> `require’:

/usr/lib64/ruby/vendor_ruby/2.1.0/x86_64-linux-gnu/yastx.so:
undefined symbol: _ZNK11Y2Namespace4nameEv -
/usr/lib64/ruby/vendor_ruby/2.1.0/x86_64-linux-gnu/yastx.so
(LoadError)         from
/usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'         from

> /usr/lib64/ruby/vendor_ruby/2.1.0/yast.rb:22:in `’ from

/usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
`require'         from

> /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
> require' from /usr/lib/YaST2/bin/y2start:9:in
> --------------------
> Better to read: http://susepaste.org/10032471

I’d be inclined to copy the RPM files needed over and use the rpm command
to install the missing libraries.

FWIW (I know “here’s what you should have done” isn’t always helpful, but
I hope this is), when doing something like this remotely, I always run
inside ‘screen’ so if the session is disconnected, I can reconnect to
it. I highly recommend it for remote updates/upgrades.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

…OK, needed some brute force:

rpm -U *.rpm --force - v

…and zypper dup now installs the rest of the pending updates…

Thanks for the reply! What do you mean by "I always run inside ‘screen’ " ? A VNC session? As I understand anything graphics related should be turned off for zypper dup according to the official SDb doc…

On Thu, 03 Jan 2019 20:16:03 +0000, suse rasputin wrote:

> …OK, needed some brute force:
> Code:
> --------------------
> rpm -U *.rpm --force - v
> --------------------
> …and zypper dup now installs the rest of the pending updates…

Yeah, I should’ve mentioned that a force might be necessary.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On Thu, 03 Jan 2019 20:46:03 +0000, suse rasputin wrote:

> Thanks for the reply! What do you mean by "I always run inside
> ‘screen’ " ? A VNC session? As I understand anything graphics related
> should be turned off for zypper dup according to the official SDb doc…

‘screen’ is a text-based virtual terminal that you can detach from. Very
useful tool, minimal library requirements (in fact, I think it’s self-
contained).

I used to have lots of problems with ssh disconnects, and I just made it
a habit to start it when I connect via ssh, just in case the connection
drops. If it does, just ssh back into it and run:

screen -r -d

And you’ll be back in the terminal where the command was running - and
will have kept running.

If there are multiple instances of screen running for that user, you have
to provide the PID of the one you want to reconnect to:

screen -r 1234 -d

(where ‘1234’ is the process ID of the instance you want to reconnect to)

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

I havn’t had any problems with ssh in years, doing a lot of zypper dup on Tumbleweeds… But this screen thing is nice! Thanks!

Nice tip Jim. :slight_smile:

On Fri, 04 Jan 2019 08:06:04 +0000, suse rasputin wrote:

> I havn’t had any problems with ssh in years, doing a lot of zypper dup
> on Tumbleweeds… But this screen thing is nice! Thanks!

Glad to help out. :slight_smile:


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On Fri, 04 Jan 2019 08:16:03 +0000, deano ferrari wrote:

> Nice tip Jim. :slight_smile:

Thanks, Deano - it started as a ‘needs must’ thing for me. Now I use it
when I’ve got stuff I want to run in the background but don’t want to set
up as a service for whatever reason. Lots of handy uses.

For me, when I’m doing updates on multiple systems, I use it these days
because I’ll start the updates on my desktop and then 2-3 other systems,
and I’ll want to restart X (or the machine if there’s a kernel update)
without waiting for the others to finish.


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C