mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
failed to lookup address information: Name or service not known #464
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jzt308 on GitHub (Oct 28, 2019).
I have a bitwarden docker instance running behind a traefik reverse proxy. I had no issues until a couple of bitwarden versions ago. Now I am unable to access the bitwarden site from several machines (on my home network) but on some (external) there is no issue.
The firefox plugin wont connect either but the app on my phone seems to sync.
The error/docker log is below the docker-compose: "failed to lookup address information: Name or service not known" while the browser displays an unexpected error has occured.
I've checked all the variables in the docker-compose and I googled the error but no luck in solving this yet. Any help would be appreciated.
Here is my docker-compose config:
version: '3.1'
services:
bitwarden:
image: mprasil/bitwarden:latest
restart: unless-stopped
volumes:
environment:
SIGNUPS_ALLOWED: "true"
INVITATIONS_ALLOWED: "true"
ADMIN_TOKEN: "TOKENHERE"
DOMAIN: "https://DOMAIN.HERE"
SMTP_HOST: "internalmailhosthere"
SMTP_FROM: "pass@DOMAIN.here"
SMTP_PORT: "25"
SMTP_SSL: "false"
SMTP_USERNAME: "bitwarden@domain.here"
SMTP_PASSWORD: "PASSWORDHERE"
SHOW_PASSWORD_HINT: "false"
LOG_FILE: "/data/bitwarden.log"
LOG_LEVEL: "debug"
networks:
labels:
networks:
web:
external: true
[2019-10-28 14:24:05][rocket::rocket][INFO] POST /api/accounts/prelogin application/json; charset=utf-8:
[2019-10-28 14:24:05][][INFO] Matched: POST /api/accounts/prelogin (prelogin)
[2019-10-28 14:24:05][][INFO] Outcome: Success
[2019-10-28 14:24:05][][INFO] Response succeeded.
[2019-10-28 14:24:06][rocket::rocket][INFO] POST /identity/connect/token application/x-www-form-urlencoded; charset=utf-8:
[2019-10-28 14:24:06][][INFO] Matched: POST /identity/connect/token (login)
thread '' panicked at 'called
Result::unwrap()on anErrvalue: Io(Custom { kind: Other, error: "failed to lookup address information: Name or service not known" })', src/libcore/result.rs:1051:5@dani-garcia commented on GitHub (Nov 2, 2019):
Is your instance having troubles connecting to the SMTP server? Try disabling the SMTP settings for a bit and see if that helps.
@jzt308 commented on GitHub (Nov 5, 2019):
I just commented out all the lines regarding SMTP server but nio dice. Still the same error.
@BlackDex commented on GitHub (Nov 7, 2019):
@jzt308 Seems to me like DNS Resolving is broken.
Are you able to resolve hostnames on the host where the docker container is running?
And also, try to check if you can resolve hosts from within the container if you can via the docker command.
@jzt308 commented on GitHub (Nov 7, 2019):
@BlackDex I am able to resolve the hosts:
140.82.114.4 github.com.
I just found out that the issue was me using my pi-Hole as a dns server. External is was able to login to bitwarden but from my internal network I wasn't able to.
I changed the dns back to my firewall instead of the pi-hole and now it works!
So you where right the issue was dns. I will run some tests to figure out why my pi-hole sinks the connection from my lan.
Thnx!
@dani-garcia commented on GitHub (May 14, 2020):
Closed due to inactivity.