Varnish Running VCC-compiler failed on purge

Posted by FLX on Server Fault See other posts from Server Fault or by FLX
Published on 2012-04-07T13:18:31Z Indexed on 2012/04/08 5:33 UTC
Read the original article Hit count: 497

Filed under:

I've been following this guide which uses this default.vcl. However, when starting Varnish I get the following error:

 * Starting HTTP accelerator                                                                                                                                                                                                                                           [fail] 
storage_malloc: max size 1024 MB.
Message from VCC-compiler:
Expected '(' got ';'
(program line 341), at
(input Line 43 Pos 22)
                purge;
---------------------#
Running VCC-compiler failed, exit 1
VCL compilation failed

Which means that there is something wrong with purge here:

sub vcl_hit {
        if (req.request == "PURGE") {
                purge;
                error 200 "Purged.";
        }
}

I don't see anything wrong, can someone explain?

Thanks!

© Server Fault or respective owner

Related posts about varnish