[sork] Forwards and Vacation fail to connect to ftp server.

Pape, Michael J. (sysadm) papem at union.edu
Fri Jan 10 14:08:22 PST 2003



Thanks,

After remove the "@" from the ftp_connect command, the follwing errors
were revealed:

Warning: ftp_connect(): timeout has to be greater than 0 in
/usr/local/apache_test/secure/horde/lib/VFS/ftp.php on line 440

Warning: ftp_connect(): timeout has to be greater than 0 in
/usr/local/apache_test/secure/horde/lib/VFS/ftp.php on line 440

Warning: Cannot add header information - headers already sent by (output
started at /usr/local/apache_test/secure/horde/lib/VFS/ftp.php:440) in
/usr/local/apache_test/secure/horde/forwards/templates/common-header.inc
on line 3

Warning: Cannot add header information - headers already sent by (output
started at /usr/local/apache_test/secure/horde/lib/VFS/ftp.php:440) in
/usr/local/apache_test/secure/horde/forwards/templates/common-header.inc
on line 4

A quick look at the php code showed an optional parameter to the
ftp_connect function, so I added "10" as a third argument -- it worked!

Perhaps something has changed with the php code -- I don't recall having
to set a timeout value for php's ftp driver, or any other config options
for that matter. I'll have to look at this a bit closer -- in the mean
time I'll work with it by hard coding the timeout value in the
ftp_connect statement within horde/lib/VFS/ftp.php.

Thanks again,
-MJP


-----Original Message-----
From: Eric Rostetter [mailto:eric.rostetter at physics.utexas.edu] 
Sent: Thursday, January 09, 2003 6:40 PM
To: Pape, Michael J. (sysadm)
Cc: sork at lists.horde.org
Subject: RE: [sork] Forwards and Vacation fail to connect to ftp server.

Quoting "Pape, Michael J. (sysadm)" <papem at union.edu>:vacation and/or 

Anyone using CVS HEAD of forwards since January 5th, or CVS HEAD of
vacation since December 20th, will find the "forwards" driver in those
horribly broken.  You should update again ASAP to fix it if you use
the forwards driver and have a version after these dates.

However, these fixes are secondary to Michael's ftp problems and won't
help
him to fix that problem.  But at least it will now work correctly when
he does resolve the ftp issues.

> Is there a way to trace the session at a higher debug level?

Well, the problem is in the ftp connection, which was moved to use the
Horde VFS code a while back.  There is no real debugging code in the
VFS code.  So, the answer is no...

What might help, if you want to hack at it, is to edit the file
horde/lib/VFS/ftp.php, and go to the _connect() function, and remove the
"@" characters from before the ftp calls.  For example,

$this->_stream = @ftp_connect...

would become:

$this->_stream = ftp_connect...

And then maybe you will see more meaningful error messages from the
failing
calls...

Make sure your horde, php, and ftp logging are all working and set to
max
logging...

> > After some recent upgrades to apache and php, the vacation and
forwards
> > applications stopped working, with error messages stating:
> >
> > "Failure in removing forward: Connection to ftp server failed. Check
> > your username and password."

I can't reproduce this, except of course by feeding it a bad
username/password
combination.

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the sork mailing list