tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
16.89k stars 1.28k forks source link

Error when running tailscale inside docker and AWS Lambda #11886

Open MelleD opened 3 weeks ago

MelleD commented 3 weeks ago

What is the issue?

I run tailscale in a Docker as AWS Lambda to execute an Alexa skill. I see the following error message in the logs.

2024-04-26T15:02:03.933+02:00
2024/04/26 13:02:03 health("dns-os"): error: getting OS base config is not supported

2024/04/26 13:02:03 health("dns-os"): error: getting OS base config is not supported
2024-04-26T15:02:03.933+02:00
2024/04/26 13:02:03 health("dns"): error: getting OS base config is not supported

2024/04/26 13:02:03 health("dns"): error: getting OS base config is not supported
2024-04-26T15:02:10.608+02:00
2024/04/26 13:02:10 health("overall"): error: not in map poll

In addition, I have random timeouts. However, this cannot be reproduced reliably and only happens sometimes.

2024-04-26T15:02:00.288+02:00   2024/04/26 13:02:00 Program starting: v1.64.0-t7e9bebdb2-gf314c5be5, Go 1.22.2: []string{"/var/runtime/tailscaled", "--tun=userspace-networking", "--socks5-server=localhost:1055"}
2024-04-26T15:02:10.568+02:00
2024-04-26T13:02:10.568Z 61014d7b-5ad5-4587-863b-c63a28b814d7 Task timed out after 6.01 seconds

The docker file is: https://github.com/MelleD/alexa-actions/blob/master/Dockerfile

Entrypoint and startup with sock5 is here: https://github.com/MelleD/alexa-actions/blob/master/custom_entrypoint

Does anyone have any clues as to what exactly I'm doing wrong?

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

No response

OS

Linux

OS version

Linux (5.10.210-220.855.amzn2.x86_64)

Tailscale version

1.64.0

Other software

Docker

Bug report

No response