Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
FTPS error on website generation
Moderator: HansR
-
Jamp94
- Posts: 5
- Joined: Sat 06 Jan 2024 2:27 pm
- Weather Station: WS90/GW2000
- Operating System: Rasberry pi
- Contact:
FTPS error on website generation
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?
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?
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: FTPS error on website generation
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).
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).
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
-
Jamp94
- Posts: 5
- Joined: Sat 06 Jan 2024 2:27 pm
- Weather Station: WS90/GW2000
- Operating System: Rasberry pi
- Contact:
Re: FTPS error on website generation
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
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
You do not have the required permissions to view the files attached to this post.
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: FTPS error on website generation
That would be best, do you have a provider or are you self-hosting?
Anyway, it's worth the effort I think.
The logfile says:
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.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- 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.
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: FTPS error on website generation
@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.
I see that you are running an RPi 2 so it's not the fastest but sure it will do.
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
-
Jamp94
- Posts: 5
- Joined: Sat 06 Jan 2024 2:27 pm
- Weather Station: WS90/GW2000
- Operating System: Rasberry pi
- Contact:
Re: FTPS error on website generation
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!
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!
You do not have the required permissions to view the files attached to this post.
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: FTPS error on website generation
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!
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!
You do not have the required permissions to view the files attached to this post.
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
-
Jamp94
- Posts: 5
- Joined: Sat 06 Jan 2024 2:27 pm
- Weather Station: WS90/GW2000
- Operating System: Rasberry pi
- Contact:
Re: FTPS error on website generation
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!
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!
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: FTPS error on website generation
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.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!
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
-
Jamp94
- Posts: 5
- Joined: Sat 06 Jan 2024 2:27 pm
- Weather Station: WS90/GW2000
- Operating System: Rasberry pi
- Contact:
Re: FTPS error on website generation
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.
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.
You do not have the required permissions to view the files attached to this post.
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: FTPS error on website generation
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,
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social