Skip to content

Instantly share code, notes, and snippets.

View VinceMacBuche's full-sized avatar

Vincent Membré VinceMacBuche

View GitHub Profile
@VinceMacBuche
VinceMacBuche / gist:6450334
Last active December 22, 2015 09:09
Rudder aggregation fails with a no answer
Rapport aggrégé en entrée :
AggregationReport(2013-09-05T13:45:38.000+02:00/2013-09-05T13:45:38.000+02:00,SuccessReportType,Some(65963),0,SerialInterval(4,4),"")
Rapport en entrée:
ArrayBuffer(ExecutionReport(2013-09-05T13:45:59.000+02:00,ErrorReportType,4,This is the first time the http://localhost:8080/endpoint/api/status web application failed to respond. Deferring the restart.))
Après Normalisation les intervalles sont :
@VinceMacBuche
VinceMacBuche / gist:6461838
Created September 6, 2013 09:57
Rudder aggregation after ...
[2013-09-06 11:11:37] INFO com.normation.rudder.reports.aggregation.AggregationService - 311
[2013-09-06 11:11:37] INFO com.normation.rudder.reports.aggregation.AggregationService - Set()
[2013-09-06 11:11:37] INFO com.normation.rudder.reports.aggregation.AggregationService - 1
AggregationReport(2013-09-03T15:05:03.000+02:00/2013-09-06T11:10:44.000+02:00,SuccessReportType,None,0,SerialInterval(4,4),)
[2013-09-06 11:11:37] WARN com.normation.rudder.reports.aggregation.UnitAggregationService - ArrayBuffer(ExecutionReport(2013-09-03T15:05:03.000+02:00,SuccessReportType,4,The apache process is already running), ExecutionReport(2013-09-03T15:10:26.000+02:00,SuccessReportType,4,The apache process is already running), ExecutionReport(2013-09-03T15:15:47.000+02:00,SuccessReportType,4,The apache process is already running), ExecutionReport(2013-09-03T15:21:09.000+02:00,SuccessReportType,4,The apache process is already running), ExecutionReport(2013-09-03T15:25:31.000+02:00,SuccessReportType,4,The apache process is
@VinceMacBuche
VinceMacBuche / gist:8915035
Created February 10, 2014 12:29
send parameters through API
# by sending parameters directly like that (huuuuuge):
curl -X POST 'http://localhost:8042/api/3/directives/cc8a6f34-a04d-47c5-83e3-c0fc8b2cfd79?prettify=true' -d 'parameters={"section":{"name":"sections","sections":[{"section":{"name":"File to manage","sections":[{"section":{"name":"Enforce content by section","vars":[{"var":{"name":"GENERIC_FILE_CONTENT_SECTION_MANAGEMENT","value":"false"}},{"var":{"name":"GENERIC_FILE_SECTION_CONTENT","value":"bonjour !!"}},{"var":{"name":"GENERIC_FILE_SECTION_FOOTER","value":""}},{"var":{"name":"GENERIC_FILE_SECTION_HEADER","value":""}}]}},{"section":{"name":"File","vars":[{"var":{"name":"GENERIC_FILE_CONTENT_CREATE_BOOLEAN","value":"true"}},{"var":{"name":"GENERIC_FILE_CONTENT_DELETION_BOOLEAN","value":"false"}},{"var":{"name":"GENERIC_FILE_CONTENT_ENFORCE","value":"false"}},{"var":{"name":"GENERIC_FILE_CONTENT_ENFORCE_CREATE_ONLY_BOOLEAN","value":"false"}},{"var":{"name":"GENERIC_FILE_CONTENT_MODIFICATION_BOOLEAN","value":"false"}},{"var":{"name":"GENERIC_FILE_CONTENT
@VinceMacBuche
VinceMacBuche / gist:8933175
Created February 11, 2014 11:28
rudder-agent don't start
rudder-agent[2131]: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent[2134]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[2135]: [INFO] Launching CFEngine Community cf-serverd...
/etc/init.d/rudder-agent: line 176: 2136 Bus error ${CFENGINE_COMMUNITY_BIN[$daemon]} ${CFENGINE_COMMUNITY_PARAMS[$daemon]}
rudder-agent[2140]: [ALERT] daemon cf-serverd not running
rudder-agent[2141]: [INFO] Launching CFEngine Community cf-execd...
/etc/init.d/rudder-agent: line 176: 2142 Bus error ${CFENGINE_COMMUNITY_BIN[$daemon]} ${CFENGINE_COMMUNITY_PARAMS[$daemon]}
rudder-agent[2146]: [ALERT] daemon cf-execd not running
@VinceMacBuche
VinceMacBuche / gist:8933218
Created February 11, 2014 11:32
rudder-agent don't start verbose output
root@node1:~# /var/rudder/cfengine-community/bin/cf-agent -v
2014-02-11T12:31:53+0100 verbose: Work directory is /var/rudder/cfengine-community
2014-02-11T12:31:53+0100 verbose: Looking for a source of entropy in '/var/rudder/cfengine-community/randseed'
2014-02-11T12:31:53+0100 verbose: Making sure that locks are private...
2014-02-11T12:31:53+0100 verbose: Checking integrity of the state database
2014-02-11T12:31:53+0100 verbose: Checking integrity of the module directory
2014-02-11T12:31:53+0100 verbose: Checking integrity of the PKI directory
2014-02-11T12:31:53+0100 verbose: Loaded private key at '/var/rudder/cfengine-community/ppkeys/localhost.priv'
2014-02-11T12:31:53+0100 verbose: Loaded public key '/var/rudder/cfengine-community/ppkeys/localhost.pub'
2014-02-11T12:31:53+0100 verbose: Setting cfengine default port to 5308, '5308'
@VinceMacBuche
VinceMacBuche / gist:8933288
Created February 11, 2014 11:37
rudder-agent don't start debug output
root@node1:~# /var/rudder/cfengine-community/bin/cf-agent -d
2014-02-11T12:36:33+0100 verbose: Work directory is /var/rudder/cfengine-community
2014-02-11T12:36:33+0100 debug: Trying to create a parent directory for '/var/rudder/cfengine-community/inputs/update.conf'
2014-02-11T12:36:33+0100 debug: Directory for '/var/rudder/cfengine-community/inputs/update.conf' exists. Okay
2014-02-11T12:36:33+0100 debug: Trying to create a parent directory for '/var/rudder/cfengine-community/bin/cf-agent -D from_cfexecd'
2014-02-11T12:36:33+0100 debug: Directory for '/var/rudder/cfengine-community/bin/cf-agent -D from_cfexecd' exists. Okay
2014-02-11T12:36:33+0100 debug: Trying to create a parent directory for '/var/rudder/cfengine-community/outputs/spooled_reports'
2014-02-11T12:36:33+0100 debug: Directory for '/var/rudder/cfengine-community/outputs/spooled_reports' exists. Okay
2014-02-11T12:36:33+0100 debug: Trying to create a parent directory for '/var/rudder/cfengine-community/lastseen/intermitte
@VinceMacBuche
VinceMacBuche / gist:8933318
Created February 11, 2014 11:39
rudder-agent don't start cf-promises debug output
root@node1:~# /var/rudder/cfengine-community/bin/cf-promises -d
2014-02-11T12:38:38+0100 verbose: Work directory is /var/rudder/cfengine-community
2014-02-11T12:38:38+0100 debug: Trying to create a parent directory for '/var/rudder/cfengine-community/inputs/update.conf'
2014-02-11T12:38:38+0100 debug: Directory for '/var/rudder/cfengine-community/inputs/update.conf' exists. Okay
2014-02-11T12:38:38+0100 debug: Trying to create a parent directory for '/var/rudder/cfengine-community/bin/cf-agent -D from_cfexecd'
2014-02-11T12:38:38+0100 debug: Directory for '/var/rudder/cfengine-community/bin/cf-agent -D from_cfexecd' exists. Okay
2014-02-11T12:38:38+0100 debug: Trying to create a parent directory for '/var/rudder/cfengine-community/outputs/spooled_reports'
2014-02-11T12:38:38+0100 debug: Directory for '/var/rudder/cfengine-community/outputs/spooled_reports' exists. Okay
2014-02-11T12:38:38+0100 debug: Trying to create a parent directory for '/var/rudder/cfengine-community/lastseen/intermi
@VinceMacBuche
VinceMacBuche / gist:8933424
Created February 11, 2014 11:47
rudder-agent don't start strace on cf-promises
execve("/var/rudder/cfengine-community/bin/cf-promises", ["/var/rudder/cfengine-community/bin/cf-promises", "-d"], [/* 18 vars */]) = 0
brk(0) = 0x1207000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd676a2a000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/x86_64/libnss_nis.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib/tls/x86_64", 0x7fff9a9527f0) = -1 ENOENT (No such file or directory)
open("/lib/tls/libnss_nis.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/lib/tls", 0x7fff9a9527f0) = -1 ENOENT (No such file or directory)
open("/lib/x86_64/libnss_nis.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
@VinceMacBuche
VinceMacBuche / gist:8933651
Created February 11, 2014 12:05
GDB output from cf-promises
Reading symbols from /opt/rudder/bin/cf-promises...(no debugging symbols found)...done.
(gdb) run
Starting program: /opt/rudder/bin/cf-promises
[Thread debugging using libthread_db enabled]
Program received signal SIGBUS, Bus error.
0x00007ffff69e8c02 in memcpy () from /lib/libc.so.6
(gdb) bt
#0 0x00007ffff69e8c02 in memcpy () from /lib/libc.so.6
#1 0x00007ffff74ed622 in ?? () from /usr/lib/libtokyocabinet.so.8
- # commentaire
-
- contenu
Deviens:
- # commentaire
- contenu
ou bien tu as: