What happens if you run just:
cardano-cli query tip --mainnnet
or
cardano-cli query tip --socket-path SOCKET_PATH --mainnet
i.e. try run it without the jq command with it.
Also, this post has a similar problem as yours Mainnet 1.34.1 first sync - cardano-cli query tip --mainnet - #20 by rdlrt
I think the resolution there was that the node wasn’t actually running, hence no socket file.
Can you confirm the cardano-node status?
sudo systemctl status cardano-node