[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [CONTRIBUTE] [DONATE]

Whonix Gateway Error Code 1

Hello, I use Whonix and Whonix Gateway in Fedora via Virtualbox. After briefly cutting and restoring my internet connection in Fedora, I can no longer get an internet connection in Gateway.

A stable connection was there before.

The command (sudo service tor@default restart) results in the following:

“Job for tor@default.service failed because the control process exited with error code.
See “systemctl status tor@default.service” and “journalctl -xe” for details.”

Journalctl -xe returns the following:

Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
Feb 15 12:42:24 host sudo[5123]: pam_unix(sudo:session): session opened for use>
Feb 15 12:42:24 host sudo[5123]: pam_unix(sudo:session): session closed for use>
Feb 15 12:42:24 host sudo[5127]:     user : TTY=tty2 ; PWD=/home/user ; USER=ro>
Feb 15 12:42:24 host sudo[5127]: pam_unix(sudo:session): session opened for use>
Feb 15 12:42:24 host sudo[5127]: pam_unix(sudo:session): session closed for use>
Feb 15 12:42:24 host /usr/libexec/gdm-x-session[5051]: /usr/libexec/msgcollecto>
Feb 15 12:42:24 host /usr/libexec/gdm-x-session[5051]:   Dialog.resize(830, mes>
Feb 15 12:42:25 host sudo[3924]: pam_unix(sudo:session): session closed for use>
Feb 15 12:43:09 host sudo[5203]:     user : TTY=pts/2 ; PWD=/home/user ; USER=r>
Feb 15 12:43:09 host sudo[5203]: pam_unix(sudo:session): session opened for use>
Feb 15 12:43:34 host sudo[5246]:     user : TTY=tty2 ; PWD=/home/user ; USER=ro>
Feb 15 12:43:34 host sudo[5246]: pam_unix(sudo:session): session opened for use>
Feb 15 12:43:34 host sudo[5246]: pam_unix(sudo:session): session closed for use>
Feb 15 12:44:03 host exo-open[5297]: AT-SPI: Error retrieving accessibility bus>
Feb 15 12:44:03 host unknown[5299]: AT-SPI: Error retrieving accessibility bus >
Feb 15 12:44:05 host sudo[5312]: pam_exec(sudo:auth): /usr/libexec/security-mis>
Feb 15 12:44:05 host sudo[5312]: pam_wheel(sudo:auth): Ignoring access request >
Feb 15 12:44:07 host sudo[5312]:     user : TTY=pts/1 ; PWD=/home/user/Desktop >
Feb 15 12:44:07 host sudo[5312]: pam_unix(sudo:session): session opened for use>
Feb 15 12:44:07 host sudo[5312]: pam_unix(sudo:session): session closed for use>
Feb 15 12:44:36 host sudo[5377]:     user : TTY=pts/1 ; PWD=/home/user/Desktop >
Feb 15 12:44:36 host sudo[5377]: pam_unix(sudo:session): session opened for use>
Feb 15 12:44:36 host sudo[5377]: pam_unix(sudo:session): session closed for use>
lines 1247-1269/1269 (END)
Feb 15 12:42:24 host sudo[5123]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:42:24 host sudo[5123]: pam_unix(sudo:session): session closed for user root
Feb 15 12:42:24 host sudo[5127]:     user : TTY=tty2 ; PWD=/home/user ; USER=root ; ENV=msgdisptacher_username=systemcheck msgdispatcher_identifier=systemcheck msgdi>
Feb 15 12:42:24 host sudo[5127]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:42:24 host sudo[5127]: pam_unix(sudo:session): session closed for user root
Feb 15 12:42:24 host /usr/libexec/gdm-x-session[5051]: /usr/libexec/msgcollector/msgdispatcher_dispatch_x:80: DeprecationWarning: an integer is required (got type fl>
Feb 15 12:42:24 host /usr/libexec/gdm-x-session[5051]:   Dialog.resize(830, messageHeight + 55)
Feb 15 12:42:25 host sudo[3924]: pam_unix(sudo:session): session closed for user root
Feb 15 12:43:09 host sudo[5203]:     user : TTY=pts/2 ; PWD=/home/user ; USER=root ; COMMAND=/usr/sbin/service tor status
Feb 15 12:43:09 host sudo[5203]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:43:34 host sudo[5246]:     user : TTY=tty2 ; PWD=/home/user ; USER=root ; COMMAND=/bin/lsblk --noheadings --all --raw --output RO
Feb 15 12:43:34 host sudo[5246]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:43:34 host sudo[5246]: pam_unix(sudo:session): session closed for user root
Feb 15 12:44:03 host exo-open[5297]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not pro>
Feb 15 12:44:03 host unknown[5299]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not prov>
Feb 15 12:44:05 host sudo[5312]: pam_exec(sudo:auth): /usr/libexec/security-misc/pam_faillock_not_if_x failed: exit code 1
Feb 15 12:44:05 host sudo[5312]: pam_wheel(sudo:auth): Ignoring access request 'user' for 'user'
Feb 15 12:44:07 host sudo[5312]:     user : TTY=pts/1 ; PWD=/home/user/Desktop ; USER=root ; COMMAND=/sbin/ifconfig
Feb 15 12:44:07 host sudo[5312]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:44:07 host sudo[5312]: pam_unix(sudo:session): session closed for user root
Feb 15 12:44:36 host sudo[5377]:     user : TTY=pts/1 ; PWD=/home/user/Desktop ; USER=root ; COMMAND=/usr/sbin/service tor@default restart
Feb 15 12:44:36 host sudo[5377]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:44:36 host sudo[5377]: pam_unix(sudo:session): session closed for user root
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
lines 1247-1269/1269 (END)
Feb 15 12:42:24 host sudo[5123]: pam_unix(sudo:session): sess>
Feb 15 12:42:24 host sudo[5123]: pam_unix(sudo:session): sess>
Feb 15 12:42:24 host sudo[5127]:     user : TTY=tty2 ; PWD=/h>
Feb 15 12:42:24 host sudo[5127]: pam_unix(sudo:session): sess>
Feb 15 12:42:24 host sudo[5127]: pam_unix(sudo:session): sess>
Feb 15 12:42:24 host /usr/libexec/gdm-x-session[5051]: /usr/l>
Feb 15 12:42:24 host /usr/libexec/gdm-x-session[5051]:   Dial>
Feb 15 12:42:25 host sudo[3924]: pam_unix(sudo:session): sess>
Feb 15 12:43:09 host sudo[5203]:     user : TTY=pts/2 ; PWD=/>
Feb 15 12:43:09 host sudo[5203]: pam_unix(sudo:session): sess>
Feb 15 12:43:34 host sudo[5246]:     user : TTY=tty2 ; PWD=/h>
Feb 15 12:43:34 host sudo[5246]: pam_unix(sudo:session): sess>
Feb 15 12:43:34 host sudo[5246]: pam_unix(sudo:session): sess>
Feb 15 12:44:03 host exo-open[5297]: AT-SPI: Error retrieving>
Feb 15 12:44:03 host unknown[5299]: AT-SPI: Error retrieving >
Feb 15 12:44:05 host sudo[5312]: pam_exec(sudo:auth): /usr/li>
Feb 15 12:44:05 host sudo[5312]: pam_wheel(sudo:auth): Ignori>
Feb 15 12:44:07 host sudo[5312]:     user : TTY=pts/1 ; PWD=/>
Feb 15 12:44:07 host sudo[5312]: pam_unix(sudo:session): sess>
lines 1247-1265/1269 100%
Feb 15 12:42:24 host sudo[5123]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:42:24 host sudo[5123]: pam_unix(sudo:session): session closed for user root
Feb 15 12:42:24 host sudo[5127]:     user : TTY=tty2 ; PWD=/home/user ; USER=root ; ENV=msgdisptacher_username=systemcheck msgdispatcher_identifier=systemcheck msgdi>
Feb 15 12:42:24 host sudo[5127]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:42:24 host sudo[5127]: pam_unix(sudo:session): session closed for user root
Feb 15 12:42:24 host /usr/libexec/gdm-x-session[5051]: /usr/libexec/msgcollector/msgdispatcher_dispatch_x:80: DeprecationWarning: an integer is required (got type fl>
Feb 15 12:42:24 host /usr/libexec/gdm-x-session[5051]:   Dialog.resize(830, messageHeight + 55)
Feb 15 12:42:25 host sudo[3924]: pam_unix(sudo:session): session closed for user root
Feb 15 12:43:09 host sudo[5203]:     user : TTY=pts/2 ; PWD=/home/user ; USER=root ; COMMAND=/usr/sbin/service tor status
Feb 15 12:43:09 host sudo[5203]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:43:34 host sudo[5246]:     user : TTY=tty2 ; PWD=/home/user ; USER=root ; COMMAND=/bin/lsblk --noheadings --all --raw --output RO
Feb 15 12:43:34 host sudo[5246]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:43:34 host sudo[5246]: pam_unix(sudo:session): session closed for user root
Feb 15 12:44:03 host exo-open[5297]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not pro>
Feb 15 12:44:03 host unknown[5299]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not prov>
Feb 15 12:44:05 host sudo[5312]: pam_exec(sudo:auth): /usr/libexec/security-misc/pam_faillock_not_if_x failed: exit code 1
Feb 15 12:44:05 host sudo[5312]: pam_wheel(sudo:auth): Ignoring access request 'user' for 'user'
Feb 15 12:44:07 host sudo[5312]:     user : TTY=pts/1 ; PWD=/home/user/Desktop ; USER=root ; COMMAND=/sbin/ifconfig
Feb 15 12:44:07 host sudo[5312]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:44:07 host sudo[5312]: pam_unix(sudo:session): session closed for user root
Feb 15 12:44:36 host sudo[5377]:     user : TTY=pts/1 ; PWD=/home/user/Desktop ; USER=root ; COMMAND=/usr/sbin/service tor@default restart
Feb 15 12:44:36 host sudo[5377]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Feb 15 12:44:36 host sudo[5377]: pam_unix(sudo:session): session closed for user root

systemctl status tor@default.service results in the following:

user@host:~/Desktop$ systemctl status tor@default.service
● tor@default.service - Anonymizing overlay network for TCP
     Loaded: loaded (/lib/systemd/system/tor@default.service; enabled-runtime; vendor preset: enabled)
    Drop-In: /lib/systemd/system/tor@default.service.d
             └─30_clean-torrc-d-on-reload.conf, 40_obfs4proxy-workaround.conf, 50_controlsocket-workaround.conf
     Active: failed (Result: exit-code) since Tue 2022-02-15 12:47:31 UTC; 6min ago
    Process: 5797 ExecStartPre=/usr/bin/install -Z -m 02755 -o debian-tor -g debian-tor -d /run/tor (code=exited, status=0/SUCCESS)
    Process: 5798 ExecStartPre=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0 --verify-config (code=exited>
    Process: 5799 ExecStart=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0 (code=exited, status=1/FAILURE)
   Main PID: 5799 (code=exited, status=1/FAILURE)
        CPU: 37ms
lines 1-10/10 (END)

Any Idea?

“Tor failed to start Anonymizing overlay network for TCP” (when im booting up Gateway via Virtualbox)
I also updated both VMs so maybe this was the problem.

Tor:

user@host:~/Desktop$ anon-verify
/===================================================================\
|                      Report Summary                               |
\===================================================================/
No error detected in your Tor configuration.
Tor verify exit code: 0
/===================================================================\
|                      Tor Full Report                              |
\===================================================================/
Feb 15 13:11:23.276 [notice] Tor 0.4.6.9 running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1k, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.4.8 and Glibc 2.31 as libc.
Feb 15 13:11:23.276 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Feb 15 13:11:23.276 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Feb 15 13:11:23.276 [notice] Read configuration file "/etc/tor/torrc".
Feb 15 13:11:23.277 [notice] Processing configuration path "/etc/torrc.d/95_whonix.conf" at recursion level 1.
Feb 15 13:11:23.277 [notice] Including configuration file "/etc/torrc.d/95_whonix.conf".
Feb 15 13:11:23.277 [notice] Processing configuration path "/usr/local/etc/torrc.d/" at recursion level 2.
Feb 15 13:11:23.277 [notice] Including configuration file "/usr/local/etc/torrc.d//40_tor_control_panel.conf".
Feb 15 13:11:23.277 [notice] Including configuration file "/usr/local/etc/torrc.d//50_user.conf".
Configuration was valid
/===================================================================\
|                 Used Tor Configuration Files                      |
\===================================================================/
5 files are used as Tor configuration files: 
/usr/share/tor/tor-service-defaults-torrc /etc/tor/torrc /etc/torrc.d/95_whonix.conf /usr/local/etc/torrc.d/40_tor_control_panel.conf /usr/local/etc/torrc.d/50_user.conf
=====================================================================
user@host:~/Desktop$ 

sudo journalctl -b --output cat --no-pager -u tor -u tor@default -u vanguards  prints a lot

Feb 15 13:10:23.659 [warn] Unable to open configuration file “/etc/tor/torrc”.
Feb 15 13:10:23.659 [err] Reading config failed–see warnings above.
tor@default.service: Control process exited, code=exited, status=1/FAILURE
tor@default.service: Failed with result ‘exit-code’.
Failed to start Anonymizing overlay network for TCP.
tor@default.service: Scheduled restart job, restart counter is at 5.
Stopped Anonymizing overlay network for TCP.
tor@default.service: Start request repeated too quickly.
tor@default.service: Failed with result ‘exit-code’.
Failed to start Anonymizing overlay network for TCP.
WARNING[Tue Feb 15 13:10:28 2022]: Tor daemon connection failed: [Errno 2] No such file or directory. Trying again…
tor@default.service: Start request repeated too quickly.
tor@default.service: Failed with result ‘exit-code’.
Failed to start Anonymizing overlay network for TCP.

I cant really read the code






it seems working now, I tried this 2 commands and suddenly a connection was established.
user@host:~/Desktop$ sudo service tor@default reload
user@host:~/Desktop$ sudo service tor@default restart

I have tried them before but now they worked.

Thanks Patrick

Strange. Deleted /etc/tor/torrc? To debug:

ls -la /etc/tor/torrc
cat /etc/tor/torrc

Or in case of errors:

sudo ls -la /etc/tor/torrc
sudo cat /etc/tor/torrc

yeah its strange, I dont think that I deleted the torrc file.
Tried your debug, following respond:

Type: "whonix" <enter> for help.
user@host:~/Desktop$ ls -la /etc/tor/torrc
-rw-r--r-- 1 root root 37 Feb 15 20:42 /etc/tor/torrc
user@host:~/Desktop$ cat /etc/tor/torrc
%include /etc/torrc.d/95_whonix.conf
user@host:~/Desktop$ 

Time Synchronisation in the top right is now saying that its connected to tor, but I get 2 new errors:

ERROR: Time Synchronization Result: 
systemcheck gave up waiting. 

Time synchronization status: fail 
sdwdate reports: Maximum allowed number of failures. Giving up. 

I already tried to restart sdwdate and tried it manually, but after entering the time manually, nothing changes.

Maybe a aborted apt dist-upgrade is the reason?

I have run following command “sudo dpkg --configure -a” to fix it.

I couldnt help myself with the wrong time synchronisation so I got myself a clean version of the gateway from the website and trying it again.

Aborted during download phase → no issue.
Aborted during package upgrade phase → that could cause all sorts of strange issues.

[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Contributors] [Investors] [Priority Support] [Professional Support]