Koozali.org: home of the SME Server

Per Host concurrency limite reached on ftp connections.

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
Per Host concurrency limite reached on ftp connections.
« on: June 19, 2009, 06:27:26 PM »
Hi everyone

I have three users that make use a lot of ftp as they are web developers and constantly uploading and changing. As work has increased they are intermitently getting the above. I have created a custom template fragment here
/etc/e-smith/templates-custom/var/service/ftp/peers/local/ConcurrencyPerIP

The first value I tried was C8. I have now set it to C16. After each change I did

expand-template /var/service/ftp/peers/local

and

service ftp restart

When I look at the file

vi /var/service/ftp/peers/local

it contains C16 but the users are astill getting the error.

I have searched both the forums and the bugs but no real fix. There was a bug that mentioned this to be a bug but it was closed.

Can anybody help please.

Thanks

Kobus
Kobus............

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Per Host concurrency limite reached on ftp connections.
« Reply #1 on: June 20, 2009, 10:05:34 AM »
I have created a custom template fragment here
/etc/e-smith/templates-custom/var/service/ftp/peers/local/ConcurrencyPerIP

The first value I tried was C8. I have now set it to C16. After each change I did

expand-template /var/service/ftp/peers/local

and

service ftp restart

When I look at the file

vi /var/service/ftp/peers/local

it contains C16 but the users are astill getting the error.

I have searched both the forums and the bugs but no real fix. There was a bug that mentioned this to be a bug but it was closed.
If you think it is not working as it should be then please open a new bug for it in the bugtracker and post back a reference here for future readers. The bugtracker is the only way developers will notice the problem and be able to work out a fix.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: Per Host concurrency limite reached on ftp connections.
« Reply #2 on: June 21, 2009, 07:53:33 AM »
https://bugs.contribs.org/show_bug.cgi?id=5187

Quote
  -------  Comment #1 From  Charlie Brady   2009-04-30 11:29:06  -------

Resolving INVALID. You need to make a custom template file:

/etc/e-smith/templates-custom/var/service/ftp/peers/local/ConcurrencyPerIP

containing 'C8'.


Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
Re: Per Host concurrency limite reached on ftp connections.
« Reply #3 on: June 21, 2009, 11:06:47 PM »
Electroman00 please only reply if you have read the original post properly.

Kobus............

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
Re: Per Host concurrency limite reached on ftp connections.
« Reply #4 on: June 21, 2009, 11:12:35 PM »
Bug 5369 opened
Kobus............

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: Per Host concurrency limite reached on ftp connections.
« Reply #5 on: June 21, 2009, 11:14:33 PM »
Electroman00 please only reply if you have read the original post properly.
I did read it properly, since I didn't see the link to the bug you reference I kindly added it to the thread to make it easier for others.
Your very welcome.

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: Per Host concurrency limite reached on ftp connections.
« Reply #6 on: June 21, 2009, 11:28:56 PM »
Question that may be asked is....

C8 or 'C8'

or simply test it if you haven't and report the result's.

You didn't indicate if you tried both ways.

edit:
With regards to scripting there is a significant difference.
« Last Edit: June 21, 2009, 11:41:44 PM by electroman00 »

Offline johnp

  • *****
  • 312
  • +0/-0
Re: Per Host concurrency limite reached on ftp connections.
« Reply #7 on: June 22, 2009, 07:49:01 AM »
Looking at the standard template value of a straight C4, I would think his custom should only need to be C8. If it required the single qoutes, I'd be apt to consider that a bug.

He has done what needs to be done to find the cause and/or solution to his problem.

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
Re: Per Host concurrency limite reached on ftp connections.
« Reply #8 on: July 01, 2009, 10:27:03 AM »
ok i tried to log a bug but it was closed as work for me and thats it, but i still have the same problem and no solution. I setup another sme box and i am experiencing the same issues. Can anybody help with this please.

Kobus

Recap:
Done the tremplate
expanded the template
tried 8 12 and 16 same issue
done a reboot even
Kobus............

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
Re: Per Host concurrency limite reached on ftp connections.
« Reply #9 on: July 21, 2009, 12:24:19 PM »
Hi

I am still having this problem with host concurrency.

Can anybody help please?
Kobus............

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: Per Host concurrency limite reached on ftp connections.
« Reply #10 on: July 21, 2009, 01:37:08 PM »
Quote
ok i tried to log a bug but it was closed as work for me and thats it, but i still have the same problem and no solution. I setup another sme box and i am experiencing the same issues.

It's not SME that's the problemo.....

It's you network setup....or you have an infected sys somewhere.

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
Re: Per Host concurrency limite reached on ftp connections.
« Reply #11 on: July 21, 2009, 02:21:26 PM »
How did you work that one out?
Kobus............

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: Per Host concurrency limite reached on ftp connections.
« Reply #12 on: July 21, 2009, 02:35:14 PM »
Quote
I have three users that make use a lot of ftp as they are web developers and constantly uploading and changing. As work has increased they are intermitently getting the above.

Quote
How did you work that one out?

Well a little magic (iptraf) and experience and testing, based on.... not knowing all your info.

Would be nice if you gave some clue as to what software they (web developers) are using for FTP.

I mean it's only one of the mitigating factors here.

BTW When you initially posted this, I did some extensive testing here, ZERO problems.

I FTP downloaded 10 ISO's @ the same time from one client, bandwidth to the client went to hell on a gigabit network, other then that, all was OK.

In fact, to better control a server, most admin's would set the FTP concurrency to 1.

Helps to keep the torrents from stealing all the bandwidth.

If your FTP client is set to more then one concurrent connection and it has a bug (or whatever), it might not respect
SME's limit of four connections.

If you had mentioned the client software you are using then I might have actually tested it here.

But......

Also have you actually looked at what connections are being made with iptraf.

You haven't given an indication you have looked at it already, if you haven't then....

@ the SME console CL type iptraf, doesn't hurt to google iptraf so you know how to use it.

Not really a good idea to remote shell iptraf, better @ the console, remote iptraf will add to the connection count and
will display in iptraf adding to the confusion and degrade it's performance.

The "F" key is a nice key in iptraf, clears closed connections from the list, if no data is flowing then the connection should close
in a timely manor ~ <30 sec.

It would be a good idea to iptraf when nobody is using the system to monitor for infected client traffic.

One of the reasons I keep a shell open with iptraf, I know what is going in and out all the time.

iptraf is quite a nice little network tool...it can tell you a lot about what is really happening all the time.

iptraf will show what connections are actually being made and if they are being closed properly when the transaction is done.

Sure does beat guessing @ it.

Last but not least, the "C" in C4, C8 etc. must be capitalized and without quotes, as I assume you already know, just a note for others.

HTH

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
Re: Per Host concurrency limite reached on ftp connections.
« Reply #13 on: July 21, 2009, 02:44:29 PM »
Hi

Thank you for this. The client used is filezilla.

Although I did not use IPTraf i have done some analysis with ps and seen multiple open connections for the developers. There is 3 developers that wants to upload files to various ibays from the same office.

the C in my setup is uppercase, but surely I have tried C4 C8 and even C12, but I still get this same issue. I will however now try IPtraf and see what is going on.

Thank you for your time.

Kobus
Kobus............

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: Per Host concurrency limite reached on ftp connections.
« Reply #14 on: July 21, 2009, 02:47:57 PM »
Try a setting of C1, filezilla should respect it and not open more connections.

Also check filezilla settings the "DA" factor. :P