Page 1 of 1

Trouble getting Extra web files working

Posted: Tue 12 Jan 2016 10:16 pm
by peter94506
Using Raspberry Pi 2 running Raspbian Wheezy
mono version 4.0.2

I'm trying to get the saratoga templates to work via "Extra web files" section of CumulusMX. I have it set up as

/home/pi/CumulusMX/web/CUtagsT.htm for the local filename and CumulusMX/CUtags.php for the remote filename.

My realtime.txt and other standard files ftp fine into the CumulusMX directory on my server. However, the CUtags.php file ftp's over but it's empty (size 0). I have the correct CUtags.txt (CUtagsT.htm) in my CumulusMX/web directory, and I have a tmp file in the web directory with data in it. It's just not getting uploaded by filezilla.


My diag file says:
2016-01-12 14:11:20.444 Error uploading /home/pi/CumulusMX/web/CUtagsT.htmtmp to CumulusMX/CUtags.php : Timed out trying to read data from the socket stream!

Any ideas?

Re: Trouble getting Extra web files working

Posted: Wed 13 Jan 2016 8:23 am
by steve
I don't understand the reference to Filezilla - what are you doing with that, exactly? Are you saying that you get the same problem with Filezilla ftp as you do with Cumulus ftp?

Is CumulusMX/CUtags.php the correct path on the ftp server? What do you have for 'Directory' in the Web/FTP settings? You need to use the same path in the extra files section as you do there, i.e. for the remote file you need <Directory>/CUtags.php

If the path is correct - are you using active or passive FTP? You could try switching to the other, to see if that helps. Normally, passive is better, but some setups require active, to work reliably. Zero-byte files and timeouts are often an indication that this is the problem.

To diagnose FTP issues, you need to turn on ftp logging and look at ftplog.txt, rather than the MX diags files.

Re: Trouble getting Extra web files working

Posted: Wed 13 Jan 2016 11:32 am
by peter94506
filezilla is the ftp server that runs on my web server computer.

I've tried active with the same result.

my file paths seem to be fine. i'll attach ftp log and cumulus.ini. Would you mind taking a look and see if you can find anything obvious i'm missing. thanks

Re: Trouble getting Extra web files working

Posted: Wed 13 Jan 2016 11:46 am
by steve
That all looks OK, as far as I can tell (from a configuration point of view). MX does exactly the same thing for the extra files as it does for the standard files, so I think the problem has to be at the server end - the upload of the PHP doesn't appear to complete.

I have Filezilla Server running on my PC, I'll give it a try myself later. I think I must have installed Filezilla Server as a test because someone else was having a problem with it, but I can't remember what that was. Could you attach the cutags template file that you're using, please?

Re: Trouble getting Extra web files working

Posted: Wed 13 Jan 2016 3:02 pm
by peter94506
thanks, i'll keep looking on my end. i attached the cutags file.

Re: Trouble getting Extra web files working

Posted: Wed 13 Jan 2016 3:32 pm
by steve
I've tried that with my installation of Filezilla Server, and it works fine here. Does the Filezilla log show anything useful?

If you attach your processed CUtagsT.htmtmp file, I'll see if I can see anything odd about it that might be preventing the transfer. I'd think that unlikely, though.

Re: Trouble getting Extra web files working

Posted: Wed 13 Jan 2016 7:03 pm
by peter94506
Thanks, here is the CUtagsT.htmtmp file and the filezilla log. The 'upload attachment' on the forum wouldn't let me upload a extension of .thmtmp so I had to change it to .htm, so CUtagsT (2).htm is really CUtagsT.htmtmp.

Thanks

Re: Trouble getting Extra web files working

Posted: Wed 13 Jan 2016 7:26 pm
by steve
I tried using your tmp file (turning off 'process') and it worked OK for me.

I notice that your server isn't saying that it supports Extended Passive mode:

1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> FEAT
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> 211-Features:
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> MDTM
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> REST STREAM
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> SIZE
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> MLST type*;size*;modify*;
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> MLSD
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> UTF8
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> CLNT
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> MFMT
(000860) 1/13/2016 4:20:35 AM - cumulusmx (10.0.1.1)> 211 End

but mine does:

(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> FEAT
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> 211-Features:
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> MDTM
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> REST STREAM
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> SIZE
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> MLST type*;size*;modify*;
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> MLSD
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> AUTH SSL
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> AUTH TLS
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> PROT
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> PBSZ
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> UTF8
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> CLNT
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> MFMT
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> EPSV
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> EPRT
(000030)13/01/2016 19:22:50 - steve (192.168.1.11)> 211 End

The MX ftp component is using EPSV anyway. The CUtags file is much bigger than your other files, so I think is probably why it is failing. I suspect that you have a firewall issue somewhere.

Re: Trouble getting Extra web files working

Posted: Wed 13 Jan 2016 8:19 pm
by peter94506
Wow! This is a head scratcher. The Filezilla log file says it enters Extended Passive Mode. Right now i'm running with my windows firewall completely off and with the firewall on my router off, and I have the exact same problem. I'll post if I figure out what's going on.