Page 1 of 1
FTPS error on website generation
Posted: Wed 17 Jan 2024 11:40 am
by Jamp94
Hi All,
Fairly new to all this so excuse me if im asking an obvious question here, when trying to populate the files on first run I seem to get a FTPS error, using CumulusMX with the same FTPS works fine it uploads realtime.txt etc with no issues, here is the error:
Error InetSupport: Unknown Exception on FTPS connecting to
www.your-server.com : Safe handle has been closed
Error InetSupport: Failed FTPS connecting to
www.your-server.com. Files will not be transferred
when looking on the wiki it said I should expect some FTP related settings in the .ini files but these seem not to be there, could this be the issue?
I'm running 6.23.2 and mono version: Mono JIT compiler version 6.12.0.200
does anyone have any advice what to try next?
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 12:10 pm
by HansR
Could you post the logfile of that session please?
Uploading on the first run is disabled until you explicitly enable uploads. So it should not get to the FTPS calls. Not sure why it does though.
The idea is that the cumulusutils.ini file is created in that session giving you the possibility to configure first time during which you can (or not) set DoUploadFTP=true (section [FTP site]). Note that the same section and parameter are valid if you choose to use PHP upload (which btw is advised ... by me).
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 12:35 pm
by Jamp94
Hi Hans,
Thanks for the reply, I just started again removed the utils folder copied a fresh one over and removed the .ini seem to get the same issue.
I need to try and get PHP working on the site but was having trouble with permissions.
I used the command: mono utils/bin/cumulusutils.exe Website Thrifty to genrate the website.
Thanks
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 1:41 pm
by HansR
Jamp94 wrote: ↑Wed 17 Jan 2024 12:35 pm
Thanks for the reply, I just started again removed the utils folder copied a fresh one over and removed the .ini seem to get the same issue.
I need to try and get PHP working on the site but was having trouble with permissions.
That would be best, do you have a provider or are you self-hosting?
Anyway, it's worth the effort I think.
Jamp94 wrote: ↑Wed 17 Jan 2024 12:35 pm
I used the command: mono utils/bin/cumulusutils.exe Website Thrifty to genrate the website.
The logfile says:
2024-01-17 12:30:24.648 InetSupport: Constructor start
2024-01-17 12:30:25.957 Error InetSupport: Unknown Exception on FTPS connecting to www504.your-server.de: Safe handle has been closed
2024-01-17 12:30:25.957 Error InetSupport: Failed FTPS connecting to www504.your-server.de. Files will not be transferred
This means that the credentials are OK, but that the server - afaik - has aan issue reusing the handle. The difference between CMX and CUtils is the version of FTP library. I will have to upgrade that and that is not a simple single action. Strange though that nobody else has this issue. Is it possible you try SFTP? The extra work for you probably would be the redefinition of the paths in CMX as SFTP requires full SSH path. As before: do you have a provider or do you host yourself e.g. on an RPi? Not all external providers support SFTP.
- And if it is your first run: do NOT use thrifty. You start using thrifty when your configuration is more or less ready or at least you did one full run.
- Although you have the error message on the FTPS, the run itself is complete, all modules did generate. I would advise you to run again without thrifty (look up on the wiki what thrifty does, that will give understanding and tell you when and when not to use thrifty.
- When run again, start configuring and think about how to transfer: FTP, FTPS, SFTP or PHP... FTP may be an option to start with. Note that CUtils follows CMX, so when you change the system, change CMX and automatically CUtils does the same.
- As you can read in my latest release note I more or less closed the release 6 thread. Only if really required I will try to fix this FTPS issue. So let's first - if possible and not too much work - try to make some steps: FTP (I know not ideal, maybe even impossible), SFTP, maybe even try again PHP.
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 3:59 pm
by HansR
@Jamp94: OK. I don't know how far you are but I did upgrade the FTP library so if you want you might give that a try and see what it does.
I see that you are running an RPi 2 so it's not the fastest but sure it will do.
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 5:20 pm
by Jamp94
Hi Hans,
Sorry ive been trying a few things to try and get it working, SFTP got me further, but still errored, just later in the process:
2024-01-17 14:21:13.445 Information InetSupport SFTP: Connecting using password authentication
2024-01-17 14:21:13.446 Information Upload SFTP: ECDSA Cipher not implemented.
2024-01-17 14:21:16.077 InetSupport: SFTP activated
2024-01-17 14:21:37.227 Information Upload File values: URL: www504.your-server.de
2024-01-17 14:21:37.228 Information Upload File values: CMX Dir: /public_html/cutils
2024-01-17 14:21:37.228 Information Upload File values: UtilsDir:
2024-01-17 14:21:37.228 Information Upload File values: remotefile: YadrTemp2024.txt
2024-01-17 14:21:37.228 Information Upload File values: requestname: /public_html/cutils/YadrTemp2024.txt
2024-01-17 14:21:37.232 Error Upload SFTP: ERROR General Exception: Safe handle has been closed
I'll give the updated libaray a go, thankyou!
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 5:37 pm
by HansR
Please find attached the 6.23.5 version.
Copy over the existing installation, it will replace all files in the utils/bin directory. The other files are the same but will also be replaced.
Run the
website command should update and do the upload.
Note that the Renci library (for SFTP) also has been upgraded. It surprises me that that library comes with the same message as the normal FTP.
Post the logfile afterwards.
[EDIT]- now attached , sorry
Could you also post how you use the SFTP protocol (password or key, port etc...). Maybe best to post that part of the CMX ini file. Please remove your password!
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 6:00 pm
by Jamp94
Hi Hans,
I'll give this a go now and get back to you with the logs. (I actually managed to get it working on PHP:
https://jpickles.com/cutils/) but ill test it anyways! again, thankyou so much for your help!
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 6:26 pm
by HansR
Jamp94 wrote: ↑Wed 17 Jan 2024 6:00 pm
I'll give this a go now and get back to you with the logs. (I actually managed to get it working on PHP:
https://jpickles.com/cutils/) but ill test it anyways! again, thankyou so much for your help!
That is great, but there are missing files coming from CMX (e.g. graphconfig.json) but I do find that on
https://jpickles.com/pwsWD/ so I assume you have the handling of some files incorrect. Note that with setting of
CumulusRealTimeLocation you can point to the realtime location wher CMX dumps its files.
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 6:37 pm
by Jamp94
Hi Hans,
The update worked fine, please see attached log. I think now I have PHP working I shall stick to that though (I think you said that was prefered). Noted about the graphconfig.json I'll have a poke around and try and fix.
Re: FTPS error on website generation
Posted: Wed 17 Jan 2024 6:53 pm
by HansR
Jamp94 wrote: ↑Wed 17 Jan 2024 6:37 pm
The update worked fine, please see attached log. I think now I have PHP working I shall stick to that though (I think you said that was prefered). Noted about the graphconfig.json I'll have a poke around and try and fix.
Hi,
Seriously interesting why nobody noticed before
Anyway, happy it all is working now. Any other question, let me know.
And could you fill in the URL of the CUtils site in the Maps website parameter? Thanks.
Best,