LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-03-2009, 10:41 PM   #1
menphix
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Question svnserve listening, but port not accessible from remote.


Hi You All!
I'm running svnserve on a Debian box on port 7911. Below is the command that I used to invoke svnserve:
Code:
svnserve -d --listen-port 7911 --listen-host 0.0.0.0 -r ~/svnroot
the "0.0.0.0" part is to make sure it uses IPv4.

However, svn checkout access timed out on a remote machine.
But it runs fine on the server itself.

Running nmap on the server returns:
Code:
7911/tcp  open  unknown
but on the remote machine it doesn't show that port 7911 is opened.

Running lsof on the server returns correct result:
Code:
lsof -i :7911
COMMAND   PID    USER   FD   TYPE DEVICE SIZE NODE NAME
svnserve 2926 ehstech    3u  IPv4   9756       TCP *:svn (LISTEN)
which means svnserve is actually listening.

Running ps aux also returns correct result:
Code:
ps aux | grep svn
ehstech   2926  0.0  0.1  18020  1160 ?        Ss   22:00   0:00 svnserve -d --listen-port 7911 --listen-host 0.0.0.0 -r /home/ehstech/svnroot/
I've checked iptables and it seems like it's allowing all the traffic, plus, it's not even running.
Code:
sudo ./iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
now I'm really confused. Could there be any other firewalls on Debian? The svnserve server worked fine a couple of days ago. I did a apt-get upgrade afterwards.
 
Old 07-04-2009, 02:13 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,959

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
svnserve -d --listen-port 7911 --listen-host 0.0.0.0 -r ~/svnroot
According to snvserve manpage the correct syntax in your case is:
Code:
svnserve -d --listen-port=7911 --listen-host=0.0.0.0 -r ~/svnroot

Regards

Last edited by bathory; 07-04-2009 at 02:20 AM.
 
Old 07-04-2009, 12:19 PM   #3
menphix
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for reply. I tried this and it didn't work, still.

Quote:
Originally Posted by bathory View Post
According to snvserve manpage the correct syntax in your case is:
Code:
svnserve -d --listen-port=7911 --listen-host=0.0.0.0 -r ~/svnroot

Regards
 
Old 07-04-2009, 01:57 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,959

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Try to add also "-T" and see if it helps:
Quote:
-T, --threads
When running in daemon mode, causes svnserve to spawn a thread instead of a process for each connection. The svnserve process still backgrounds itself at startup time.
Or use "--foreground" to run svnserve in foreground to see if you find anything.
Can you telnet to port 7911 from a remote box?
 
Old 07-17-2009, 10:37 AM   #5
harshildesai
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Hi menphix

Even i am facing a similar problem.

I am trying to invoke remote debugging(using eclipse) to a linux box, where tomcat is hosting an application.
I have invoked port 8800 for remote debugging and the startup log says "the startup logs says “listening for transport dta_socket at 8800"
Now when I try to connect my eclipse to it, I get “Failed to connect to remote VM. Connection refused.”

Here is the port description on linux

lsof -i:8800

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

java 21930 root 4u IPv4 59436 0t0 TCP *:sunwebadmin (LISTEN)


netstat -tulpn

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 0 0.0.0.0:8800 0.0.0.0:* LISTEN 21930/java

Tomcat logs says
Debugger failed to attach : Handshake failed

Obviously the port is not accessible hence the debugger is not able to connect.
If youfind a solution do let me know.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Port listening adnanm Linux - Newbie 1 03-17-2009 05:32 PM
Port not listening shadetree Linux - Networking 2 08-27-2008 04:07 PM
Howto do Secured ssh from port https or port80(standard) to ssh d listening port 22 ? Xeratul Linux - General 4 11-23-2006 07:09 AM
listening on port 80, why ekdya Debian 5 09-27-2006 07:50 PM
Cannot create listening port Braynid Linux - Newbie 3 06-06-2006 04:33 PM


All times are GMT -5. The time now is 11:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration