Error

Brett Fitzgerald brettgfitzgerald at gmail.com
Fri Nov 14 16:40:24 CET 2014


As a test, I deleted my own closing } in my vcl_deliver, which also occurs
at the end of my file, on line 62. When I restarted my service, it threw
the error:
Expected an action, 'if', '{' or '}'
('Builtin' Line 42 Pos 1)

I don't think that the Line 42 that it is referencing is line 42 in the VCL.

On Fri Nov 14 2014 at 10:35:12 AM Brett Fitzgerald <
brettgfitzgerald at gmail.com> wrote:

> Tobias,
>
> Did you accidentally delete the closing } from your sub vcl_deliver in
> default.vcl? Try adding a } at the end of your file.
>
> Brett
>
> On Fri Nov 14 2014 at 10:27:36 AM Tobias Karlsson <tokar93 at gmail.com>
> wrote:
>
>> Yes that is what i do.
>>
>> And i get the same information:
>>
>> https://gist.github.com/tokar86a/8e9e8d01c3f206a1630b
>>
>> that is all the information i have in the file.
>>
>> MVH
>>
>> Tobias
>>
>> 2014-11-14 16:04 GMT+01:00 Per Buer <perbu at varnish-software.com>:
>>
>>> Tobias,
>>>
>>> Could you be so kind and actually read the replies people send you?
>>> Please re-read Andrews email and try again.
>>>
>>> Per.
>>>
>>> On Fri, Nov 14, 2014 at 3:55 PM, Tobias Karlsson <tokar93 at gmail.com>
>>> wrote:
>>>
>>>> I have the copy in the mail i send you.
>>>>
>>>> Yes this is all the info i have in the VLC file that is located here:
>>>> nano /etc/varnish/default.vcl
>>>>
>>>> The link i send you https://gist.github.com/
>>>> tokar86a/1f499edd616b2eff43f1#file-gistfile1-txt is how my file look
>>>> like right now.
>>>>
>>>> MVH
>>>> Tobias
>>>>
>>>> 2014-11-14 15:45 GMT+01:00 Andrew Langhorn <andrew.langhorn at digital.
>>>> cabinet-office.gov.uk>:
>>>>
>>>>> You really need to keep varnish-misc copied in to these. This is not
>>>>> because I'm being pedantic, but because mailing lists are based around the
>>>>> idea of community; by keeping them copied in, others who might be
>>>>> interested in this post can learn and contribute, too. If you don't keep it
>>>>> copied in, then you're not playing ball.
>>>>>
>>>>> That doesn't look to be the full VCL; it looks like you've just
>>>>> copied/pasted from a Vim session. Cat the file, copy the output to a Gist.
>>>>>
>>>>> ---------- Forwarded message ----------
>>>>> From: Tobias Karlsson <tokar93 at gmail.com>
>>>>> Date: 14 November 2014 14:36
>>>>> Subject: Re: Error
>>>>> To: Andrew Langhorn <andrew.langhorn at digital.cabinet-office.gov.uk>
>>>>>
>>>>>
>>>>> Hi
>>>>>
>>>>> here you have it: https://gist.github.com/
>>>>> tokar86a/1f499edd616b2eff43f1#file-gistfile1-txt
>>>>>
>>>>> Can you see whats wrong?
>>>>>
>>>>> MVH
>>>>> Tobias
>>>>>
>>>>> 2014-11-14 15:32 GMT+01:00 Andrew Langhorn <andrew.langhorn at digital.
>>>>> cabinet-office.gov.uk>:
>>>>>
>>>>>> Visit gist.github.com, create a new gist and upload your VCL.
>>>>>> VCL is stored, by default, in /etc/varnish
>>>>>>
>>>>>> Please keep the varnish-misc list on your replies too
>>>>>>
>>>>>> On 14 November 2014 14:28, Tobias Karlsson <tokar93 at gmail.com> wrote:
>>>>>>
>>>>>>> How can i list that?
>>>>>>>
>>>>>>> MVH
>>>>>>> Tobias
>>>>>>>
>>>>>>> 2014-11-14 15:27 GMT+01:00 Andrew Langhorn <andrew.langhorn at digital.
>>>>>>> cabinet-office.gov.uk>:
>>>>>>>
>>>>>>>> Can you gist the VCL you're loading?
>>>>>>>>
>>>>>>>> On 14 November 2014 14:23, Tobias Karlsson <tokar93 at gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> I receive this error when i restart Varnish:
>>>>>>>>>
>>>>>>>>> * Stopping HTTP accelerator varnishd [fail]
>>>>>>>>>
>>>>>>>>> * Starting HTTP accelerator varnishd [fail]
>>>>>>>>> Message from VCC-compiler:
>>>>>>>>> Expected an action, 'if', '{' or '}'
>>>>>>>>> ('Builtin' Line 42 Pos 1)
>>>>>>>>> vcl 4.0;
>>>>>>>>>
>>>>>>>>> -----
>>>>>>>>>
>>>>>>>>> Running VCC-compiler failed, exited with 2
>>>>>>>>>
>>>>>>>>> VCL compilation failed
>>>>>>>>>
>>>>>>>>> What can be the problem?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> MVH
>>>>>>>>> Tobias
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> varnish-misc mailing list
>>>>>>>>> varnish-misc at varnish-cache.org
>>>>>>>>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Kind regards,
>>>>>>>>
>>>>>>>> Andrew Langhorn
>>>>>>>> Web Operations
>>>>>>>> Government Digital Service
>>>>>>>>
>>>>>>>> e: andrew.langhorn at digital.cabinet-office.gov.uk
>>>>>>>> t: +44 (0)7810 737375
>>>>>>>> a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Kind regards,
>>>>>>
>>>>>> Andrew Langhorn
>>>>>> Web Operations
>>>>>> Government Digital Service
>>>>>>
>>>>>> e: andrew.langhorn at digital.cabinet-office.gov.uk
>>>>>> t: +44 (0)7810 737375
>>>>>> a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Kind regards,
>>>>>
>>>>> Andrew Langhorn
>>>>> Web Operations
>>>>> Government Digital Service
>>>>>
>>>>> e: andrew.langhorn at digital.cabinet-office.gov.uk
>>>>> t: +44 (0)7810 737375
>>>>> a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH
>>>>>
>>>>> _______________________________________________
>>>>> varnish-misc mailing list
>>>>> varnish-misc at varnish-cache.org
>>>>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> varnish-misc mailing list
>>>> varnish-misc at varnish-cache.org
>>>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>>>
>>>
>>>
>>>
>>> --
>>> *Per Buer*
>>> CTO | Varnish Software AS
>>> Cell: +47 95839117
>>> We Make Websites Fly!
>>> www.varnish-software.com
>>> [image: Register now]
>>> <http://info.varnish-software.com/varnish-summits-autumn-2014-registration>
>>>
>>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20141114/9b2d4ef7/attachment.html>


More information about the varnish-misc mailing list