[GH-ISSUE #397] Connection to the Bastion takes many seconds #107

Closed
opened 2026-05-07 00:19:02 +02:00 by BreizhHardware · 2 comments

Originally created by @pielonet on GitHub (Jun 5, 2023).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/397

Hi,

When connecting to the Bastion It takes roughly 20 seconds before I access to the shell.
It looks like loading bastions' plugins is taking a long time.

How could I reduce this loading time ?

Kind regards,
Thierry

Originally created by @pielonet on GitHub (Jun 5, 2023). Original GitHub issue: https://github.com/ovh/the-bastion/issues/397 Hi, When connecting to the Bastion It takes roughly 20 seconds before I access to the shell. It looks like loading bastions' plugins is taking a long time. How could I reduce this loading time ? Kind regards, Thierry
Author
Owner

@speed47 commented on GitHub (Aug 22, 2023):

Hey,

When you talk about the shell, do you mean the interactive mode prompt? (as follows)

Welcome to fix-my-config-please-missing-bastion-name interactive mode, type `help' for available commands.
You can use <tab> and <tab><tab> for autocompletion.
You'll be disconnected after 60 seconds of inactivity.
Loading... 90 commands and 372 autocompletion rules loaded.

you@bastion(master)>

before the "you@bastion(master)" prompt appears, but after the "Loading...." message does?

Note that if it's slow on the early phase of the connection (before any text is printed), a common cause is a broken DNS configuration on your system.

<!-- gh-comment-id:1688351348 --> @speed47 commented on GitHub (Aug 22, 2023): Hey, When you talk about the shell, do you mean the interactive mode prompt? (as follows) ``` Welcome to fix-my-config-please-missing-bastion-name interactive mode, type `help' for available commands. You can use <tab> and <tab><tab> for autocompletion. You'll be disconnected after 60 seconds of inactivity. Loading... 90 commands and 372 autocompletion rules loaded. you@bastion(master)> ``` before the "you@bastion(master)" prompt appears, but after the "Loading...." message does? Note that if it's slow on the early phase of the connection (before any text is printed), a common cause is a broken DNS configuration on your system.
Author
Owner

@misss13 commented on GitHub (Sep 1, 2023):

Hi,
I've been there, and spend almost 3 weeks debugging that stupid error. Finally debuged that line by line in perl... but to the point.
The bastion is trying to find a name for your client using dns request - so this is taking reallly long 20s after it finds out that there is no dns name for your client thus you waiting each command execution 20s xd. It's nice when clients have such name but for dayli usage it doesn't have.

The answer is to turn your dns off -> comment out everything in /etc/resolv.conf

Regards,
;3

<!-- gh-comment-id:1702977927 --> @misss13 commented on GitHub (Sep 1, 2023): Hi, I've been there, and spend almost 3 weeks debugging that stupid error. Finally debuged that line by line in perl... but to the point. The bastion is trying to find a name for your client using dns request - so this is taking reallly long 20s after it finds out that there is no dns name for your client thus you waiting each command execution 20s xd. It's nice when clients have such name but for dayli usage it doesn't have. The answer is to turn your dns off -> comment out everything in /etc/resolv.conf Regards, ;3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#107
No description provided.