> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmk/solutions/nodeletd-restart-is-failing-at-phase-2.md).

# Nodeletd Restart Failing At Phase 2

## Problem

* Restarting nodeletd fails on phase 2 with below error:

{% tabs %}
{% tab title="None" %}

```none
--- /opt/pf9/pf9-kube/worker_scripts/040-docker_configure.sh start at 2021-05-25 07:43:55 ---
[2021-05-25 07:43:55] docker-ce-19.03.11-3.el7.x86_64
[2021-05-25 07:43:55] docker-ce-cli-19.03.11-3.el7.x86_64
[2021-05-25 07:43:55] configure_docker_storage: deriving configuration from /etc/sysconfig/docker-storage
[2021-05-25 07:43:55] os_centos.sh: line 78: /opt/pf9/python/pf9/python: No such file or directory
Error: exit status 127
Exit Status: 127
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed Kubernetes - v5.2 and below version
* Nodeletd

## Cause

The **/opt/pf9/pf9-kube/os\_centos.sh** script contains a typo for python path:

{% tabs %}
{% tab title="os\_centos.sh" %}

```python
local storage_cfg_backup=/etc/sysconfig/docker-storage.rpmsave
    if [ ! -f $storage_cfg ] && [ -f $storage_cfg_backup ] ; then
        echo "configure_docker_storage: restoring $storage_cfg"
        mv -f $storage_cfg_backup $storage_cfg
    fi    # Ensure backward compatibility with hosts where docker storage
    # is already configured
    if [ -f $storage_cfg ]; then
        echo "configure_docker_storage: deriving configuration from $storage_cfg"
        local PYTHON=*/opt/pf9/python/pf9/python*
```

{% endtab %}
{% endtabs %}

## Resolution

* Correct python path from */opt/pf9/python/pf9/python* to **/opt/pf9/python/bin/python** of **/opt/pf9/pf9-kube/os\_centos.sh** script
* The issue is fixed from Platform9 Managed Kubernetes v5.3 onwards.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/pmk/solutions/nodeletd-restart-is-failing-at-phase-2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
