VMware Support Community
kazzic555
Contributor
Contributor
Jump to solution

Trying to update from 2.04 to 2.05

Hi,

Not sure if anyone has seen this error.

Trying to update to 2.05 from 2.04 and getting the following error - Test transaction failed. Bailing out

Logs show the following

2021-04-01 02:07:23,805 vmware-shd-update INFO checkupdate:23 Install patch - 2.0.5 started
2021-04-01 02:07:23,805 vmware-shd-update INFO checkupdate:23 Validating availability of /opt/vmware-shd/vmware-shd/updates/package-pool/nginx-1.16.1-3.ph3.x86_64.rpm
2021-04-01 02:07:23,805 vmware-shd-update INFO checkupdate:23 Validating checksum for /opt/vmware-shd/vmware-shd/updates/package-pool/nginx-1.16.1-3.ph3.x86_64.rpm
2021-04-01 02:07:23,814 vmware-shd-update INFO checkupdate:23 Validating availability of /opt/vmware-shd/vmware-shd/updates/package-pool/vmware-shd-patch-2.0.5-17790475.tgz
2021-04-01 02:07:23,814 vmware-shd-update INFO checkupdate:23 Validating checksum for /opt/vmware-shd/vmware-shd/updates/package-pool/vmware-shd-patch-2.0.5-17790475.tgz
2021-04-01 02:07:24,843 vmware-shd-update INFO checkupdate:23 Running script: pre
2021-04-01 02:07:24,844 vmware-shd-update INFO checkupdate:23 Command: /usr/bin/bash /tmp/tmpy2abujed
2021-04-01 02:07:24,848 vmware-shd-update INFO checkupdate:23 STDOUT:
2021-04-01 02:07:24,848 vmware-shd-update INFO checkupdate:23 STDERR:
2021-04-01 02:07:24,848 vmware-shd-update INFO checkupdate:23 Exit code: 0
2021-04-01 02:07:24,848 vmware-shd-update INFO checkupdate:23 Running RPM Test Transaction..
2021-04-01 02:07:24,848 vmware-shd-update INFO checkupdate:23 Command: /usr/bin/rpm --upgrade --test /opt/vmware-shd/vmware-shd/updates/package-pool/nginx-1.16.1-3.ph3.x86_64.rpm
2021-04-01 02:07:25,195 vmware-shd-update INFO checkupdate:23 STDOUT:
2021-04-01 02:07:25,196 vmware-shd-update INFO checkupdate:23 STDERR: package nginx-1.16.1-3.ph3.x86_64 is already installed

2021-04-01 02:07:25,196 vmware-shd-update INFO checkupdate:23 Exit code: 1
2021-04-01 02:07:25,196 vmware-shd-update ERROR checkupdate:23 RPM Test Transaction Failed: return: 1,
STDOUT:
STDERR: package nginx-1.16.1-3.ph3.x86_64 is already installed

2021-04-01 02:07:25,196 vmware-shd-update INFO checkupdate:23 Running script: recovery
2021-04-01 02:07:25,196 vmware-shd-update INFO checkupdate:23 Command: /usr/bin/bash /tmp/tmpi97d_b_z
2021-04-01 02:07:25,200 vmware-shd-update INFO checkupdate:23 STDOUT:
2021-04-01 02:07:25,201 vmware-shd-update INFO checkupdate:23 STDERR:
2021-04-01 02:07:25,201 vmware-shd-update INFO checkupdate:23 Exit code: 0
2021-04-01 02:07:25,201 vmware-shd-update ERROR checkupdate:23 Install patch - 2.0.5 failed
Traceback (most recent call last):
File "updater.py", line 413, in apiserver.updater.UpdateManager.update
Exception: Test transaction failed. Bailing out
2021-04-01 02:07:25,202 vmware-shd-update ERROR checkupdate:23 Update workflow failed -Test transaction failed. Bailing out
Traceback (most recent call last):
File "updater.py", line 429, in apiserver.updater.UpdateManager.update
File "updater.py", line 413, in apiserver.updater.UpdateManager.update
Exception: Test transaction failed. Bailing out
2021-04-01 02:07:25,202 vmware-shd-update ERROR checkupdate:23 Test transaction failed. Bailing out
2021-04-01 02:07:25,220 vmware-shd-update INFO checkupdate:23 Restoring a point in time backup of version 2.0.4

 

Reply
0 Kudos
1 Solution

Accepted Solutions
araikwar
VMware Employee
VMware Employee
Jump to solution

There are couple of queries on Photon VM you are using, to understand the scenario more clearly.

1) What is the Photon OS version/build you used? We recommend Photon OS 3, Photon OS 4 is not supported.

2) What is the NGINX version already installed, Was it installed/upgraded manually?

3) If the existing NGINX version is nginx-1.16.1-3.ph3.x86_64.rpm, then upgrade to 2.0.5 is expected to be failed, as shipped version is already installed.

In all above case upgrade to 2.0.5 will fail, we recommend to revert the snapshot to SHD version 2.0.4 and try upgrade or deploy a fresh 2.0.5 build.

 

 

View solution in original post

Reply
0 Kudos
4 Replies
araikwar
VMware Employee
VMware Employee
Jump to solution

Are you consistently hitting this issue? Did retry worked? Please check if storage is not full as well using df -h command.

Reply
0 Kudos
kazzic555
Contributor
Contributor
Jump to solution

Hi

Thanks for replying. I have tried 3 times with no luck.

There is plenty of space on the VM.

Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.9G 0 7.9G 0% /dev
tmpfs 7.9G 48K 7.9G 1% /dev/shm
tmpfs 7.9G 524K 7.9G 1% /run
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda3 246G 2.7G 230G 2% /
tmpfs 7.9G 0 7.9G 0% /tmp
/dev/sda2 10M 2.2M 7.9M 22% /boot/efi
tmpfs 1.6G 0 1.6G 0% /run/user/0

Reply
0 Kudos
araikwar
VMware Employee
VMware Employee
Jump to solution

There are couple of queries on Photon VM you are using, to understand the scenario more clearly.

1) What is the Photon OS version/build you used? We recommend Photon OS 3, Photon OS 4 is not supported.

2) What is the NGINX version already installed, Was it installed/upgraded manually?

3) If the existing NGINX version is nginx-1.16.1-3.ph3.x86_64.rpm, then upgrade to 2.0.5 is expected to be failed, as shipped version is already installed.

In all above case upgrade to 2.0.5 will fail, we recommend to revert the snapshot to SHD version 2.0.4 and try upgrade or deploy a fresh 2.0.5 build.

 

 

Reply
0 Kudos
kazzic555
Contributor
Contributor
Jump to solution

Hi thanks for that. That makes sense in the logs nginx-1.16.1-3.ph3.x86_64.rpm is installed and showing error -1.

I was running Photon 3.0

I have reinstalled using the OVA on 2.0.5.

Reply
0 Kudos