Closed anthonysomerset closed 8 months ago
i can replicate this coming from 6.4.4 as well
same issue with 6.4.7
I think that this commit onwards brought the issues:
https://github.com/mkevenaar/chocolatey-packages/commit/175d1d81772859d1a2836c97a980cac1761f30dc
is the main culprit - before this it was using the zabbix-agent.install package to download and install the MSI version rather than attempting to download/extract the ZIP
I'd personally recommend reverting that specific change and let the install be managed via MSI - but i am saying that in the absence of other context for this change
actually on closer review, the issue isn't the diferent extract/install method - but the simple fact that the service isn't stopped if its detected - this was in the old package config script but not in this one - i fixed my PR #213 for this which just needs accepting if happy with the approach
originally posted at https://github.com/zabbix/zabbix-agent-chocolatey/issues/34 before realising maintenance moved here
Expected Behavior
zabbix-agent upgrades should just work
Current Behavior
When i attempt to update zabbix-agent from older versions (confirmed 6.2.3 and 5.4.3) the upgrade fails with following error
Current workarounds that work - and do not seem to be entirely consistent:
Possible Solution
guessing the upgrade script can't overwrite files and/or needs to stop the service prior to upgrade
Steps to Reproduce (for bugs)
Have any older version of zabbix agent installed via choco (confirmed 6.2.3 and 5.4.3 from my own environment) - could not find/validate 6.4.4 or earlier within 6.4.x yet run choco upgrade zabbix-agent, accept the script prompt
Context
Can't Upgrade Zabbix agent without manual interventions, in an automated config management world this potentially breaks update management processes as a result
Your Environment