save sys config fail port: 9090 Connection refused

Cannot save the configuration using either commands:

tmsh save sys config

or

tmsh save /sys ucs file

Error: TSocket::open() connect() Connection refused