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 upsize.sh <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> <body> <center><h1>405 Not Allowed</h1></center> <hr><center>nginx</center> </body> </html>
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