Error 404 on model upload using cURL

Trying to upload my model to Rasa X using

curl -k -F "model=@20200320-140736.tar.gz" \
"http://xx.xxx.xxx.xxx/api/projects/default/models?api_token=xxxxxx"

But always get this error:

{"version":"0.26.1","status":"failure","message":"Could not save model.\nNo `model` file found.","reason":"ModelSaveError","details":{},"help":null,"code":404}

From this GitHub report, I’ve already tried fixing the permissions.

sudo chgrp -R root /etc/rasa/models && sudo chmod -R 770 /etc/rasa/models

But I still get the same error.

@visvamba are you inside the models folder when you are executing the command? if you’re in the base of the project directory, it should be

-F "model=@models/20200320-140736.tar.gz"

I am in fact inside the models folder when executing.