Page 1 of 2
Help needed - FTP stopped working!
Posted: 03 May 2007, 13:38
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
Posted: 03 May 2007, 15:28
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
or
to get it back to the original state.
HTH
/Nik
Posted: 04 May 2007, 16:37
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
Posted: 06 May 2007, 14:53
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
or
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?
Posted: 06 May 2007, 14:54
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
Posted: 06 May 2007, 15:55
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
Posted: 07 May 2007, 01:15
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.
Posted: 08 May 2007, 14:10
by Johnny
Any thought from the Excito support guys regarding this issue would be appreciated!
Posted: 09 May 2007, 02:21
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
Posted: 09 May 2007, 03:57
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
Posted: 10 May 2007, 03:24
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
Posted: 10 May 2007, 11:31
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
Posted: 18 May 2007, 07:21
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
Posted: 22 May 2007, 04:32
by Johnny
Hi PA!
Could you please tell me how I'll change this?
/Johnny
Posted: 22 May 2007, 04:51
by pa
log in using ssh, become root.
change to the /var/samba directory
run "chown root:root public"
/PA