full node – bitcoind -daemon command error

Im trying to open bitcoin core withthe command
bitcoind -daemon

My node is working perfectly with GUI
But When trying to run bitcoind -daemon

error: Could not connect to the server
Make sure the bitcoind server is running and that you are connecting to the correct RPC port.

Any help?
For some reason its showing i am in Prune mode?
Im not sure if this is the cause of the error if so please instruct me to fix this