Skip to content

Instantly share code, notes, and snippets.

View trinitronx's full-sized avatar
⛩️
Zazen

James Cuzella trinitronx

⛩️
Zazen
View GitHub Profile
@trinitronx
trinitronx / xfs_pre_reboot_failure.log
Created March 7, 2025 00:02
XFS errors - pre-reboot
Mar 01 06:47:44 examplehost.internal kernel: 00000040: 3a 35 3e 14 bc 41 1a d2 ab 75 8b cc 9f 6f b5 74 :5>..A...u...o.t
Mar 01 06:47:44 examplehost.internal kernel: 00000050: 65 39 12 fa 5c b0 6c bc 15 7d 59 74 88 54 96 f2 e9..\.l..}Yt.T..
Mar 01 06:47:44 examplehost.internal kernel: 00000060: 69 f2 38 59 ec 1f 5a 42 31 01 8f 1f 93 a3 45 81 i.8Y..ZB1.....E.
Mar 01 06:47:44 examplehost.internal kernel: 00000070: 3a d3 96 3a d8 fb 97 97 53 e9 c6 1d 6a 62 07 66 :..:....S...jb.f
Mar 01 06:47:44 examplehost.internal kernel: XFS (md0): Metadata corruption detected at xfs_buf_ioend+0x1a0/0x5e0 [xfs], xfs_inode block 0x4d3d1d80 xfs_inode_buf_verify
Mar 01 06:47:44 examplehost.internal kernel: XFS (md0): Unmount and run xfs_repair
Mar 01 06:47:44 examplehost.internal kernel: XFS (md0): First 128 bytes of corrupted metadata buffer:
Mar 01 06:47:44 examplehost.internal kernel: 00000000: 41 06 81 bb 31 15 ee 55 d2 fc e7 32 d7 ac 0a 5d A...1..U...2...]
Mar 01 06:47:44 examplehost.internal kernel: 00000010: da ee db 3
@trinitronx
trinitronx / xfs_mount_failure.log
Created March 6, 2025 19:19
XFS mount failure - mdadm, xfs_info & dmesg logs
$ cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md0 : active raid6 sdf1[2] sda1[1] sdb[0] nvme0n1p6[3] nvme1n1p6[4]
5860540224 blocks level 6, 64k chunk, algorithm 2 [5/5] [UUUUU]
unused devices: <none>
$ sudo mdadm --detail /dev/md0
/dev/md0:
Version : 0.90
@trinitronx
trinitronx / pcloud-reinstall-test.log
Created February 28, 2025 13:48
pcloud clean reinstall tests with appimagelauncher-git version r1329.3d42d4c-2 (fails to start) AND old semi-broken appimagelauncher version 2.2.0-8
# Old checksums
$ sha256sum ~/Downloads/pcloud /usr/bin/pcloud
209cee76dcd39b776bb6bdb7e8309ef41c739f34c3301cbe0c9c58420c302e40 /home/exampleuser/Downloads/pcloud
209cee76dcd39b776bb6bdb7e8309ef41c739f34c3301cbe0c9c58420c302e40 /usr/bin/pcloud
$ ls -lA ~/.config/pcloud
total 72
drwx------ 3 exampleuser exampleuser 4096 Feb 28 04:23 blob_storage
drwx------ 3 exampleuser exampleuser 12288 Nov 26 18:10 Cache
-rw------- 1 exampleuser exampleuser 20480 Nov 26 18:10 Cookies
@trinitronx
trinitronx / strace-pcloud.log
Created February 27, 2025 09:10
strace of pcloud with appimagelauncher-git version r1329.3d42d4c-2
execve("/usr/bin/pcloud", ["/usr/bin/pcloud"], 0x7ffec7b79740 /* 158 vars */) = 0
brk(NULL) = 0xf2c2000
brk(0xf2c2d80) = 0xf2c2d80
arch_prctl(ARCH_SET_FS, 0xf2c2400) = 0
set_tid_address(0xf2c26d0) = 2634759
set_robust_list(0xf2c26e0, 24) = 0
rseq(0xf2c2320, 0x20, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlinkat(AT_FDCWD, "/proc/self/exe", "/usr/lib/appimagelauncher/binfmt"..., 4096) = 44
getrandom("\xa9\x0c\x3d\xc0\x56\xc6\x70\x73", 8, GRND_NONBLOCK) = 8
@trinitronx
trinitronx / OSX-KVM - Fixing the SSDT-EHCI for working usb-kbd and usb-tablet.md
Last active January 16, 2025 08:12
Diagnosing and fixing mismatched SSDT USB controller PCI addresses in OSX-KVM

Investigating what OSX-KVM's pre-packaged SSDT files contained, I ran into an issue with the default USB controllers' PCI addresses. The USB controllers I was passing to QEMU did not match the [default VM definition][0] & [SSDT][0.1].

To more easily see the XNU kernel debugging output:

  • I added a serial console device to the VM via this libvirt domain XML snippet:
@trinitronx
trinitronx / install-vagrant-libvirt.sh
Created December 30, 2024 22:38
Workaround script to install vagrant-libvirt + vagrant 2.4.3 on Arch Linux & Arch-based distros
#!/bin/bash
export VAGRANT_DEBUG=1
export VAGRANT_DEBUG_LAUNCHER=1
export VAGRANT_LOG=debug
## Setting above debug options reveals vagrant substrate's default environment:
#2024/12/17 09:02:16 launcher: env "CFLAGS" = "-I/opt/vagrant/embedded/include -I/opt/vagrant/embedded/include/libxml2 -lcurl -I/opt/vagrant/embedded/include -I/opt/vagrant/embedded/include/libxml2"
#2024/12/17 09:02:16 launcher: env "CONFIGURE_ARGS" = "with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib with-curl-include=/usr/include/curl with-curl-lib=/usr/lib "
#2024/12/17 09:02:16 launcher: env "CPPFLAGS" = "-I/opt/vagrant/embedded/include -I/opt/vagrant/embedded/include/libxml2"
[2024-09-11T17:48:17-0600] [PACMAN] Running 'pacman -Sy'
[2024-09-11T17:48:17-0600] [PACMAN] synchronizing package lists
[2024-09-11T17:57:56-0600] [PACMAN] Running 'pacman -Syu'
[2024-09-11T17:57:56-0600] [PACMAN] synchronizing package lists
[2024-09-11T17:57:56-0600] [PACMAN] starting full system upgrade
[2024-09-11T17:58:11-0600] [ALPM] transaction started
[2024-09-11T17:58:11-0600] [ALPM] upgraded tzdata (2024b-1 -> 2024b-2)
[2024-09-11T17:58:11-0600] [ALPM] upgraded gcc-libs (14.2.1+r32+geccf707e5ce-1 -> 14.2.1+r134+gab884fffe3fc-1)
[2024-09-11T17:58:11-0600] [ALPM] upgraded systemd-libs (256.5-1 -> 256.6-1)
[2024-09-11T17:58:12-0600] [ALPM] upgraded systemd (256.5-1 -> 256.6-1)
@trinitronx
trinitronx / vscode-app-1720900028611.log
Created July 13, 2024 20:38
Cursor: potential listener LEAK detected
workbench.desktop.main.js:450 [bc9] potential listener LEAK detected, having 202 listeners already. MOST frequent listener (8):
check @ workbench.desktop.main.js:450
q @ workbench.desktop.main.js:452
$ @ workbench.desktop.main.js:1115
K @ workbench.desktop.main.js:1266
L @ workbench.desktop.main.js:1279
createModel @ workbench.desktop.main.js:1280
o @ workbench.desktop.main.js:21992
provideTextContent @ workbench.desktop.main.js:21992
u @ workbench.desktop.main.js:21990
@trinitronx
trinitronx / vscode-app-1720901368332.log
Created July 13, 2024 20:35
Cursor: api2.cursor.sh blocked by CORS policy
workbench.desktop.main.js:1172 Overwriting filename <<.env>> to now point to mime <<text/x-dotenv>>
(anonymous) @ workbench.desktop.main.js:1172
workbench.desktop.main.js:1172 Overwriting filepattern <<.env.*>> to now point to mime <<text/x-dotenv>>
(anonymous) @ workbench.desktop.main.js:1172
workbench.desktop.main.js:1172 Overwriting extension <<.pod>> to now point to mime <<text/x-systemd-conf>>
(anonymous) @ workbench.desktop.main.js:1172
workbench.desktop.main.js:1172 Overwriting extension <<.erb>> to now point to mime <<text/x-erb>>
(anonymous) @ workbench.desktop.main.js:1172
workbench.desktop.main.js:1172 Overwriting extension <<.rhtml>> to now point to mime <<text/x-erb>>
(anonymous) @ workbench.desktop.main.js:1172
@trinitronx
trinitronx / 00-dmesg-xfs_mount_failure.log
Last active April 9, 2024 18:55
XFSv4 corrupted after kernel 6.7.11-3-MANJARO, xfsprogs 6.6.0-1
Mar 31 10:08:38 saturn kernel: XFS (md0): Mounting V4 Filesystem 29af87eb-2c60-4383-8596-079de2033a48
Mar 31 10:08:39 saturn kernel: XFS (md0): Metadata corruption detected at xfs_inobt_verify+0x91/0xb0 [xfs], xfs_inobt block 0xd78
Mar 31 10:08:39 saturn kernel: XFS (md0): Unmount and run xfs_repair
Mar 31 10:08:39 saturn kernel: XFS (md0): First 128 bytes of corrupted metadata buffer:
Mar 31 10:08:39 saturn kernel: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Mar 31 10:08:39 saturn kernel: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Mar 31 10:08:39 saturn kernel: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Mar 31 10:08:39 saturn kernel: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Mar 31 10:08:39 saturn kernel: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Mar 31 10:08:39 saturn kernel: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .........