> 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/frequently-asked-questions/node-not-joining-cluster.md).

# Node not Joining Cluster

## Problem

Node is not able to join the cluster.

## Environment

* Platform9 Managed Kubernetes - All versions

## Cause

* Pf9 user permissions issue.

{% tabs %}
{% tab title="hostagent.log" %}

```bash
2024-08-08 22:09:18,781 - pf9_app.py INFO - Setting the desired service state
2024-08-08 22:09:18,781 - pf9_app.py INFO - Setting service state pf9-comms.5.9.3-1192.99bd9ba. Command: sudo systemctl start pf9-comms
2024-08-08 22:09:18,788 - pf9_app.py ERROR - Command sudo systemctl start pf9-comms, code=1 stdout= stderr=sudo: you do not exist in the passwd database

2024-08-08 22:09:18,789 - pf9_app.py WARNING - Failed to set service pf9-comms to state True
2024-08-08 22:09:18,789 - pf9_app_cache.py INFO - Downloading pf9-kube.1.27.13-pmk.208
2024-08-08 22:09:18,789 - pf9_app_cache.py INFO - Using previously cached file /var/cache/pf9apps/pf9-kube/1.27.13-pmk.208/pf9-kube-1.27.13-pmk.208.x86_64.deb
2024-08-08 22:09:18,789 - pf9_app.py INFO - Removing pf9-kube.1.28.6-pmk.26
2024-08-08 22:09:18,916 - pf9_app.py INFO - Setting the desired service state
2024-08-08 22:09:18,916 - pf9_app.py INFO - Setting service state pf9-nodeletd.1.28.6-pmk.26. Command: sudo systemctl stop pf9-nodeletd
2024-08-08 22:09:18,922 - pf9_app.py ERROR - Command sudo systemctl stop pf9-nodeletd, code=1 stdout= stderr=sudo: you do not exist in the passwd database 

2024-08-08 22:09:18,922 - pf9_app.py WARNING - Failed to set service pf9-nodeletd to state False
2024-08-08 22:09:19,283 - pf9_app_db.py ERROR - Erase command failed : sudo /opt/pf9/hostagent/bin/pf9-apt erase pf9-kube. Return code: 1, stdout: , stderr: sudo: you do not exist in the passwd database
```

{% endtab %}
{% endtabs %}

## Resolution

* Check pf9 user permissions.

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

```bash
# lslogins pf9 
# chage -l pf9
# sudo -l -U pf9
# ls -l /etc/sudoers /etc/sudoers.d/*
# grep "^pf9:" /etc/passwd /etc/shadow
# namei -l /var/opt/pf9/hostagent/data.conf
```

{% endtab %}
{% endtabs %}

* If there is any issue with the pf9 user account and sudoers, fix those permissions.


---

# 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/frequently-asked-questions/node-not-joining-cluster.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.
