<div dir="ltr">yes that fix the problem. <br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">MVH<br>Tobias</div></div>
<br><div class="gmail_quote">2014-11-14 17:09 GMT+01:00 Dag Haavi Finstad <span dir="ltr"><<a href="mailto:daghf@varnish-software.com" target="_blank">daghf@varnish-software.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think the VCL compiler is playing a trick on us here with regards to<br>
line numbers ..<br>
<br>
The input file is missing a '}' at the very end. Could you insert that<br>
and try again, Tobias?<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Nov 14, 2014 at 4:32 PM, Jorge <<a href="mailto:jnerin@gmail.com">jnerin@gmail.com</a>> wrote:<br>
> Tobias, it's obvious that the file you post it's not complete, please post<br>
> again when you get the complete file with at least 42 lines.<br>
><br>
> OTOH if this file is all you have, then you have a partial file, recover a<br>
> working one from your backups or create a new one.<br>
><br>
><br>
> El Fri Nov 14 2014 at 16:25:14, Tobias Karlsson (<<a href="mailto:tokar93@gmail.com">tokar93@gmail.com</a>>)<br>
> escribió:<br>
><br>
>> Hi<br>
>><br>
>> I get the same information:<br>
>><br>
>> <a href="https://gist.github.com/tokar86a/8e9e8d01c3f206a1630b" target="_blank">https://gist.github.com/tokar86a/8e9e8d01c3f206a1630b</a><br>
>><br>
>> MVH<br>
>><br>
>> Tobias<br>
>><br>
>> 2014-11-14 16:03 GMT+01:00 Andrew Langhorn<br>
>> <<a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk">andrew.langhorn@digital.cabinet-office.gov.uk</a>>:<br>
>>><br>
>>> So, okay, you have a syntax error on (or around) line 42.<br>
>>> But that Gist doesn't have a 42nd line. It ends at 37.<br>
>>> So there's most likely some lines missing.<br>
>>><br>
>>> You ideally need to cat the file, and copy the output to a Gist, rather<br>
>>> than nano because the nano editor has a fixed height and width by default.<br>
>>><br>
>>> On 14 November 2014 14:55, Tobias Karlsson <<a href="mailto:tokar93@gmail.com">tokar93@gmail.com</a>> wrote:<br>
>>>><br>
>>>> I have the copy in the mail i send you.<br>
>>>><br>
>>>> Yes this is all the info i have in the VLC file that is located here:<br>
>>>> nano /etc/varnish/default.vcl<br>
>>>><br>
>>>> The link i send you<br>
>>>> <a href="https://gist.github.com/tokar86a/1f499edd616b2eff43f1#file-gistfile1-txt" target="_blank">https://gist.github.com/tokar86a/1f499edd616b2eff43f1#file-gistfile1-txt</a> is<br>
>>>> how my file look like right now.<br>
>>>><br>
>>>> MVH<br>
>>>> Tobias<br>
>>>><br>
>>>> 2014-11-14 15:45 GMT+01:00 Andrew Langhorn<br>
>>>> <<a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk">andrew.langhorn@digital.cabinet-office.gov.uk</a>>:<br>
>>>>><br>
>>>>> You really need to keep varnish-misc copied in to these. This is not<br>
>>>>> because I'm being pedantic, but because mailing lists are based around the<br>
>>>>> idea of community; by keeping them copied in, others who might be interested<br>
>>>>> in this post can learn and contribute, too. If you don't keep it copied in,<br>
>>>>> then you're not playing ball.<br>
>>>>><br>
>>>>> That doesn't look to be the full VCL; it looks like you've just<br>
>>>>> copied/pasted from a Vim session. Cat the file, copy the output to a Gist.<br>
>>>>><br>
>>>>> ---------- Forwarded message ----------<br>
>>>>> From: Tobias Karlsson <<a href="mailto:tokar93@gmail.com">tokar93@gmail.com</a>><br>
>>>>> Date: 14 November 2014 14:36<br>
>>>>> Subject: Re: Error<br>
>>>>> To: Andrew Langhorn <<a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk">andrew.langhorn@digital.cabinet-office.gov.uk</a>><br>
>>>>><br>
>>>>><br>
>>>>> Hi<br>
>>>>><br>
>>>>> here you have it:<br>
>>>>> <a href="https://gist.github.com/tokar86a/1f499edd616b2eff43f1#file-gistfile1-txt" target="_blank">https://gist.github.com/tokar86a/1f499edd616b2eff43f1#file-gistfile1-txt</a><br>
>>>>><br>
>>>>> Can you see whats wrong?<br>
>>>>><br>
>>>>> MVH<br>
>>>>> Tobias<br>
>>>>><br>
>>>>> 2014-11-14 15:32 GMT+01:00 Andrew Langhorn<br>
>>>>> <<a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk">andrew.langhorn@digital.cabinet-office.gov.uk</a>>:<br>
>>>>>><br>
>>>>>> Visit <a href="http://gist.github.com" target="_blank">gist.github.com</a>, create a new gist and upload your VCL.<br>
>>>>>> VCL is stored, by default, in /etc/varnish<br>
>>>>>><br>
>>>>>> Please keep the varnish-misc list on your replies too<br>
>>>>>><br>
>>>>>> On 14 November 2014 14:28, Tobias Karlsson <<a href="mailto:tokar93@gmail.com">tokar93@gmail.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>> How can i list that?<br>
>>>>>>><br>
>>>>>>> MVH<br>
>>>>>>> Tobias<br>
>>>>>>><br>
>>>>>>> 2014-11-14 15:27 GMT+01:00 Andrew Langhorn<br>
>>>>>>> <<a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk">andrew.langhorn@digital.cabinet-office.gov.uk</a>>:<br>
>>>>>>>><br>
>>>>>>>> Can you gist the VCL you're loading?<br>
>>>>>>>><br>
>>>>>>>> On 14 November 2014 14:23, Tobias Karlsson <<a href="mailto:tokar93@gmail.com">tokar93@gmail.com</a>><br>
>>>>>>>> wrote:<br>
>>>>>>>>><br>
>>>>>>>>> Hi<br>
>>>>>>>>><br>
>>>>>>>>> I receive this error when i restart Varnish:<br>
>>>>>>>>><br>
>>>>>>>>> * Stopping HTTP accelerator varnishd [fail]<br>
>>>>>>>>><br>
>>>>>>>>> * Starting HTTP accelerator varnishd [fail]<br>
>>>>>>>>> Message from VCC-compiler:<br>
>>>>>>>>> Expected an action, 'if', '{' or '}'<br>
>>>>>>>>> ('Builtin' Line 42 Pos 1)<br>
>>>>>>>>> vcl 4.0;<br>
>>>>>>>>><br>
>>>>>>>>> -----<br>
>>>>>>>>><br>
>>>>>>>>> Running VCC-compiler failed, exited with 2<br>
>>>>>>>>><br>
>>>>>>>>> VCL compilation failed<br>
>>>>>>>>><br>
>>>>>>>>> What can be the problem?<br>
>>>>>>>>><br>
>>>>>>>>><br>
>>>>>>>>><br>
>>>>>>>>> MVH<br>
>>>>>>>>> Tobias<br>
>>>>>>>>><br>
>>>>>>>>> _______________________________________________<br>
>>>>>>>>> varnish-misc mailing list<br>
>>>>>>>>> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
>>>>>>>>> <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> --<br>
>>>>>>>> Kind regards,<br>
>>>>>>>><br>
>>>>>>>> Andrew Langhorn<br>
>>>>>>>> Web Operations<br>
>>>>>>>> Government Digital Service<br>
>>>>>>>><br>
>>>>>>>> e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk">andrew.langhorn@digital.cabinet-office.gov.uk</a><br>
>>>>>>>> t: <a href="tel:%2B44%20%280%297810%20737375" value="+447810737375">+44 (0)7810 737375</a><br>
>>>>>>>> a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH<br>
>>>>>>><br>
>>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> --<br>
>>>>>> Kind regards,<br>
>>>>>><br>
>>>>>> Andrew Langhorn<br>
>>>>>> Web Operations<br>
>>>>>> Government Digital Service<br>
>>>>>><br>
>>>>>> e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk">andrew.langhorn@digital.cabinet-office.gov.uk</a><br>
>>>>>> t: <a href="tel:%2B44%20%280%297810%20737375" value="+447810737375">+44 (0)7810 737375</a><br>
>>>>>> a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>> Kind regards,<br>
>>>>><br>
>>>>> Andrew Langhorn<br>
>>>>> Web Operations<br>
>>>>> Government Digital Service<br>
>>>>><br>
>>>>> e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk">andrew.langhorn@digital.cabinet-office.gov.uk</a><br>
>>>>> t: <a href="tel:%2B44%20%280%297810%20737375" value="+447810737375">+44 (0)7810 737375</a><br>
>>>>> a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> varnish-misc mailing list<br>
>>>>> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
>>>>> <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Kind regards,<br>
>>><br>
>>> Andrew Langhorn<br>
>>> Web Operations<br>
>>> Government Digital Service<br>
>>><br>
>>> e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk">andrew.langhorn@digital.cabinet-office.gov.uk</a><br>
>>> t: <a href="tel:%2B44%20%280%297810%20737375" value="+447810737375">+44 (0)7810 737375</a><br>
>>> a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH<br>
>><br>
>><br>
>> _______________________________________________<br>
>> varnish-misc mailing list<br>
>> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
>> <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
><br>
><br>
> _______________________________________________<br>
> varnish-misc mailing list<br>
> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
> <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
<br>
<br>
<br>
--<br>
</div></div><span class="HOEnZb"><font color="#888888">Dag Haavi Finstad<br>
Software Developer | Varnish Software<br>
Mobile: <a href="tel:%2B47%20476%2064%20134" value="+4747664134">+47 476 64 134</a><br>
We Make Websites Fly!<br>
</font></span></blockquote></div><br></div>