Problem in varnish-6.0.7

Hamidreza Hosseini hrhosseini at hotmail.com
Sun Feb 14 17:30:58 UTC 2021


Thanks for your help,
It was my problem,
varnishd -C -f /etc/varnish/default.vcl shows I didn't set my server names to dns

And now it is working:

```
     Docs: https://www.varnish-cache.org/docs/4.1/
           man:varnishd
 Main PID: 2765 (varnishd)
    Tasks: 217
   Memory: 83.9M
      CPU: 494ms
   CGroup: /system.slice/varnish.service
           ├─2765 /usr/sbin/varnishd -j unix,user=vcache -F -a :6081 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,1g -i ubuntu-test
           └─2780 /usr/sbin/varnishd -j unix,user=vcache -F -a :6081 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,1g -i ubuntu-test

Feb 14 20:43:34 ubuntu-test varnishd[2765]: Warnings:
Feb 14 20:43:34 ubuntu-test varnishd[2765]: VCL compiled.
Feb 14 20:43:34 ubuntu-test varnishd[2765]: Debug: Version: varnish-6.0.7 revision 525d371e3ea0e0c38edd7baf0f80dc226560f26e
Feb 14 20:43:34 ubuntu-test varnishd[2765]: Version: varnish-6.0.7 revision 525d371e3ea0e0c38edd7baf0f80dc226560f26e
Feb 14 20:43:34 ubuntu-test varnishd[2765]: Debug: Platform: Linux,4.4.0-186-generic,x86_64,-junix,-smalloc,-sdefault,-hcritbit
Feb 14 20:43:34 ubuntu-test varnishd[2765]: Platform: Linux,4.4.0-186-generic,x86_64,-junix,-smalloc,-sdefault,-hcritbit
Feb 14 20:43:34 ubuntu-test varnishd[2765]: Debug: Child (2780) Started
Feb 14 20:43:34 ubuntu-test varnishd[2765]: Child (2780) Started
Feb 14 20:43:34 ubuntu-test varnishd[2765]: Info: Child (2780) said Child starts
Feb 14 20:43:34 ubuntu-test varnishd[2765]: Child (2780) said Child starts
```
________________________________
From: Hamidreza Hosseini
Sent: Sunday, February 14, 2021 8:53 AM
To: varnish-misc at varnish-cache.org <varnish-misc at varnish-cache.org>
Subject: Problem in varnish-6.0.7

I have migrate from varnish 6.0.5 to 6.0.7 but it could not run with this errro:

```
● varnish.service - Varnish HTTP accelerator
   Loaded: loaded (/etc/systemd/system/varnish.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2021-02-14 20:15:14 +0330; 4s ago
     Docs: https://www.varnish-cache.org/docs/4.1/
           man:varnishd
  Process: 29630 ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :6081 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,1g -i ubuntu-test (code=exited, status=2)
 Main PID: 29630 (code=exited, status=2)

Feb 14 20:15:14 ubuntu-test varnishd[29630]: ------------############-
Feb 14 20:15:14 ubuntu-test varnishd[29630]: In backend specification starting at:
Feb 14 20:15:14 ubuntu-test varnishd[29630]: ('/etc/varnish/default.vcl' Line 5 Pos 1)
Feb 14 20:15:14 ubuntu-test varnishd[29630]: backend default {
Feb 14 20:15:14 ubuntu-test varnishd[29630]: #######----------
Feb 14 20:15:14 ubuntu-test varnishd[29630]: Running VCC-compiler failed, exited with 2
Feb 14 20:15:14 ubuntu-test varnishd[29630]: VCL compilation failed
Feb 14 20:15:14 ubuntu-test systemd[1]: varnish.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
```

Some part of my config:

```
vcl 4.1;

import directors;

backend default {
    .host = "test-lb";
    .port = "8000";
}

backend test_1 { .host = "test-1"; .port = "8000"; }
backend test_2 { .host = "test-2"; .port = "8000"; }
backend test_3 { .host = "test-3"; .port = "8000"; }
backend test_4 { .host = "test-4"; .port = "8000"; }
backend test_5 { .host = "test-5"; .port = "8000"; }
backend test_6 { .host = "test-6"; .port = "8000"; }
```

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20210214/0d4fd35b/attachment.html>


More information about the varnish-misc mailing list