Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrbStack proxy error: tls: first record does not look like a TLS handshake #1769

Open
xmlking opened this issue Feb 7, 2025 · 2 comments
Open
Labels
t/bug Something isn't working

Comments

@xmlking
Copy link

xmlking commented Feb 7, 2025

Describe the bug

I am using orbstack Version 1.9.5 (18849) on MacOS 15.3

I am trying to use domains and HTTPS with docker compose, but it seams not working, I also verified my mac have OrbStack Root Cert

502 Bad Gateway
OrbStack proxy error: tls: first record does not look like a TLS handshake

To Reproduce

docker compose up with

services:
  ###########################################################################
  # postgres database
  ###########################################################################
  postgres:
    image: postgres:17-alpine
    hostname: postgres
    container_name: postgres
    restart: unless-stopped
    ports:
      - '5432:5432'
    volumes:
      - pg_data:/var/lib/postgresql/data
      - ./infra/init-data.sh:/docker-entrypoint-initdb.d/init-data.sh:Z
    environment:
      - POSTGRES_USER
      - POSTGRES_PASSWORD
      - POSTGRES_DB
      - POSTGRES_NON_ROOT_USER
      - POSTGRES_NON_ROOT_PASSWORD
    healthcheck:
      test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
      interval: 5s
      timeout: 5s
      retries: 10

  ###########################################################################
  # n8n is an extendable workflow automation tool.
  # documentation: https://n8n.io
  ###########################################################################
  n8n:
    image: docker.n8n.io/n8nio/n8n
    container_name: n8n
    restart: always
    links:
      - postgres
    environment:
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgres
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
      - DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
      - DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
      - NODE_ENV=production
      - N8N_PORT=443
      - N8N_PROTOCOL=https
      - N8N_HOST=n8n.${COMPOSE_PROJECT_NAME}.orb.local
      - WEBHOOK_URL=https://n8n.${COMPOSE_PROJECT_NAME}.orb.local
      - GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
    volumes:
      - n8n-data:/home/node/.n8n
    depends_on:
      postgres:
        condition: service_healthy


###########################################################################
# volumes
###########################################################################
volumes:
  pg_data: {}
  n8n-data: {}

Expected behavior

I should able to access the app at https://n8n.agentic.orb.local/ but getting OrbStack proxy error error

Diagnostic report (REQUIRED)

OrbStack info:
Version: 1.9.5
Commit: 8276a76896800e4a12df9d35065c7458488ac010 (v1.9.5)

System info:
macOS: 15.3 (24D60)
CPU: arm64, 10 cores
CPU model: Apple M1 Max
Model: MacBookPro18,2
Memory: 64 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2025-02-07T05-06-20.943622Z.zip

Screenshots and additional context (optional)

Image Image Image
@xmlking xmlking added the t/bug Something isn't working label Feb 7, 2025
@xmlking
Copy link
Author

xmlking commented Feb 7, 2025

Image

@xmlking
Copy link
Author

xmlking commented Feb 7, 2025

the issue seems to be

  1. n8n showing wrong Editor URL on startup log and
  2. chrome browser excessive DNS caching :( I have to restart chrome to flesh cache)

n8n-io/n8n#13115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant