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
# mount -av
/ : ignored
/boot/efi : already mounted
none : ignored
mount.nfs: timeout set for Wed May 27 15:50:31 2020
mount.nfs: trying text-based options 'vers=4.2,addr=10.85.3.120,clientaddr=10.85.3.166'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.1,addr=10.85.3.120,clientaddr=10.85.3.166'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.0,addr=10.85.3.120,clientaddr=10.85.3.166'
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=7e44ec85-9ca1-4a44-bad9-4324e03f5317 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
# mount -av
/ : ignored
/boot/efi : already mounted
none : ignored
mount.nfs: timeout set for Wed May 27 15:29:46 2020
mount.nfs: trying text-based options 'vers=4.2,addr=10.85.3.120,clientaddr=10.85.3.166'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.1,addr=10.85.3.120,clientaddr=10.85.3.166'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.0,addr=10.85.3.120,clientaddr=10.85.3.166'
# docker run --rm hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete
Digest: sha256:6a65f928fb91fcfbc963f7aa6d57c8eeb426ad9a20c7ee045538ef34847f44f1
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: running `/sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default650462338`
failed with output: apparmor_parser: Unable to replace "docker-default". Permission denied; attempted to load a profile while confined?
error: exit status 243.
# docker volume create portainer_data
portainer_data
# docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
8b1e0f0f84cbdc242c901a755f7e08674214c7140229766d95433d91124aeba9
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"proc\\\" to rootfs \\\"/var/lib/docker/vfs/dir/c7bdf60aa2f7e35918d2fabda1b5178abc876ce0be79ead16d3dbec0699cf793\\\" at \\\"/proc\\\" caused \\\"permission denied\\\"\"": unknown.
21-May 21:11 bacula-dir JobId 23: shell command: run BeforeJob "/etc/bacula/scripts/release_tape.sh"
21-May 21:11 bacula-dir JobId 23: BeforeJob: Connecting to Director 10.85.3.30:9101
21-May 21:11 bacula-dir JobId 23: BeforeJob: 1000 OK: 103 bacula-dir Version: 9.4.2 (04 February 2019)
21-May 21:11 bacula-dir JobId 23: BeforeJob: Enter a period to cancel a command.
21-May 21:11 bacula-dir JobId 23: BeforeJob: release storage=Iron-Autochanger slot=0
21-May 21:11 bacula-dir JobId 23: BeforeJob: Automatically selected Catalog: MyCatalog
21-May 21:11 bacula-dir JobId 23: BeforeJob: Using Catalog "MyCatalog"
21-May 21:11 bacula-dir JobId 23: BeforeJob: 3307 Issuing autochanger "unload Volume *Unknown*, Slot 15, Drive 0" command.
21-May 21:12 bacula-dir JobId 23: BeforeJob: 3022 Device ""LTO-3" (/dev/nst0)" released.
21-May 21:12 bacula-dir JobId 23: BeforeJob: You have messages.
*m
15-May 22:28 bacula-dir JobId 2: Start Backup JobId 2, Job=BackupDatabase.2020-05-15_22.28.55_04
15-May 22:28 bacula-dir JobId 2: Using Device "FileChgr1-Dev1" to write.
15-May 22:28 test-bacula-sd JobId 2: Labeled new Volume "FullAuto-0002" on File device "FileChgr1-Dev1" (/backup/tape).
15-May 22:28 test-bacula-sd JobId 2: Wrote label to prelabeled Volume "FullAuto-0002" on File device "FileChgr1-Dev1" (/backup/tape)
15-May 22:28 bacula-fd JobId 2: Could not stat "/var/lib/bacula/bacula.sql": ERR=No such file or directory
15-May 22:28 test-bacula-sd JobId 2: Elapsed time=00:00:01, Transfer rate=0 Bytes/second
15-May 22:28 test-bacula-sd JobId 2: Sending spooled attrs to the Director. Despooling 0 bytes ...
15-May 22:28 bacula-dir JobId 2: Bacula bacula-dir 9.4.2 (04Feb19):
Build OS: x86_64-pc-linux-gnu ubuntu 20.04
# bacula-dir -t
bacula-dir: ERROR TERMINATION at parse_conf.c:616
Config error: Could not find config Resource "FullFile" referenced on line 17 : Pool = FullFile # required parameter for all Jobs, despite what appears in the next few lines
: line 17, col 25 of file /usr/local/etc/bacula/client-myclient.conf
Pool = FullFile # required parameter for all Jobs, despite what appears in the next few lines
13-May 17:05 bacula-dir: ERROR TERMINATION at parse_conf.c:616
Config error: Could not find config Resource "FullFile" referenced on line 17 : Pool = FullFile # required parameter for all Jobs, despite what appears in the next few lines
$ psql -l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+-----------+---------+-------+-----------------------
bacula | bacula | SQL_ASCII | C | C |
postgres | postgres | UTF8 | C | C |
template0 | postgres | UTF8 | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
# ps auwwx | grep postgres
root 33099 0.0 0.0 6732 2552 1 S+J 16:22 0:00.00 grep postgresq
root@Bacula-Iron2:/ # ps auwwx | grep postgres
postgres 33087 0.0 0.1 168940 25616 - IsJ 16:22 0:00.00 postgres: checkpointer (postgres)
postgres 33088 0.0 0.1 168940 25616 - SsJ 16:22 0:00.01 postgres: background writer (postgres)
postgres 33089 0.0 0.1 168940 25616 - SsJ 16:22 0:00.00 postgres: walwriter (postgres)
postgres 33090 0.0 0.1 168940 25876 - SsJ 16:22 0:00.00 postgres: autovacuum launcher (postgres)
postgres 33091 0.0 0.0 23848 14972 - SsJ 16:22 0:00.00 postgres: stats collector (postgres)
postgres 33092 0.0 0.1 168940 25836 - IsJ 16:22 0:00.00 postgres: logical replication launcher (postgres)
postgres 33085 0.0 0.1 168940 25592 1 SJ 16:22 0:00.03 /usr/local/bin/postgres -D /var/db/postgres/data11