On Sun, Jul 11, 2010 at 7:54 PM, Jacques <[email protected]> wrote:
> I tried using a local server and using a vcl rather than command line
> parameters to define the backend. I still only get 503s. Is there a way to
> better debug Varnish so that I can determine why it can't make a backend
> connection?
Yup there is a better way to debug. You attach a debugger to the live
process and watch your own request come in
http://varnish-cache.org/wiki/DebuggingVarnish
it's a little hands on but works fine if you have symbols and don't
mind getting dirty.
A dumb and simple suggestion: can you wget the backend from the
varnish host? :-)
Still, to me it looks like something quite platform-specific, not so simple.
Do the makecheck tests all run fine?
Oh, and I have a solaris box here too, my makecheck fails and it looks
like there is some IPC problem:
#### v1 CLI RX| Unknown request in manager process (child not running).\n
---- v1 CLI debug.xid command failed: 101 Unknown request in manager
process (+++ child not running).
0K
---- v1 CLI debug.xid command failed: 101 Unknown request in manager process (child not running).
Type 'help' for more info.
^[[A-#### top macro def tmpdir=/tmp/vtcAAAwKayIi
#### top macro def bad_ip=10.255.255.255
# top TEST ././tests/b00005.vtc starting
# top TEST Check that -s works
## s1 Starting server
#### s1 macro def s1_addr=127.0.0.1
#### s1 macro def s1_port=52343
#### s1 macro def s1_sock=127.0.0.1:52343
# s1 Listen on 127.0.0.1:52343
## s1 Started on 127.0.0.1:52343
## v1 Launch
### v1 CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/vtcAAAwKayIi/v1 -p auto_restart=off -p syslog_cli_traffic=off -a '127.0.0.1:0' -S /tmp/vtcAAAwKayIi/v1/_S -M 127.0.0.1:46058 -P /tmp/vtcAAAwKayIi/v1/varnishd.pid -sfile,/tmp/vtcAAAwKayIi/v1,10M -s file,varnishtest_backing,10M
### v1 debug| storage_file: filename: /tmp/vtcAAAwKayIi/v1/varnish.dNaWJi size 10 MB.\n
### v1 debug| storage_file: filename: varnishtest_backing size 10 MB.\n
### v1 debug| Creating new SHMFILE\n
### v1 debug| Varnish on -sfile,-sfile,-hcritbit\n
### v1 debug| 200 193 \n
### v1 debug| -----------------------------\n
### v1 debug| Varnish HTTP accelerator CLI.\n
### v1 debug| -----------------------------\n
### v1 debug| Type 'help' for command list.\n
### v1 debug| Type 'quit' to close CLI session.\n
### v1 debug| Type 'start' to launch worker process.\n
### v1 debug| \n
### v1 CLI connection fd = 6
### v1 CLI RX 107
#### v1 CLI RX| cflzyaxcpporqzymayttcjjqyjcbdabh\n
#### v1 CLI RX| \n
#### v1 CLI RX| Authentication required.\n
#### v1 CLI TX| auth 755db507320ca5b0f707917fdee5f70bf0c44d4563155df1b4dedaf02fb268ac\n
### v1 CLI RX 200
#### v1 CLI RX| -----------------------------\n
#### v1 CLI RX| Varnish HTTP accelerator CLI.\n
#### v1 CLI RX| -----------------------------\n
#### v1 CLI RX| Type 'help' for command list.\n
#### v1 CLI RX| Type 'quit' to close CLI session.\n
#### v1 CLI RX| Type 'start' to launch worker process.\n
#### v1 CLI TX| vcl.inline vcl1 "backend s1 { .host = \"127.0.0.1\"; .port = \"52343\"; }\n"
### v1 CLI RX 200
#### v1 CLI RX| Message from C-compiler:\n
#### v1 CLI RX| cc: unrecognized option `-Kpic'\n
#### v1 CLI RX| \n
#### v1 CLI RX| VCL compiled.
#### v1 CLI TX| vcl.use vcl1
### v1 CLI RX 200
## v1 Start
#### v1 CLI TX| start
### v1 debug| child (
### v1 debug| 4397
### v1 debug| ) Started\n
### v1 CLI RX 200
#### v1 CLI TX| debug.xid 1000
### v1 CLI RX 101
#### v1 CLI RX| Unknown request in manager process (child not running).\n
#### v1 CLI RX| Type 'help' for more info.
---- v1 CLI debug.xid command failed: 101 Unknown request in manager process (child not running).
Type 'help' for more info.
### v1 debug| Pushing vcls failed: CLI communication error (hdr)\n
### v1 debug| Stopping Child\n
### v1 debug| Child (4397) died signal=6
### v1 debug| \n
### v1 debug| Child (4397) Panic message: Assert error in wrk_herdtimer_thread(), cache_pool.c line 419:\n
### v1 debug| Condition(errno_is_multi_threaded != 0) not true.\n
### v1 debug| thread = (wrk_herdtimer)\n
### v1 debug| ident = -sfile,-sfile,-hcritbit,no_waiter\n
### v1 debug| Backtrace:\n
### v1 debug| 8072f65: pan_ic+a9\n
### v1 debug| 8074b26: wrk_herdtimer_thread+86\n
### v1 debug| fedacd56: _end+f6cea8f2\n
### v1 debug| fedacfe0: _end+f6ceab7c\n
### v1 debug| \n
### v1 debug| \n
### v1 debug| Child (-1) said \n
### v1 debug| Child (-1) said Child starts\n
### v1 debug| Child cleanup complete\n
# top Test timed out
# top TEST ././tests/b00005.vtc FAILED
FAIL: ./tests/b00005.vtc
---- v1 CLI debug.xid command failed: 101 Unknown request in manager process (child not running).
Type 'help' for more info.
_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc