Error: Cannot save file "C:\Program Files (x86)\HostMon
-
- Posts: 94
- Joined: Tue Oct 24, 2006 12:45 pm
Error: Cannot save file "C:\Program Files (x86)\HostMon
I'm getting a lot of these errors when HostMon (12.42) tries to write a tmp file to the working dir. Started on May 6th and despite reboots/restarts, it keeps occurring always with the same tmp file.
06/02/2020 12:56:39 Error: Cannot save file "C:\Program Files (x86)\HostMonitor\xxx-2020-02-05.hml". Cannot create file "C:\Program Files (x86)\HostMonitor\xxx-2020-02-05.tmp". Access is denied
[Company name edited to = xxx]
Any ideas where to look pls?
Env = W2016 x64 VM
06/02/2020 12:56:39 Error: Cannot save file "C:\Program Files (x86)\HostMonitor\xxx-2020-02-05.hml". Cannot create file "C:\Program Files (x86)\HostMonitor\xxx-2020-02-05.tmp". Access is denied
[Company name edited to = xxx]
Any ideas where to look pls?
Env = W2016 x64 VM
Not a good idea to store config files in %ProgramFiles% directory.
HostMonitor installation program uses %ProgramData% by default.
1) I would check permissions (by default admin should be able to write into this folder), check what account you use for HostMonitor, try to stop your antivirus..
2) Normally you adjust antivirus settings so it will not check %ProgramData%\HostMonitor\, this way antivirus will not waste system resources checking log files 100 times/sec and will not lead to problems. But I am not sure its a good idea to disable antivirus for %ProgramFiles% directory.
3) If you do not want to reinstall software and move all config files, then at least you may move HML file with tests - stop HostMonitor, move .HML file, out of %ProgramFiles% modify path to this file in hostmon.ini, start HostMonitor
Regards
Alex
HostMonitor installation program uses %ProgramData% by default.
1) I would check permissions (by default admin should be able to write into this folder), check what account you use for HostMonitor, try to stop your antivirus..
2) Normally you adjust antivirus settings so it will not check %ProgramData%\HostMonitor\, this way antivirus will not waste system resources checking log files 100 times/sec and will not lead to problems. But I am not sure its a good idea to disable antivirus for %ProgramFiles% directory.
3) If you do not want to reinstall software and move all config files, then at least you may move HML file with tests - stop HostMonitor, move .HML file, out of %ProgramFiles% modify path to this file in hostmon.ini, start HostMonitor
Regards
Alex
-
- Posts: 94
- Joined: Tue Oct 24, 2006 12:45 pm
-
- Posts: 94
- Joined: Tue Oct 24, 2006 12:45 pm
-
- Posts: 94
- Joined: Tue Oct 24, 2006 12:45 pm
I would try to start from item #1 - check permissions (by default admin should be able to write into this folder), check what account you use for HostMonitor, try to stop your antivirus..
You are using "incorrect" config but in most cases it should work as well.
If you want to reinstall using "correct" path to config files, please note:
- backup and restore ALL config files (*.HML, *.LST, optionally *.INI), not just .HML file with tests
- after reinstalling and restoring files please check and modify paths in INI files (e.g. find and replace C:\Program Files (x86)\HostMonitor -> C:\ProgramData\HostMonitor)
Regards
Alex
You are using "incorrect" config but in most cases it should work as well.
If you want to reinstall using "correct" path to config files, please note:
- backup and restore ALL config files (*.HML, *.LST, optionally *.INI), not just .HML file with tests
- after reinstalling and restoring files please check and modify paths in INI files (e.g. find and replace C:\Program Files (x86)\HostMonitor -> C:\ProgramData\HostMonitor)
Regards
Alex
-
- Posts: 94
- Joined: Tue Oct 24, 2006 12:45 pm
Alex
OK, fixed it. My fault as it turns out. Duh!. I'd saved the HML test list in Program Files x86 and not in Program Data and also set it to 'update when a change is made'.
Not much as perms to write to Program Files x86 and so it was failing.
Didn't reinstall but rather shut HM down, moved the HML file and altered the 'load from this location' in config.
Now all works fine.. ;}
Thanks.[/u]
OK, fixed it. My fault as it turns out. Duh!. I'd saved the HML test list in Program Files x86 and not in Program Data and also set it to 'update when a change is made'.
Not much as perms to write to Program Files x86 and so it was failing.
Didn't reinstall but rather shut HM down, moved the HML file and altered the 'load from this location' in config.
Now all works fine.. ;}
Thanks.[/u]