https://bugs.contribs.org/show_bug.cgi?id=10373

            Bug ID: 10373
           Summary: Missing newline at end of config prevents conjob
    Classification: Contribs
           Product: SME Contribs
           Version: 9.2
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-affa
          Assignee: arnaud...@guedel.eu
          Reporter: jcr...@safeandsoundit.co.uk
        QA Contact: contribteam@lists.contribs.org
  Target Milestone: ---

I just noticed that one of my affa configs was not running.

I checked the status in the file was enabled but /etc/cron.d/affa showed:

# DISABLED Job Backup; 1.2.3.4, Server Backup

I checked in the logs and found lots of entries like this:

*** Error in job config Backup: Multivalues are not allowed for key

I checked the config files. I have 2 nearly identical and they looked the same.

I decided to diff them and got:

< status=enabled
\ No newline at end of file
---
> status=enabled


I added a newline to the config file, ran affa --make-conjobs and checked the
cronjob to find that the job was now there.

Clearly the /sbin/affa script cannot handle a config file without a newline at
the end of it.

There should really really be a check for this and a sensible error message
displayed (or the lack of new line allowed for)

The section that needs looking at is sub cronSetup() { at line 3463

I had a look, but the perl is way beyond me!

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to