Skip to content

Instantly share code, notes, and snippets.

@tarheelcoxn
tarheelcoxn / gist:527f45ddee92910d56f057a634a655dd
Created July 22, 2021 14:14
heisenbug with ansible [core 2.11.2]
$ git diff -c -U4 roles/apache2/tasks/main.yml
diff --git a/roles/apache2/tasks/main.yml b/roles/apache2/tasks/main.yml
index 0be2859..52b6c8f 100644
--- a/roles/apache2/tasks/main.yml
+++ b/roles/apache2/tasks/main.yml
@@ -43,8 +43,11 @@
- import_tasks: configure_apache2_deb10.yml
when: ansible_os_family == 'Debian'
and ansible_distribution_major_version == '10'
The upgrade process involves -
1. Backing up current CiviCRM code as => /home/sfc/www/production/drupal6/../backup/modules/20101223194626/civicrm
2. Backing up database as => /home/sfc/www/production/drupal6/../backup/modules/20101223194626/civicrm.sql
3. Unpacking tarfile to => /home/sfc/www/production/drupal6/sites/all/modules/
4. Executing civicrm/upgrade?reset=1 just as a browser would.
Do you really want to continue? (y/n): y
[ok]
1. Code backed up.
Database dump saved to /home/sfc/www/production/drupal6/../backup/modules/20101223194626/civicrm.sql [success]
$ drush pm-status --debug
Bootstrap to phase 0. [0.06 sec, 1.99 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.06 sec, 2.21 MB] [bootstrap]
Bootstrap to phase 5. [0.11 sec, 5.19 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.11 sec, [bootstrap]
5.19 MB]
Initialized Drupal 6.19 root directory at [notice]
/home/sfc/www/production/drupal6 [0.14 sec, 6.08 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.14 sec, [bootstrap]
6.09 MB]
$ drush status
Drupal version : 6.19
Site URI : http://[redacted].org
Database driver : mysql
Database hostname : localhost
Database username : cldr_sfc
Database name : cldr_sfc_prod
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
@tarheelcoxn
tarheelcoxn / gist:739529
Created December 13, 2010 20:15
ubuntu-vm-builder fails with --raw
2010-12-13 15:06:45,998 INFO : Calling hook: preflight_check
2010-12-13 15:06:46,005 INFO : Calling hook: set_defaults
2010-12-13 15:06:46,007 INFO : Calling hook: bootstrap
2010-12-13 15:07:51,754 INFO : Calling hook: configure_os
2010-12-13 15:08:02,347 INFO : update-alternatives: error: no alternatives for rsh.
2010-12-13 15:08:02,446 INFO : update-alternatives: error: no alternatives for rlogin.
2010-12-13 15:08:02,545 INFO : update-alternatives: error: no alternatives for rcp.
2010-12-13 15:08:03,281 INFO : Creating SSH2 RSA key; this may take some time ...
2010-12-13 15:08:03,844 INFO : Creating SSH2 DSA key; this may take some time ...
2010-12-13 15:08:04,019 INFO :
@tarheelcoxn
tarheelcoxn / redacted postconf -n
Created December 13, 2010 15:44
debian 5.0 machine
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = pbx.[redacted].com, localhost.[redacted].com, localhost
myhostname = pbx.[redacted].com
@tarheelcoxn
tarheelcoxn / postfix perms
Created December 13, 2010 15:41
debian 5.0 machine
Dec 13 03:14:05 pbx postfix/tlsmgr[9663]: warning: request to update table btree:/var/spool/postfix/smtpd_scache in non-postfix directory /var/spool/postfix
Dec 13 03:14:05 pbx postfix/tlsmgr[9663]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
Dec 13 03:14:05 pbx postfix/tlsmgr[9663]: warning: request to update table btree:/var/spool/postfix/smtp_scache in non-postfix directory /var/spool/postfix
Dec 13 03:14:05 pbx postfix/tlsmgr[9663]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
@tarheelcoxn
tarheelcoxn / gist:707194
Created November 19, 2010 21:18
more mdadm/lvm troubleshooting (dmsetup)
# dmsetup ls
raid1-virtualmachines (251, 1)
raid10-virtualmachines (251, 5)
raid10-swap (251, 4)
raid10-aptmirror (251, 3)
raid1-backup (251, 0)
raid1-lucid--root (251, 2)
# dmsetup info raid10-virtualmachines
Name: raid10-virtualmachines
State: ACTIVE
@tarheelcoxn
tarheelcoxn / gist:707141
Created November 19, 2010 20:46
lvm/mdadm oddness
# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md4 : active raid1 sda2[0] sdb2[1]
1220939904 blocks [2/2] [UU]
md3 : active raid10 sda1[0] sdb1[2] sdd[1] sdc[3]
1465146880 blocks 64K chunks 2 near-copies [4/4] [UUUU]
unused devices: <none>
# pvs
@tarheelcoxn
tarheelcoxn / gist:704222
Created November 17, 2010 22:17
mysql slave misbehaving
Working:
mysql> SELECT NOW()\G SHOW SLAVE STATUS\G
*************************** 1. row ***************************
NOW(): 2010-11-17 22:15:35
1 row in set (0.00 sec)
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: db.example.com