# During Host Onboarding PF9CTL Check Node Fails

## Problem

pf9ctl check node command shows below output.

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

```none
# pf9ctl check-node
2021-04-28T10:56:54.3605Z INFO Loading config...Removal of existing CLI : PASSExisting Installation Check : PASSSudoCheck : PASSCPUCheck : PASSDiskCheck : PASSMemoryCheck : PASSPortCheck : FAILNode not ready. See /root/pf9/log/pf9ctl-20210428.log or use --verbose for logs
```

{% endtab %}
{% endtabs %}

pf9ctl logs show below error during node onboarding.

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

```none
{"level":"debug","ts":"2021-04-28T10:56:54.3358Z","caller":"debian/debian.go:58","msg":"Ports required but not available: [3306]"}...{"level":"debug","ts":"2021-04-28T10:56:54.3605Z","caller":"pmk/checkNode.go:108","msg":"Sending Segment Event: CheckNode: PortCheck"}.{"level":"debug","ts":"2021-04-28T10:56:54.3606Z","caller":"cmd/checkNode.go:81","msg":"Error in PortCheck : Following port(s) should not be in use: 3306"}.{"level":"debug","ts":"2021-04-28T10:56:54.3606Z","caller":"pmk/checkNode.go:101","msg":"Sending Segment Event: CheckNode: Existing Kubernetes Cluster Check"}
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed Kubernetes - v4.0 and Higher
* PF9CTL

## Cause

Port 3306 is currently in use on the node.

## Resolution

1. Port 3306 should not be in use on the node that you are trying to onboard.

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

```none
# netstat -tlna | grep ":3306"
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1115/mysqld
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
**Warning**

If there are any *ESTABLISHED* connections to mysql, ensure the service may be safely stopped before proceeding.
{% endhint %}

2. Stop the mysqld process on the node.

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

```none
# systemctl stop mysqld
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://platform9.com/kb/pmk/solutions/during-host-onboarding-pf9ctl-check-node-fails.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
