Asking for authentication to restart nginx!

Hello friends a few minutes ago I had to reboot nginx, but this message popped up and I have no idea what’s going on because I never had this problem!

Would anyone know how to solve this?

Thank you!

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'nginx.service'.
Authenticating as: Ubuntu (ubuntu)
Password: Failed to restart nginx.service: Connection timed out
See system logs and 'systemctl status nginx.service' for details.

Commands Used: sudo service nginx restart and ee service restart nginx