HPE 3PAR StoreServ Storage
1754415 Members
2891 Online
108813 Solutions
New Discussion

Cannot upgrade SSMC to 3.8.2

 
SOLVED
Go to solution

Re: Cannot upgrade SSMC to 3.8.2

Bertram, I might have a solution but they all require to run some commands that need elevated or sudo permisison. 

 

Can you share more details? What command do you want to run ?

What was/is the outcome of the support-case that you had opened ?

I am an HPE Employee

Accept or Kudo

BBARBAROS
Advisor

Re: Cannot upgrade SSMC to 3.8.2

@Bertram Stoeckler 

This is what I saw in the logs

[Mon 03 Jan 2022 10:52:12 PM EST][4899][INFO] Stopping appliance watch process ...

[Mon 03 Jan 2022 10:52:13 PM EST][4899][INFO] Stopped appliance watch process

[Mon 03 Jan 2022 10:52:13 PM EST][4899][INFO] Stopping ssmc ...

[Mon 03 Jan 2022 10:52:21 PM EST][4899][INFO] Stopped ssmc

[Mon 03 Jan 2022 10:52:21 PM EST][4899][INFO] Stopping ultron ...

[Mon 03 Jan 2022 10:52:27 PM EST][4899][INFO] Stopped ultron

[Mon 03 Jan 2022 10:52:27 PM EST][4899][INFO] Stopping elasticsearch ...

[Mon 03 Jan 2022 10:52:28 PM EST][4899][INFO] Stopped elasticsearch

[Mon 03 Jan 2022 10:52:28 PM EST][4899][INFO] No /var/lib/dpkg/lock was found to be acquired. Proceeding with subsequent installation steps.

[Mon 03 Jan 2022 10:52:28 PM EST][4899][INFO] Clean incomplete dpkg processes, if there are any : dpkg --configure -a  >> /var/log/appliance.log

[Mon 03 Jan 2022 10:52:28 PM EST][4899][INFO] Installing packages... The the following command is being run : apt-get -y install HPESSMCAppCore-3.8.2.29.amd64.deb >> /var/log/appliance.log

Reading package lists...

Building dependency tree...

Reading state information...

E: The package hpessmc needs to be reinstalled, but I can't find an archive for it.

[Mon 03 Jan 2022 10:52:32 PM EST][4899][ERROR] Installation of one or more items failed...

[Mon 03 Jan 2022 10:52:32 PM EST][4899][INFO] Starting appliance watch process ...

[Mon 03 Jan 2022 10:52:32 PM EST][4899][INFO] Started appliance watch process

[Mon 03 Jan 2022 10:53:41 PM EST][7541][INFO] Starting the appliance services...

[Mon 03 Jan 2022 10:53:41 PM EST][7541][INFO] appliance_services 'start' applied lock

[Mon 03 Jan 2022 10:53:47 PM EST][7541][INFO] appliance_services 'start' released lock

And I tried these solutions

https://www.linuxuprising.com/2018/07/how-to-fix-could-not-get-lock.html

https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process

https://phoenixnap.com/kb/fix-could-not-get-lock-error-ubuntu

https://itsfoss.com/could-not-get-lock-error/

https://www.linuxtechi.com/apt-dpkg-lock-error-in-ubuntu/

 

 

 

Solution

Re: Cannot upgrade SSMC to 3.8.2

@BBARBAROS 

Since the root-access is completly disabled on the SSMC-appliance, manual changes to the dpkg status information is NOT possible. My guess is that something went wrong during the migration from 3.3.1 to 3.6, or that something went wrong during the first upgrade attempt from 3.6 to 3.8.

You can check /var/lib/dpkg/status and search for the "hpessmc" package. Most likly it shows a status of "reinstreq half-installed".

As a solution i suggest that you re-do the migration followed by an upgrade to 3.8.2.1

I recently worked on a simliar issue and that got resolved after a second migration attempt.

 

Hope that helps.

I am an HPE Employee

Accept or Kudo

BBARBAROS
Advisor

Re: Cannot upgrade SSMC to 3.8.2

@Bertram Stoeckler 

Yes, "hpessmc" package in /var/lib/dpkg/status shows as "reinstreq half-installed"

I`m bringing up a new 3.7 appliance and will try to upgrade to 3.8.2.1 from on top of that

I`ll let you know how it goes.

Thank you

BBARBAROS
Advisor

Re: Cannot upgrade SSMC to 3.8.2

@Bertram Stoeckler 

Thank you so much for your help

@sbhat09 

Thank you too for your time