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

Help needed - FTP stopped working!

Post by Johnny »

Hi,

My ftp has stopped working. I tried both from work and at home and all I get is this "Remote host has closed the connection". I've checked that my router is redirecting port 21 to my bubba and it is. I've also stopped and restarted the ftp-feature in the settings panel, but that doesn't work either.

It worked a few weeks ago - could it have something to do with the recent bubba update perhaps?

I read habrys topic
http://www.excito.org/forum/viewtopic.php?t=340
But his solution isn't helping me as port 20 isn't open from my work because of their firewall.

What can I do to get ftp to work again?

/Johnny
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Post by Cheeseboy »

Hello Johnny,

I had a similar problem some time ago.
What happened was that I accessed the bubba ftp server via ssh.
After that proftpd would not accept a normal login on port 21.
I either used something like

Code: Select all

dpkg --configure proftpd
or

Code: Select all

apt-get install proftp
to get it back to the original state.

HTH

/Nik
dsp76
Posts: 76
Joined: 15 Apr 2007, 14:18

Post by dsp76 »

... but in my case, both commands didn't work and I needed to remove and reinstall the package to get a working setup, as I described here.

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

Post by Johnny »

Cheeseboy wrote:Hello Johnny,

I had a similar problem some time ago.
What happened was that I accessed the bubba ftp server via ssh.
After that proftpd would not accept a normal login on port 21.
I either used something like

Code: Select all

dpkg --configure proftpd
or

Code: Select all

apt-get install proftp
to get it back to the original state.

HTH

/Nik
Cheeseboy - Thanks for trying to help out here. But non of the commands worked in my case. All I got was this:

Code: Select all

bubba:/home/USERNAME# dpkg --configure proftpd
dpkg: error processing proftpd (--configure):
 package proftpd is already installed and configured
Errors were encountered while processing:
 proftpd
bubba:/home/USERNAME# apt-get install proftp
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package proftp
Any other tips for me - anyone?
Johnny
Posts: 50
Joined: 20 Feb 2007, 14:42
Location: Sweden

Post by Johnny »

dsp76 wrote:... but in my case, both commands didn't work and I needed to remove and reinstall the package to get a working setup, as I described here.

dsp
Sorry but that didn't help in my case. I got this error message when trying to update.

Code: Select all

Configuration file `/usr/share/web-admin/bubba.css'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** bubba.css (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /usr/share/web-admin/bubba.css ...
admin:x:1000:100:Administrator:/home/admin:/bin/bash
Admin user already exists
Admin already a samba user
chown: cannot access `var/samba/public/*': No such file or directory
dpkg: error processing bubba (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 bubba
dsp76
Posts: 76
Joined: 15 Apr 2007, 14:18

Post by dsp76 »

... don't know whether this is the cause, but why did you decide *not* no choose the default option when you were asked whilst the script run?

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

Post by Johnny »

dsp76 wrote:... don't know whether this is the cause, but why did you decide *not* no choose the default option when you were asked whilst the script run?

dsp
Well I guess I thought that updating the script would help which it didn't. Instead I had to reinstall bubbalibres web-theme again because the update messed up his css file.
Johnny
Posts: 50
Joined: 20 Feb 2007, 14:42
Location: Sweden

Post by Johnny »

Any thought from the Excito support guys regarding this issue would be appreciated!
pa
Posts: 308
Joined: 06 Dec 2006, 04:38
Location: Sweden
Contact:

Post by pa »

It seems as you have made some changes to the /var/samba/public directory. If you look in your log from your update it says:
chown: cannot access `var/samba/public/*': No such file or directory
The configuration then seems to abort.
Try to resolve this issue and run the configuration again to see if it will pass.

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

Post by Johnny »

pa wrote:It seems as you have made some changes to the /var/samba/public directory. If you look in your log from your update it says:
chown: cannot access `var/samba/public/*': No such file or directory
The configuration then seems to abort.
Try to resolve this issue and run the configuration again to see if it will pass.

/PA
Hi PA!

Thanks for responding.

I'm not a unix-geek, so my knowledge for solving this is limited. I haven't made any changes lately which I can recall, except for installing Excitos updates (via the web update function) and bubbalibres hack: http://excito.org/forum/viewtopic.php?t=113

I also installed the TorrentFlux hack: http://excito.org/forum/viewtopic.php?t=89 But that was done months ago with the ftp working after that.

What would you recommend me to do, to solve this?

/Johnny
pa
Posts: 308
Joined: 06 Dec 2006, 04:38
Location: Sweden
Contact:

Post by pa »

Can you do "ls -l /var/samba" and "ls -l /var/samba/public" and post the results?
This will help me figure out what the problem is.

If you do not want to publish it, send it to me directly.

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

Post by Johnny »

PA,

Here are the results:

username@bubba:~$ ls -l /var/samba
total 4
drwxrwxrwx 6 1008 users 4096 Apr 19 19:54 public

username@bubba:~$ ls -l /var/samba/public
total 16
drwxrwxrwx 5 nobody users 4096 Oct 20 2006 music
drwxrwxrwx 2 nobody users 4096 Apr 14 17:45 pictures
drwxrwxrwx 5 root root 4096 May 1 07:23 torrentflux
drwxrwxrwx 2 nobody users 4096 Apr 14 17:45 video

/Johnny
pa
Posts: 308
Joined: 06 Dec 2006, 04:38
Location: Sweden
Contact:

Post by pa »

I am sorry I have not answered before.

It seems as if there has been a user that has been deleted from the system (uid 1008) that owns the /var/samba/public directory.
This should be owned by root.

I don't know if this can case the problems that you see when you are trying to upgrade, but can you change this and try to run the update again?

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

Post by Johnny »

Hi PA!

Could you please tell me how I'll change this?

/Johnny
pa
Posts: 308
Joined: 06 Dec 2006, 04:38
Location: Sweden
Contact:

Post by pa »

log in using ssh, become root.

change to the /var/samba directory
run "chown root:root public"

/PA
Locked