Package: ffproxy
Version: 1.6-11
Severity: important

Dear Maintainer,


I installed ffproxy and then tried to start it.  Out of the box, ffproxy
does not start, complaining that it is unable to open a file
'db/access.ip'. However, for all locations I tried, this file is there.
I tried to modify the chroot settings and the database path settings,
but to no avail. So far, I have been unable to start ffproxy. Here is an
attempt where I try to start it by hand:

# strace ffproxy -r  /var/lib/ffproxy/etc/ffproxy

execve("/usr/bin/ffproxy", ["ffproxy", "-r", "/var/lib/ffproxy/etc/ffproxy"], 
[/* 61 vars */]) = 0
brk(NULL)                               = 0x127d000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fd3ae472000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=155030, ...}) = 0
mmap(NULL, 155030, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd3ae44c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320?\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=89064, ...}) = 0
mmap(NULL, 2194008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fd3ae03b000
mprotect(0x7fd3ae04f000, 2097152, PROT_NONE) = 0
mmap(0x7fd3ae24f000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7fd3ae24f000
mmap(0x7fd3ae251000, 6744, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd3ae251000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\3\2\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1685264, ...}) = 0
mmap(NULL, 3791264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fd3adc9d000
mprotect(0x7fd3ade32000, 2093056, PROT_NONE) = 0
mmap(0x7fd3ae031000, 24576, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x194000) = 0x7fd3ae031000
mmap(0x7fd3ae037000, 14752, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd3ae037000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fd3ae44a000
arch_prctl(ARCH_SET_FS, 0x7fd3ae44a700) = 0
mprotect(0x7fd3ae031000, 16384, PROT_READ) = 0
mprotect(0x7fd3ae24f000, 4096, PROT_READ) = 0
mprotect(0x609000, 4096, PROT_READ)     = 0
mprotect(0x7fd3ae475000, 4096, PROT_READ) = 0
munmap(0x7fd3ae44c000, 155030)          = 0
brk(NULL)                               = 0x127d000
brk(0x129e000)                          = 0x129e000
open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=414, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=414, ...}) = 0
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., 4096) 
= 414
lseek(3, -249, SEEK_CUR)                = 165
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., 4096) 
= 249
close(3)                                = 0
getpid()                                = 11012
socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
sendto(3, "<14>Nov  6 10:07:34 FFPROXY(mast"..., 66, MSG_NOSIGNAL, NULL, 0) = 66
open("/etc/ffproxy/ffproxy.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=3708, ...}) = 0
read(4, "#\n# Debianized configuration fil"..., 4096) = 3708
read(4, "", 4096)                       = 0
close(4)                                = 0
chdir("./db")                           = 0
open("db/access.ip", O_RDONLY)          = -1 ENOENT (No such file or directory)
sendto(3, "<11>Nov  6 10:07:34 FFPROXY(mast"..., 90, MSG_NOSIGNAL, NULL, 0) = 90
dup(2)                                  = 4
fcntl(4, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(4, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
write(4, "unable to open file db/access.ip"..., 60unable to open file 
db/access.ip: No such file or directory
) = 60
close(4)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++


And here is the configuration file that I used, with blank and
comment lines removed (/etc/ffproxy/ffproxy.conf):


child_processes 10
bind_ipv4 yes
bind_ipv6 no
port 8080
use_ipv6 no
use_syslog yes
log_all_requests no
forward_proxy_port 0
forward_proxy_ipv6 no
accel_port 0
accel_user_host yes
use_keep_alive yes
unrestricted_connect no
timeout_connect 20
backlog_size 4
daemonize yes
chroot_dir /var/lib/ffproxy/etc/ffproxy
db_files_path ./db


What gives?


Cheers,
Toni



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ffproxy depends on:
ii  libc6     2.24-5
ii  lsb-base  9.20161016
ii  ucf       3.0036

ffproxy recommends no packages.

ffproxy suggests no packages.

-- Configuration Files:
/etc/default/ffproxy changed [not included]

-- no debconf information

Reply via email to