Created
September 26, 2024 13:57
-
-
Save dreamerns/5d081ae534f40c24e2e49fde263e629a to your computer and use it in GitHub Desktop.
api-server log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go mod download | |
go build -v | |
./api-server | |
INFO [15:31:50] Developer portal integration enabled: true env=local | |
INFO [15:31:50] Starting with Nomad integration: darwin env=local | |
INFO [15:31:50] creating the tables (if not created) env=local | |
INFO [15:31:50] NomadActionLoopInterface listening for standard events... env=local | |
INFO [15:31:50] NomadActionLoopInterface listening for serialized events... env=local | |
INFO [15:31:50] creating the tables (if not created) env=local | |
INFO [15:31:50] creating the tables (if not created) env=local | |
external [GET]: '/v1/auth' has 4 middlewares | |
external [GET]: '/v1/extensions' has 4 middlewares | |
external [POST]: '/v1/extensions' has 4 middlewares | |
external [DELETE]: '/v1/extensions' has 4 middlewares | |
external [GET]: '/v1/extensions/{id}' has 4 middlewares | |
external [GET]: '/v1/openapi-3.0.json' has 4 middlewares | |
external [GET]: '/v1/openapi-3.0.yaml' has 4 middlewares | |
external [GET]: '/v1/openapi.json' has 4 middlewares | |
external [GET]: '/v1/openapi.yaml' has 4 middlewares | |
external [GET]: '/v1/profiles' has 4 middlewares | |
external [POST]: '/v1/profiles' has 4 middlewares | |
external [DELETE]: '/v1/profiles' has 4 middlewares | |
external [POST]: '/v1/sessions' has 4 middlewares | |
external [GET]: '/v1/sessions' has 4 middlewares | |
external [DELETE]: '/v1/sessions/{id}' has 4 middlewares | |
external [GET]: '/v1/sessions/{id}' has 4 middlewares | |
external [GET]: '/v1/sessions/{id}/events' has 4 middlewares | |
external [GET]: '/v1/sessions/{sessionId}/windows/{windowId}/get-window-info' has 4 middlewares | |
external [POST]: '/v1/sessions/{sessionId}/windows/{windowId}/prompt-content' has 4 middlewares | |
external [GET]: '/v1/sessions/{sessionId}/windows/{windowId}/scrape-content' has 4 middlewares | |
external [POST]: '/v1/sessions/{sessionId}/windows/{windowId}/summarize-content' has 4 middlewares | |
internal [POST]: '/check-live-sessions' has 4 middlewares | |
internal [POST]: '/clean-sessions' has 4 middlewares | |
internal [POST]: '/get-live-sessions' has 4 middlewares | |
internal [GET]: '/health' has 4 middlewares | |
internal [POST]: '/redeploy-bwm' has 4 middlewares | |
internal [POST]: '/signal-sfu-failed' has 4 middlewares | |
internal [POST]: '/token/' has 5 middlewares | |
internal [POST]: '/token/validate' has 5 middlewares | |
internal [POST]: '/update-bwm-last-active' has 4 middlewares | |
internal [POST]: '/v1/api-keys/validate' has 5 middlewares | |
internal [GET]: '/v1/auth' has 5 middlewares | |
internal [POST]: '/v1/bwm-status' has 5 middlewares | |
internal [GET]: '/v1/openapi-3.0.json' has 5 middlewares | |
internal [GET]: '/v1/openapi-3.0.yaml' has 5 middlewares | |
internal [GET]: '/v1/openapi.json' has 5 middlewares | |
internal [GET]: '/v1/openapi.yaml' has 5 middlewares | |
internal [DELETE]: '/v1/sessions' has 5 middlewares | |
internal [GET]: '/v1/sessions/{id}' has 5 middlewares | |
internal [POST]: '/v1/sessions/{id}/broadcast-status' has 5 middlewares | |
internal [POST]: '/v1/sessions/{id}/status' has 5 middlewares | |
internal [POST]: '/v1/tokens/live-view-client' has 5 middlewares | |
internal [POST]: '/v1/tokens/live-view-client/validate' has 5 middlewares | |
internal [POST]: '/v1/tokens/validate-live-view' has 5 middlewares | |
INFO [15:31:50] listening on :8083 internal, :8082 external env=local | |
INFO [15:35:11] got request to create browser env=local | |
INFO [15:35:11] Creating session with config: { 10 false []} env=local | |
INFO [15:35:11] Session created: &{e8557052-01ea-4b8c-a62b-f0c12321eec4} env=local | |
INFO [15:35:11] got CreateSession request: { 10 false []} env=local, function=CreateSession, orgId=56a626c4-0dcd-4fd3-81f0-43b733b31e5b, type=resolver, userId=<nil> | |
INFO [15:35:11] Creating BWM with sessionId e8557052-01ea-4b8c-a62b-f0c12321eec4 in org 56a626c4-0dcd-4fd3-81f0-43b733b31e5b env=local | |
INFO [15:35:11] got queue message: e8557052-01ea-4b8c-a62b-f0c12321eec4 0 env=local, function=listenSerialized, orgId=<nil>, type=actionloop, userId=e8557052-01ea-4b8c-a62b-f0c12321eec4 | |
WARNING [15:35:11] error unmarshalling config for e8557052-01ea-4b8c-a62b-f0c12321eec4: unexpected end of JSON input env=local | |
INFO [15:35:11] checking slot 14 env=local | |
WARNING [15:35:11] error unmarshalling config for e8557052-01ea-4b8c-a62b-f0c12321eec4: unexpected end of JSON input env=local | |
INFO [15:35:11] got CreateLiveViewToken request: e8557052-01ea-4b8c-a62b-f0c12321eec4 env=local, function=CreateLiveViewToken, orgId=56a626c4-0dcd-4fd3-81f0-43b733b31e5b, type=resolver, userId=<nil> | |
INFO [15:35:11] Request ID: dGNT1eRcJs env=local | |
INFO [15:35:11] Meta: &{RequestId:dGNT1eRcJs} env=local | |
INFO [15:35:11] reserved slot 14 on node switchboard for BWM e8557052-01ea-4b8c-a62b-f0c12321eec4 env=local, function=ReserveOpenSlot, orgId=<nil>, type=database, userId=e8557052-01ea-4b8c-a62b-f0c12321eec4 | |
INFO [15:35:11] Added SFU 127.0.0.1:3001 assignment for BWM e8557052-01ea-4b8c-a62b-f0c12321eec4 env=local, function=AssignBwmSfu, orgId=<nil>, type=database, userId=e8557052-01ea-4b8c-a62b-f0c12321eec4 | |
tpl: job "bwm-e8557052-01ea-4b8c-a62b-f0c12321eec4" { | |
type = "batch" | |
priority = 100 | |
datacenters = ["private-us-east-2"] | |
group "bwm" { | |
constraint { | |
attribute = "${node.unique.name}" | |
value = "switchboard" | |
} | |
task "setup-profile" { | |
driver = "raw_exec" | |
user = "root" | |
lifecycle { | |
hook = "prestart" | |
sidecar = false | |
} | |
config { | |
command = "/bin/bash" | |
args = [ | |
] | |
} | |
env { | |
AWS_ENV = "local" | |
BWM_ID = "e8557052-01ea-4b8c-a62b-f0c12321eec4" | |
USER_ID = "e8557052-01ea-4b8c-a62b-f0c12321eec4" | |
} | |
resources { | |
cpu = 50 | |
cores = 0 | |
memory = 50 | |
memory_max = 40960 | |
disk = 0 | |
} | |
} | |
task "teardown-profile" { | |
driver = "raw_exec" | |
user = "root" | |
lifecycle { | |
hook = "poststop" | |
sidecar = false | |
} | |
config { | |
command = "/bin/bash" | |
args = [ | |
] | |
} | |
env { | |
AWS_ENV = "local" | |
BWM_ID = "e8557052-01ea-4b8c-a62b-f0c12321eec4" | |
USER_ID = "e8557052-01ea-4b8c-a62b-f0c12321eec4" | |
CONSUL_TOKEN = "" | |
PRIMARY_REGION = "us-east-2" | |
} | |
resources { | |
cpu = 50 | |
cores = 0 | |
memory = 50 | |
memory_max = 40960 | |
disk = 0 | |
} | |
} | |
task "bwm" { | |
driver = "docker" | |
config { | |
args = [ | |
"--user-data-dir=/profile", | |
"--load-extension=/usr/local/bin/dist", | |
"--allowlisted-extension-id=kfacnafhbhilnehfgcibnopmbljfpilb", | |
"--kiosk", | |
"--ozone-platform=bwm", | |
"--disable-dev-shm-usage", | |
"--enable-logging=stderr", | |
"--disable-features=PreloadMediaEngagementData,MediaEngagementBypassAutoplayPolicies", | |
"--remote-allow-origins=http://localhost:9222", | |
"--remote-debugging-port=9222", | |
"--silent-debugger-extension-api", | |
"--disable-gpu", | |
"about:blank" | |
] | |
cap_add = ["sys_admin", "sys_chroot"] | |
command = "/usr/local/bin/bwm/deck/chrome" | |
cpu_hard_limit = true | |
image = "docker-bwm:local" | |
memory_hard_limit = 1024 | |
network_mode = "host" | |
volumes = [ | |
"/Users/nikola/code/monarch/cb2/chromium/src/deck:/usr/local/bin/bwm/deck", | |
"/Users/nikola/code/monarch/cb2/packages/bwm-chromium-extension/dist:/usr/local/bin/dist", | |
"/Users/nikola/bwm_profile/e8557052-01ea-4b8c-a62b-f0c12321eec4:/profile", | |
"/Users/nikola/code/monarch/cb2/packages/bwm-chromium-extension-bridge:/usr/local/bin/extension", | |
"static/bwm-params.json:/usr/local/bin/bwm-params.json", | |
"static/ai.airtop.extension_bridge.json:/etc/chromium/native-messaging-hosts/ai.airtop.extension_bridge.json" | |
] | |
} | |
template { | |
destination = "static/bwm-params.json" | |
data = <<EOF | |
{ | |
"SFU_SOCKET_PATH": "ws://host.docker.internal:3001/sfu_127.0.0.1_3001/", | |
"BWM_ID": "e8557052-01ea-4b8c-a62b-f0c12321eec4", | |
"USER_ID": "e8557052-01ea-4b8c-a62b-f0c12321eec4", | |
"AUTH_TOKEN": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik54ZHkxbTQ3MDA4Vm80NG9RNHdUQzJCOF9tZyJ9.eyJhdWQiOiJjYjIvYXBpLXNlcnZlciIsImV4cCI6MTcyNzM3MjExMSwiaWF0IjoxNzI3MzU3NzExLCJpc3MiOiJodHRwOi8vbG9jYWxkZXYuYWlydG9wLmFpIiwianRpIjoiNDUxNjQ4MjQtYmIxMC00OTAzLWJlYTctNzQ4NTk0ZWQ0ZWI5IiwiYXV0aF92ZXJzaW9uIjoiYndtLjIiLCJjb25maWd1cmVkX3R0bF9zZWNzIjoxNDQwMCwicHJvdmlkZXIiOiJjYjIvYXBpLXNlcnZlciIsInNlc3Npb25faWQiOiJlODU1NzA1Mi0wMWVhLTRiOGMtYTYyYi1mMGMxMjMyMWVlYzQifQ.XKk4jlXwcvgwnrdkL961J_lbR8C0SwKvJjLkz8KQ-JsZU3uEntOTYqqF0AYghRoPUq_QqnWY7b8SLfYIa-NyvNpEjHgLvdoQBeGHoqkzmWEzdvVEVB6lVXm6zW4g1i7IMPMEsdkx-d_CfdLU2E4-0PkWJiCpW3YQ27GH125fZE-S6fwdD1l5D-YjY5JfzOvPTL9HnYq1G4GWME5AOXr7-Fw5d8qB8QgaAClDQp20BAq-KZbZ8h9-Fb25FlQFbFQwurAMf2Q5aS7o0yzflwBc86lWvrqoCDODpgqofS4fBUNvpvSnCPPd4BrIRSPb94iKBd4xP93MdIAn_fFU3OcUPw", | |
"IS_ACCELERATED": "false" | |
} | |
EOF | |
} | |
template { | |
destination = "static/ai.airtop.extension_bridge.json" | |
data = <<EOF | |
{ | |
"name": "ai.airtop.extension_bridge", | |
"description": "Airtop Extension Bridge", | |
"path": "/usr/local/bin/extension/extension-bridge", | |
"type": "stdio", | |
"allowed_origins": [ | |
"chrome-extension://kfacnafhbhilnehfgcibnopmbljfpilb/" | |
] | |
} | |
EOF | |
} | |
env { | |
BWM_ID = "e8557052-01ea-4b8c-a62b-f0c12321eec4" | |
USER_ID = "e8557052-01ea-4b8c-a62b-f0c12321eec4" | |
SFU_SOCKET_PATH = "ws://host.docker.internal:3001/sfu_127.0.0.1_3001/" | |
FONTCONFIG_PATH = "/etc/fonts" | |
MTLS_ENABLED = "true" | |
AWS_REGION = "us-east-2" | |
AWS_ENV = "local" | |
TZ = "" | |
CONSUL_TOKEN = "" | |
STATSD_PORT = "8125" | |
PRIMARY_REGION = "us-east-2" | |
AUTH_TOKEN = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik54ZHkxbTQ3MDA4Vm80NG9RNHdUQzJCOF9tZyJ9.eyJhdWQiOiJjYjIvYXBpLXNlcnZlciIsImV4cCI6MTcyNzM3MjExMSwiaWF0IjoxNzI3MzU3NzExLCJpc3MiOiJodHRwOi8vbG9jYWxkZXYuYWlydG9wLmFpIiwianRpIjoiNDUxNjQ4MjQtYmIxMC00OTAzLWJlYTctNzQ4NTk0ZWQ0ZWI5IiwiYXV0aF92ZXJzaW9uIjoiYndtLjIiLCJjb25maWd1cmVkX3R0bF9zZWNzIjoxNDQwMCwicHJvdmlkZXIiOiJjYjIvYXBpLXNlcnZlciIsInNlc3Npb25faWQiOiJlODU1NzA1Mi0wMWVhLTRiOGMtYTYyYi1mMGMxMjMyMWVlYzQifQ.XKk4jlXwcvgwnrdkL961J_lbR8C0SwKvJjLkz8KQ-JsZU3uEntOTYqqF0AYghRoPUq_QqnWY7b8SLfYIa-NyvNpEjHgLvdoQBeGHoqkzmWEzdvVEVB6lVXm6zW4g1i7IMPMEsdkx-d_CfdLU2E4-0PkWJiCpW3YQ27GH125fZE-S6fwdD1l5D-YjY5JfzOvPTL9HnYq1G4GWME5AOXr7-Fw5d8qB8QgaAClDQp20BAq-KZbZ8h9-Fb25FlQFbFQwurAMf2Q5aS7o0yzflwBc86lWvrqoCDODpgqofS4fBUNvpvSnCPPd4BrIRSPb94iKBd4xP93MdIAn_fFU3OcUPw" | |
NV_ENCODER_CONFIG = "eyJlbmNvZGVDb25maWciOnsiZ29wTGVuZ3RoIjowLCJoMjY0Q29uZmlnIjp7InJlcGVhdFNQU1BQUyI6MX0sInJjUGFyYW1zIjp7Im11bHRpUGFzcyI6IlFVQVJURVIiLCJyYXRlQ29udHJvbE1vZGUiOiJDQlIiLCJ2YnZCdWZmZXJTaXplIjoxNjY2NjYsImF2ZXJhZ2VCaXRSYXRlIjozMDAwMDAwLCJlbmFibGVBUSI6MSwibG93RGVsYXlLZXlGcmFtZVNjYWxlIjoxfX0sInByZXNldCI6InAzIiwicHJvZmlsZSI6ImJhc2VsaW5lIiwidHVuaW5naW5mbyI6InVsdHJhbG93bGF0ZW5jeSIsImVuYWJsZVBURCI6MX0=" | |
HOME = "/home/ubuntu" | |
ENABLE_TLS = "true" | |
SLOT = "14" | |
} | |
resources { | |
cpu = 3400 | |
cores = 0 | |
memory = 1024 | |
memory_max = 1024 | |
disk = 0 | |
} | |
} | |
task "cdp-fwd" { | |
lifecycle { | |
hook = "prestart" | |
sidecar = true | |
} | |
driver = "docker" | |
config { | |
image = "nginxinc/nginx-unprivileged:bookworm-perl" | |
network_mode = "host" | |
volumes = [ | |
"local:/etc/nginx/conf.d", | |
"js:/etc/nginx/js", | |
"conf/nginx.conf:/etc/nginx/nginx.conf", | |
] | |
} | |
template { | |
destination = "conf/nginx.conf" | |
data = <<EOF | |
load_module modules/ngx_http_js_module.so; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log notice; | |
pid /tmp/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
proxy_temp_path /tmp/proxy_temp; | |
client_body_temp_path /tmp/client_temp; | |
fastcgi_temp_path /tmp/fastcgi_temp; | |
uwsgi_temp_path /tmp/uwsgi_temp; | |
scgi_temp_path /tmp/scgi_temp; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log /var/log/nginx/access.log main; | |
sendfile on; | |
#tcp_nopush on; | |
keepalive_timeout 65; | |
#gzip on; | |
include /etc/nginx/conf.d/*.conf; | |
} | |
EOF | |
} | |
template { | |
destination = "js/getCdp.js" | |
data = <<EOF | |
function toHex(str) { | |
return Array.from(str) | |
.map((char) => char.charCodeAt(0).toString(16).padStart(2, '0')) | |
.join(''); | |
} | |
function fromHex(hex) { | |
return hex | |
.match(/.{1,2}/g) | |
.map((byte) => String.fromCharCode(parseInt(byte, 16))) | |
.join(''); | |
} | |
async function cdpwsHandler(req) { | |
try { | |
const reply = await req.subrequest('/auth-cdpws'); | |
if (Math.floor(reply.status / 100) === 2) { | |
const reply2 = await req.subrequest('/redirect-cdpws'); | |
if (reply2.status === 200) { | |
const body = reply2.responseText; | |
var json = JSON.parse(body); | |
const redirectUrl = json.webSocketDebuggerUrl.replace('ws://', 'http://'); | |
req.error('redirect to: ' + redirectUrl); | |
// Set the NGINX header to be used in proxy_pass | |
req.headersOut['x-target-url'] = redirectUrl; | |
req.return(200, redirectUrl); | |
} else { | |
req.error('Failed in redirect: ' + njs.dump(reply2)); | |
req.headersOut['x-auth-status'] = reply2.status; | |
req.headersOut['x-auth-response'] = toHex(reply2.responseText); | |
req.headersOut['x-target-url'] = 'http://mirror'; | |
req.return(200); | |
} | |
} else { | |
req.error('Failed auth in auth-api: ' + njs.dump(reply)); | |
req.headersOut['x-auth-status'] = reply.status; | |
req.headersOut['x-auth-response'] = toHex(reply.responseText); | |
req.headersOut['x-target-url'] = 'http://mirror'; | |
req.return(200); | |
} | |
} catch (e) { | |
req.error('request error:' + e); | |
req.return(500, e); | |
} | |
} | |
async function handler(req) { | |
try { | |
const reply = await req.subrequest('/auth-api-server'); | |
if (Math.floor(reply.status / 100) === 2) { | |
req.error('Successful auth in auth-api: ' + njs.dump(reply)); | |
req.headersOut['x-target-url'] = req.variables.redirect_on_success; | |
req.return(200); | |
} else { | |
req.error('Failed auth in auth-api: ' + njs.dump(reply)); | |
req.headersOut['x-auth-status'] = reply.status; | |
req.headersOut['x-auth-response'] = toHex(reply.responseText); | |
req.headersOut['x-target-url'] = 'http://mirror'; | |
req.return(200); | |
} | |
} catch (e) { | |
req.error('request error:' + e); | |
req.return(500, e); | |
} | |
} | |
async function mirror(req) { | |
req.error('Request: ' + njs.dump(req)); | |
req.return(Number(req.headersIn['x-auth-status']), fromHex(req.headersIn['x-auth-response'])); | |
} | |
export default { cdpwsHandler, mirror, handler }; | |
EOF | |
} | |
template { | |
data = <<EOF | |
upstream apiserver { | |
server host.docker.internal:8082; | |
} | |
upstream mirror { | |
server 127.0.0.1:8088; | |
} | |
log_format timing '$remote_addr - $remote_user [$time_local] "$request" ' | |
'status=$status target=$sent_http_x_target_url ' | |
'referrer="$http_referer"'; | |
js_import getCdp from /etc/nginx/js/getCdp.js; | |
server { | |
listen 8088; | |
location / { | |
js_content getCdp.mirror; | |
} | |
} | |
server { | |
listen 8089; | |
access_log /dev/fd/1 timing; | |
location = /health { | |
access_log off; | |
add_header 'Content-Type' 'application/json'; | |
return 200 '{"status":"OK"}'; | |
} | |
location ~ /cdp/(.*)$ { | |
set $call_type "CDP_INTERNAL"; | |
set $redirect_on_success "http://127.0.0.1:9222"; | |
auth_request /handler-api-server-auth; | |
auth_request_set $cdp_target $sent_http_x_target_url; | |
auth_request_set $auth_response $sent_http_x_auth_response; | |
auth_request_set $auth_status $sent_http_x_auth_status; | |
proxy_set_header X-AUTH-RESPONSE $auth_response; | |
proxy_set_header X-AUTH-STATUS $auth_status; | |
proxy_pass $cdp_target/$1$is_args$args; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} | |
location ~ /chromedriver/(.*)$ { | |
set $call_type "CHROMEDRIVER_INTERNAL"; | |
set $redirect_on_success "http://127.0.0.1:9515"; | |
auth_request /handler-api-server-auth; | |
auth_request_set $chromedriver_target $sent_http_x_target_url; | |
auth_request_set $auth_response $sent_http_x_auth_response; | |
auth_request_set $auth_status $sent_http_x_auth_status; | |
proxy_set_header X-AUTH-RESPONSE $auth_response; | |
proxy_set_header X-AUTH-STATUS $auth_status; | |
proxy_pass $chromedriver_target/$1$is_args$args; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} | |
location = /handler-api-server-auth { | |
js_content getCdp.handler; | |
proxy_pass_request_body off; | |
proxy_set_header Content-Length ""; | |
proxy_set_header X-Original-URI $request_uri; | |
proxy_set_header X-SESSION-ID $http_x_session_id; | |
proxy_set_header X-Call-Type $call_type; | |
proxy_http_version 1.1; | |
} | |
location /auth-api-server { | |
internal; | |
proxy_pass http://apiserver/v1/auth; | |
proxy_pass_request_body off; | |
proxy_set_header Content-Length ""; | |
proxy_set_header Authorization $http_authorization; | |
proxy_set_header X-SESSION-ID $http_x_session_id; | |
proxy_set_header X-Original-URI $request_uri; | |
proxy_set_header X-Call-Type $call_type; | |
proxy_set_header internal-api-secret "wamwaew39bbJDDCVGciUUmo2oLo6gTXb"; | |
} | |
location /cdpws { | |
auth_request /handler-cdpws; | |
auth_request_set $cdpws_target $sent_http_x_target_url; | |
auth_request_set $auth_response $sent_http_x_auth_response; | |
auth_request_set $auth_status $sent_http_x_auth_status; | |
proxy_set_header X-AUTH-RESPONSE $auth_response; | |
proxy_set_header X-AUTH-STATUS $auth_status; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $host; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_pass $cdpws_target$is_args$args; | |
} | |
location = /handler-cdpws { | |
js_content getCdp.cdpwsHandler; | |
proxy_pass_request_body off; | |
proxy_set_header Content-Length ""; | |
proxy_set_header X-Original-URI $request_uri; | |
proxy_http_version 1.1; | |
} | |
location /auth-cdpws { | |
internal; | |
proxy_pass http://apiserver/v1/auth; | |
proxy_pass_request_body off; | |
proxy_set_header Content-Length ""; | |
proxy_set_header Authorization $http_authorization; | |
proxy_set_header X-SESSION-ID $http_x_session_id; | |
proxy_set_header X-Original-URI $request_uri; | |
proxy_set_header X-Call-Type "CDPWS_INTERNAL"; | |
proxy_set_header internal-api-secret "wamwaew39bbJDDCVGciUUmo2oLo6gTXb"; | |
} | |
location /redirect-cdpws { | |
proxy_pass http://127.0.0.1:9222/json/version; | |
proxy_pass_request_body off; | |
proxy_set_header Content-Length ""; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_http_version 1.1; | |
} | |
} | |
EOF | |
destination = "local/load-balancer.conf" | |
change_mode = "signal" | |
change_signal = "SIGHUP" | |
} | |
} | |
} | |
meta { | |
run_uuid = "e8557052-01ea-4b8c-a62b-f0c12321eec4" | |
sfu = "127.0.0.1" | |
sfuPort = "3001" | |
version_sha = "local" | |
timestamp = "1727357711" | |
region = "us-east-2" | |
} | |
} | |
INFO [15:35:11] Waiting for bwm-e8557052-01ea-4b8c-a62b-f0c12321eec4:bwm:setup-profile status: 0 env=local | |
INFO [15:35:11] Waiting for bwm-e8557052-01ea-4b8c-a62b-f0c12321eec4:bwm:setup-profile status: 2 env=local | |
INFO [15:35:11] Waiting for bwm-e8557052-01ea-4b8c-a62b-f0c12321eec4 to be 0: is 0 env=local | |
INFO [15:35:11] successfully created BWM, deleting queue message env=local, function=createBwm, orgId=<nil>, type=actionloop, userId=e8557052-01ea-4b8c-a62b-f0c12321eec4 | |
INFO [15:35:12] got request to validate token env=local | |
INFO [15:35:12] got ValidateBwmToken request env=local, function=ValidateSession, orgId=<nil>, type=resolver, userId=<nil> | |
INFO [15:35:12] token is valid: true env=local | |
INFO [15:35:12] got request to validate token env=local | |
INFO [15:35:12] got ValidateBwmToken request env=local, function=ValidateSession, orgId=<nil>, type=resolver, userId=<nil> | |
INFO [15:35:12] token is valid: true env=local | |
INFO [15:35:13] got request to validate token env=local | |
INFO [15:35:13] got ValidateBwmToken request env=local, function=ValidateSession, orgId=<nil>, type=resolver, userId=<nil> | |
INFO [15:35:13] token is valid: true env=local | |
INFO [15:35:13] got UpdateSessionStatus request: e8557052-01ea-4b8c-a62b-f0c12321eec4, running env=local, function=UpdateSessionStatus, orgId=<nil>, type=resolver, userId=<nil> | |
INFO [15:35:13] got SessionStarted request: e8557052-01ea-4b8c-a62b-f0c12321eec4, 1727357713 env=local, function=SessionStarted, orgId=<nil>, type=resolver, userId=<nil> | |
INFO [15:35:13] Starting session with config: e8557052-01ea-4b8c-a62b-f0c12321eec4 env=local | |
INFO [15:35:13] got PublishSessionStatus request: e8557052-01ea-4b8c-a62b-f0c12321eec4, running, 1727357713 env=local, function=PublishSessionStatus, orgId=<nil>, type=resolver, userId=<nil> | |
INFO [15:35:17] got CreateLiveViewToken request: e8557052-01ea-4b8c-a62b-f0c12321eec4 env=local, function=CreateLiveViewToken, orgId=56a626c4-0dcd-4fd3-81f0-43b733b31e5b, type=resolver, userId=<nil> | |
INFO [15:35:17] Request ID: IIx7k0Bygg env=local | |
INFO [15:35:17] Meta: &{RequestId:IIx7k0Bygg} env=local | |
INFO [15:50:15] got std queue message: e8557052-01ea-4b8c-a62b-f0c12321eec4 3 env=local, function=listenStandard, orgId=<nil>, type=actionloop, userId=e8557052-01ea-4b8c-a62b-f0c12321eec4 | |
INFO [15:50:15] got queue message: e8557052-01ea-4b8c-a62b-f0c12321eec4 1 env=local, function=listenSerialized, orgId=<nil>, type=actionloop, userId=e8557052-01ea-4b8c-a62b-f0c12321eec4 | |
INFO [15:50:15] Removed slot 14 on node switchboard for BWM e8557052-01ea-4b8c-a62b-f0c12321eec4 env=local, function=RemoveSlotReservation, orgId=<nil>, type=database, userId=e8557052-01ea-4b8c-a62b-f0c12321eec4 | |
INFO [15:50:15] Waiting for bwm-e8557052-01ea-4b8c-a62b-f0c12321eec4 to be 1: is 0 env=local | |
INFO [15:50:15] Waiting for bwm-e8557052-01ea-4b8c-a62b-f0c12321eec4 to be 1: is 0 env=local | |
INFO [15:50:15] got UpdateSessionStatus request: e8557052-01ea-4b8c-a62b-f0c12321eec4, ended env=local, function=UpdateSessionStatus, orgId=<nil>, type=resolver, userId=<nil> | |
INFO [15:50:15] got SessionEnded request: e8557052-01ea-4b8c-a62b-f0c12321eec4, 1727358615 env=local, function=SessionEnded, orgId=<nil>, type=resolver, userId=<nil> | |
INFO [15:50:15] Ending session with config: e8557052-01ea-4b8c-a62b-f0c12321eec4 env=local | |
INFO [15:50:16] got PublishSessionStatus request: e8557052-01ea-4b8c-a62b-f0c12321eec4, ended, 1727358615 env=local, function=PublishSessionStatus, orgId=<nil>, type=resolver, userId=<nil> | |
INFO [15:50:16] Waiting for bwm-e8557052-01ea-4b8c-a62b-f0c12321eec4 to be 1: is 1 env=local | |
INFO [15:50:16] successfully deleted BWM, deleting queue message env=local, function=AtomicDeleteBwm, orgId=<nil>, type=actionloop, userId=e8557052-01ea-4b8c-a62b-f0c12321eec4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment