teldrive icon indicating copy to clipboard operation
teldrive copied to clipboard

[Bug]: QR Login And OTP Send Fail on Raspberry pi

Open bungabear opened this issue 2 months ago • 2 comments

Describe the bug

I've been using Teldrive with Docker on Windows, and I attempted to migrate it to a Raspberry Pi 3B+, but I'm unable to log in.

When attempting to log in via QR code or phone number, the WebSocket messages on web developer tools shows only a request is sent, but no response is received. And after 5 minutes elapsed, a error occurs in console

ERROR   error running telegram client   {"error": "start: create auth key: write SetClientDHParamsRequest: write: write intermediate: write tcp 192.168.0.80:59010->149.154.167.41:443: i/o timeout", "errorVerbose": "start:\n 
        github.com/gotd/td/mtproto.(*Conn).Run\n
        github.com/gotd/[email protected]/mtproto/conn.go:201\n
  - create auth key:\n
        github.com/gotd/td/mtproto.(*Conn).connect\n
        github.com/gotd/[email protected]/mtproto/connect.go:35\n
    - write SetClientDHParamsRequest:\n
        github.com/gotd/td/exchange.ClientExchange.Run\n
        github.com/gotd/[email protected]/exchange/client_flow.go:214\n
  - write:\n
        github.com/gotd/td/transport.(*connection).Send\n
        github.com/gotd/[email protected]/transport/connection.go:48\n
  - write intermediate:\n
        github.com/gotd/td/proto/codec.Intermediate.Write\n
        github.com/gotd/[email protected]/proto/codec/intermediate.go:64\n
  - write tcp 192.168.0.80:59010->149.154.167.41:443: i/o timeout"}

The symptoms are similar to those experienced when there is a time mismatch, but I have tried my best to adjust the time.

Repoduction

config.toml in ~/.teldrive/

[db]
data-source = "postgresql://postgre.../postgres"
prepare-stmt = false

[db.pool]
enable = false

[jwt]
allowed-users = ["..."]
secret = "..."

[cronjobs]
clean-files-interval = '1h'
clean-uploads-interval = '12h'
enable = true
folder-size-interval = '2h'

[tg]
rate = 50
rate-burst = 20
rate-limit = true

[tg.stream]
multi-threads=2
stream-buffers=16
buffers = 8
chunk-timeout = '20s'

[tg.uploads]
encryption-key = ""
retention = "7d"
threads = 2
multi-threads = 2

[server]
port = 8080

docker-compose.yml in ~/.teldrive/

services:
  teldrive:
    image: teldrive/teldrive:1.7.0
    restart: unless-stopped
    container_name: teldrive
    volumes:
      - ./config.toml:/config.toml
      - ./storage.db:/storage.db
    ports:
      - 8080:8080

run in ~/.teldrive/

docker compose up -d

Expected behavior

Successfully show QR code or OTP code enter page.

  • Phone Number (Windows Docker 1.7.0 tested) Image Image

  • QR (Windows Docker 1.7.0 tested) Image Image

Version

  • Windows (Works)

    • Windows 11 x64
    • Docker 28.3.2
    • Teldrive Version 1.7.0 (Docker)
  • Raspberry PI 3B+ (Not Works)

    • Raspbian 13 (Trixie) 64bit
    • Docker 28.5.1
    • Teldrive Version 1.7.0 (Docker and binary tried)

Which Platform are you using?

Other

Additional context

The capture of Infinite loading state

Image Image Image Image

bungabear avatar Oct 12 '25 05:10 bungabear

I had a similar issue. Adding the following to my config.toml fixed it for me:

[tg]
force_ipv6 = false

parziva-1 avatar Oct 17 '25 18:10 parziva-1

I had a similar issue. Adding the following to my config.toml fixed it for me:

[tg] force_ipv6 = false

Thank you. But force_ipv6 = false and force-ipv6 = false doesn't work for me.

bungabear avatar Nov 06 '25 07:11 bungabear