Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Upgrade to 6.4.5 or 6.4.6 fails with cannot create a file when that file already exists #34

@anthonysomerset

Description

@anthonysomerset

When i attempt to update zabbix-agent from older versions (confirmed 6.2.3 and 5.4.3) the upgrade fails with following error

Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): a

Extracting 64-bit C:\ProgramData\chocolatey\lib\zabbix-agent\tools\zabbix_agent-6.4.6-windows-amd64-openssl.zip to C:\Users\asomerset\AppData\Local\Temp\chocolatey\chocolatey\zabbix...
C:\Users\asomerset\AppData\Local\Temp\chocolatey\chocolatey\zabbix
Error installing Zabbix Agent
ERROR: Cannot create a file when that file already exists.

The upgrade of zabbix-agent was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\zabbix-agent\tools\chocolateyInstall.ps1'.
 See log for details.

Current workarounds that work - and do not seem to be entirely consistent:

  1. Stop Zabbix Agent Service and redo upgrade
  2. Stop Zabbix Agent Service, Delete the Bin files in Program Files/Zabbix Agent and redo upgrade
  3. In some even weirder edge cases when bin files can't be deleted (locked by event viewer process no less), stop, service, rename them and then run the upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions