Varnish fails to start. Running VCC-compiler failed without a compiler error Announcing the...

Is it OK to use the testing sample to compare algorithms?

.bashrc alias for a command with fixed second parameter

Pointing to problems without suggesting solutions

Was the pager message from Nick Fury to Captain Marvel unnecessary?

Does the universe have a fixed centre of mass?

Meaning of 境 in その日を境に

As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?

Getting representations of the Lie group out of representations of its Lie algebra

Determine whether an integer is a palindrome

Why do C and C++ allow the expression (int) + 4*5;

Any stored/leased 737s that could substitute for grounded MAXs?

Did John Wesley plagiarize Matthew Henry...?

Can gravitational waves pass through a black hole?

Does the Rock Gnome trait Artificer's Lore apply when you aren't proficient in History?

Sally's older brother

How do I find my Spellcasting Ability for my D&D character?

Why is there so little support for joining EFTA in the British parliament?

Is the time—manner—place ordering of adverbials an oversimplification?

How do Java 8 default methods hеlp with lambdas?

malloc in main() or malloc in another function: allocating memory for a struct and its members

First paper to introduce the "principal-agent problem"

What are some likely causes to domain member PC losing contact to domain controller?

An isoperimetric-type inequality inside a cube

Marquee sign letters



Varnish fails to start. Running VCC-compiler failed without a compiler error



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Custom 503 Error Page With VarnishVarnish fails to start because of permission denied exceptionVarnish Running VCC-compiler failedConfigure php5-fpm for many concurrent usersVarnish Running VCC-compiler failed on purgevarnish error: child start failedChange varnish 4 503 errorRunning VCC-compiler failedcannot start varnish - Running VCC-compiler failed acmetool.confvarnish purge causes error 503





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







5















EDIT: System ran out of disk space so the compiler couldnt create the files. The output of varnishd doesnt tell you this.



Always check your disk quota if you get weird errors with no obvious reason :)



will answer myself after 6 hours.



I am running varnish which is controlled by supervisor.



Varnish was running slow and no changes were made when I used supervisor to restart varnish.



But the restart failed, after manually executing
sbin/varnishd -F -f etc/varnish/ourconfig.vcl -a localhost -p thread_pool_min=10 -p thread_pool_max=50 -s malloc,250M



i get the following error




Running VCC-compiler failed, exit 1



VCL compilation failed




nothing more.



This is our vcl file:



backend default {
.host = "127.0.0.1";
.port = "8002";
.first_byte_timeout = 300s;
}

sub vcl_recv {
if (req.request == "BAN") {
ban("obj.http.X-Keywords ~ " + req.http.X-Ban-Keywords);
}

if (req.request != "GET" && req.request != "HEAD") {
return (pass);
}

// Remove has_js and Google Analytics __* cookies.
set req.http.Cookie = regsuball(req.http.Cookie, "(^|;s*)(__(ut|at)[a-z]+|has_js)=[^;]*", "");
// Remove a ";" prefix, if present.
set req.http.Cookie = regsub(req.http.Cookie, "^;s*", "");

set req.grace = 5m;

if (req.url ~".*(jpg|gif|kss|css|js|png|svg|woff)$") {
unset req.http.Authorization;
unset req.http.Cookie;
}

if (req.http.Authorization || req.http.Cookie ~ "__ac") {
return (pass);
}

return (lookup);
}

sub vcl_fetch {

if (req.url ~".*(jpg|gif|kss|css|js|png|svg|woff)$") {
set beresp.ttl = 86400s;
}

if (req.url ~ "/login_form$" || req.http.Cookie ~ "__ac") {
return (hit_for_pass);
}
set beresp.grace = 5m;
unset beresp.http.Set-Cookie;
unset beresp.http.Pragma;
unset beresp.http.Cache-Control;

if (beresp.ttl < 15m) {
set beresp.ttl = 15m;
}

# images should live one day
if (req.url ~ "/(image|image_thumb|image_mini|cover_image|image_small|image_preview)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}
if (req.url ~ ".(png|gif|jpg|swf|otf|ttf|woff|svg)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}
# resource files should live 14 days to make google happy
if (req.url ~ ".(css|js|kss)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}

if (beresp.status >= 500 || beresp.status == 403 || beresp.status == 302) {
set beresp.ttl = 0s;
}

return (deliver);
}

sub vcl_deliver {
set resp.http.X-Hits = obj.hits;
}


Any help would be appreciated. Thanks a lot!










share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Usually it gives the line number where the VCL compilation failed. Didn't u get anything like that. It would be great help if you can post the same, if seeing that

    – GeekRide
    Mar 19 '13 at 16:02






  • 3





    No, the problem was the disk ran full. So there was no space left to compile the files. After cleaning up everything worked fine again. That was also the reason for the slowdown, dummy me. :) Thanks for the advice anyways!

    – user2040627
    Mar 19 '13 at 16:23











  • Saved my day, tks, mate.

    – weynhamz
    Jul 17 '17 at 9:05


















5















EDIT: System ran out of disk space so the compiler couldnt create the files. The output of varnishd doesnt tell you this.



Always check your disk quota if you get weird errors with no obvious reason :)



will answer myself after 6 hours.



I am running varnish which is controlled by supervisor.



Varnish was running slow and no changes were made when I used supervisor to restart varnish.



But the restart failed, after manually executing
sbin/varnishd -F -f etc/varnish/ourconfig.vcl -a localhost -p thread_pool_min=10 -p thread_pool_max=50 -s malloc,250M



i get the following error




Running VCC-compiler failed, exit 1



VCL compilation failed




nothing more.



This is our vcl file:



backend default {
.host = "127.0.0.1";
.port = "8002";
.first_byte_timeout = 300s;
}

sub vcl_recv {
if (req.request == "BAN") {
ban("obj.http.X-Keywords ~ " + req.http.X-Ban-Keywords);
}

if (req.request != "GET" && req.request != "HEAD") {
return (pass);
}

// Remove has_js and Google Analytics __* cookies.
set req.http.Cookie = regsuball(req.http.Cookie, "(^|;s*)(__(ut|at)[a-z]+|has_js)=[^;]*", "");
// Remove a ";" prefix, if present.
set req.http.Cookie = regsub(req.http.Cookie, "^;s*", "");

set req.grace = 5m;

if (req.url ~".*(jpg|gif|kss|css|js|png|svg|woff)$") {
unset req.http.Authorization;
unset req.http.Cookie;
}

if (req.http.Authorization || req.http.Cookie ~ "__ac") {
return (pass);
}

return (lookup);
}

sub vcl_fetch {

if (req.url ~".*(jpg|gif|kss|css|js|png|svg|woff)$") {
set beresp.ttl = 86400s;
}

if (req.url ~ "/login_form$" || req.http.Cookie ~ "__ac") {
return (hit_for_pass);
}
set beresp.grace = 5m;
unset beresp.http.Set-Cookie;
unset beresp.http.Pragma;
unset beresp.http.Cache-Control;

if (beresp.ttl < 15m) {
set beresp.ttl = 15m;
}

# images should live one day
if (req.url ~ "/(image|image_thumb|image_mini|cover_image|image_small|image_preview)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}
if (req.url ~ ".(png|gif|jpg|swf|otf|ttf|woff|svg)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}
# resource files should live 14 days to make google happy
if (req.url ~ ".(css|js|kss)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}

if (beresp.status >= 500 || beresp.status == 403 || beresp.status == 302) {
set beresp.ttl = 0s;
}

return (deliver);
}

sub vcl_deliver {
set resp.http.X-Hits = obj.hits;
}


Any help would be appreciated. Thanks a lot!










share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Usually it gives the line number where the VCL compilation failed. Didn't u get anything like that. It would be great help if you can post the same, if seeing that

    – GeekRide
    Mar 19 '13 at 16:02






  • 3





    No, the problem was the disk ran full. So there was no space left to compile the files. After cleaning up everything worked fine again. That was also the reason for the slowdown, dummy me. :) Thanks for the advice anyways!

    – user2040627
    Mar 19 '13 at 16:23











  • Saved my day, tks, mate.

    – weynhamz
    Jul 17 '17 at 9:05














5












5








5


1






EDIT: System ran out of disk space so the compiler couldnt create the files. The output of varnishd doesnt tell you this.



Always check your disk quota if you get weird errors with no obvious reason :)



will answer myself after 6 hours.



I am running varnish which is controlled by supervisor.



Varnish was running slow and no changes were made when I used supervisor to restart varnish.



But the restart failed, after manually executing
sbin/varnishd -F -f etc/varnish/ourconfig.vcl -a localhost -p thread_pool_min=10 -p thread_pool_max=50 -s malloc,250M



i get the following error




Running VCC-compiler failed, exit 1



VCL compilation failed




nothing more.



This is our vcl file:



backend default {
.host = "127.0.0.1";
.port = "8002";
.first_byte_timeout = 300s;
}

sub vcl_recv {
if (req.request == "BAN") {
ban("obj.http.X-Keywords ~ " + req.http.X-Ban-Keywords);
}

if (req.request != "GET" && req.request != "HEAD") {
return (pass);
}

// Remove has_js and Google Analytics __* cookies.
set req.http.Cookie = regsuball(req.http.Cookie, "(^|;s*)(__(ut|at)[a-z]+|has_js)=[^;]*", "");
// Remove a ";" prefix, if present.
set req.http.Cookie = regsub(req.http.Cookie, "^;s*", "");

set req.grace = 5m;

if (req.url ~".*(jpg|gif|kss|css|js|png|svg|woff)$") {
unset req.http.Authorization;
unset req.http.Cookie;
}

if (req.http.Authorization || req.http.Cookie ~ "__ac") {
return (pass);
}

return (lookup);
}

sub vcl_fetch {

if (req.url ~".*(jpg|gif|kss|css|js|png|svg|woff)$") {
set beresp.ttl = 86400s;
}

if (req.url ~ "/login_form$" || req.http.Cookie ~ "__ac") {
return (hit_for_pass);
}
set beresp.grace = 5m;
unset beresp.http.Set-Cookie;
unset beresp.http.Pragma;
unset beresp.http.Cache-Control;

if (beresp.ttl < 15m) {
set beresp.ttl = 15m;
}

# images should live one day
if (req.url ~ "/(image|image_thumb|image_mini|cover_image|image_small|image_preview)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}
if (req.url ~ ".(png|gif|jpg|swf|otf|ttf|woff|svg)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}
# resource files should live 14 days to make google happy
if (req.url ~ ".(css|js|kss)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}

if (beresp.status >= 500 || beresp.status == 403 || beresp.status == 302) {
set beresp.ttl = 0s;
}

return (deliver);
}

sub vcl_deliver {
set resp.http.X-Hits = obj.hits;
}


Any help would be appreciated. Thanks a lot!










share|improve this question
















EDIT: System ran out of disk space so the compiler couldnt create the files. The output of varnishd doesnt tell you this.



Always check your disk quota if you get weird errors with no obvious reason :)



will answer myself after 6 hours.



I am running varnish which is controlled by supervisor.



Varnish was running slow and no changes were made when I used supervisor to restart varnish.



But the restart failed, after manually executing
sbin/varnishd -F -f etc/varnish/ourconfig.vcl -a localhost -p thread_pool_min=10 -p thread_pool_max=50 -s malloc,250M



i get the following error




Running VCC-compiler failed, exit 1



VCL compilation failed




nothing more.



This is our vcl file:



backend default {
.host = "127.0.0.1";
.port = "8002";
.first_byte_timeout = 300s;
}

sub vcl_recv {
if (req.request == "BAN") {
ban("obj.http.X-Keywords ~ " + req.http.X-Ban-Keywords);
}

if (req.request != "GET" && req.request != "HEAD") {
return (pass);
}

// Remove has_js and Google Analytics __* cookies.
set req.http.Cookie = regsuball(req.http.Cookie, "(^|;s*)(__(ut|at)[a-z]+|has_js)=[^;]*", "");
// Remove a ";" prefix, if present.
set req.http.Cookie = regsub(req.http.Cookie, "^;s*", "");

set req.grace = 5m;

if (req.url ~".*(jpg|gif|kss|css|js|png|svg|woff)$") {
unset req.http.Authorization;
unset req.http.Cookie;
}

if (req.http.Authorization || req.http.Cookie ~ "__ac") {
return (pass);
}

return (lookup);
}

sub vcl_fetch {

if (req.url ~".*(jpg|gif|kss|css|js|png|svg|woff)$") {
set beresp.ttl = 86400s;
}

if (req.url ~ "/login_form$" || req.http.Cookie ~ "__ac") {
return (hit_for_pass);
}
set beresp.grace = 5m;
unset beresp.http.Set-Cookie;
unset beresp.http.Pragma;
unset beresp.http.Cache-Control;

if (beresp.ttl < 15m) {
set beresp.ttl = 15m;
}

# images should live one day
if (req.url ~ "/(image|image_thumb|image_mini|cover_image|image_small|image_preview)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}
if (req.url ~ ".(png|gif|jpg|swf|otf|ttf|woff|svg)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}
# resource files should live 14 days to make google happy
if (req.url ~ ".(css|js|kss)$") {
set beresp.ttl = 1209600s;
set beresp.http.cache-control = "max-age=1209600;s-maxage=1209600";
set beresp.http.max-age = "1209600";
set beresp.http.s-maxage = "1209600";
set beresp.http.expires = "1209600";
}

if (beresp.status >= 500 || beresp.status == 403 || beresp.status == 302) {
set beresp.ttl = 0s;
}

return (deliver);
}

sub vcl_deliver {
set resp.http.X-Hits = obj.hits;
}


Any help would be appreciated. Thanks a lot!







varnish failed






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 19 '13 at 16:25







user2040627

















asked Mar 19 '13 at 15:15









user2040627user2040627

2613




2613





bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Usually it gives the line number where the VCL compilation failed. Didn't u get anything like that. It would be great help if you can post the same, if seeing that

    – GeekRide
    Mar 19 '13 at 16:02






  • 3





    No, the problem was the disk ran full. So there was no space left to compile the files. After cleaning up everything worked fine again. That was also the reason for the slowdown, dummy me. :) Thanks for the advice anyways!

    – user2040627
    Mar 19 '13 at 16:23











  • Saved my day, tks, mate.

    – weynhamz
    Jul 17 '17 at 9:05



















  • Usually it gives the line number where the VCL compilation failed. Didn't u get anything like that. It would be great help if you can post the same, if seeing that

    – GeekRide
    Mar 19 '13 at 16:02






  • 3





    No, the problem was the disk ran full. So there was no space left to compile the files. After cleaning up everything worked fine again. That was also the reason for the slowdown, dummy me. :) Thanks for the advice anyways!

    – user2040627
    Mar 19 '13 at 16:23











  • Saved my day, tks, mate.

    – weynhamz
    Jul 17 '17 at 9:05

















Usually it gives the line number where the VCL compilation failed. Didn't u get anything like that. It would be great help if you can post the same, if seeing that

– GeekRide
Mar 19 '13 at 16:02





Usually it gives the line number where the VCL compilation failed. Didn't u get anything like that. It would be great help if you can post the same, if seeing that

– GeekRide
Mar 19 '13 at 16:02




3




3





No, the problem was the disk ran full. So there was no space left to compile the files. After cleaning up everything worked fine again. That was also the reason for the slowdown, dummy me. :) Thanks for the advice anyways!

– user2040627
Mar 19 '13 at 16:23





No, the problem was the disk ran full. So there was no space left to compile the files. After cleaning up everything worked fine again. That was also the reason for the slowdown, dummy me. :) Thanks for the advice anyways!

– user2040627
Mar 19 '13 at 16:23













Saved my day, tks, mate.

– weynhamz
Jul 17 '17 at 9:05





Saved my day, tks, mate.

– weynhamz
Jul 17 '17 at 9:05










1 Answer
1






active

oldest

votes


















0














Just so that this is registered as an answer, OP found the solution was;




No, the problem was the disk ran full. So there was no space left to
compile the files. After cleaning up everything worked fine again.
That was also the reason for the slowdown, dummy me. :) Thanks for the
advice anyways! –







share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "2"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f489296%2fvarnish-fails-to-start-running-vcc-compiler-failed-without-a-compiler-error%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Just so that this is registered as an answer, OP found the solution was;




    No, the problem was the disk ran full. So there was no space left to
    compile the files. After cleaning up everything worked fine again.
    That was also the reason for the slowdown, dummy me. :) Thanks for the
    advice anyways! –







    share|improve this answer




























      0














      Just so that this is registered as an answer, OP found the solution was;




      No, the problem was the disk ran full. So there was no space left to
      compile the files. After cleaning up everything worked fine again.
      That was also the reason for the slowdown, dummy me. :) Thanks for the
      advice anyways! –







      share|improve this answer


























        0












        0








        0







        Just so that this is registered as an answer, OP found the solution was;




        No, the problem was the disk ran full. So there was no space left to
        compile the files. After cleaning up everything worked fine again.
        That was also the reason for the slowdown, dummy me. :) Thanks for the
        advice anyways! –







        share|improve this answer













        Just so that this is registered as an answer, OP found the solution was;




        No, the problem was the disk ran full. So there was no space left to
        compile the files. After cleaning up everything worked fine again.
        That was also the reason for the slowdown, dummy me. :) Thanks for the
        advice anyways! –








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 13 '18 at 16:55









        KirrusKirrus

        433211




        433211






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f489296%2fvarnish-fails-to-start-running-vcc-compiler-failed-without-a-compiler-error%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

            Список ссавців Італії Природоохоронні статуси | Список |...

            Українські прізвища Зміст Історичні відомості |...