[ZBX-22465] Windows MSI v2 agent install - service starts before PSK file is created Created: 2023 Mar 06  Updated: 2024 Apr 10  Resolved: 2023 May 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Packages (C)
Affects Version/s: 6.0.13
Fix Version/s: 7.0 (plan)

Type: Problem report Priority: Critical
Reporter: Jordan Bagnell Assignee: Michael Veksler
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10 and Windows 11


Attachments: PNG File Screenshot 2023-03-06 122126.png     PNG File Screenshot 2023-03-08 at 10.44.32.png     PNG File Screenshot 2023-03-08 at 10.45.22.png     PNG File Screenshot 2023-03-08 at 10.45.43.png     PNG File Screenshot 2023-03-08 at 10.49.22.png     File zabbix_agent-6.4.0-x64.msi     File zabbix_agent2-6.4.0-x64.msi.7z.001     File zabbix_agent2-6.4.0-x64.msi.7z.002    
Issue Links:
Causes
Team: Team B
Sprint: Sprint 99 (Apr 2023), Sprint 100 (May 2023)
Story Points: 1

 Description   

Steps to reproduce:

  1. Download Windows 64 bit v2 agent for 6.0 LTS
  2. Install v2 agent on windows 64 and configure PSK during install

Result:

Zabbix agent does not start successfully and logs "cannot use encryption configuration: invalid TLSPSKFile configuration parameter: open C:\Program Files\Zabbix Agent 2\psk.key: The system cannot find the file specified."

Expected:

Zabbix agent would start successfully after installation.

Notes:

I moved the PSK steps in the MSI earlier in the installation and the agent service starts as expected (see screenshot)



 Comments   
Comment by Edgar Akhmetshin [ 2023 Mar 08 ]

Hello Jordan,

Not able to reproduce, for example Windows 11 and 6.0.13/Agent:



Regards,
Edgar

Comment by Edgar Akhmetshin [ 2023 Mar 08 ]

But for Agent 2 the issue exists:

2023/03/08 10:53:43.789072 Starting Zabbix Agent 2 (6.0.13)
2023/03/08 10:53:44.300763 cannot use encryption configuration: invalid TLSPSKFile configuration parameter: open C:\Program Files\Zabbix Agent 2\psk.key: The system cannot find the file specified.

And after restart Agent 2 works, since key is in place.

Confirmed.

Comment by Michael Veksler [ 2023 May 16 ]

The issue has been fixed and will be available in all future MSI builds of all Agents.

Comment by Onkel Titus [ 2023 May 30 ]

It's not mentioned in the Release Notes of 6.4.3. Is it fixed in this version?

Comment by Marina Generalova [ 2023 Jun 05 ]

Hi whupper,

It is fixed in Zabbix packages 5.0.34 and newer, 6.0.17 and newer, 6.4.2 and newer. 

We have updated Release notes and mentioned this change.

Generated at Tue May 13 10:08:35 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.