Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run docker through VPN #46

Open
ryandikdan opened this issue Jun 21, 2024 · 0 comments
Open

Can't run docker through VPN #46

ryandikdan opened this issue Jun 21, 2024 · 0 comments

Comments

@ryandikdan
Copy link

Hello, love this so much. I got it working with very minor adjustments before, but I was hoping to run the proxy and backend behind a VPN (I have proton VPN). When I did this with gluetun I got an error on the backend saying Failed to get country even though I set the server city:

Failed to get country from YouTube!
org.postgresql.util.PSQLException: The connection attempt failed.
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:358)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
        at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:273)
        at org.postgresql.Driver.makeConnection(Driver.java:446)
        at org.postgresql.Driver.connect(Driver.java:298)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:230)
        at me.kavin.piped.utils.LiquibaseHelper.init(LiquibaseHelper.java:32)
        at me.kavin.piped.Main.main(Main.java:82)
Caused by: java.net.UnknownHostException: postgres
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
        at java.base/java.net.Socket.connect(Socket.java:757)
        at org.postgresql.core.PGStream.createSocket(PGStream.java:243)
        at org.postgresql.core.PGStream.<init>(PGStream.java:98)
        at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:136)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:262)

I'm pretty confident that the issue is with the network_mode to the gluetun instance, since when I remove it, it works fine.

(On a side note, I'm just wondering if there's a way to make an instance private or only allow specific log ins). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant