PDA

View Full Version : Update Problems SLES SP1



brunoborlini
04-Sep-2015, 17:42
Hi guys,

I was trying to update an SLES SP1, it was never updated since 2010, (just a zypper update) and something went really bad and i really don't know what it is.
Some packages may have broken during the update and I just can't get access to root anymore (i keep receiving the message login incorrect) but i am using the right password and the GUI also does not load anymore (direct access).
I can get access my personal account but sudo does not work so i can't do anything useful with my normal user access.

I tried to go to single-user mode to change root password but the problem persists, even the new root password does not work (direct access and ssh)

My boss just lost the original SLES SP1 DVD (in fact, he lost the WHOLE box of the server, so i don't have access to any manual or anything) that came with the SGI rackable h2106-g7 (our server) so i can't use the DVD to do a boot and an automatic repair. The problem gets worse when i just can't find a SLES SP1 trial version for download and use it to try an automatic repair (i can find SP2,SP3 and SP4 here (https://download.suse.com/index.jsp) )


I don't know if this is related to the problem but a couple days ago I have added the openSUSE oss Repo to the YAST to get packages like nano,gfortran and nco (netCDF stuff).

I really don't know what to do. Please guys help me

thsundel
04-Sep-2015, 17:46
Hi guys,

I was trying to update an SLES SP1, it was never updated since 2010, (just a zypper update) and something went really bad and i really don't know what it is.
Some packages may have broken during the update and I just can't get access to root anymore (i keep receiving the message login incorrect) but i am using the right password and the GUI also does not load anymore (direct access).
I can get access my personal account but sudo does not work so i can't do anything useful with my normal user access.

I tried to go to single-user mode to change root password but the problem persists, even the new root password does not work (direct access and ssh)

My boss just lost the original SLES SP1 DVD (in fact, he lost the WHOLE box of the server, so i don't have access to any manual or anything) that came with the SGI rackable h2106-g7 (our server) so i can't use the DVD to do a boot and an automatic repair. The problem gets worse when i just can't find a SLES SP1 trial version for download and use it to try an automatic repair (i can find SP2,SP3 and SP4 here (https://download.suse.com/index.jsp) )


I don't know if this is related to the problem but a couple days ago I have added the openSUSE oss Repo to the YAST to get packages like nano,gfortran and nco (netCDF stuff).

I really don't know what to do. Please guys help me

You can get the SLES-11-SP1-DVD-x86_64-GM-DVD1.iso from here: https://download.novell.com/Download?buildid=hPn9_LMecxQ~ if that is the version you are looking for.

Thomas

smflood
07-Sep-2015, 11:05
On 04/09/2015 17:44, brunoborlini wrote:

> I was trying to update an SLES SP1, it was never updated since 2010,
> (just a zypper update) and something went really bad and i really don't
> know what it is.
> Some packages may have broken during the update and I just can't get
> access to root anymore (i keep receiving the message login incorrect)
> but i am using the right password and the GUI also does not load anymore
> (direct access).
> I can get access my personal account but sudo does not work so i can't
> do anything useful with my normal user access.
>
> I tried to go to single-user mode to change root password but the
> problem persists, even the new root password does not work (direct
> access and ssh)
>
> My boss just lost the original SLES SP1 DVD (in fact, he lost the WHOLE
> box of the server, so i don't have access to any manual or anything)
> that came with the SGI rackable h2106-g7 (our server) so i can't use the
> DVD to do a boot and an automatic repair. The problem gets worse when i
> just can't find a SLES SP1 trial version for download and use it to try
> an automatic repair (i can find SP2,SP3 and SP4 'here'
> (https://download.suse.com/index.jsp) )

By "SLES SP1" do you mean SLES11 SP1 or perhaps you're referring to the
older SLES10 SP1 release? ("SP2,SP3 and SP4" can apply to both SLES11
and SLES10). Perhaps you could post the output from "cat /etc/*release".

> I don't know if this is related to the problem but a couple days ago I
> have added the openSUSE oss Repo to the YAST to get packages like
> nano,gfortran and nco (netCDF stuff).

That would depend on which openSUSE repo you added? If it offered a
limited number and/or specific set of packages then you might be okay
but if it was a general repo for a version of openSUSE then you will
likely have installed later versions of core packages from openSUSE
which were not intended for SLES.

> I really don't know what to do. Please guys help me

Please post the output from "zypper lr -u" so we can see which repos you
have access to. After that we can advise a possible course of action.

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------

brunoborlini
07-Sep-2015, 21:12
Thanks for your help
I'm sorry.

I totally forgot to write the 11.

It's the Suse Enterprise server 11 SP1 (SLES 11 SP1).

The repository from opensuse that I used was this one: http://download.opensuse.org/distribution/11.4/repo/oss/
As I said, I was just trying to get a fortran compiler (it was not available in the main repository).

jmozdzen
08-Sep-2015, 09:54
Hi brunoborlini,

> The repository from opensuse that I used was this one: http://download.opensuse.org/distrib...11.4/repo/oss/ (http://download.opensuse.org/distribution/11.4/repo/oss/)

that's a complete distribution repository - do you remember how much you installed from there? Probably more than just the compiler, but a (big) bunch of dependencies as well? Then your system would be in a pretty inconsistent state: You'll have a mix of "SLES11SP1" and "openSUSE 11.4" installed.

Once you got access to the system again, you may be in for some big clean-up to do.

BTW, you might be able to start the system with a boot parameter of "init=/bin/bash", which would skip any init processing, login etc. That would give you a chance for a first assessment, checking via rpm what packages from the opensuse repos made it into your system. Of course, booting into some recovery shell via installation media and then chroot'ing to the installed system would give you similar, if not better options.

Regards,
Jens

smflood
09-Sep-2015, 16:32
On 08/09/2015 10:04, jmozdzen wrote:

> that's a complete distribution repository - do you remember how much you
> installed from there? Probably more than just the compiler, but a (big)
> bunch of dependencies as well? Then your system would be in a pretty
> inconsistent state: You'll have a mix of "SLES11SP1" and "openSUSE 11.4"
> installed.

You can use "zypper se -ir <repo>" (where <repo> is name or number of
openSUSE 11.4 repo - see output from "zypper lr -u") to list packages
installed/updated from the openSUSE 11.4 repo.

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------

brunoborlini
09-Sep-2015, 18:11
Hi,

theese are the results for the zypper lr -u command (using init=/bin/bash)

# | Alias | Name | Enabled | Refresh | URI
---+-----------------------------------------------+-----------------------------------------------+---------+---------+------------------------------------------------------------------------------------------------------------------------------
1 | SUSE Linux Enterprise Server 11 SP1 | SUSE Linux Enterprise Server 11 SP1 | Yes | No | iso:///?iso=SLES-11-SP1-DVD-x86_64-GM-DVD1.iso&url=dir:///opt/sgi/Factory-Install/ISO/SLES-11-SP1&alias=sles-11-sp-1
2 | foundation-2 | foundation-2 | Yes | No | iso:///?iso=foundation-2.4-cd1-media-sles11-x86_64.iso&url=dir:///opt/sgi/Factory-Install/ISO/foundation-2&alias=foundation-2
3 | nu_novell_com:SLE11-SP1-Debuginfo-Pool | SLE11-SP1-Debuginfo-Pool | No | Yes | https://nu.novell.com/repo/$RCE/SLE11-SP1-Debuginfo-Pool/sle-11-x86_64?credentials=NCCcredentials
4 | nu_novell_com:SLE11-SP1-Debuginfo-Updates | SLE11-SP1-Debuginfo-Updates | No | Yes | https://nu.novell.com/repo/$RCE/SLE11-SP1-Debuginfo-Updates/sle-11-x86_64?credentials=NCCcredentials
5 | nu_novell_com:SLE11-WebYaST-SP1-Pool | SLE11-WebYaST-SP1-Pool | No | Yes | https://nu.novell.com/repo/$RCE/SLE11-WebYaST-SP1-Pool/sle-11-x86_64?credentials=NCCcredentials
6 | nu_novell_com:SLE11-WebYaST-SP1-Updates | SLE11-WebYaST-SP1-Updates | No | Yes | https://nu.novell.com/repo/$RCE/SLE11-WebYaST-SP1-Updates/sle-11-x86_64?credentials=NCCcredentials
7 | nu_novell_com:SLES11-Extras | SLES11-Extras | No | Yes | https://nu.novell.com/repo/$RCE/SLES11-Extras/sle-11-x86_64?credentials=NCCcredentials
8 | nu_novell_com:SLES11-SP1-Pool | SLES11-SP1-Pool | Yes | Yes | https://nu.novell.com/repo/$RCE/SLES11-SP1-Pool/sle-11-x86_64?credentials=NCCcredentials
9 | nu_novell_com:SLES11-SP1-Updates | SLES11-SP1-Updates | Yes | Yes | https://nu.novell.com/repo/$RCE/SLES11-SP1-Updates/sle-11-x86_64?credentials=NCCcredentials
10 | opensuse_repo2 | opensuse11.4_repo | No | Yes | http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.4/repo/oss/
11 | patch10784 | patch10784 | Yes | No | dir:///%2Fopt/sgi/Factory-Install/Patches/patch10784/RPMS
12 | patch10803 | patch10803 | Yes | No | dir:///%2Fopt/sgi/Factory-Install/Patches/patch10803/RPMS
13 | patchipmitool-1.8.11-0.1.48.1759.0.PTF.614916 | patchipmitool-1.8.11-0.1.48.1759.0.PTF.614916 | Yes | No | dir:///%2Fopt/sgi/Factory-Install/Patches/patchipmitool-1.8.11-0.1.48.1759.0.PTF.614916/RPMS
14 | patchkernel-default-2.6.32.36-0.5.2 | patchkernel-default-2.6.32.36-0.5.2 | Yes | No | dir:///%2Fopt/sgi/Factory-Install/Patches/patchkernel-default-2.6.32.36-0.5.2/RPMS

zypper se -ir opensuse11.4_repo give me this
Loading repository data...
Reading installed packages...
No packages found.

I also tried a repair using the ISO that was suggested by thsundel but i recieved this error:
YaST2
ERROR

The file /etc/modprobe.conf was not found. it cannot be recovered

brunoborlini
09-Sep-2015, 18:24
one more thing.
When i try zypper verify or zypper update (also in init=bin/bash mode)

Cannot read input: bad stream or eof

is this because i don't have network acess in this mode?

brunoborlini
10-Sep-2015, 18:14
hi everyone

i have recovered root acess creating a local user and giving it sudo acess through the init=/bin/bash mode

but now i don't I have to fix GUI
startx returns

Fatal server error:
could not open default font 'fixed'

Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.

and zypper is returning segmentation fault for everything:

Example:
magma:~ # zypper update
Refreshing service 'nu_novell_com'.
Segmentation fault

zypper dup
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Refreshing service 'nu_novell_com'.
Segmentation fault

jmozdzen
11-Sep-2015, 13:46
Hi brunoborlini,

> zypper se -ir opensuse11.4_repo give me this
> [...]
> No packages found.

have you run "zypper se -ir opensuse_repo2", too? If you remember having installed packages from that repos (i.e. the desired compiler), the current result is strange.

Just for good measure, you might run "rpm -V all" to check all installed packages for broken files. (Please note that there will be several files reported as modified, without this indicating an error: Even the config files included in RPMs are checked against their state at installation time, but were modified later on during system setup.)

I still suspect a mix of SLES and OpenSUSE packages on your system, based on your prior description. But without RPM giving you proper feedback, it'll be hard to find and fix.

Regards,
Jens

brunoborlini
11-Sep-2015, 14:30
Hi jmozdzen,

Now that i have root access again any zypper variation (including "zypper se -ir...")just give me a "Segmentation Fault"
Trying a simple zypper update with --verbose for increased verbosity and the answer is:

Verbosity: 1
Initializing Target
Refreshing service 'nu_novell_com'.
Retrieving: repoindex.xml [0%]Segmentation fault

I think that you're right, probably i have a mix of suse/openSuse packages in the system.
I believe that I have to fix the zypper first and then start the "cleaning".

off-topic: Why i can't edit the older posts of this topic?Just brand new posts can be edited?