installation issues... service or not?

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Message
Author
User avatar
JasonD
550 Permission denied
Posts: 25
Joined: 2010-09-04 17:08
First name: Jason
Last name: Doucette
Location: Canada

installation issues... service or not?

#1 Post by JasonD » 2010-09-04 17:12

I installed the server with the recommended settings, and it runs as a service, hidden in the background, which I dislike. So I reinstalled it to be not as a service, and it says not-recommended. But why?
<No third-party links in signatures, sorry>

User avatar
JasonD
550 Permission denied
Posts: 25
Joined: 2010-09-04 17:08
First name: Jason
Last name: Doucette
Location: Canada

Re: installation issues... service or not?

#2 Post by JasonD » 2010-09-04 17:28

Ok, so after installing as NOT a service, Windows Firewall complains, and asks if it should unblock the program. Is this the reason this is not recommended?
<No third-party links in signatures, sorry>

User avatar
boco
Contributor
Posts: 24784
Joined: 2006-05-01 03:28
Location: Germany

Re: installation issues... service or not?

#3 Post by boco » 2010-09-04 19:09

Running it as a program is not recommended because it then runs in the context of the logged-on user. So it neither will run when no user is logged on (the state real servers are in most of the time), nor will it run correctly if the logged-on user has restricted permissions. Therefore it's not recommended.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

User avatar
JasonD
550 Permission denied
Posts: 25
Joined: 2010-09-04 17:08
First name: Jason
Last name: Doucette
Location: Canada

Re: installation issues... service or not?

#4 Post by JasonD » 2010-09-04 21:35

Thank you for the information.

I think it's great that FileZilla exists, for both Client and Server, but the documentation is very limited, making it frustrating to use unless you're already used to this kind of thing, and I fear this may be limiting its audience. I'm still trying to figure out why my server is not working -- it didn't work as a Service, and now continues to not work running as a program (with a logged in used with full permissions)... and unfortunately the lack of error codes returned are making it hard to diagnose the problem. I will figure it out eventually, but this takes time. So it'd be great to have a check list, or installation guide, for those of us not used to this... (I'm aware of the FAQ.)

Constructive criticism for a great product...
Take care,
<No third-party links in signatures, sorry>

User avatar
boco
Contributor
Posts: 24784
Joined: 2006-05-01 03:28
Location: Germany

Re: installation issues... service or not?

#5 Post by boco » 2010-09-05 07:21

The client is well documented, see http://wiki.filezilla-project.org. The server is not, as it is on the back burner and not developed right now.
I'm still trying to figure out why my server is not working -- it didn't work as a Service, and now continues to not work running as a program (with a logged in used with full permissions)... and unfortunately the lack of error codes returned are making it hard to diagnose the problem.
Maybe you should start by describing the symptoms.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

User avatar
JasonD
550 Permission denied
Posts: 25
Joined: 2010-09-04 17:08
First name: Jason
Last name: Doucette
Location: Canada

Re: installation issues... service or not?

#6 Post by JasonD » 2010-09-06 02:47

Thanks for the reply.

I have no problem connecting to the server from a client on the same PC if I connect to the internal IP. But if I connect to the external IP, it just doesn't respond... times out. I am on a PC with wireless internet connected directly to the modem. There is no router acting like a firewall, so I don't have to port forward. I'm running Windows Vista, and the FileZilla install already added an exception to the Firewall. I've even gone into the modem and added a port mapping (not sure what that is) for FTP (port 21) just in case this is some kind of port forward that it was blocking, but it doesn't fix anything.

P.S. This is a good starting place for documentation:
http://lifehacker.com/339887/build-a-ho ... -filezilla
<No third-party links in signatures, sorry>

Stunner
226 Transfer OK
Posts: 63
Joined: 2009-03-31 01:19
First name: A
Last name: Dog

Re: installation issues... service or not?

#7 Post by Stunner » 2010-09-06 07:03

Use port range 50000-50100, make 50000 the listening port, don't use the default port of 21. Try that and report back.

User avatar
boco
Contributor
Posts: 24784
Joined: 2006-05-01 03:28
Location: Germany

Re: installation issues... service or not?

#8 Post by boco » 2010-09-06 12:29

I've even gone into the modem and added a port mapping (not sure what that is) for FTP (port 21) just in case this is some kind of port forward that it was blocking, but it doesn't fix anything.
A modem has no port forwarding/mapping, so you have a router. You need to forward the complete range of ports, not just the listening port.
But if I connect to the external IP, it just doesn't respond... times out.
Do you test from outside your network? The external IP has no meaning inside it.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

User avatar
JasonD
550 Permission denied
Posts: 25
Joined: 2010-09-04 17:08
First name: Jason
Last name: Doucette
Location: Canada

Re: installation issues... service or not?

#9 Post by JasonD » 2010-09-06 16:14

Thanks so much for the reply. So port forwarding and port mapping are the same thing. I thought it was strange that my modem has "port mapping"... so obviously it IS a router. Duh. I actually knew this but just wasn't thinking. My shortcut I made to connect to it is even named "router". Lol.
Last edited by JasonD on 2010-09-06 17:09, edited 1 time in total.
<No third-party links in signatures, sorry>

User avatar
JasonD
550 Permission denied
Posts: 25
Joined: 2010-09-04 17:08
First name: Jason
Last name: Doucette
Location: Canada

Re: installation issues... service or not?

#10 Post by JasonD » 2010-09-06 16:51

Ok I see in the Server FAQ:
http://wiki.filezilla-project.org/FAQ
That I have to set the custom ports myself in the server settings, and it recommends 5000-5100. So I'll have to port forward these over as well.

Thanks for your help. I'll let you know when I get it working. ;)
<No third-party links in signatures, sorry>

User avatar
JasonD
550 Permission denied
Posts: 25
Joined: 2010-09-04 17:08
First name: Jason
Last name: Doucette
Location: Canada

Re: installation issues... service or not?

#11 Post by JasonD » 2010-09-06 17:01

Ok, so it somewhat works. You were right, I cannot test the connection from my own PC, even using the external IP. I wonder why? Anyway, my problem reported from ftptest.net:

Error: Non-number segment in PASV reply
Make sure the server is configured to allow passive mode connections.
If the server is behind a NAT router, make sure the server knows its external IP address.
The range of ports used for passive mode must be opened in all involved firewalls.
The range of ports used for passive mode must be forwarded by all involved NAT routers.
Try uninstalling all firewalls and plug your computer directly into your modem, thus bypassing the router.


I think the server is automatically configured to allow passive mode connections. I've told the server it's external IP. I've port forwarded 5000-5100 to the PC. I've told the server to use ports 5000-5100. My firewall (Windows Vista) automatically has an entry for FileZilla Server, but I'm not sure if this is enough to allow ports 5000-5100, so I turned off the firewall, and the same error still occurs, so that's not it. Not sure what else to try...?

Basically an external user can log in, but cannot start passive mode transfers, so they cannot see a directory listing.
<No third-party links in signatures, sorry>

User avatar
boco
Contributor
Posts: 24784
Joined: 2006-05-01 03:28
Location: Germany

Re: installation issues... service or not?

#12 Post by boco » 2010-09-06 19:12

I cannot test the connection from my own PC, even using the external IP. I wonder why?
External PC is not valid in LAN. This is normal due to the way NAT/PAT works.

Would you please post the actual log from the test (not just the error message)? Obviously there's a problem with the PASV reply.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

User avatar
JasonD
550 Permission denied
Posts: 25
Joined: 2010-09-04 17:08
First name: Jason
Last name: Doucette
Location: Canada

Re: installation issues... service or not?

#13 Post by JasonD » 2010-09-06 19:33

Ok sure: I've replaced my IP address with xxx.xxx.xxx.xx and the username with xxx, but other than that, it's verbatim:

Code: Select all

Status: Resolving address of xxx.xxx.xxx.xxx
Status: Connecting to xxx.xxx.xxx.xxx
Status: Connected, waiting for welcome message
Reply: 220-FileZilla Server version 0.9.36 beta
Reply: 220-written by Tim Kosse (Tim.Kosse@gmx.de)
Reply: 220 Please visit http://sourceforge.net/projects/filezilla/
Command: CLNT https://ftptest.net/ on behalf of xxx.xxx.xxx.xxx
Reply: 200 Don't care
Command: USER xxx
Reply: 331 Password required for xxx
Command: PASS anonymous@xxx.xxx.xxx.xxx
Reply: 230 Logged on
Command: SYST
Reply: 215 UNIX emulated by FileZilla
Command: FEAT
Reply: 211-Features:
Reply: MDTM
Reply: REST STREAM
Reply: SIZE
Reply: MLST type*;size*;modify*;
Reply: MLSD
Reply: UTF8
Reply: CLNT
Reply: MFMT
Reply: 211 End
Command: PWD
Reply: 257 "/" is current directory.
Status: Current path is /
Command: TYPE I
Reply: 200 Type set to I
Command: PASV
Reply: 227 Entering Passive Mode (xxx,xxx,xxx,xxx,240,16))
Error: Non-number segment in PASV reply
<No third-party links in signatures, sorry>

User avatar
boco
Contributor
Posts: 24784
Joined: 2006-05-01 03:28
Location: Germany

Re: installation issues... service or not?

#14 Post by boco » 2010-09-06 19:39

I've replaced my IP address with xxx.xxx.xxx.xx
You destroyed the most valuable information.

Is the double bracket at the end of the PASV line original? Compare with the same line in the server log. They must be exactly the same.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

User avatar
JasonD
550 Permission denied
Posts: 25
Joined: 2010-09-04 17:08
First name: Jason
Last name: Doucette
Location: Canada

Re: installation issues... service or not?

#15 Post by JasonD » 2010-09-06 20:27

I feared I may have done that. The double bracket shows only in ftptest.net, but not in the logs (at least not in the server interface window, since the log file itself is empty; it must not flush its cache right away, which is strange). Also note that the last two numbers differ in both cases, for some reason... I don't know what they mean so I'm not sure if this is normal.

Server interface window/screen log:

Code: Select all

(000013)06/09/2010 17:24:20 PM - username (62.75.138.232)> PWD
(000013)06/09/2010 17:24:20 PM - username (62.75.138.232)> 257 "/" is current directory.
(000013)06/09/2010 17:24:20 PM - username (62.75.138.232)> TYPE I
(000013)06/09/2010 17:24:20 PM - username (62.75.138.232)> 200 Type set to I
(000013)06/09/2010 17:24:20 PM - username (62.75.138.232)> PASV
(000013)06/09/2010 17:24:20 PM - username (62.75.138.232)> 227 Entering Passive Mode (142,167,68,235,19,146)
(000013)06/09/2010 17:24:20 PM - username (62.75.138.232)> disconnected.
ftptest.net result:

Code: Select all

Command: PWD
Reply: 257 "/" is current directory.
Status: Current path is /
Command: TYPE I
Reply: 200 Type set to I
Command: PASV
Reply: 227 Entering Passive Mode (142,167,68,235,241,85))
Error: Non-number segment in PASV reply
<No third-party links in signatures, sorry>

Post Reply