Header Shadow Image


Archive for the 'NIX Posts' Category

Customizing vi and vim rc files: ~/.virc and ~/.vimrc

If you're looking: cat ~/.vimrc " Enable plugins filetype plugin on " Enable indentation filetype indent on " Turn syntax highlighting off.  (In case there's inefficient contract between available colors.) syntax off " Set line numbering set number What about VI?  For vi, the above will also work however this is manged by the cat […]

Patroni: FATAL:  could not connect to the primary server: server closed the connection unexpectedly

Getting this? [root@psql04 ~]# tail -f /data/patroni/log/postgresql-Wed.log 2022-03-09 20:07:40.890 EST [27627] FATAL:  could not connect to the primary server: server closed the connection unexpectedly                 This probably means the server terminated abnormally                 before or while processing the request. ^C [root@psql04 […]

Patroni cluster not initializing

Not getting a cluster initialized when using patroni? [root@psql06 patroni]# systemctl status patroni ? patroni.service – Runners to orchestrate a high-availability PostgreSQL    Loaded: loaded (/etc/systemd/system/patroni.service; enabled; vendor preset: disabled)    Active: active (running) since Sun 2022-03-06 14:08:28 EST; 2min 13s ago  Main PID: 5857 (patroni)    CGroup: /system.slice/patroni.service            ??5857 […]

LOG:  specifying both host name and CIDR mask is invalid

Getting this? [root@psql06 log]# ls -altri total 12  69297428 drwx——.  2 postgres postgres   31 Mar  6 12:29 .  69297429 -rw——-.  1 postgres postgres 7245 Mar  6 12:37 postgresql-Sun.log 135582283 drwx——. 20 postgres postgres 4096 Mar  6 12:37 .. [root@psql06 log]# cat postgresql-Sun.log 2022-03-06 12:29:47.467 EST [15085] LOG:  specifying both host name and CIDR mask […]

patroni.exceptions.PatroniFatalException: ‘Can not find suitable configuration of distributed configuration store\nAvailable implementations: etcd, etcd3, kubernetes’

Getting this? [root@psql06 ~]# systemctl status patroni ? patroni.service – Runners to orchestrate a high-availability PostgreSQL    Loaded: loaded (/etc/systemd/system/patroni.service; enabled; vendor preset: disabled)    Active: failed (Result: exit-code) since Thu 2022-03-03 01:28:53 EST; 9s ago   Process: 10292 ExecStart=/usr/local/bin/patroni /etc/patroni.yml (code=exited, status=1/FAILURE)  Main PID: 10292 (code=exited, status=1/FAILURE) Mar 03 01:28:53 psql06.nix.mds.xyz patroni[10292]: File "/usr/local/lib/python3.6/site-packages/patroni/daemon.py", […]

DL380 G8: Unable to create RAID array with error Command: 51h, SCSI Status: 0000h Command Status: 0004h

Getting this error when trying to create a RAID array on your DL380 G8? A fatal error has occurred. Command: 51h SCSI Status: 0000h Command Status: 0004h Perhaps the lack of a license on the cache module is the culprit?  Or perhaps the addition of another device, such as the SSD.  Reseating the Cache Module […]

Installing Entware on Asus RT-AC88U, Asus RT-AC68U or Asus RT-AC87U

Installing Entware on Asus RT-AC88U, Asus RT-AC68U or Asus RT-AC87U .  Note, for this install, a USB drive is not required, however a USB drive is highly recommended.  However, these steps will dip into your /jffs space, so care should be taken to install just what you need, since space in /jffs is not unlimited.  IMPORTANT: if using […]

DD-WRT: Configuring for Home with OSPF and Multiple VLAN’s.

Fast forward a few years, and after a few IoT device purchases, multiple VLAN setup with DD-WRT started to become more attractive.  More importantly, a friend asked about the same so I've set out to do just that: setup additional VLAN's for my own network via DD-WRT.  Why would I want to do this?  For […]

DD-WRT WiFi: Slow connection or no connectivity at all.

When running DD-WRT firmware, slow speeds are seen or there is no connectivity?  Try to disable the Frame Burst rate in Wireless -> wl1-Advanced .  According to the definition, this can help with multiple devices. CTS Protection Mode The default value is Disabled. When set to Auto, a protection mechanism will ensure that your Wireless-B devices will connect […]

journalctl: wrap lines and tail effect

Trying to use journalctl to view logs but the output get's truncated or doesn't wrap around.  Using the following for me had best results in my case: journalctl -xe -u kubelet.service -f Other variations with slightly different results: journalctl -xe -u kubelet.service -fn100 Another variant that can be usefull includes: journalctl -xe -u kubelet.service | […]


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License