<div dir="ltr">For a syntax error to occur on line 42, you must have a file with at least 42 (or 41, maybe) lines.<div>We started off by receiving a 37-line VCL from you, and now with cat, we have a 38 line one.</div><div><br></div><div>Is there absolutely definitely no possibility that the file has any more lines?</div><div><br></div><div>Until we get that VCL, we can't help. The VCL itself has a syntax, and without seeing the error in context, it's very difficult to help.</div><div><br></div><div>I think the only alternative is that you pay for some on-premise consulting, or something.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 November 2014 15:08, Tobias Karlsson <span dir="ltr"><<a href="mailto:tokar93@gmail.com" target="_blank">tokar93@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi<br><br></div>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></div><div class="gmail_extra"><br clear="all"><div><div>MVH<span class="HOEnZb"><font color="#888888"><br>Tobias</font></span></div></div><div><div class="h5">
<br><div class="gmail_quote">2014-11-14 16:03 GMT+01:00 Andrew Langhorn <span dir="ltr"><<a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So, okay, you have a syntax error on (or around) line 42.<div>But that Gist doesn't have a 42nd line. It ends at 37.</div><div>So there's most likely some lines missing.</div><div><br></div><div>You ideally need to cat the file, and copy the output to a Gist, rather than nano because the nano editor has a fixed height and width by default.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 14 November 2014 14:55, Tobias Karlsson <span dir="ltr"><<a href="mailto:tokar93@gmail.com" target="_blank">tokar93@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I have the copy in the mail i send you. <br><br></div>Yes this is all the info i have in the VLC file that is located here: nano /etc/varnish/default.vcl<br><br></div>The link i send you <a href="https://gist.github.com/tokar86a/1f499edd616b2eff43f1#file-gistfile1-txt" target="_blank">https://gist.github.com/tokar86a/1f499edd616b2eff43f1#file-gistfile1-txt</a> is how my file look like right now. <br><div><div><div><div class="gmail_extra"><br clear="all"><div><div>MVH<span><font color="#888888"><br>Tobias</font></span></div></div><div><div>
<br><div class="gmail_quote">2014-11-14 15:45 GMT+01:00 Andrew Langhorn <span dir="ltr"><<a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">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.<div><br></div><div>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.</div><div><div><div><br></div><div><div><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Tobias Karlsson</b> <span dir="ltr"><<a href="mailto:tokar93@gmail.com" target="_blank">tokar93@gmail.com</a>></span><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" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a>><br><br><br><div dir="ltr"><div><div>Hi<br><br></div>here you have it: <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></div>Can you see whats wrong? <br></div><div class="gmail_extra"><br clear="all"><div><div>MVH<span><font color="#888888"><br>Tobias</font></span></div></div><div><div>
<br><div class="gmail_quote">2014-11-14 15:32 GMT+01:00 Andrew Langhorn <span dir="ltr"><<a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Visit <a href="http://gist.github.com" target="_blank">gist.github.com</a>, create a new gist and upload your VCL.<div>VCL is stored, by default, in /etc/varnish</div><div><br></div><div>Please keep the varnish-misc list on your replies too</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 14 November 2014 14:28, Tobias Karlsson <span dir="ltr"><<a href="mailto:tokar93@gmail.com" target="_blank">tokar93@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">How can i list that? <br></div><div class="gmail_extra"><br clear="all"><div><div>MVH<span><font color="#888888"><br>Tobias</font></span></div></div><div><div>
<br><div class="gmail_quote">2014-11-14 15:27 GMT+01:00 Andrew Langhorn <span dir="ltr"><<a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Can you gist the VCL you're loading?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 14 November 2014 14:23, Tobias Karlsson <span dir="ltr"><<a href="mailto:tokar93@gmail.com" target="_blank">tokar93@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div>Hi<br><br></div>I receive this error when i restart Varnish:
<br><br>* Stopping HTTP accelerator varnishd                                    [fail]<br><p> * 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;</p>
<p> -----
</p><p>Running VCC-compiler failed, exited with 2</p>
<p>VCL compilation failed</p>
<p>What can be the problem?</p><br><div><br clear="all"><div><div><div>MVH<span><font color="#888888"><br>Tobias</font></span></div></div>
</div></div></div>
<br></div></div>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">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><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Kind regards,<div><br></div><div>Andrew Langhorn</div><div>Web Operations</div><div>Government Digital Service</div><div><br></div><div>e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a></div><div>t: <a href="tel:%2B44%20%280%297810%20737375" value="+447810737375" target="_blank">+44 (0)7810 737375</a></div><div>a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH</div></div></div>
</font></span></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Kind regards,<div><br></div><div>Andrew Langhorn</div><div>Web Operations</div><div>Government Digital Service</div><div><br></div><div>e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a></div><div>t: <a href="tel:%2B44%20%280%297810%20737375" value="+447810737375" target="_blank">+44 (0)7810 737375</a></div><div>a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH</div></div></div>
</div>
</div></div></blockquote></div><br></div></div></div>
</div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Kind regards,<div><br></div><div>Andrew Langhorn</div><div>Web Operations</div><div>Government Digital Service</div><div><br></div><div>e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a></div><div>t: <a href="tel:%2B44%20%280%297810%20737375" value="+447810737375" target="_blank">+44 (0)7810 737375</a></div><div>a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH</div></div></div>
</div></div></div></div></div></div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">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></blockquote></div><br></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Kind regards,<div><br></div><div>Andrew Langhorn</div><div>Web Operations</div><div>Government Digital Service</div><div><br></div><div>e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a></div><div>t: <a href="tel:%2B44%20%280%297810%20737375" value="+447810737375" target="_blank">+44 (0)7810 737375</a></div><div>a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH</div></div></div>
</div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Kind regards,<div><br></div><div>Andrew Langhorn</div><div>Web Operations</div><div>Government Digital Service</div><div><br></div><div>e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a></div><div>t: +44 (0)7810 737375</div><div>a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH</div></div></div>
</div>