Re: Problem in varnish-6.0.7
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@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"; } ``` ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
Re: Problem in varnish-6.0.7
re-adding the mailing-list so people know it's fixed for vcl version, try using 4.1, it's the latest one, and there's no major difference with 4.0. -- Guillaume Quintard On Sun, Feb 14, 2021 at 9:16 AM Hamidreza Hosseini wrote: > 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 > ``` > > But first I thoght it is because of VCL version > I read in doc 6.0 you wrote vcl4.0 for this version but I'm using vcl4.1 > Which one is prefered to use in 6.0.7 version? > > -- > *From:* Guillaume Quintard > *Sent:* Sunday, February 14, 2021 9:05 AM > *To:* Hamidreza Hosseini > *Cc:* varnish-misc@varnish-cache.org > *Subject:* Re: Problem in varnish-6.0.7 > > Hi, > > That error seems truncated, can you try to run this in your terminal > please: > > ``` > varnishd -C -f /etc/varnish/default.vcl > ``` > > This will perform only the VCL->C translation and should provide a more > complete message. > > Cheers, > > -- > Guillaume Quintard > > > On Sun, Feb 14, 2021 at 8:54 AM Hamidreza Hosseini > wrote: > > 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"; } > ``` > > ___ > varnish-misc mailing list > varnish-misc@varnish-cache.org > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc > > ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
Re: Problem in varnish-6.0.7
Hi, That error seems truncated, can you try to run this in your terminal please: ``` varnishd -C -f /etc/varnish/default.vcl ``` This will perform only the VCL->C translation and should provide a more complete message. Cheers, -- Guillaume Quintard On Sun, Feb 14, 2021 at 8:54 AM Hamidreza Hosseini wrote: > 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"; } > ``` > > ___ > varnish-misc mailing list > varnish-misc@varnish-cache.org > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc > ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc