Configuring SLA causes 500 error

so, i used the examples on the docs to define SLA in siteconfig on 5.0.2… in doing so , it completely broke the website after restarting apache, giving a 500 error and no useful information in the service logs or journal. is there something wrong with the config on the docs?

#SLA configs
    Set( %ServiceBusinessHours, (
        'Default' => {
            1 => { Name => 'Monday', Start => '8:00', End => '17:00' },
            2 => { Name => 'Tuesday', Start => '8:00', End => '17:00' },
            3 => { Name => 'Wednesday', Start => '8:00', End => '17:00' },
            4 => { Name => 'Thursday', Start => '8:00', End => '17:00' },
            5 => { Name => 'Friday', Start => '8:00', End => '12:00' },
            holidays => [qw(01-01 12-24 12-25 12-31 7-4 11-24)],
        },
    );
    Set( %ServiceAgreements, (
        Default => 'standard',
        Levels => {
            'standard' => {
                Resolve => { BusinessMinutes => 4*60 },
            },
        },
    ));

Can you share what the logs said even if it seems irrelevant?

Feb 14 10:29:10 RequestTracker.ultraimage.us systemd[1]: Reloaded The Apache HTTP Server.
Feb 14 10:29:10 RequestTracker.ultraimage.us polkitd[7150]: Unregistered Authentication Agent for unix-process:25666:345040976 (system bus name :1.1106274, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

is the only thing i see with apache. rolling back the siteconfig fixed the site…

Are you missing a “)” for the first Set? " );" should be " ));"

appears the docs are… because i literally just copied and modified… from the 4.4.1 docs. it is fixed in the 5.0.2 docs.

does it fix your issue?

yes, that did fix the issue

1 Like