Skip to content

Batch failed timeout in full tunnel #307

Closed

Description

@miladmeidanshahi

I'm using two accounts with full tunnel deployment and both account has same TUNNEL_AUTH_KEY and AUTH_KEY value point to TUNNEL_SERVER_URL but still has error and getting time out! why?

2026-04-27T08:18:42.808773Z  INFO dispatch www.google.com:443 -> full tunnel (via batch mux)
2026-04-27T08:18:42.810979Z  INFO dispatch whatismyipaddress.com:443 -> full tunnel (via batch mux)
2026-04-27T08:18:47.998420Z  INFO batch: 2 ops → AKfycbwK, rtt=5.178690626s
2026-04-27T08:18:47.998477Z ERROR tunnel connect_data error for whatismyipaddress.com:443: missing response in batch
2026-04-27T08:18:47.998548Z ERROR tunnel connect_data error for www.google.com:443: missing response in batch
2026-04-27T08:18:48.000070Z  INFO dispatch whatismyipaddress.com:443 -> full tunnel (via batch mux)
2026-04-27T08:18:48.000303Z  INFO dispatch www.google.com:443 -> full tunnel (via batch mux)
2026-04-27T08:18:52.037701Z  INFO batch: 2 ops → AKfycbwx, rtt=4.026983046s
2026-04-27T08:18:52.037749Z  INFO tunnel session bfe28282-fb41-4806-a838-6ad3b4f82978 opened for www.google.com:443
2026-04-27T08:18:52.037815Z  INFO tunnel session 7fd48806-42eb-4b10-aba3-700e31ec09a8 opened for whatismyipaddress.com:443
2026-04-27T08:18:54.245822Z  INFO batch: 2 ops → AKfycbwK, rtt=2.196324937s
2026-04-27T08:19:04.256046Z  INFO batch: 1 ops → AKfycbwx, rtt=10.000574859s
2026-04-27T08:19:04.256064Z  WARN batch failed: timeout
2026-04-27T08:19:04.256093Z  INFO tunnel session 7fd48806-42eb-4b10-aba3-700e31ec09a8 closed for whatismyipaddress.com:443
2026-04-27T08:19:05.285510Z  INFO dispatch whatismyipaddress.com:443 -> full tunnel (via batch mux)
2026-04-27T08:19:10.460895Z  INFO batch: 1 ops → AKfycbwK, rtt=16.12385429s
2026-04-27T08:19:10.460914Z  WARN batch failed: timeout
2026-04-27T08:19:10.460947Z  INFO tunnel session bfe28282-fb41-4806-a838-6ad3b4f82978 closed for www.google.com:443
2026-04-27T08:19:14.084106Z  INFO batch: 1 ops → AKfycbwx, rtt=3.613827194s
2026-04-27T08:19:15.664411Z  INFO batch: 1 ops → AKfycbwx, rtt=11.399190819s
2026-04-27T08:19:15.664430Z  WARN batch failed: timeout
2026-04-27T08:19:16.574451Z  INFO batch: 1 ops → AKfycbwK, rtt=11.279373181s
2026-04-27T08:19:16.574475Z  WARN batch failed: timeout
2026-04-27T08:19:16.574510Z ERROR tunnel connect_data error for whatismyipaddress.com:443: timeout
2026-04-27T08:19:16.575936Z  INFO dispatch whatismyipaddress.com:443 -> full tunnel (via batch mux)
2026-04-27T08:19:18.655923Z  INFO batch: 1 ops → AKfycbwK, rtt=2.069436682s
2026-04-27T08:19:18.655947Z ERROR tunnel connect_data error for whatismyipaddress.com:443: missing response in batch
2026-04-27T08:19:18.671687Z  INFO dispatch www.google.com:443 -> full tunnel (via batch mux)
2026-04-27T08:19:19.681538Z  INFO dispatch whatismyipaddress.com:443 -> full tunnel (via batch mux)
2026-04-27T08:19:19.691119Z  INFO batch: 1 ops → AKfycbwK, rtt=70.12µs
2026-04-27T08:19:19.691126Z  WARN batch failed: io: peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eof
2026-04-27T08:19:19.691136Z ERROR tunnel connect_data error for whatismyipaddress.com:443: io: peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eof
2026-04-27T08:19:19.691567Z  INFO dispatch whatismyipaddress.com:443 -> full tunnel (via batch mux)
2026-04-27T08:19:20.595399Z  INFO batch: 1 ops → AKfycbwx, rtt=1.914187818s
2026-04-27T08:19:20.595468Z  INFO tunnel session c0985052-f289-46d4-a7c6-5de82e48fdb6 opened for www.google.com:443
2026-04-27T08:19:22.759500Z  INFO batch: 1 ops → AKfycbwK, rtt=2.152357589s
2026-04-27T08:19:29.891687Z  INFO batch: 1 ops → AKfycbwx, rtt=10.190652176s
2026-04-27T08:19:29.891708Z  WARN batch failed: timeout
2026-04-27T08:19:29.891735Z ERROR tunnel connect_data error for whatismyipaddress.com:443: timeout
2026-04-27T08:19:33.027228Z  INFO batch: 1 ops → AKfycbwx, rtt=10.178277175s
2026-04-27T08:19:33.027248Z  WARN batch failed: timeout
2026-04-27T08:19:33.027278Z  INFO tunnel session c0985052-f289-46d4-a7c6-5de82e48fdb6 closed for www.google.com:443
2026-04-27T08:19:34.915885Z  INFO dispatch whatismyipaddress.com:443 -> full tunnel (via batch mux)
2026-04-27T08:19:37.115922Z  INFO batch: 1 ops → AKfycbwK, rtt=4.079433006s
2026-04-27T08:19:52.392149Z  INFO dispatch mtalk.google.com:5228 -> full tunnel (via batch mux)
2026-04-27T08:19:53.491416Z  INFO batch: 1 ops → AKfycbwx, rtt=18.566134752s
2026-04-27T08:19:53.491435Z  WARN batch failed: timeout
2026-04-27T08:19:53.491460Z ERROR tunnel connect_data error for whatismyipaddress.com:443: timeout
2026-04-27T08:19:53.492453Z  INFO dispatch whatismyipaddress.com:443 -> full tunnel (via batch mux)
2026-04-27T08:19:54.637625Z  INFO dispatch b1.nel.goog:443 -> full tunnel (via batch mux)
2026-04-27T08:19:57.066622Z  INFO batch: 1 ops → AKfycbwK, rtt=2.41860119s
2026-04-27T08:19:57.066698Z  INFO tunnel session 0f1edf89-902e-4d4c-bd3d-8ee461797eb5 opened for b1.nel.goog:443
2026-04-27T08:20:02.404425Z  INFO batch: 1 ops → AKfycbwK, rtt=10.001861953s
2026-04-27T08:20:02.404445Z  WARN batch failed: timeout
2026-04-27T08:20:02.404470Z ERROR tunnel connect_data error for mtalk.google.com:5228: timeout
2026-04-27T08:20:02.405576Z  INFO dispatch mtalk.google.com:5228 -> full tunnel (via batch mux)
2026-04-27T08:20:03.680185Z  INFO batch: 1 ops → AKfycbwx, rtt=10.177292934s
2026-04-27T08:20:03.680242Z  WARN batch failed: timeout
2026-04-27T08:20:03.680274Z ERROR tunnel connect_data error for whatismyipaddress.com:443: timeout
2026-04-27T08:20:03.691271Z  INFO dispatch www.google.com:443 -> full tunnel (via batch mux)
2026-04-27T08:20:07.086692Z  INFO batch: 1 ops → AKfycbwx, rtt=10.001102692s
2026-04-27T08:20:07.086711Z  WARN batch failed: timeout
2026-04-27T08:20:07.086741Z  INFO tunnel session 0f1edf89-902e-4d4c-bd3d-8ee461797eb5 closed for b1.nel.goog:443
2026-04-27T08:20:07.598175Z  INFO batch: 1 ops → AKfycbwx, rtt=3.897423788s
2026-04-27T08:20:07.598243Z  INFO tunnel session e36707e0-7deb-4814-8261-26d7f8ed0d61 opened for www.google.com:443
2026-04-27T08:20:08.817573Z  INFO batch: 1 ops → AKfycbwK, rtt=1.721606103s
2026-04-27T08:20:14.023427Z  INFO batch: 1 ops → AKfycbwK, rtt=11.606839419s
2026-04-27T08:20:14.023447Z  WARN batch failed: timeout
2026-04-27T08:20:14.023475Z ERROR tunnel connect_data error for mtalk.google.com:5228: timeout
2026-04-27T08:20:17.610756Z  INFO batch: 1 ops → AKfycbwx, rtt=10.001904083s
2026-04-27T08:20:17.610776Z  WARN batch failed: timeout
2026-04-27T08:20:17.610818Z  INFO tunnel session e36707e0-7deb-4814-8261-26d7f8ed0d61 closed for www.google.com:443
2026-04-27T08:20:19.273477Z  INFO batch: 1 ops → AKfycbwK, rtt=1.65346121s%                                                                                                                   

Activity

  1. therealaleph commented on Apr 27, 2026

    @therealaleph
    Owner

    @miladmeidanshahi — missing response in batch در Full mode = mhrv-rs یه batch فرستاده با N ops، Apps Script پاسخ داده ولی response array برای session مشخص شما در پاسخ نبود. مهم‌ترین علل:

    ۱. Apps Script outbound به tunnel-node fail شده برای اون session خاص

    batch با ۲ op فرستادید (www.google.com:443 و whatismyipaddress.com:443). یکی از op‌ها (whatismyipaddress) برای tunnel-node مال شما در دسترس نبود. ممکنه:

    • VPS network temporary glitch
    • tunnel-node container restart شده
    • TUNNEL_AUTH_KEY در CodeFull.gs با container env var match نمی‌کنه

    ۲. CodeFull.gs قدیمی — اگه از Code.gs (apps_script-mode version) به‌اشتباه استفاده می‌کنید به‌جای CodeFull.gs، op‌ها partial process می‌شن.

    ۳. Response timeout در Apps Script side

    اگه tunnel-node response خیلی طول کشید (>۶۰s edge timeout مثل #300)، Apps Script برمی‌گرده با response truncated.

    برای تشخیص:

    ۱. Direct curl به Apps Script:

    curl -X POST "https://script.google.com/macros/s/AKfycbwK.../exec" \
      -H "Content-Type: application/json" \
      -d '{"k":"YOUR_AUTH_KEY","q":[{"op":"connect","host":"whatismyipaddress.com","port":443}]}' \
      --max-time 15

    نتیجه:

    • {"r":[{"sid":"...","s":200,...}]} → tunnel-node OK
    • {"r":[{"e":"connect failed: ..."}]} → tunnel-node نتونست connect بشه به whatismyipaddress
    • {"e":"unauthorized"} → AUTH_KEY mismatch بین config + Code.gs
    • HTML page → CodeFull.gs احتمالاً deploy نشده، Code.gs (apps_script version) بجاش هست

    ۲. Log VPS tunnel-node:

    ssh root@your-vps
    docker logs --tail 100 mhrv-tunnel | grep -E "connect|failed|error"

    اگه می‌بینی connect www.google.com OK ولی connect whatismyipaddress FAILED, تشخیص یعنی tunnel-node نتونست به whatismyipaddress برسه (probably VPS DNS or routing issue).

    ۳. cross-deployment check

    شما گفتید دو deployment با همون AUTH_KEY + TUNNEL_AUTH_KEY. اون‌ها هر دو روی همون پروژه Apps Script (یعنی همون CodeFull.gs) deploy شدن، یا رو پروژه‌های مختلف؟ اگه پروژه‌های مختلف، حتماً هر دو CodeFull.gs دارن (نه Code.gs)؟

    AKfycbwK فقط یک deployment ID در log هست — شاید فقط یکی استفاده می‌شه. اگه فقط یکی استفاده می‌شه، می‌تونیم به اون focus کنیم.

    اطلاعات بدید (results curl + container log + version mhrv-rs) تا narrow کنیم.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  2. therealaleph commented on May 15, 2026

    @therealaleph
    Owner

    Closing this for now because there has not been a follow-up from the original reporter for more than 7 days.

    If this is still happening on the latest release, please comment here or reopen with the current version, mode, relevant config shape, and fresh logs.


    Answered via LLM, Supervised @therealaleph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions