How do I fix Kaseya server connectivity issues (curl.exe) like the ones below?
- Kaseya server cannot download latest hotfixes
- Kaseya server cannot update license code - VSA keeps prompting for new code on login
- Error in kserver log when trying to auto-create a new agent account:
Thu Jan 24 12:29:22 2008: ERROR:Automatic account creation process failed for .ds while retrieving new password from the database.
Thu Jan 24 12:29:22 2008: Failed to locate error file to report proper Kaseya error.
Thu Jan 24 12:29:22 2008: Automatic account creation web page used was AgentTab/createAccountCtl.asp -d"CreateHit=Create&defaultAccount=&userEmailAddr=&groupId=ds"-o "C:\Kaseya\WebPages\install\ds.txt"
These processes use a program called "curl.exe" to connect either to local host or to the Kaseya central license server. Curl can fail for various reasons, such as network or IIS problems.
Download & run the curl test package found here to test the process on the Kaseya server:
1) Extract the curl test directory to somewhere on the Kaseya server (e.g. C:\curltest)
2) If IIS on your K server is configured for HTTP, run curltest.cmd. If you are using SSL, run curltest-ssl.cmd
3) Look at the resulting "localhost.txt" and "vsaupdate.txt" files:
- if they contain html code, the curl command was successful
- if they contain an error such as below, then curl has failed
"Error=28, URL=http://vsaupdate.kaseya.net/blank.asp,Filein=NULL, Fileout=vsaupdate.txt"
If the "vsaupdate.txt" file contains an error, then the KServer cannot connect to the Kaseya license server (vsaupdate.kaseya.net) over the internet.
If the localhost.txt file contains an error, then the KServer cannot connect to its own IIS server.
4) If you are using SSL, ensure that IIS is configured to allow connection to localhost over SSL. It does NOT need to have a certificate installed for local host access.
This web page contains descriptions of curl errors: http://curl.haxx.se/libcurl/c/libcurl-errors.html
In the example above, there was a timeout trying to download from the Kaseya license server (vsaupdate.kaseya.net) because a firewall was preventing access to the internet.