> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

> Resolve errors and unexpected behavior with the Cognite Studio for Petrel extractor.

## View error messages

You'll find information related to the Windows service under **Windows Logs** > **Application** in the **Event Viewer**.

To log messages from the extractor, configure the parameters in the [Logging](/cdf/integration/guides/extraction/petrel_studio/petrel_studio_configuration#logging) configuration section. The log file is named `log-Year-Month-Day.log`. By default, this log is stored in the logs directory within the installation directory. The log file rotates once a day and is kept for 7 days. You can change this with the [`retention`](/cdf/integration/guides/extraction/petrel_studio/petrel_studio_configuration#logging) configuration parameter.

<Tip>
  Use [Powershell's Get-Content -Tail](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-content?view=powershell-7.3) to monitor changes in the logs.
</Tip>

## Failed runs

If the extractor fails to run, stop the Windows service, and start `Connector.exe` from the command line. Note that the command prompt must run as the same user as the Windows service to get the same Studio for Petrel access.

## Configuration errors

Configuration errors throw exceptions when the extractor runs. You'll find the missing or incorrect parameters in the execution logs. When you've fixed the configuration file, restart the extractor service:

<Steps>
  <Step title="Stop the extractor service">
    Stop the extractor service execution by running:

    ```yml theme={"languages":{"custom":["/_languages/kuiper.json","../_languages/kuiper.json"]}}
    net stop ConnectorService
    ```
  </Step>

  <Step title="Start the extractor service">
    Start the extractor service execution by running:

    ```yml theme={"languages":{"custom":["/_languages/kuiper.json","../_languages/kuiper.json"]}}
    net start ConnectorService
    ```
  </Step>
</Steps>

If a service is constantly restarting due to errors, the Windows server may choose to throttle the service instead of restarting. You may need to start the service manually using the Windows service.

### Windows events log

You can use the Windows Event Viewer to troubleshoot errors when the extractor runs. Issues such as incorrect credentials when starting the service won't be logged as files, so you must check the Event Viewer logs.

<Tip>
  Use the event logs in combination with the log file to debug errors or find incorrect configuration settings.
</Tip>
