Page 1 of 1

Problem using the forticlient-vpn-config package

Published: August 21, 2025 - 3:57 PM
by Serv_info
Hello everyone. :)

To automate its installation, our IT team is trying to deploy the "forticlient-vpn-config" package, available in the official Tranquil IT store. Unfortunately, after trying various methods to get it working (for example, copying the VPN configuration file to a folder outside the package, in case the FCConfig.exe executable couldn't find the configuration), we haven't been successful.

We're using the latest version of WAPT (2.6.0.17392) on Windows 11, and we installed FortiClient from a custom-built package.

Is there something important I'm missing in using this package? From what I understand, it would just be a matter of modifying the variables in the template package and adding its configuration file to the package files...

We tried installing it via the console and via the Self-Service store, which works on my computer, but consistently gives errors on my colleagues' computers... :|

Thank you very much in advance for your help!

Gabriel.

Re: Problem using the forticlient-vpn-config package

Published: August 22, 2025 - 5:44 PM
by blemoigne
Hello,
Could you please provide us with the package installation logs?
Best regards,
Bertrand

Re: Problem using the forticlient-vpn-config package

Published: September 1, 2025 - 10:37 AM
by Serv_info
Hello, and I sincerely apologize for only replying now!

Regarding the installation error:

Code: Select all

Applying: VPNSSL.conf
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4455, in install_wapt
    exitstatus = setup.install()
  File "C:\WINDOWS\TEMP\waptgxgstmi7\setup.py", line 44, in install
  File "C:\Program Files (x86)\wapt\common.py", line 4112, in run
    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))
  File "C:\Program Files (x86)\wapt\waptutils.py", line 2263, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command '"C:\\Program Files\\Fortinet\\FortiClient\\FCConfig.exe" -m all -f "VPNSSL.conf" -o import -i 1 -p "[mot-de-passe-enlevé]"' returned non-zero exit status 5.
Output:

CalledProcessErrorOutput: Command '"C:\\Program Files\\Fortinet\\FortiClient\\FCConfig.exe" -m all -f "VPNSSL.conf" -o import -i 1 -p "[mot-de-passe-enlevé]"' returned non-zero exit status 5.
Output:
(To clarify: the last output is empty)

I tried searching a bit, but I didn't find much. However, after a little more testing, the package works Sometimes After one or more restarts of the computer, perhaps it's simply a matter of waiting for the FortiClient Windows service to fully initialize? 😵‍💫

I'm so sorry for keeping you waiting so long, and thank you so much for your help!!

Sincerely,
Gabriel

Re: Problem using the forticlient-vpn-config package

Published: September 1, 2025 - 11:58 AM
by blemoigne
Hello,
I see in the documentation that you can add a "-d" switch to get debug logs.
https://docs.fortinet.com/document/fort ... and-syntax

Best regards,
Bertrand

Re: Problem using the forticlient-vpn-config package

Published: September 1, 2025 - 12:20
by Serv_info
Hello again,

Thank you so much for the tip! Unfortunately, it doesn't seem like the messages are being retrieved when the package is run

Code: Select all

forticlient-vpn-config_0.1-18_x64_windows_PROD_27938242fdab90fa08a581ca1399b530.wapt : 14321 / 14321 (100%) (0.00b/s)
Applying: VPNSSL.conf
Erreur lors de l'installation de ['forticlient-vpn-config']: erreurs dans les paquets [[PackageRequest(package='forticlient-vpn-config',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('forticlient-vpn-config','0.1-18' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5616, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4549, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4455, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\wapt3_ly2006\\setup.py", line 44, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4112, in run\n    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2263, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"C:\\\\Program Files\\\\Fortinet\\\\FortiClient\\\\FCConfig.exe" -d -m all -f "VPNSSL.conf" -o import -i 1 -p "[mdp]"\' returned non-zero exit status 5.\nOutput:\n']]
Traceback (most recent call last):
  File "<string>", line 1662, in run
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 881, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1490, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['forticlient-vpn-config']: erreurs dans les paquets [[PackageRequest(package='forticlient-vpn-config',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('forticlient-vpn-config','0.1-18' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5616, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4549, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4455, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\wapt3_ly2006\\setup.py", line 44, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4112, in run\n    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2263, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"C:\\\\Program Files\\\\Fortinet\\\\FortiClient\\\\FCConfig.exe" -d -m all -f "VPNSSL.conf" -o import -i 1 -p "[mdp]"\' returned non-zero exit status 5.\nOutput:\n']]

Exception: Erreur lors de l'installation de ['forticlient-vpn-config']: erreurs dans les paquets [[PackageRequest(package='forticlient-vpn-config',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('forticlient-vpn-config','0.1-18' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5616, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4549, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4455, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\wapt3_ly2006\\setup.py", line 44, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4112, in run\n    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2263, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"C:\\\\Program Files\\\\Fortinet\\\\FortiClient\\\\FCConfig.exe" -d -m all -f "VPNSSL.conf" -o import -i 1 -p "[mdp]"\' returned non-zero exit status 5.\nOutput:\n']]
Traceback (most recent call last):
  File "<string>", line 1662, in run
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 881, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1490, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['forticlient-vpn-config']: erreurs dans les paquets [[PackageRequest(package='forticlient-vpn-config',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.26100'),max_os_version=Version('10.0.26100')), PackageEntry('forticlient-vpn-config','0.1-18' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5616, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4549, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4455, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\wapt3_ly2006\\setup.py", line 44, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4112, in run\n    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2263, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"C:\\\\Program Files\\\\Fortinet\\\\FortiClient\\\\FCConfig.exe" -d -m all -f "VPNSSL.conf" -o import -i 1 -p "[mdp]"\' returned non-zero exit status 5.\nOutput:\n']]
Note that I copied the installation log from the computer's "Tasks" tab, not from the "General" tab as before, since the logs there seem to be much more complete. Perhaps this will be helpful!
If there's anything else I could do to help you debug everything, please don't hesitate to let me know. :)

Thank you so much for your help!

Sincerely,
Gabriel

Re: Problem using the forticlient-vpn-config package

Published: September 1, 2025 - 2:08 PM
by dcardon
Hello Gabriel,

And if you manually run the command line on a machine, do you get more information?

Code: Select all

"C:\\\\Program Files\\\\Fortinet\\\\FortiClient\\\\FCConfig.exe" -d -m all -f "VPNSSL.conf" -o import -i 1 -p "[mdp]
Perhaps the output is in a separate file or in a GUI window...

You can retrieve the return code with echo %ERRORLEVEL%.

Could you also try launching it by first creating a cd directory in the fcconfig binary directory?.

Sincerely,

Denis

Re: Problem using the forticlient-vpn-config package

Published: September 1, 2025 - 5:39 PM
by Serv_info
Hello Denis,

Unfortunately, no further information is available regarding any potential issues when executed manually... but the configuration imports correctly. :/
I've attached a screenshot of what's displayed when the commands are executed. The -d option doesn't reveal much more either, given that the command works

Code: Select all

# Exemple en utilisant la commande sur le bureau

C:\Users\gabriel\Desktop>"c:\Program Files\\\\Fortinet\\\\FortiClient\FCConfig.exe" -d -m all -f "VPNSSL.conf" -o import -i 1 -p "[mdp]" && echo %ERRORLEVEL%
hr 1 80070002 FFFFFFFFFFFFFFFF
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsystem
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvpn
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlav
Load library: xmlav (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfssoma
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwanopt
Load library: xmlwanopt (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwf
Load library: xmlwf (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfw
Load library: xmlfw (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvuln
Load library: xmlvuln (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsandbox
Load library: xmlsandbox (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlae
Load library: xmlae (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlusbmon
Load library: xmlusbmon (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlcloudscan
Load library: xmlcloudscan (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlac
Load library: xmlac (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlrs
Load library: xmlrs (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlztna
Load library: xmlztna (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlpam
Load library: xmlpam (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlesnac
Load library: xmlesnac (126)
0

Code: Select all

# Exemple en exécutant dans le dossier du FortiClient

c:\Program Files\Fortinet\FortiClient>FCConfig.exe -d -m all -f "C:\Users\gabriel\Desktop\VPNSSL.conf" -o import -i 1 -p "[mdp]" && echo %ERRORLEVEL%
hr 1 80070002 FFFFFFFFFFFFFFFF
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsystem
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvpn
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlav
Load library: xmlav (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfssoma
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwanopt
Load library: xmlwanopt (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwf
Load library: xmlwf (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfw
Load library: xmlfw (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvuln
Load library: xmlvuln (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsandbox
Load library: xmlsandbox (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlae
Load library: xmlae (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlusbmon
Load library: xmlusbmon (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlcloudscan
Load library: xmlcloudscan (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlac
Load library: xmlac (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlrs
Load library: xmlrs (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlztna
Load library: xmlztna (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlpam
Load library: xmlpam (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlesnac
Load library: xmlesnac (126)
0
Once again, thank you very much for your help.

Have a good rest of the day!
Gabriel

Re: Problem using the forticlient-vpn-config package

Published: September 2, 2025 - 3:57 PM
by dcardon
Hello again Gabriel,

The Wapt agent is running under a LOCAL SYSTEM account. To simulate the same conditions, could you try running the command under a LOCAL SYSTEM account to see if there's a different message?

To do this, you can install the tis-ms-ps-tools package and run the following command in a shell:

Code: Select all

psexec -i -s cmd.exe
Then restart the fcconfig.exe command.

Sincerely,

Denis

Re: Problem using the forticlient-vpn-config package

Published: September 3, 2025 - 10:22 AM
by Serv_info
Hello again Denis,

I just performed the tests as a system account; here are the logs with the different commands executed:

Code: Select all

Microsoft Windows [version 10.0.22631.5472]
(c) Microsoft Corporation. Tous droits réservés.

C:\Windows\System32>whoami
autorite nt\système

C:\Windows\System32>cd c:\Program Files\Fortinet\FortiClient

c:\Program Files\Fortinet\FortiClient>FCConfig.exe -d -m all -f "C:\Users\gabriel\Desktop\VPNSSL.conf" -o import -i 1 -p "[mdp]" && echo %ERRORLEVEL%
hr 1 80070002 FFFFFFFFFFFFFFFF
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsystem
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvpn
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlav
Load library: xmlav (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfssoma
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwanopt
Load library: xmlwanopt (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwf
Load library: xmlwf (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfw
Load library: xmlfw (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvuln
Load library: xmlvuln (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsandbox
Load library: xmlsandbox (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlae
Load library: xmlae (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlusbmon
Load library: xmlusbmon (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlcloudscan
Load library: xmlcloudscan (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlac
Load library: xmlac (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlrs
Load library: xmlrs (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlztna
Load library: xmlztna (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlpam
Load library: xmlpam (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlesnac
Load library: xmlesnac (126)
0

c:\Program Files\Fortinet\FortiClient>cd c:\users\gabriel\desktop

c:\Users\gabriel\Desktop>"c:\Program Files\Fortinet\FortiClient\FCConfig.exe" -d -m all -f "C:\Users\gabriel\Desktop\VPNSSL.conf" -o import -i 1 -p "[mdp]" && echo %ERRORLEVEL%
hr 1 80070002 FFFFFFFFFFFFFFFF
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsystem
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvpn
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlav
Load library: xmlav (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfssoma
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwanopt
Load library: xmlwanopt (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwf
Load library: xmlwf (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfw
Load library: xmlfw (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvuln
Load library: xmlvuln (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsandbox
Load library: xmlsandbox (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlae
Load library: xmlae (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlusbmon
Load library: xmlusbmon (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlcloudscan
Load library: xmlcloudscan (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlac
Load library: xmlac (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlrs
Load library: xmlrs (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlztna
Load library: xmlztna (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlpam
Load library: xmlpam (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlesnac
Load library: xmlesnac (126)
0

c:\Users\gabriel\Desktop>"c:\Program Files\Fortinet\FortiClient\FCConfig.exe" -d -m all -f VPNSSL.conf -o import -i 1 -p "[mdp]" && echo %ERRORLEVEL%
hr 1 80070002 FFFFFFFFFFFFFFFF
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsystem
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvpn
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlav
Load library: xmlav (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfssoma
Get ImportFromXml operation API
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwanopt
Load library: xmlwanopt (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlwf
Load library: xmlwf (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlfw
Load library: xmlfw (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlvuln
Load library: xmlvuln (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlsandbox
Load library: xmlsandbox (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlae
Load library: xmlae (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlusbmon
Load library: xmlusbmon (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlcloudscan
Load library: xmlcloudscan (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlac
Load library: xmlac (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlrs
Load library: xmlrs (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlztna
Load library: xmlztna (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlpam
Load library: xmlpam (126)
Loading library: c:\Program Files\Fortinet\FortiClient\xmlesnac
Load library: xmlesnac (126)
0
No problem all three times, the import works fine... In the package I compiled, the configuration name has a hyphen in it. Is it worth trying to remove the hyphen?

Thank you so much!

Sincerely,
Gabriel