Mender-cli cp 405 Not Allowed

Hi There,

I’m trying to use mender-cli to copy a file from my local workstation to a Mender device.

The device is connected. I am able to connect to the terminal and port forward using mender-cli but the cp command gives me the error below.

mender-cli cp --server $MENDER_SERVER --token-value $MENDER_PAT <DEVICE_ID>:/home/test/
Configuration file not found. Continuing.
Error: Received unexpected response code: 405
FAILURE: Error: <html>
<head><title>405 Not Allowed</title></head>
<center><h1>405 Not Allowed</h1></center>

I was thinking it could be due to permissions so i configured /etc/mender/mender-connect.conf to use root user but still i get the 405 error.

mender-client is version 3.5.0
We are using self hosted mender version 3.4.0

Hello @dunning.simon

thank you for using Mender. it is nice to meet you.
could you please do four things for me:

  • restart mender-connect on a device
  • share the mender-connect config file with me
  • do the same command but trying the terminal:
mender-cli terminal --server "$MENDER_SERVER" --token-value "$MENDER_PAT" <DEVICE_ID>
  • give me the output of ps axuw | grep mender from the device

best regards,