# Fix a Marfa Cloud connector that has failed (/run/troubleshooting/cloud-connector)

Find the reason `marfa cloud status` gives for a failed Marfa Cloud connector, and fix it.



`marfa cloud status` shows the reason when the connector is `failed`. The server keeps trying after each reason, so a cause you remove mends the connector without a restart. [Link to Marfa Cloud](/run/marfa-cloud#check-the-link) shows the status.

## missing [#missing]

There is no `cloudflared` to run. Put it beside `marfa-server`, or name it with `MARFA_CLOUDFLARED`.

## socket_unavailable [#socket_unavailable]

The server can't open the private socket the tunnel uses to reach your instance. Another program may hold it. Check the server log, then free the socket or restore the permissions of its folder.

## origin_unconfirmed [#origin_unconfirmed]

Marfa Cloud hasn't yet confirmed that the tunnel points at the instance's current socket. This happens after an upgrade. The server waits and asks again, and keeps the link's credential meanwhile.

## never_connected [#never_connected]

The connector exited three times without ever being ready for this link. Read its output in the server log, and check that the computer can reach the network.

## refused [#refused]

Marfa Cloud refuses the connector's tunnel token. The server asks for a new one itself. If the reason lasts, unlink and link again.

## token [#token]

The server can't read the tunnel token or write the connector's file.
