qacafe - ip test solutions
Knowledge Base > How do I correct a problem with a custom testpath?

How do I correct a problem with a custom testpath?

BuddyWeb

The following error may occur when trying to load BuddyWeb. This error indicates that there may be an issue with a custom testpath and/or modules file that was recently loaded and/or modified. There are a number of reasons this can occur:

  • One or more custom testpaths do not exist or are otherwise invalid on your system
  • One or more of custom testpaths do not contain a modules file
  • The modules file in one or more custom testpaths contains faulty Tcl code or is otherwise invalid
  • One or more directories containing a pre-defined custom testpath have been removed and/or modified

BuddyWeb Error Message

Unable to validate testpath running:
buddy -testpath "/usr/share/doc/cdrouter badTestPath" -info

Exception:
ERROR: Could not access test path 'badTestPath'
ERROR: couldn't change working directory to "badTestPath": no such file or directory


Please see this knowledgebase article for more help.

Recommended Solution

If after investigation of all custom testpaths the exact reason for the error message above is unclear, please contact support@qacafe.com for assistance. The custom testpaths for a specific CDRouter system can be reset by manually editing the file /usr/buddyweb/etc/config.yml and removing the "custom_testpaths" line and all subsequent testpaths that have been specified.

In the example config.yml below the lines "custom_testpaths:" and "- badTestPath" would be removed.

main_interface: eth0
export_format: zip
port: 8015
talkback_port: 8080
custom_testpaths:
- badTestPath
hostname: podXdemo
homepage_results: 5
upgrade: false

Related articles that may also be helpful: