Tor Browser for Android nightly (9/14) does not start: "Cookie Auth file not created"
While testing the first nightly on an aarch64 system I did not get very far:
09-17 12:05:12.777 29655 29802 I OnionProxyManager: Starting Tor
09-17 12:05:12.778 29655 29802 I OnionProxyManager: Starting process
09-17 12:05:12.790 29655 29802 I OnionProxyManager: Waiting for control port
09-17 12:05:12.812 29655 29821 I OnionProxyManager: Sep 17 12:05:12.804
[notice] Tor 0.4.5.0-alpha-dev (git-1c4b140427aeb36d) running on Linux
with Libevent 2.1.11-stable, OpenSSL 1.1.1g, Zlib 1.2.11, Liblzma N/A,
Libzstd 1.4.4 and Unknown N/A as libc.
09-17 12:05:12.813 29655 29821 I OnionProxyManager: Sep 17 12:05:12.805
[notice] Tor can't help you if you use it wrong! Learn how to be safe at
https://www.torproject.org/download/download#warning
09-17 12:05:12.813 29655 29821 I OnionProxyManager: Sep 17 12:05:12.806
[notice] This version is not a stable Tor release. Expect more bugs than
usual.
09-17 12:05:12.813 29655 29821 I OnionProxyManager: Sep 17 12:05:12.806
[notice] Read configuration file
"/data/user/0/org.torproject.torbrowser_alpha/app_torservice/torrc".
09-17 12:05:12.815 29823 29823 I Tor : Tor 0.4.5.0-alpha-dev
(git-1c4b140427aeb36d) running on Linux with Libevent 2.1.11-stable,
OpenSSL 1.1.1g, Zlib 1.2.11, Liblzma N/A, Libzstd 1.4.4 and Unknown N/A
as libc.
09-17 12:05:12.815 29823 29823 I Tor : Tor 0.4.5.0-alpha-dev
(git-1c4b140427aeb36d) running on Linux with Libevent 2.1.11-stable,
OpenSSL 1.1.1g, Zlib 1.2.11, Liblzma N/A, Libzstd 1.4.4 and Unknown N/A
as libc.
09-17 12:05:12.815 29823 29823 I Tor : Tor can't help you if you use
it wrong! Learn how to be safe at
https://www.torproject.org/download/download#warning
09-17 12:05:12.815 29823 29823 I Tor : Tor can't help you if you use
it wrong! Learn how to be safe at
https://www.torproject.org/download/download#warning
09-17 12:05:12.815 29823 29823 I Tor : This version is not a stable
Tor release. Expect more bugs than usual.
09-17 12:05:12.815 29823 29823 I Tor : This version is not a stable
Tor release. Expect more bugs than usual.
09-17 12:05:12.815 29655 29821 I OnionProxyManager: Sep 17 12:05:12.814
[notice] Opening Control listener on 127.0.0.1:0
09-17 12:05:12.815 29823 29823 I Tor : Read configuration file
"/data/user/0/org.torproject.torbrowser_alpha/app_torservice/torrc".
09-17 12:05:12.815 29823 29823 I Tor : Read configuration file
"/data/user/0/org.torproject.torbrowser_alpha/app_torservice/torrc".
09-17 12:05:12.815 29823 29823 I Tor : Opening Control listener on
127.0.0.1:0
09-17 12:05:12.815 29823 29823 I Tor : Opening Control listener on
127.0.0.1:0
09-17 12:05:12.815 29823 29823 I Tor : Control listener listening on
port 43604.
09-17 12:05:12.815 29655 29821 I OnionProxyManager: Sep 17 12:05:12.814
[notice] Control listener listening on port 43604.
09-17 12:05:12.815 29823 29823 I Tor : Control listener listening on
port 43604.
09-17 12:05:12.815 29823 29823 I Tor : Opened Control listener
connection (ready) on 127.0.0.1:43604
09-17 12:05:12.815 29823 29823 I Tor : Opened Control listener
connection (ready) on 127.0.0.1:43604
09-17 12:05:12.815 29823 29823 I Tor : DisableNetwork is set. Tor
will not make or accept non-control network connections. Shutting down
all existing connections.
09-17 12:05:12.815 29655 29821 I OnionProxyManager: Sep 17 12:05:12.814
[notice] Opened Control listener connection (ready) on 127.0.0.1:43604
09-17 12:05:12.815 29823 29823 I Tor : DisableNetwork is set. Tor
will not make or accept non-control network connections. Shutting down
all existing connections.
09-17 12:05:12.815 29655 29821 I OnionProxyManager: Sep 17 12:05:12.814
[notice] DisableNetwork is set. Tor will not make or accept non-control
network connections. Shutting down all existing connections.
09-17 12:05:12.815 29823 29823 W Tor : Your log may contain
sensitive information - you disabled SafeLogging, and you're logging
more than "notice". Don't log unless it serves an important reason.
Overwrite the log afterwards.
09-17 12:05:12.816 29823 29823 W Tor : Your log may contain
sensitive information - you disabled SafeLogging, and you're logging
more than "notice". Don't log unless it serves an important reason.
Overwrite the log afterwards.
09-17 12:05:12.816 29823 29823 I Tor :
options_commit_listener_transaction: Recomputed OOS thresholds:
ConnLimit 1000, ConnLimit_ 1292, ConnLimit_high_thresh 1228,
ConnLimit_low_thresh 969
09-17 12:05:12.816 29823 29823 I Tor :
options_commit_listener_transaction: Recomputed OOS thresholds:
ConnLimit 1000, ConnLimit_ 1292, ConnLimit_high_thresh 1228,
ConnLimit_low_thresh 969
09-17 12:05:12.816 29823 29823 I Tor : crypto_openssl_late_init: NOT
using OpenSSL engine support.
09-17 12:05:12.816 29823 29823 I Tor : crypto_openssl_late_init: NOT
using OpenSSL engine support.
09-17 12:05:12.816 29823 29823 I Tor : evaluate_evp_for_aes: This
version of OpenSSL has a known-good EVP counter-mode implementation.
Using it.
09-17 12:05:12.816 29823 29823 I Tor : evaluate_evp_for_aes: This
version of OpenSSL has a known-good EVP counter-mode implementation.
Using it.
09-17 12:05:12.816 29823 29823 D Tor : tor_disable_debugger_attach:
Attemping to disable debugger attachment to Tor for unprivileged users.
09-17 12:05:12.816 29823 29823 D Tor : tor_rename: Renaming
/data/user/0/org.torproject.torbrowser_alpha/app_torservice/lib/tor/control.txt.tmp
to
/data/user/0/org.torproject.torbrowser_alpha/app_torservice/lib/tor/control.txt
09-17 12:05:12.817 29823 29823 I Tor : tor_lockfile_lock: Locking
"/data/user/0/org.torproject.torbrowser_alpha/app_torservice/.tor/lock"
09-17 12:05:12.817 29823 29823 I Tor : tor_lockfile_lock: Locking
"/data/user/0/org.torproject.torbrowser_alpha/app_torservice/.tor/lock"
09-17 12:05:12.817 29823 29823 W Tor : It looks like another Tor
process is running with the same data directory. Waiting 5 seconds to
see if it goes away.
09-17 12:05:12.817 29823 29823 W Tor : It looks like another Tor
process is running with the same data directory. Waiting 5 seconds to
see if it goes away.
09-17 12:05:12.817 29655 29802 I OnionProxyManager: Created control port
file: time = 27ms
09-17 12:05:12.821 29655 29802 I OnionProxyManager: Waiting for cookie
auth file
09-17 12:05:17.818 29823 29823 I Tor : tor_lockfile_lock: Locking
"/data/user/0/org.torproject.torbrowser_alpha/app_torservice/.tor/lock"
09-17 12:05:17.818 29823 29823 I Tor : tor_lockfile_lock: Locking
"/data/user/0/org.torproject.torbrowser_alpha/app_torservice/.tor/lock"
09-17 12:05:17.818 29823 29823 E Tor : No, it's still there. Exiting.
09-17 12:05:17.818 29823 29823 E Tor : No, it's still there. Exiting.
09-17 12:05:17.818 29823 29823 E Tor : set_options: Bug: Acting on
config options left us in a broken state. Dying. (on Tor
0.4.5.0-alpha-dev 1c4b140427aeb36d)
09-17 12:05:17.818 29823 29823 E Tor : set_options: Bug: Acting on
config options left us in a broken state. Dying. (on Tor
0.4.5.0-alpha-dev 1c4b140427aeb36d)
09-17 12:05:17.819 29823 29823 E Tor : Reading config failed--see
warnings above.
09-17 12:05:17.819 29823 29823 E Tor : Reading config failed--see
warnings above.
09-17 12:05:17.828 29823 29823 D Tor : channel_tls_free_all:
Shutting down TLS channels...
09-17 12:05:17.828 29823 29823 D Tor : channel_tls_free_all: Done
shutting down TLS channels
09-17 12:05:17.828 29823 29823 D Tor : channel_free_all: Shutting
down channels...
09-17 12:05:17.828 29823 29823 D Tor : channel_free_all: Freeing
channel_identity_map
09-17 12:05:17.828 29823 29823 D Tor : channel_free_all: Freeing
channel_gid_map
09-17 12:05:17.829 29823 29823 D Tor : channel_free_all: Done
cleaning up after channels
09-17 12:05:17.830 29823 29823 D Tor : connection_free_minimal:
closing fd 7.
09-17 12:05:17.830 29823 29823 D Tor : scheduler_free_all: Shutting
down scheduler
09-17 12:05:17.831 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down dirauth
09-17 12:05:17.832 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down btrack
09-17 12:05:17.832 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down relay
09-17 12:05:17.832 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down or
09-17 12:05:17.832 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down mainloop
09-17 12:05:17.833 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down process
09-17 12:05:17.834 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down evloop
09-17 12:05:17.834 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down network
09-17 12:05:17.835 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down crypto
09-17 12:05:17.835 29823 29823 D Tor : subsystems_shutdown_downto:
Shutting down log
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster: Unable to start
Tor: java.io.IOException: Cookie Auth file not created:
/data/user/0/org.torproject.torbrowser_alpha/app_torservice/lib/tor/control_auth_cookie,
len = 0
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster:
java.io.IOException: Cookie Auth file not created:
/data/user/0/org.torproject.torbrowser_alpha/app_torservice/lib/tor/control_auth_cookie,
len = 0
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster: at
com.msopentech.thali.toronionproxy.OnionProxyManager.start(OnionProxyManager.java:47)
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster: at
com.msopentech.thali.android.toronionproxy.AndroidOnionProxyManager.start(AndroidOnionProxyManager.java:1)
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster: at
org.torproject.android.service.TorService.startTor(TorService.java:12)
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster: at
org.torproject.android.service.TorService.access$1000(TorService.java:1)
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster: at
org.torproject.android.service.TorService$IncomingIntentRouter.run(TorService.java:17)
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster: at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
09-17 12:05:27.828 29655 29802 E BaseEventBroadcaster: at
java.lang.Thread.run(Thread.java:784)
There are bunch of things weird here. First of all, I don't have any other Tor Browser running nor Orbot installed on that tablet. So, it's not obvious what is interfering with Tor Browser.
Secondly, for some reason two tor's are started (and both are dying later) which seems wrong to me.
Edited by Georg Koppen