Skip to content

Instantly share code, notes, and snippets.

View jbfavre's full-sized avatar

Jean Baptiste Favre jbfavre

View GitHub Profile
@jbfavre
jbfavre / gist:4942a67e49c26b75ceaf3234438b167d
Created May 21, 2016 12:57
dmesg extract ata1 errors after 4.5.4-1 upgrade
[ 4773.219496] ata1.00: device reported invalid CHS sector 0
[ 4773.219506] ata1: EH complete
[ 4773.219554] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 4773.219558] sd 0:0:0:0: [sda] Sense Key : Illegal Request [current] [descriptor]
[ 4773.219560] sd 0:0:0:0: [sda] Add. Sense: Unaligned write command
[ 4773.219561] sd 0:0:0:0: [sda] Stopping disk
[ 4773.263222] scsi 0:0:0:0: Direct-Access ATA Micron_M600_MTFD MA01 PQ: 0 ANSI: 5
[ 4773.303130] ata1.00: Enabling discard_zeroes_data
[ 4773.303144] sd 0:0:0:0: [sdb] 1000215216 512-byte logical blocks: (512 GB/477 GiB)
[ 4773.303146] sd 0:0:0:0: [sdb] 4096-byte physical blocks
@jbfavre
jbfavre / gist:c753336f4fc3c898ed7c066dd0b7b8a1
Created July 20, 2016 08:55
varnish-modules test error on i386
* top 0.0 TEST ../src/tests/cookie/08-overflow.vtc starting
** top 0.0 === varnishtest "Test cookie vmod"
* top 0.0 TEST Test cookie vmod
** top 0.0 === server s1 {
** s1 0.0 Starting server
**** s1 0.0 macro def s1_addr=127.0.0.1
**** s1 0.0 macro def s1_port=60202
**** s1 0.0 macro def s1_sock=127.0.0.1 60202
* s1 0.0 Listen on 127.0.0.1 60202
** top 0.0 === varnish v1 -vcl+backend {
@jbfavre
jbfavre / jdg-pipeline_all.groovy
Created July 20, 2016 21:58
Jenkins Debian Glue - Jenkins Pipeline
// Checkout package git repository
stage('Checkout GIT repository')
node('master'){
deleteDir()
checkout changelog: false,
poll: false,
scm: [$class: 'GitSCM',
branches: [[name: "${branch}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [
@jbfavre
jbfavre / compilation error
Created November 16, 2016 11:59
ATS 7.0.0 compilation issue
SSLInternal.cc: In function ‘void SSL_set_rbio(SSL*, BIO*)’:
SSLInternal.cc:40:10: error: invalid use of incomplete type ‘SSL {aka struct ssl_st}’
if (ssl->rbio != NULL) {
^~
In file included from /usr/include/openssl/crypto.h:31:0,
from /usr/include/openssl/comp.h:16,
from /usr/include/openssl/ssl.h:47,
from SSLInternal.cc:33:
/usr/include/openssl/ossl_typ.h:144:16: note: forward declaration of ‘SSL {aka struct ssl_st}’
typedef struct ssl_st SSL;