Skip to content

Instantly share code, notes, and snippets.

View KenwoodFox's full-sized avatar
💽
wstool update -t src

KenwoodFox KenwoodFox

💽
wstool update -t src
View GitHub Profile
import discord
import asyncio
import games.poker
import logging as log
log.basicConfig(filename='last_run.log',level=log.INFO) # Setup logging
class CRTC_GameBot:
def __init__(self):
self.client = discord.Client()
# iocage fstab plex -l
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| INDEX | FSTAB ENTRY |
+=======+===================================================================================================================================================+
| 0 | /mnt/SafeVolume/iocage/releases/11.2-RELEASE/root/bin /mnt/SafeVolume/iocage/jails/plex/root/bin nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 1 | /mnt/SafeVolume/iocage/releases/11.2-RELEASE/root/boot /mnt/SafeVolume/iocage/jails/plex/root/boot nullfs ro 0 0 |
+-------+-------------------------------------------
# zpool status ArchiveVolume
pool: ArchiveVolume
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://illumos.org/msg/ZFS-8000-9P
scan: resilvered 0 in 0 days 00:00:02 with 0 errors on Sun May 3 20:34:19 2020
config:
# pkg install --yes bareos.com-director bareos.com-storage bareos.com-filedaemon bareos.com-database-postgresql bareos.com-bconsole
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating Bareos repository catalogue...
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34404218008:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/s3_clnt.c:1269:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34404218008:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/s3_clnt.c:1269:
Certificate verification failed for /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
34404218008:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/s3_clnt.c:1269:
# service bacula-dir status
bacula_dir is running as pid 95404.
root@Bacula-Iron:/ # bconsole
Connecting to Director Bacula-Iron:9101
root@Bacula-Iron:/ # service bacula-dir status
bacula_dir is not running.
# service bacula-dir status
bacula_dir is running as pid 95404.
# bconsole
Connecting to Director Bacula-Iron:9101
# service bacula-dir status
bacula_dir is not running.
# service postgresql start
Shared object "libicuuc.so.66" not found, required by "postgres"
no data was returned by command ""/usr/local/bin/postgres" -V"
The program "postgres" is needed by pg_ctl but was not found in the
same directory as "/usr/local/bin/pg_ctl".
Check your installation.
# ps aux | grep bareos
root 4573 0.0 0.0 17636 8340 - SsJ 23:08 0:00.16 /usr/local/sbin/bareos-sd
root 4576 0.0 0.0 14660 7648 - SsJ 23:08 0:00.16 /usr/local/sbin/bareos-fd
root 8359 0.0 0.0 23092 10544 - SsJ 01:30 0:00.05 /usr/local/sbin/bareos-dir
postgres 8361 0.0 0.1 170988 28264 - IsJ 01:30 0:00.00 postgres: bareos bareos [local] (postgres)
root 8546 0.0 0.0 6732 2540 1 S+J 01:35 0:00.00 grep bareos
# cat /var/log/bareos/bareos.log
13-May 01:47 bareos-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bareos".
13-May 01:47 bareos-dir JobId 0: Fatal error: cats/postgresql.cc:252 Unable to connect to PostgreSQL server. Database=bareos User=bareos
Possible causes: SQL server not running; password incorrect; max_connections exceeded.
13-May 01:47 bareos-dir ERROR TERMINATION
Please correct the configuration in /usr/local/etc/bareos/bareos-dir.d/*/*.conf
# pkg info -R bareos.com-database-postgresql-19.2.7