New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Help needed - FTP stopped working!

Got problems with Bubba? Then this forum is for you.
Johnny
Posts: 50
Joined: 20 Feb 2007, 14:42
Location: Sweden

Post by Johnny »

PA,

Thanks for guiding me!

I ran the commands you gave me and after that I tried to update proftp but I ain't getting anywhere.

This is what I get:

Code: Select all

bubba:/var/samba# chown root:root public
bubba:/var/samba# apt-get install proftp
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package proftp
/Johnny
pa
Posts: 308
Joined: 06 Dec 2006, 04:38
Location: Sweden
Contact:

Post by pa »

We do not supply proftp in our repositories, but we do require it to be there for the bubba package to work.
If you would like to reinstall it, you will need to enable the global debian repositories by removing the "#"-marks in the "/etc/apt/sources.list" file.
After that do an "apt-get update" and then you should be able to install the proftp again.
Be careful though to insert the "#" again befor you run an update from the web-admin interface, otherwise things will most likely start to malfunction (as many other packages will be updated and maybe some will not work with our configurations).

/PA
Johnny
Posts: 50
Joined: 20 Feb 2007, 14:42
Location: Sweden

Post by Johnny »

Hi PA,

I removed all the # -marks and ran the "apt-get update". This is what it looked like:

Code: Select all

bubba:/home/username# apt-get update
Get:1 http://security.debian.org sarge/updates/main Packages [386kB]
Get:2 http://security.debian.org sarge/updates/main Release [112B]             
Get:3 http://ftp.se.debian.org sarge/main Packages [4351kB]                    
Hit http://update.excito.net bubba/main Packages
Hit http://update.excito.net bubba/main Release
Get:4 http://ftp.se.debian.org sarge/main Release [97B]     
Get:5 http://ftp.se.debian.org sarge/non-free Packages [51.9kB]
Get:6 http://ftp.se.debian.org sarge/non-free Release [101B]
Fetched 4789kB in 17s (281kB/s)                                                
Reading Package Lists... Done
After that I tried to install proftp using the "apt-get install proftp" and that gave me this result:

Code: Select all

bubba:/home/username# apt-get install proftp
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package proftp
Is proftp or any ftp installed at all on my Bubba?

/Johnny
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

A quick note here. (Not sure if this is just a typo though)

The package for ftp is called proftpd note the trailing d.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Johnny
Posts: 50
Joined: 20 Feb 2007, 14:42
Location: Sweden

Post by Johnny »

tor wrote:A quick note here. (Not sure if this is just a typo though)

The package for ftp is called proftpd note the trailing d.

/Tor
Hi Tor!

Thanks for helping out here. I tried that and it gave me this result

Code: Select all

bubba:/home/username# apt-get install proftpd
Reading Package Lists... Done
Building Dependency Tree... Done
proftpd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up bubba (0.31.4-1) ...
admin:x:1000:100:Administrator:/home/admin:/bin/bash
Admin user already exists
Admin already a samba user
Reloading web server config...done.
Reloading Postfix configuration...done.
Reloading proftpd configuration....
 done.
After that I tried to connect to my Bubba via ftp .....same results - no good!

I also tried to restart Bubba and the ftp services but that doesn't help, it just won't let me connecting to it via ftp, saying "Remote host has closed the connection."

Any other suggestion....reinstall Bubba?

/Johnny[/code]
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Ok,

What does a repeated apt-get upgrade tell you? Do you still have conflicts?

/Tor
Co-founder OpenProducts and Ex Excito Developer
Johnny
Posts: 50
Joined: 20 Feb 2007, 14:42
Location: Sweden

Post by Johnny »

Tor,

The "apt-get upgrade" told me this:

Code: Select all

bubba:/home/username# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
  file libapache-mod-php4 libapache2-mod-php4 libc6 libkrb53 libmagic1 man-db
  php4 php4-common php4-mysql samba samba-common
12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.2MB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org sarge/updates/main libapache2-mod-php4 4:4.3.10-21 [1592kB]
Get:2 http://ftp.se.debian.org sarge/main libc6 2.3.2.ds1-22sarge6 [4068kB]    
Get:3 http://security.debian.org sarge/updates/main php4-mysql 4:4.3.10-21 [20.6kB]
Get:4 http://security.debian.org sarge/updates/main libapache-mod-php4 4:4.3.10-21 [1593kB]
Get:5 http://ftp.se.debian.org sarge/main man-db 2.4.2-21sarge1 [559kB]   
Get:6 http://security.debian.org sarge/updates/main php4-common 4:4.3.10-21 [169kB]
Get:7 http://ftp.se.debian.org sarge/main file 4.12-1sarge1 [28.8kB]
Get:8 http://ftp.se.debian.org sarge/main libmagic1 4.12-1sarge1 [232kB]
Get:9 http://security.debian.org sarge/updates/main php4 4:4.3.10-21 [1142B]   
Get:10 http://security.debian.org sarge/updates/main samba 3.0.14a-3sarge6 [2559kB]
Get:11 http://ftp.se.debian.org sarge/main libkrb53 1.3.6-2sarge4 [329kB]      
Get:12 http://security.debian.org sarge/updates/main samba-common 3.0.14a-3sarge6 [2010kB]
Fetched 13.2MB in 10s (1281kB/s)                                               
Preconfiguring packages ...
(Reading database ... 14970 files and directories currently installed.)
Preparing to replace libc6 2.3.2.ds1-22sarge5 (using .../libc6_2.3.2.ds1-22sarge6_arm.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.3.2.ds1-22sarge6) ...
Current default timezone: 'UTC'.
Local time is now:      Fri Jun  1 16:37:10 UTC 2007.
Universal Time is now:  Fri Jun  1 16:37:10 UTC 2007.
Run 'tzconfig' if you wish to change it.

(Reading database ... 14970 files and directories currently installed.)
Preparing to replace man-db 2.4.2-21 (using .../man-db_2.4.2-21sarge1_arm.deb) ...
Unpacking replacement man-db ...
Preparing to replace file 4.12-1 (using .../file_4.12-1sarge1_arm.deb) ...
Unpacking replacement file ...
Preparing to replace libmagic1 4.12-1 (using .../libmagic1_4.12-1sarge1_arm.deb) ...
Unpacking replacement libmagic1 ...
Preparing to replace libkrb53 1.3.6-2sarge3 (using .../libkrb53_1.3.6-2sarge4_arm.deb) ...
Unpacking replacement libkrb53 ...
Preparing to replace libapache2-mod-php4 4:4.3.10-19 (using .../libapache2-mod-php4_4%3a4.3.10-21_arm.deb) ...
Unpacking replacement libapache2-mod-php4 ...
Preparing to replace php4-mysql 4:4.3.10-19 (using .../php4-mysql_4%3a4.3.10-21_arm.deb) ...
Unpacking replacement php4-mysql ...
Preparing to replace libapache-mod-php4 4:4.3.10-19 (using .../libapache-mod-php4_4%3a4.3.10-21_arm.deb) ...
Unpacking replacement libapache-mod-php4 ...
Preparing to replace php4-common 4:4.3.10-19 (using .../php4-common_4%3a4.3.10-21_arm.deb) ...
Unpacking replacement php4-common ...
Preparing to replace php4 4:4.3.10-19 (using .../php4_4%3a4.3.10-21_all.deb) ...
Unpacking replacement php4 ...
Preparing to replace samba 3.0.14a-3sarge4 (using .../samba_3.0.14a-3sarge6_arm.deb) ...
Stopping Samba daemons: nmbd smbd.
Unpacking replacement samba ...
Preparing to replace samba-common 3.0.14a-3sarge4 (using .../samba-common_3.0.14a-3sarge6_arm.deb) ...
Unpacking replacement samba-common ...
Setting up man-db (2.4.2-21sarge1) ...

Setting up libmagic1 (4.12-1sarge1) ...

Setting up file (4.12-1sarge1) ...
Setting up libkrb53 (1.3.6-2sarge4) ...

Setting up php4-common (4.3.10-21) ...
Setting up libapache2-mod-php4 (4.3.10-21) ...
Forcing reload of web server: Apache2.

Setting up libapache-mod-php4 (4.3.10-21) ...

Setting up php4-mysql (4.3.10-21) ...

Setting up php4 (4.3.10-21) ...

Setting up samba-common (3.0.14a-3sarge6) ...

Setting up samba (3.0.14a-3sarge6) ...
Starting Samba daemons: nmbd smbd.
After that I tried to logon via ftp - No good! :(

/Johnny
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Ok,

But what I wanted to find out here is if there where any remaining package errors. Which I assume there wherent this time?

In this case it must be some problem with the ftp configuration. Lets start by checking if the server is running. Do a

Code: Select all

ps ax | grep ftp
if everything is ok you should see something like

Code: Select all

 1223 ?        Ss     0:05 proftpd: (accepting connections)

The next step is to see if the logfiles has some information. Do

Code: Select all

grep proftpd /var/log/daemon.log
and take a look on the output.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Johnny
Posts: 50
Joined: 20 Feb 2007, 14:42
Location: Sweden

Post by Johnny »

Ok, here's the result!

Code: Select all

bubba:/home/username# ps ax | grep ftp
29104 pts/0    S+     0:00 grep ftp
bubba:/home/username# grep proftpd /var/log/daemon.log
May 27 07:02:40 bubba proftpd[20567]: connect from 209.85.33.162 (209.85.33.162)
May 27 07:02:41 bubba proftpd[20568]: bubba - Failed binding to 0.0.0.0, port 21: Address already in use 
May 27 07:02:41 bubba proftpd[20568]: bubba - Check the ServerType directive to ensure you are configured correctly. 
May 29 04:54:49 bubba proftpd[9264]: connect from 201.148.18.136 (201.148.18.136)
May 29 04:54:50 bubba proftpd[9265]: bubba - Failed binding to 0.0.0.0, port 21: Address already in use 
May 29 04:54:50 bubba proftpd[9265]: bubba - Check the ServerType directive to ensure you are configured correctly. 
May 30 18:37:43 bubba proftpd[10661]: connect from 192.168.0.115 (192.168.0.115)
May 30 18:37:43 bubba proftpd[10662]: bubba - Failed binding to 0.0.0.0, port 21: Address already in use 
May 30 18:37:43 bubba proftpd[10662]: bubba - Check the ServerType directive to ensure you are configured correctly. 
May 30 18:37:48 bubba proftpd[10668]: connect from 192.168.0.115 (192.168.0.115)
May 30 18:37:48 bubba proftpd[10669]: bubba - Failed binding to 0.0.0.0, port 21: Address already in use 
May 30 18:37:48 bubba proftpd[10669]: bubba - Check the ServerType directive to ensure you are configured correctly. 
May 30 18:37:52 bubba proftpd[10670]: connect from 192.168.0.115 (192.168.0.115)
This kept on going....but I havn't included all!

/Johnny
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Looks like a configuration conflict. You most likely try to run proftpd as a inetd service. That will conflict with the way we, Excito, uses it.

Do a

Code: Select all

dpkg-reconfigure proftpd
as root and when prompted, select standalaone as the way to run the service.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Johnny
Posts: 50
Joined: 20 Feb 2007, 14:42
Location: Sweden

Post by Johnny »

Tor,

That worked, now the ftp is running again.

Thanks for helping out here :D

/Johnny
Locked