Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ashwoods's full-sized avatar

Ashley Camba ashwoods

View GitHub Profile
@ashwoods
ashwoods / check-qemu-binfmt.sh
Created December 14, 2021 17:30 — forked from ArturKlauser/check-qemu-binfmt.sh
Building Multi-Architecture Docker Images With Buildx
#!/bin/bash
# (c) 2020 Artur.Klauser@computer.org
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
# This script checks if all software requirements are met in a Linux environment
# in order to use 'docker buildx' to build multi-architecture images.
# For more information see:
# https://nexus.eddiesinentropy.net/2020/01/12/Building-Multi-architecture-Docker-Images-With-Buildx/
function error() {
@ashwoods
ashwoods / deploy.py
Created November 12, 2021 12:35
mender deploy python script
#!/usr/bin/env python3
import requests
import argparse
def get_token(user, password):
headers = {
'Content-Type': 'application/json',
'Accept': 'application/jwt',
}
@ashwoods
ashwoods / integration-report.md
Created July 19, 2019 13:02
integration problems

Root cause analysis for integration incident

This documents purpose is to detail current integration problems and possible remedies and workarounds.

Debugging and troubleshooting are cumbersome as errors are systematic and happen at several places at the same time.

Error chain:

Goal: vps-gazeoverlay 1.1.0 was to be installed. The changes where dependent on vps-image-filters 1.5.0. This is normally done by just bumping the version of gstreamer element package in the Dockerfile and rebuilding/publishing the docker image.

code --install-extension 2gua.rainbow-brackets
code --install-extension Kasik96.swift
code --install-extension adamvoss.yaml
code --install-extension austin.code-gnu-global
code --install-extension bbenoist.QML
code --install-extension bbenoist.vagrant
code --install-extension bibhasdn.django-html
code --install-extension bungcip.better-toml
code --install-extension castwide.solargraph
code --install-extension DavidAnson.vscode-markdownlint
vormir:96a892fd-5880-4a54-8ee5-331db2121d64
ceres:cc778f55-c1f3-4c4d-841b-52f9afe6b658
cron: f7fcd9e0-f457-445d-8bc0-f087327bc4ca
helheim: 47dc86b8-1ba9-4660-baf0-96afb5470f3f
niflheim: aef57b94-c555-481f-a09e-865597a969b4
asgard: c4473c47-7682-401c-9d1d-220a3738211b
[ 4227.610403] arm-smmu 12000000.iommu: Unhandled context fault: iova=0x00000000, fsynr=0x220001, cb=19, sid=7(0x7 - NVENC), pgd=0, pud=0, pmd=0, pte=0
[ 4227.623764] (255) csr_nvencsrd: EMEM address decode error
[ 4227.629215] status = 0x2032701c; addr = 0x3ffffffc0
[ 4227.630673] falcon 154c0000.nvenc: SYNCPT_ID 21
[ 4227.630675] falcon 154c0000.nvenc: SYNCPT_VAL 54
[ 4227.630677] falcon 154c0000.nvenc: FIRST_GET 0x9d0
[ 4227.630678] falcon 154c0000.nvenc: TIMEOUT 10000
[ 4227.630680] falcon 154c0000.nvenc: NUM_SLOTS 11
[ 4227.630682] falcon 154c0000.nvenc: NUM_HANDLES 17
[ 4227.630686] falcon 154c0000.nvenc: SYNCPT_ID 21
0:00:00.044851838  363 0x5586436d20 WARN   omx gstomx.c:2836:plugin_init: Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /root/.config:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
0:00:00.044966430  363 0x5586436d20 INFO   omx gstomx.c:2841:plugin_init: Using default configuration
Setting pipeline to PAUSED ...
0:00:00.057568661  363 0x5586436d20 INFO   omx gstomx.c:757:gst_omx_component_free:<autovideosink0-actual-sink-nvoverlay> Unloading component 0x558645ea50 yuv420
0:00:00.057629909  363 0x5586436d20 INFO   omx gstomx.c:1832:gst_omx_port_deallocate_buffers_unlocked:<autovideosink0-actual-sink-nvoverlay> Deallocating buffers of yuv420
import websockets
import asyncio
import threading
from threading import RLock, Thread
from enum import Enum
from time import sleep as sleep
import ssl
lock = threading.RLock()
FROM debian:stretch-backports
ARG GST_VERSION=master
ARG PREFIX=/usr
RUN apt-get update && apt-get install -y --no-install-recommends \
autoconf `# libnice` \
automake `# libnice` \
autotools-dev \
autopoint \
bison \
wait4(-1, 0:00:00.012423551 495 0x5623afbc1610 DEBUG shmsrc gstshmsrc.c:242:gst_shm_src_start_reading:<shmsrc0> Opening socket /tmp/socket
0:00:00.012716703 495 0x5623afb94400 LOG shmsrc gstshmsrc.c:355:gst_shm_src_create:<shmsrc0> Reading from pipe
0:00:00.019588373 495 0x5623afb94400 LOG shmsrc gstshmsrc.c:355:gst_shm_src_create:<shmsrc0> Reading from pipe
0:00:00.019606394 495 0x5623afb94400 LOG shmsrc gstshmsrc.c:367:gst_shm_src_create:<shmsrc0> Got buffer 0x7f685e1a8000 of size 951
0:00:00.019687150 495 0x5623afb94400 LOG shmsrc gstshmsrc.c:310:free_buffer: Freeing buffer 0x7f685e1a8000
ERROR: from element /GstPipeline:pipeline0/GstShmSrc:shmsrc0: Internal data stream erro