tor is not generating keys & hidden_service directory - HELP

Hello! I was trying to create a onion hidden service but, tor wont generate hostname and keys.
Here are the Steps which i did:

What i did:

  1. $ sudo vi /etc/tor/torrc
  2. uncommented HiddenServiceDir & HiddenServicePort

HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80

#HiddenServiceDir /var/lib/tor/other_hidden_service/
#HiddenServicePort 80
#HiddenServicePort 22

  1. Restarted tor service, $ sudo systemctl restart tor
  2. cat /var/lib/tor/hidden_service/hostname
    cat: /var/lib/tor/hidden_service/hostname: No such file or directory
    I went to /var/lib/tor directory and there was only “control_auth_cookie”

OS: Whonix

Sorry if this is a stupid question and if i’m wasting your time

A post was merged into an existing topic: Onion hidden service wont generate keys & hostname -HELP