Article delegate-en/5086 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] question please help
15 Jun 2014 15:05:27 GMT Milos Stojanovic <p3yjqbdyi-7pkjwodnwjfr.ml@ml.delegate.org>


Hello. I used DeleGate as proxy between Squid http proxy and tor socks.

It was simply accepting connection from Squid and forwarding it to Tor, all
installed on centos on same VPS.

This worked just fine until I had to reboot server after a server crash.
Now DeleGate crashes whenever a connection is established over Squid.

This is the log of starting with -v command, at the end it starts restart
just after it gets first contact.


[root@hv2005628 instlls]# ./linux64-dg -P8999 -v SERVER=http
SOCKS=localhost:9050 LOGDIR='var/log/delegate' ADMIN=milos@whitemailer..
/28 21:07:25.46 [650] 0+0: -- setCredhyCache /tmp/credhy_cache128s >>
/var/spool/delegate-nobody/act/credhy_cache128s
01/28 21:07:25.46 [650] 0+0: command PATH: /home/grozni/instlls/./linux64-dg
-> /home/grozni/instlls/./linux64-dg
01/28 21:07:25.46 [650] 0+0: PORT> -P8999
01/28 21:07:25.47 [650] 0+0: --- [crypto] 0 dglibcrypto.so
01/28 21:07:25.47 [650] 0+0: --- [crypto] 0 libcrypto.so.0.9.8
01/28 21:07:25.47 [650] 0+0: --- [/usr/lib/libcrypto.so]
01/28 21:07:25.47 [650] 0+0: --- [crypto] 8E9FAB0 /usr/lib/libcrypto.so
01/28 21:07:25.47 [650] 0+0: --- [crypto] optional: SSL_set_SSL_CTX
01/28 21:07:25.47 [650] 0+0: --- [crypto] optional: SSL_get_servername
01/28 21:07:25.47 [650] 0+0: --- [crypto] optional: SSL_get_servername_type
01/28 21:07:25.47 [650] 0+0: --- [crypto] optional: SSL_CTX_callback_ctrl
01/28 21:07:25.47 [650] 0+0: --- [crypto] optional:
SSL_CTX_use_certificate_chain_file
01/28 21:07:25.47 [650] 0+0: --- [crypto] optional:
SSL_CTX_set_session_id_context
01/28 21:07:25.47 [650] 0+0: --- [crypto] optional:
SSL_CTX_set_generate_session_id
01/28 21:07:25.47 [650] 0+0: ---- [crypto] loaded 112 syms, unknown=47+7,
already=0
01/28 21:07:25.47 [650] 0+0: --- [ssl] 0 dglibssl.so
01/28 21:07:25.47 [650] 0+0: --- [ssl] 0 libssl.so.0.9.8
01/28 21:07:25.48 [650] 0+0: --- [/usr/lib/libssl.so]
01/28 21:07:25.48 [650] 0+0: --- [ssl] 8EA0268 /usr/lib/libssl.so
01/28 21:07:25.48 [650] 0+0: ---- [ssl] loaded 112 syms, unknown=0+0,
already=0
01/28 21:07:25.48 [650] 0+0: +++ loaded OpenSSL 1.0.1e-fips 11 Feb 2013
01/28 21:07:25.48 [650] 0+0: ... testing resolver[SYS] with '
WWW.DeleGate.ORG <http://www.delegate.org/>'
01/28 21:07:25.48 [650] 0+0: ... you can suppress this test by RES_WAIT=0
01/28 21:07:25.48 [650] 0+0: ... gethostname(hv2005628)
01/28 21:07:25.48 [650] 0+0: configuring default RESOLV ...
01/28 21:07:25.48 [650] 0+0: ... gethostname()='hv2005628'
01/28 21:07:25.48 [650] 0+0: ... NIS not available (no default domain)
01/28 21:07:25.48 [650] 0+0: ### FATAL: RES_ORDER='' -> 'CFNDS' (default)
01/28 21:07:25.48 [650] 0+0: {R} confid(detected)[
892422d33f39d8d04d166540de347f80]<-[]
01/28 21:07:25.48 [650] 0+0: ### don't export RESOLV=''
01/28 21:07:25.48 [650] 0+0: {R} retrying AAAA [hv2005628]
01/28 21:07:25.48 [650] 0+0: gethostbyname(hv2005628) unknown[0.00s]
01/28 21:07:25.48 [650] 0+0: ERROR .localnet[2] hv2005628 ? unknown
SRCSIGN=9.9.7:20100331192514+0900:c818055001ce9bd3:Author@DeleGate.ORG:
MT3htW10kQcxbXQwjgWXviLRfIwuGIKQbXAZd0/EYrpoCFyRXgGxkAx/7D6/
kQQwy4DpUqj02knzLHRXv0SbXTxo9a9j/nYBfh76sZsKMAz1NJA0xqFEvRgtG0o
SNNTVlHmPvRgbl8vkpDEpKQ0Od4i0C7KMR5z45oTKZjRGV8Y=
BLDSIGN=9.9.7:20100331192754+0900:c818055001ce9bd3::-
01/28 21:07:25.48 [650] 0+0: --INITIALIZATION START-14012821+0100: 9.9.7 on
Linux/2.6.32-431.3.1.el6.i686--
01/28 21:07:25.48 [650] 0+0: EXECDIR=/home/grozni/instlls/.
01/28 21:07:25.48 [650] 0+0: BINSHELL=/bin/sh
01/28 21:07:25.48 [650] 0+0: MAXIMA=delegated:32 for small mem=369M
01/28 21:07:25.48 [650] 0+0: server_open(delegate,:8999,listen=20)
01/28 21:07:25.48 [650] 0+0: server_open(delegate,:8999) BOUND
01/28 21:07:25.48 [650] 0+0: DGROOT=/var/spool/delegate-nobody^M
01/28 21:07:25.48 [650] 0+0: <DeleGate/9.9.7> [650] -P8999 READY^M
01/28 21:07:25.48 [650] 0+0: HostID: 2010/00/00/00/00-BX
(Linux/2.6.32-431.3.1.el6.i686) hv2005628
<DeleGate/9.9.7> [650] -P8999 READY
01/28 21:07:25.48 [650] 0+0: --- [z] 0 dglibz.so
01/28 21:07:25.48 [650] 0+0: --- [z] 0 libz.so.0.9.8
01/28 21:07:25.48 [650] 0+0: --- [/usr/lib/libz.so]
01/28 21:07:25.48 [650] 0+0: --- [z] 8E9FD38 /usr/lib/libz.so
01/28 21:07:25.48 [650] 0+0: --- [z] optional: gziocallback
01/28 21:07:25.48 [650] 0+0: ---- [z] loaded 20 syms, unknown=0+1, already=0
01/28 21:07:25.48 [650] 0+0: +++ loaded Zlib 1.2.3
01/28 21:07:25.49 [650] 0+0: --- [pam] 0 dglibpam.so
01/28 21:07:25.49 [650] 0+0: --- [pam] 0 libpam.so.0.9.8
01/28 21:07:25.50 [650] 0+0: --- [pam] 0 libpam.so
01/28 21:07:25.50 [650] 0+0: --- [pam] 0 libpam.so.6
01/28 21:07:25.50 [650] 0+0: --- [pam] 0 libpam.so.4
01/28 21:07:25.50 [650] 0+0: --- [pam] 0 libpam.so.1
01/28 21:07:25.50 [650] 0+0: --- [/lib/libpam.so.0]
01/28 21:07:25.50 [650] 0+0: --- [pam] 472BC0 /lib/libpam.so.0
01/28 21:07:25.50 [650] 0+0: ---- [pam] loaded 4 syms, unknown=0+0,
already=0
Config: Linux/2.6.32-431.3.1.el6.i686; FileSize-Bits=64/64,32/32,32,32;
socket=87380/16384,++NAT; sockpair=112640/112640,1002++U; char=signed;
thread=PThread/pthread,44/128; zlib=56,310256; pam=3;
stty=tcsetattr/termio; addr=A/80825B4/BF865DE0; fmem=92/369/1004M
DGROOT=/var/spool/delegate-nobody
ADMIN=milos@whitemailer..
AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443
Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
Copyright (c) 2001-2010 National Institute of Advanced Industrial Science
and Technology (AIST)
BLDSIGN=9.9.7:20100331192754+0900:c818055001ce9bd3::-
HostID: 2010/00/00/00/00-BX (Linux/2.6.32-431.3.1.el6.i686) hv2005628
Loaded: OpenSSL 1.0.1e-fips 11 Feb 2013
Loaded: Zlib 1.2.3
01/28 21:07:25.50 [650] 0+0: PORT= 8999/6 (35,39)
01/28 21:07:25.50 [650] 0+0: OWNER=nobody => OWNER=nobody/nobody(nobody/
nobody)
01/28 21:07:25.50 [650] 0+0: REMITTABLE = http,https/{80,443},gopher,
ftp,wais
01/28 21:07:25.50 [650] 0+0: #### gzip/gunzip = dynamically linked
01/28 21:07:25.50 [650] 0+0: ADMIN=milos@whitemailer..
 protocol=http(specialist)
01/28 21:07:25.50 [650] 0+0: #### CACHE DISABLED #### Cache directory seems
not exist: /var/spool/delegate-nobody/cache
01/28 21:07:25.51 [650] 0+0: MOUNT[0]X[2] /-/builtin/icons/* = default
01/28 21:07:25.51 [650] 0+0: MOUNT[1]X[3] /-/* = forbidden,from=!.RELIABLE,
default
01/28 21:07:25.51 [650] 0+0: MOUNT[2]X[0] /-* = default
01/28 21:07:25.51 [650] 0+0: MOUNT[3]X[1] /=* = default
01/28 21:07:25.51 [650] 0+0: MOUNT[4]=[4] /favicon.ico
builtin:icons/ysato/default.ico default,direction=fo,onerror=404,expires=15m
01/28 21:07:25.51 [650] 0+0: #### stack size limit = A00000 (0000000X)
01/28 21:07:25.51 [650] 0+0: Stay open PIDFILE for accept() lock[fd=8]
01/28 21:07:25.51 [650] 0+0: StickyReport[9,10]127.0.0.127:65535><
127.0.0.127:65535 112640/112640 112640/112640
01/28 21:07:25.51 [650] 0+0: env[23] LIBPATH=.;/home/grozni/
instlls;/var/spool/delegate-nobody/lib;/home/grozni/
instlls/.;/var/spool/delegate-nobody/etc
01/28 21:07:25.51 [650] 0+0: arg[3] SERVER=http
01/28 21:07:25.51 [650] 0+0: arg[4] SOCKS=localhost:9050
01/28 21:07:25.51 [650] 0+0: arg[5] LOGDIR=var/log/delegate
01/28 21:07:25.51 [650] 0+0: arg[6] ADMIN=milos@whitemailer..
01/28 21:07:25.51 [650] 0+0: DELEGATE_Modified[1]: 52e80dfd 1390939645
01/28 21:07:25.51 [650] 0+0: --INITIALIZATION DONE-14012821+0100: 9.9.7 on
Linux/2.6.32-431.3.1.el6.i686--
01/28 21:07:25.51 [650] 0+0: #### restarting is set on config err.
-- {{ ---- ERROR in initialization ----
ppid=31293
07:25.459 [650] delegated.c:6145 --- DO_STARTUP
07:25.460 [650] delegated.c:6177 --- DO_INITIALIZE
07:25.460 [650] delegated.c:6510 --- _main START
07:25.460 [650] filter.c:512 --- [-1] command PATH:
/home/grozni/instlls/./linux64-dg
-> /home/grozni/instlls/./linux64-dg
07:25.460 [650] delegated.c:6600 --- _main ConnInit() DONE
07:25.460 [650] delegated.c:6610 --- _main fromInetd()=0
07:25.460 [650] filter.c:512 --- [2] command PATH:
/home/grozni/instlls/./linux64-dg
-> /home/grozni/instlls/./linux64-dg
07:25.468 [650] dl.c:218 --- dl_library(crypto)...
07:25.470 [650] dl.c:295 --- [crypto] 0 dglibcrypto.so
07:25.470 [650] dl.c:295 --- [crypto] 0 libcrypto.so.0.9.8
07:25.472 [650] dl.c:295 --- [crypto] 8E9FAB0 /usr/lib/libcrypto.so
07:25.472 [650] dl.c:309 --- [/home/grozni/instlls]
putenv(DYLIB_crypto=/usr/lib/libcrypto.so)

07:25.473 [650] dl.c:218 --- dl_library(ssl)...
07:25.474 [650] dl.c:295 --- [ssl] 0 dglibssl.so
07:25.474 [650] dl.c:295 --- [ssl] 0 libssl.so.0.9.8
07:25.475 [650] dl.c:295 --- [ssl] 8EA0268 /usr/lib/libssl.so
07:25.475 [650] dl.c:309 --- [/home/grozni/instlls]
putenv(DYLIB_ssl=/usr/lib/libssl.so)

07:25.476 [650] delegated.c:3543 --- _main scan_HOSTS0() DONE
07:25.476 [650] delegated.c:3548 --- _main scan_HOSTSLISTS() DONE
07:25.476 [650] inets.c:4874 --- testing resolver[SYS] with '
WWW.DeleGate.ORG <http://www.delegate.org/>'
07:25.477 [650] inets.c:5056 --F RES_ORDER='' -> 'CFNDS' (default)
07:25.477 [650] delegated.c:3560 --- _main init_resolv() DONE
07:25.477 [650] inets.c:622 --E unknown gethostname(hv2005628)
07:25.480 [650] dl.c:218 --- dl_library(z)...
07:25.481 [650] dl.c:295 --- [z] 0 dglibz.so
07:25.481 [650] dl.c:295 --- [z] 0 libz.so.0.9.8
07:25.481 [650] dl.c:295 --- [z] 8E9FD38 /usr/lib/libz.so
07:25.481 [650] dl.c:309 --- [/home/grozni/instlls]
putenv(DYLIB_z=/usr/lib/libz.so)

07:25.494 [650] dl.c:218 --- dl_library(pam)...
07:25.494 [650] dl.c:295 --- [pam] 0 dglibpam.so
07:25.494 [650] dl.c:295 --- [pam] 0 libpam.so.0.9.8
07:25.495 [650] dl.c:295 --- [pam] 0 libpam.so
07:25.495 [650] dl.c:295 --- [pam] 0 libpam.so.6
07:25.495 [650] dl.c:295 --- [pam] 0 libpam.so.4
07:25.496 [650] dl.c:295 --- [pam] 0 libpam.so.1
07:25.496 [650] dl.c:295 --- [pam] 472BC0 /lib/libpam.so.0
07:25.496 [650] dl.c:309 --- [/home/grozni/instlls]
putenv(DYLIB_pam=/lib/libpam.so.0)

-- }} ---- ERROR in initialization ----
01/28 21:07:25.51 [650] 0+0: #### wait the first contact...
01/28 21:08:15.30 [650] 0+0: -- ppid=0/1 nready=1
01/28 21:08:15.31 [650] 0+0: #### got the first contact
01/28 21:08:15.31 [650] 0+0: DeleGate SERVER RESTART: timeout
01/28 21:08:15.31 [650] 0+0: NUM_HUPS=1 FD=[14]
01/28 21:08:15.31 [650] 0+0: ## SIGHUP passing -P8999/6
01/28 21:08:15.31 [650] 0+0: StickyKill(1): 0/0 killed
01/28 21:08:15.31 [650] 0+0: DeleGate SERVER RESTART in progress...
01/28 21:08:15.31 [650] 0+0: PWD: /home/grozni/instlls
01/28 21:08:15.31 [650] 0+0: EXEC: /home/grozni/instlls/./linux64-dg
01/28 21:08:15.31 [650] 0+0: ## set DGROOT=/var/spool/delegate-nobody
[650] sigHUP: Could not execute COMMAND: /home/grozni/instlls/./linux64-dg
 with the OWNER uid/gid: nobody/nobody(nobody/nobody)
 at the DIR: /home/grozni/instlls
You should check that you can execute the COMMAND
 at the DIR with the access right of the OWNER.
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Execvp: Success
01/28 21:08:15.31 [650] 0+0: Exit (-1)
sigHUP(/home/grozni/instlls/./linux64-dg)
failed(-1) errno=0


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V