DBus Client closing "due to inactivity" #150
-
Hi! I developed an application for a customer that requires the back-end to connect to the company VPN to access the database. Since the application server is on a Linux server running Ubuntu 20.04, I installed openvpn3 to connect to it. So far, I have been able to connect to it successfully with no issues. However, I noticed that every 30 minutes the connection to the VPN closed automatically, and when I viewed the
I have tried adding a process to the back-end that runs every few minutes and queries the database using the VPN so that the connection stays open, which works for a couple of days, but then I get the exact same problem and my application crashes because it cannot connect to the database that's behind the VPN. Does anybody know something I can do to prevent the DBus from closing automatically? It's really annoying having to connect to the VPN manually every couple of days and leave my customers with down time when the disconnection happens. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This smells like you have a line in your config file saying You can get more info by boosting the
I don't know how you start your VPN configuration, if it is a pre-imported configuration file ( If you have pre-imported the configuration file, you can use You will see then see in the log which options are ignored, which are used and which are pushed by the server to the client. If
If |
Beta Was this translation helpful? Give feedback.
-
Also a detail about "prevent the DBus from closing automatically". The log events you listed here is because the log event itself is captured by the The log line itself indicates it is the
The The next "element" can be one of the following values:
And the last field ( |
Beta Was this translation helpful? Give feedback.
This smells like you have a line in your config file saying
inactive 1800
... which would inhibit this behaviour. Or it might be this is being pushed by the server to the client.You can get more info by boosting the
log-level
to6
:I don't know how you start your VPN configuration, if it is a pre-imported configuration file (
openvpn3 config-import
) or if you kick offopenvpn2
oropenvpn3 session-start
using the config file directly. In the case of the two latter ones, you need to addverb 6
to config file as well.If you have pre-imported the configuration file, you can use
openvpn3 config-manage --config $CONFIG_NAME --log-level 6
.You will …