Line 42 is the first non-comment line of built-in vcl file.

What version of varnish are you running ?

Thierry

De : [email protected] 
[mailto:[email protected]] De la 
part de Andrew Langhorn
Envoyé : vendredi 14 novembre 2014 16:28
À : Tobias Karlsson
Cc : [email protected]
Objet : Re: Error

I'm at a loss how you have a syntax error in that file on line 42 without 
having a 42nd line.
Either way, that VCL doesn't look complete. Can you copy a full, fresh version 
of example.vcl from scratch?

On 14 November 2014 15:23, Tobias Karlsson <[email protected]> wrote:
Hi
Yes this is everything. 
Here is a screenshot: http://i60.tinypic.com/2q223b6.jpg
Can something have happen to the file? 


MVH
Tobias

2014-11-14 16:11 GMT+01:00 Andrew Langhorn 
<[email protected]>:
For a syntax error to occur on line 42, you must have a file with at least 42 
(or 41, maybe) lines.
We started off by receiving a 37-line VCL from you, and now with cat, we have a 
38 line one.

Is there absolutely definitely no possibility that the file has any more lines?

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.

I think the only alternative is that you pay for some on-premise consulting, or 
something.

On 14 November 2014 15:08, Tobias Karlsson <[email protected]> wrote:
Hi
I get the same information:

https://gist.github.com/tokar86a/8e9e8d01c3f206a1630b


MVH
Tobias

2014-11-14 16:03 GMT+01:00 Andrew Langhorn 
<[email protected]>:
So, okay, you have a syntax error on (or around) line 42.
But that Gist doesn't have a 42nd line. It ends at 37.
So there's most likely some lines missing.

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.

On 14 November 2014 14:55, Tobias Karlsson <[email protected]> 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 
<[email protected]>:
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 <[email protected]>
Date: 14 November 2014 14:36
Subject: Re: Error
To: Andrew Langhorn <[email protected]>

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 
<[email protected]>:
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 <[email protected]> wrote:
How can i list that? 


MVH
Tobias

2014-11-14 15:27 GMT+01:00 Andrew Langhorn 
<[email protected]>:
Can you gist the VCL you're loading?

On 14 November 2014 14:23, Tobias Karlsson <[email protected]> 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
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc




-- 
Kind regards,

Andrew Langhorn
Web Operations
Government Digital Service

e: [email protected]
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: [email protected]
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: [email protected]
t: +44 (0)7810 737375
a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc





-- 
Kind regards,

Andrew Langhorn
Web Operations
Government Digital Service

e: [email protected]
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: [email protected]
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: [email protected]
t: +44 (0)7810 737375
a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to