So my server was sending me emails such as
Failed to check for updates with the following error message:
Failed to build transaction: Success - empty transaction
I knew this was from yum-cron which I’d recently setup.
1 google search sent me to bugzilla where a guy already have pinpointed the error in a python script and is kind enough to show a diff on the code.
He also links to his pull request on the actual code repo over at github.
This patch haven’t made it through to my updates repo for my server yet, but since all this is transparent readable code I can patch my own script.
Unused backend somebackend, defined:
Is solved with
In CentOS / RHEL you can add that to
You’d also have to pass that option if you’re testing your vcl config
varnishd -p vcc_err_unref=off -C -f /etc/varnish/default.vcl
You can dump stuff from memcached with memcdump
$ memcdump --servers=127.0.0.1
Protect yourself from drown attack by updating your openssl package.
Redhat patched openssl 1.0.1e
# rpm -q --changelog openssl-1.0.1e-51.el7_2.4.x86_64 | head
* Wed Feb 24 2016 Tomáš Mráz <email@example.com> 1.0.1e-51.4
- fix CVE-2016-0702 - side channel attack on modular exponentiation
- fix CVE-2016-0705 - double-free in DSA private key parsing
- fix CVE-2016-0797 - heap corruption in BN_hex2bn and BN_dec2bn
* Tue Feb 16 2016 Tomáš Mráz <firstname.lastname@example.org> 1.0.1e-51.3
- fix CVE-2015-3197 - SSLv2 ciphersuite enforcement
- disable SSLv2 in the generic TLS method
goto https://drownattack.com/ for more info
I lost password for my owncloud admin account .
In owncloud 7 / 8 you have an occ command you can use to fix that ( requires root access to the server ) .
sudo -u apache php /path/to/webroot/owncloud/occ user:resetpassword [you admin username]
Thank you 2daygeek.com
Cluster ssh is super nice, but out of the box it got ugly and small fonts.
Here’s my Cluster ssh config, which I respectfully ripped from the net:
terminal_args=-fa 'DejaVu Sans Mono:style=Book' -fs 11
# note these are not consistent with the TTF font selection, so have to 'adjust' accordingly
# for terminal_args=-fa 'DejaVu Sans Mono:style=Book' -fs 12:
# for terminal_args=-fa 'DejaVu Sans Mono:style=Book' -fs 11
Thank you dansnotebook.blogspot.no
after some grep, sed and awk’ing I had sorted out a bunch of foldernames into a file, feelin’ smug about it.
I needed those on one line, using vim the only hinder was my not-so-super-skills in vim .
In vim command mode, typing ‘18000J’ would join current line with the next 18000 lines
While branches keep piling up in a project and I lost track of which branches _I_ created and forgot to cleanup/delete later, this oneliner helped me out:
$ git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n
# firewall-cmd --get-active-zones
What’s active in this zone ?
# firewall-cmd --zone=public --list-all
public (default, active)
services: dhcpv6-client http https ssh
You’ll probably find numerous links that tell you to delete
in puppetmaster, node or both.
None of those solved my problem.
Upgradeing to puppet-2.7.25 didn’t help either .
On my puppet client, in /var/lib/puppet deleting
rm -fr state/ lib/ facts/ client*
at least let me run puppet again, but next run gives that 400 error again …
note to self: get back to this post when I get time to further debugging this really annoying issue