NewNewYorkBridges / ansible-tor-bridge

Ansible role to deploy Tor Bridge nodes.
GNU General Public License v3.0
7 stars 5 forks source link

geoip db cannot be opened #7

Closed toralf closed 2 years ago

toralf commented 2 years ago

At a fresh new Hetzner VPS under Debian I get:

Mar 05 17:11:27.000 [warn] Failed to open GEOIP file /usr/share/tor/geoip.
Mar 05 17:11:27.000 [warn] We've been configured to see which countries can access us as a bridge, and we need GEOIP information to tell which countries clients are in.
Mar 05 17:11:27.000 [warn] Failed to open GEOIP file /usr/share/tor/geoip6.
Mar 05 17:11:27.000 [warn] We've been configured to see which countries can access us as a bridge, and we need GEOIP information to tell which countries clients are in.
Mar 05 17:11:27.000 [notice] Configured to measure directory request statistics, but no GeoIP database found. Please specify a GeoIP database using the GeoIPFile option.
0xFustang commented 2 years ago

Hi @toralf ! I am unable to reproduce the issue. Could you please retry and if you encounter the issue again, what version of Debian are you using? :pray:

toralf commented 2 years ago

This is a Debian bullseye (VPS at Hetzner)

Linux kasimir 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux

and the geo-ip data are not there:

# ls -l /usr/share/tor/
total 8
-rw-r--r-- 1 root root 351 Feb 27 13:21 tor-service-defaults-torrc
-rw-r--r-- 1 root root 431 Feb 27 13:21 tor-service-defaults-torrc-instances

I installed it now manually:

# apt install tor-geoipdb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  tor-geoipdb
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,445 kB of archives.
After this operation, 10.1 MB of additional disk space will be used.
Get:1 https://deb.torproject.org/torproject.org bullseye/main amd64 tor-geoipdb all 0.4.6.10-1~d11.bullseye+1 [1,445 kB]
Fetched 1,445 kB in 0s (14.5 MB/s)
Selecting previously unselected package tor-geoipdb.
(Reading database ... 38670 files and directories currently installed.)
Preparing to unpack .../tor-geoipdb_0.4.6.10-1~d11.bullseye+1_all.deb ...
Unpacking tor-geoipdb (0.4.6.10-1~d11.bullseye+1) ...
Setting up tor-geoipdb (0.4.6.10-1~d11.bullseye+1) ...
0xFustang commented 2 years ago

Thanks @toralf - Could you please try again on a fresh install? Adding the dependency package should do the trick, let's see.

toralf commented 2 years ago

fixed