Local Address failed : Socket bind failed

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
fysis88
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 08, 2013 4:06 pm

Local Address failed : Socket bind failed

Post by fysis88 » Thu Aug 08, 2013 4:10 pm

Hello people.
I have this problem : when i type to the command line

Code: Select all

  service openvpn start
i get the message that it failed.

Then i run this command :

Code: Select all

 openvpn --config /etc/openvpn/server.conf
and i get this error :
Thu Aug 8 19:56:07 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to ca
ll user-defined scripts or executables
Thu Aug 8 19:56:07 2013 Diffie-Hellman initialized with 1024 bit key
Thu Aug 8 19:56:07 2013 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Aug 8 19:56:07 2013 TCP/UDP: Socket bind failed on local address 184.164.142.216:590
0: Address already in use
Thu Aug 8 19:56:07 2013 Exiting

Any idea how to fix this?
Thank you very much for your time
P.S : Openvpn is install at a Centos 5 OpenVZ (VPS)
I use this VPS for websites , and this is the only IP i am currently using.Is this causing the problem maybe?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Local Address failed : Socket bind failed

Post by maikcat » Fri Aug 09, 2013 8:53 am

Thu Aug 8 19:56:07 2013 TCP/UDP: Socket bind failed on local address 184.164.142.216:590
0: Address already in use
the error is self explanatory...

try to find using lsof -i if another proccess already uses port 5900.. (vnc maybe?)

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

fysis88
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 08, 2013 4:06 pm

Re: Local Address failed : Socket bind failed

Post by fysis88 » Fri Aug 09, 2013 9:41 am

i have changed numerous ports , and run that command as per your instructions...ports are not conflicting..
i have really messed things up...any idea how to remove completely openvpn to start a fresh install?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Local Address failed : Socket bind failed

Post by maikcat » Fri Aug 09, 2013 9:45 am

what distro are you using?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

fysis88
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 08, 2013 4:06 pm

Re: Local Address failed : Socket bind failed

Post by fysis88 » Fri Aug 09, 2013 11:39 am

Linux mydomain.com 2.6.32-042stab044.17 #1 SMP Fri Jan 13 12:53:58 MSK 2012 i686 i686 i386
GNU/Linux

strange thing is , that when i try yum install openvpn , i think it tries to install Centos 6 packages , although i use Centos 5

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Local Address failed : Socket bind failed

Post by maikcat » Fri Aug 09, 2013 12:28 pm

please post the output of:

cat /etc/redhat-release

ls /etc/yum.repos.d/

sestatus



Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

fysis88
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 08, 2013 4:06 pm

Re: Local Address failed : Socket bind failed

Post by fysis88 » Fri Aug 09, 2013 12:45 pm

i think i have found something interesting . when i try yum install openvpn i get errors about some dependancies :

Code: Select all

Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package openvpn.i386 0:2.3.2-1 set to be updated
--> Processing Dependency: libssl.so.10 for package: openvpn
--> Processing Dependency: libgnutls.so.26 for package: openvpn
--> Processing Dependency: libcrypto.so.10 for package: openvpn
--> Finished Dependency Resolution
openvpn-2.3.2-1.i386 from repos.openvpn.net-CentOS6-snapshots has depsolving problems
  --> Missing Dependency: libcrypto.so.10 is needed by package openvpn-2.3.2-1.i386 (repos.openvpn.net-CentOS6-snapshots)
openvpn-2.3.2-1.i386 from repos.openvpn.net-CentOS6-snapshots has depsolving problems
  --> Missing Dependency: libgnutls.so.26 is needed by package openvpn-2.3.2-1.i386 (repos.openvpn.net-CentOS6-snapshots)
openvpn-2.3.2-1.i386 from repos.openvpn.net-CentOS6-snapshots has depsolving problems
  --> Missing Dependency: libssl.so.10 is needed by package openvpn-2.3.2-1.i386 (repos.openvpn.net-CentOS6-snapshots)
Error: Missing Dependency: libcrypto.so.10 is needed by package openvpn-2.3.2-1.i386 (repos.openvpn.net-CentOS6-snapshots)
Error: Missing Dependency: libgnutls.so.26 is needed by package openvpn-2.3.2-1.i386 (repos.openvpn.net-CentOS6-snapshots)
Error: Missing Dependency: libssl.so.10 is needed by package openvpn-2.3.2-1.i386 (repos.openvpn.net-CentOS6-snapshots)
output of redhat realease :

Code: Select all

CentOS release 5.9 (Final)
about the repos :

Code: Select all

CentOS-Base.repo       CentOS-Media.repo  lxcenter.repo     mirrors-rpmforge-extras   repos.openvpn.net-CentOS6-snapshots.repo    rpmforge.repo
CentOS-Debuginfo.repo  CentOS-Vault.repo  mirrors-rpmforge  mirrors-rpmforge-testing  repos.openvpn.net-CentOS6-snapshots.repo.1  vz.repo
sesstatus :

Code: Select all

SELinux status:                 disabled

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Local Address failed : Socket bind failed

Post by maikcat » Fri Aug 09, 2013 12:47 pm

disable this repo please

repos.openvpn.net-CentOS6-snapshots.repo


after that please post the output of

rpm -qa openvpn

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

fysis88
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 08, 2013 4:06 pm

Re: Local Address failed : Socket bind failed

Post by fysis88 » Sat Aug 10, 2013 8:55 am

well , i have changed some things , and at first openvpn service seemed to work fine. But after a little time here is what i get :

Code: Select all

openvpn --config /etc/openvpn/server.conf
Fri Aug 9 21:01:51 2013 OpenVPN 2.3.2 i686-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Aug 9 2013
Fri Aug 9 21:01:51 2013 PLUGIN_INIT: POST /etc/openvpn/openvpn-auth-pam.so '[/etc/openvpn/openvpn-auth-pam.so] [/etc/pam.d/login]' intercepted=PLUGIN_AUTH_USER_PASS_VERIFY
Fri Aug 9 21:01:51 2013 Diffie-Hellman initialized with 1024 bit key
Fri Aug 9 21:01:51 2013 WARNING: POTENTIALLY DANGEROUS OPTION --client-cert-not-required may accept clients which do not present a certificate
Fri Aug 9 21:01:51 2013 Socket Buffers: R=[133120->131072] S=[133120->131072]
Fri Aug 9 21:01:51 2013 TCP/UDP: Socket bind failed on local address [undef]: Address already in use
Fri Aug 9 21:01:51 2013 Exiting due to fatal error

Post Reply