Thank you for your detailed answer. As I see it from:
Tor not running. (tor_pid_message: Pid file /run/tor/tor.pid does not exist.) You have to fix this error, before you can use Tor
I should create Tor pid file, so I found a template for performing this:
$> start-stop-daemon --start --chuid <username> --background \
--make-pidfile --pidfile /var/run/<pidfile>.pid --exec $PROGRAM -- $PROGRAM-ARGUMENT
Annotations:
`--chuid username`: set user you want to run program in.
(It is best practice if we dont run it with root access)
`--backgroud`: make program run in background
`--make-pidfile`: force program to create pidfile
(sometime it doesnot work. check document of `start-stop-daemon` for more details)
`--pidfile`: specify pidfile for the program
`$PROGRAM-ARGUMENT`: is ARGUMENT for the program
But I definitively don’t understand which arguments should I substitute in a variables
$PROGRAM
and $PROGRAM-ARGUMENT
to complete a Tor pid file creating.
Also I attach a few outputs accordingly:
anon-verify:
/===================================================================\
| Report Summary |
\===================================================================/
No error detected in your Tor configuration.
Tor verify exit code: 0
/===================================================================\
| Tor Full Report |
\===================================================================/
Jul 08 13:25:38.151 [notice] Tor 0.4.7.8 running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1n, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.4.8 and Glibc 2.31 as libc.
Jul 08 13:25:38.151 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Jul 08 13:25:38.151 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Jul 08 13:25:38.152 [notice] Read configuration file "/etc/tor/torrc".
Jul 08 13:25:38.152 [notice] Processing configuration path "/etc/torrc.d/*.conf" at recursion level 1.
Jul 08 13:25:38.152 [notice] Including configuration file "/etc/torrc.d/60_network.conf".
Jul 08 13:25:38.152 [notice] Including configuration file "/etc/torrc.d/65_gateway.conf".
Jul 08 13:25:38.152 [notice] Including configuration file "/etc/torrc.d/65_leak_tests.conf".
Jul 08 13:25:38.153 [notice] Including configuration file "/etc/torrc.d/70_workstation.conf".
Jul 08 13:25:38.153 [notice] Processing configuration path "/usr/share/tor/tor-service-defaults-torrc.anondist" at recursion level 2.
Jul 08 13:25:38.153 [notice] Including configuration file "/usr/share/tor/tor-service-defaults-torrc.anondist".
Jul 08 13:25:38.153 [notice] Including configuration file "/etc/torrc.d/95_whonix.conf".
Jul 08 13:25:38.153 [notice] Processing configuration path "/usr/local/etc/torrc.d/*.conf" at recursion level 2.
Jul 08 13:25:38.153 [notice] Including configuration file "/usr/local/etc/torrc.d/40_tor_control_panel.conf".
Jul 08 13:25:38.153 [notice] Including configuration file "/usr/local/etc/torrc.d/50_user.conf".
Jul 08 13:25:38.154 [warn] Option 'DisableNetwork' used more than once; all but the last value will be ignored.
Jul 08 13:25:38.154 [warn] Option 'DisableNetwork' used more than once; all but the last value will be ignored.
Jul 08 13:25:38.154 [notice] You configured a non-loopback address '10.152.152.10:5300' for DNSPort. This allows everybody on your local network to use your machine as a proxy. Make sure this is what you wanted.
Jul 08 13:25:38.154 [notice] You configured a non-loopback address '10.152.152.10:9040' for TransPort. This allows everybody on your local network to use your machine as a proxy. Make sure this is what you wanted.
Configuration was valid
ERROR: invalid file: '/etc/torrc.d/*.conf'
/===================================================================\
| Used Tor Configuration Files |
\===================================================================/
2 files are used as Tor configuration files:
/usr/share/tor/tor-service-defaults-torrc /etc/tor/torrc
=====================================================================
anon-log is too large, so here is only extractions (All the rest is iterative):
vanguards.service:
Started Additional protections for Tor onion services.
NOTICE[Fri Jul 08 12:40:30 2022]: Creating new vanguard state file at: /var/lib/tor/vanguards.state
NOTICE[Fri Jul 08 12:40:30 2022]: Vanguards 0.3.1 connected to Tor 0.4.7.8 using stem 1.8.0
WARNING[Fri Jul 08 12:40:47 2022]: We've been disconnected from the Tor network for 15 seconds!
NOTICE[Fri Jul 08 12:40:49 2022]: Tor daemon connection closed. Trying again...
NOTICE[Fri Jul 08 12:40:50 2022]: Vanguards 0.3.1 connected to Tor 0.4.7.8 using stem 1.8.0
NOTICE[Fri Jul 08 12:40:59 2022]: Tor daemon connection closed. Trying again...
WARNING[Fri Jul 08 12:41:08 2022]: Tor daemon connection failed: [Errno 2] No such file or directory. Trying again...
tor.service:
Starting Anonymizing overlay network for TCP (multi-instance-master)...
Finished Anonymizing overlay network for TCP (multi-instance-master).
/run/tor/log:
Jul 08 12:40:02.000 [notice] Tor 0.4.7.8 opening new log file.
Jul 08 12:40:02.062 [notice] We compiled with OpenSSL 101010ef: OpenSSL 1.1.1n 15 Mar 2022 and we are running with OpenSSL 101010ef: 1.1.1n. These two versions should be binary compatible.
Jul 08 12:40:02.064 [notice] Tor 0.4.7.8 running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1n, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.4.8 and Glibc 2.31 as libc.
Jul 08 12:40:02.489 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Jul 08 12:40:02.632 [notice] Opening Control listener on 127.0.0.1:9052
Jul 08 12:40:02.632 [notice] Opened Control listener connection (ready) on 127.0.0.1:9052
Jul 08 12:40:13.000 [notice] Bootstrapped 0% (starting): Starting
Jul 08 12:40:15.000 [notice] Starting with guard context "bridges"
Jul 08 12:40:15.000 [notice] Delaying directory fetches: No running bridges
Jul 08 12:40:15.000 [notice] Signaled readiness to systemd
Jul 08 12:40:15.000 [notice] Received reload signal (hup). Reloading config and resetting internal state.
Jul 08 12:40:15.000 [notice] Opened Control listener connection (ready) on /run/tor/control
Jul 08 12:40:15.000 [notice] Bootstrapped 1% (conn_pt): Connecting to pluggable transport
Jul 08 12:40:15.000 [notice] Bootstrapped 2% (conn_done_pt): Connected to pluggable transport
Jul 08 12:40:49.000 [notice] Interrupt: exiting cleanly.
Jul 08 12:40:49.854 [notice] We compiled with OpenSSL 101010ef: OpenSSL 1.1.1n 15 Mar 2022 and we are running with OpenSSL 101010ef: 1.1.1n. These two versions should be binary compatible.
Jul 08 12:40:49.855 [notice] Tor 0.4.7.8 running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1n, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.4.8 and Glibc 2.31 as libc.
Jul 08 12:40:49.856 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Jul 08 12:40:49.872 [notice] Opening Control listener on 127.0.0.1:9052
Jul 08 12:40:49.872 [notice] Opened Control listener connection (ready) on 127.0.0.1:9052
Jul 08 12:40:50.000 [notice] Bootstrapped 0% (starting): Starting
Jul 08 12:40:50.000 [notice] Starting with guard context "bridges"
Jul 08 12:40:50.000 [notice] Delaying directory fetches: No running bridges
Jul 08 12:40:50.000 [notice] Signaled readiness to systemd
Jul 08 12:40:50.000 [notice] Received reload signal (hup). Reloading config and resetting internal state.
Jul 08 12:40:50.000 [notice] Opened Control listener connection (ready) on /run/tor/control
Jul 08 12:40:50.000 [notice] Bootstrapped 1% (conn_pt): Connecting to pluggable transport
Jul 08 12:40:50.000 [notice] Bootstrapped 2% (conn_done_pt): Connected to pluggable transport
Jul 08 12:40:50.000 [notice] Received reload signal (hup). Reloading config and resetting internal state.
Jul 08 12:40:59.000 [notice] Interrupt: exiting cleanly.
$ systemcheck --verbose --leak-tests:
[INFO] [systemcheck] | Whonix-Gateway | Fri 08 Jul 2022 01:48:11 PM UTC
[INFO] [systemcheck] Check sudo Result: OK
[INFO] [systemcheck] Whonix build version: 16.0.4.2
[INFO] [systemcheck] whonix-gateway-packages-dependencies-cli: 22.5-1
[INFO] [systemcheck] derivative_major_release_version /etc/whonix_version: 16
[INFO] [systemcheck] Whonix Support Status of this Major Version: Ok.
[WARNING] [systemcheck] Hardened Malloc: Disabled.
[INFO] [systemcheck] Spectre Meltdown Test: skipping since spectre_meltdown_check=false, ok.
[INFO] [systemcheck] Package Manager Consistency Check Result: Output of command dpkg --audit was empty, ok.
/usr/libexec/msgcollector/msgdispatcher_run_check: line 91: /usr/libexec/msgcollector/msgcollector: Argument list too long
[ERROR] [systemcheck] ###############################################################################
## systemcheck script bug.
$ systemcheck --verbose --leak-tests --function check_tor_socks_port
[INFO] [systemcheck] SocksPort IP Leak Test: Testing Tor's SocksPort (SOCKS_PORT_SYSTEMCHECK: 9110)...
[ERROR] [systemcheck] SocksPort IP Leak Test Result: https://check.torproject.org/api/ip was not reachable.
You could check, if you can reach https://check.torproject.org/api/ip via the Tor Browser Bundle.
(curl exit code: [7] - [Failed to connect to host.])
$ sudo anondate-get:
______ ### START: ### /usr/sbin/anondate-get
______ WARNING: Tor bootstrap not done.
______ INFO: Attempting to determine Tor consensus time middle range...
______ WARNING: Could not determine Tor consensus time middle range.
______ INFO: Attempting to determine Tor certificate lifetime...
______ INFO: Tor certificate lifetime valid, ok.
______ INFO: Could not determine a time later than minimum time from either Tor consensus time or Tor certificate lifetime, ok.
______ INFO: Showing minimum time instead as result...
______ INFO: minimum time: '2022-07-05 16:36:28'
2022-07-05 16:36:28
______ ### END: ### Exiting with exit_code '0' indicating 'Showed Tor consensus time middle range or minimum time.'.
$ sudo apt update: fails
If my first thought about tor pid file creating is wright. Could you prompt which arguments should I type in, instead of 2 variables listed above? Or anything else