---
title: "How to resolve ERROR: TOOLKIT2 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory"
description: "The error occurs when a script tries to access parent directories without proper permissions or missing files. Ensure the Netprobe user has access to execute commands and scripts to resolve this issue."
url: "https://docs.itrsgroup.com/docs/faq/geneos/15785281718429-geneos-how-to-resolve-error-toolkit2-shell-init-error-retrieving-current-directory-getcwd-cannot-access-parent-directories-no-such-file-or-directory/index.html"
---
## Problem

- User is facing issue for sampler, using toolkit plugin, sampler status shown as script completed with error.
  Error message looks like below:

  ```
  <Tue Oct 26 07:07:40> ERROR: TOOLKIT2 shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  ```

### Possible Cause(s)

- **Root Cause:** The script has a command that is trying to access parent directories but has no access or directory/file does not exists.

### Possible Solution(s)

- **Solution Root Cause:** Kindly check the script and ensure that Netprobe user has appropriate access to execute the commands and scripts.
  For more details on Toolkit plugin, please check this documentation [link](https://docs.itrsgroup.com/docs/geneos/current/collection/toolkit-plugin/index.html).

  > ### Prerequisites
  >
  > The following requirements must be met prior to the configuration and setup of the Toolkit plug-in:
  >
  > - **Netprobe must have the appropriate access to execute the commands and scripts.**
  > - Results of the commands and scripts must be to standard output (stdout).
  > - Results must be in the custom comma separated values (CSV) format.

## Related Articles

- <https://docs.itrsgroup.com/docs/geneos/current/collection/toolkit-plugin/index.html>


