https://bugzilla.wikimedia.org/show_bug.cgi?id=69272

--- Comment #3 from Antoine "hashar" Musso <[email protected]> ---
Created attachment 16158
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=16158&action=edit
/etc/jobrunner/jobrunner.conf on deployment-jobrunner01.eqiad.wmflabs

We have a jobrunner for generic jobs: deployment-jobrunner01.eqiad.wmflabs
which has the puppet class role::beta::jobrunner applied.

I reran puppet on the instance:

 Notice: /Stage[main]/Mediawiki::Jobrunner/Service[jobrunner]/ensure: ensure
changed 'stopped' to 'running'
 Info: /Stage[main]/Mediawiki::Jobrunner/Service[jobrunner]: Unscheduling
refresh on Service[jobrunner]

But the service does not start:

 # service jobrunner status
 jobrunner stop/waiting
 #


In /var/log/syslog I found out:

Aug  8 14:00:52 deployment-jobrunner01 php:

PHP Warning:  syntax error, unexpected '{' in /etc/jobrunner/jobrunner.conf on
line 3#012 in 
 /srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line 128

PHP Fatal error:  Uncaught exception 'Exception' with message
  'Could not parse file at '/etc/jobrunner/jobrunner.conf'.' in
  /srv/deployment/jobrunner/jobrunner/redisJobRunnerService:132#012Stack
trace:#012#0
  /srv/deployment/jobrunner/jobrunner/redisJobRunnerService(51):
RedisJobRunnerService::init(Array)#012#1 {main}#012
  thrown in /srv/deployment/jobrunner/jobrunner/redisJobRunnerService on line
132


The file /etc/jobrunner/jobrunner.conf is a json file managed by puppet and it
is invalid:

 php > $json = file_get_contents('/etc/jobrunner/jobrunner.conf');
 php > var_dump( json_decode( $json ) );
 NULL
 php > 

PHP json_decode() returns NULL if the json cannot be decoded or if the encoded
data is deeper than the recursion limit.


I have attached the file

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to