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

MySQL and FTP usernames

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

MySQL and FTP usernames

Post by billy »

A couple of days ago, the web server provider I use (Siteground) changed the administration interface from cPanel to "Site tools". A result was the need to change my FTP and MySQL usernames. Having done this, all works well - with one exception :cry:

The MySQL uploads I have set are:
1. Monthly log file upload
2. Dayfile.txt upload
3. A custom upload at 1 minute intervals (this is for my "enhanced" realtime table)

And the standard files and graphs are also ftp'ed up (yes I know this seems redundant!) as are a few custom ones.

All of these work except #1 - the upload to MySQL of the monthly log file. According to the diags file, for that upload (only) it is using the OLD username - tillyspa - ie the one used before the siteground administration changes. The first few lines are included to show the Dayfile upload to MySQL worked, so must have had the new credentials.

Screenshot 2021-02-09 110028.jpg

Nowhere can I find a reference to this old username - except in the diag :roll: . The FTP and MySQL usernames in Cumulus.ini have been changed to reflect the new name in the Site Tools. And this is of course necessary for the other uploads to work, and I would have expected for the monthly one too.

Any ideas gratefully received.
You do not have the required permissions to view the files attached to this post.
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: MySQL and FTP usernames

Post by ConligWX »

can you confirm you did restart Cumulus when you made the ftp username changes?
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: MySQL and FTP usernames

Post by billy »

yes - many times while trying to get this darn thing to work!
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: MySQL and FTP usernames

Post by mcrossley »

It's hard to image how that can happen as all the MySQL connections use the same variable for the username.
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: MySQL and FTP usernames

Post by billy »

that's what I assumed. There seems to be only two places in cumulus where username can be set - ftp settings and mysql settings (well and noaa settings, which I often overlook when I make such changes until I realize that's not uploading)
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: MySQL and FTP usernames

Post by billy »

... and why would the dayfile mysql upload work and not the monthly? Do they not have the same user name?
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: MySQL and FTP usernames

Post by water01 »

Silly question but you don't by any chance have two CumulusMX's running one in an old directory and the other in a new one, hence why old settings could be picked up?
David
Image
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: MySQL and FTP usernames

Post by billy »

no such thing as a silly question. But I don't think so - at least not intentionally! I have "stop second instance" checked. Out of interest, how would I check this more directly? (I'm not a linux wiz by any stretch of the imagination)
User avatar
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: MySQL and FTP usernames

Post by HansR »

The cumulus restart has been answered, but did you also restart the linux machine? Shutdown, poweroff and powerup?
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
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: MySQL and FTP usernames

Post by freddie »

billy wrote: Tue 09 Feb 2021 10:10 am no such thing as a silly question. But I don't think so - at least not intentionally! I have "stop second instance" checked. Out of interest, how would I check this more directly? (I'm not a linux wiz by any stretch of the imagination)
In a terminal window:

Code: Select all

ps -ef | grep -i cumulus | grep -v grep
You should only have one process listed.
Freddie
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: MySQL and FTP usernames

Post by freddie »

HansR wrote: Tue 09 Feb 2021 10:18 am The cumulus restart has been answered, but did you also restart the linux machine? Shutdown, poweroff and powerup?
Is this necessary? Shutdown of Cumulus will release all existing resources.
Freddie
Image
User avatar
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: MySQL and FTP usernames

Post by HansR »

@freddie: true but the MySql subsystem is totally independent of Cumulus so you never know what is in there. The only thing we know is things go wrong somewhere. Why not in the MySql subsystem?
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
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: MySQL and FTP usernames

Post by billy »

HansR wrote: Tue 09 Feb 2021 10:18 am The cumulus restart has been answered, but did you also restart the linux machine? Shutdown, poweroff and powerup?
hmm ... I did in the earlier phases of trying to solve this but there were some other authentication issues at that stage so I will test now. I cmx as a service and have to remind myself how to stop the service auto starting at the reboot too
User avatar
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: MySQL and FTP usernames

Post by HansR »

I think the reboot will organise the shutdown and restart of cmx automatically when configured correctly (at least it does with 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
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: MySQL and FTP usernames

Post by freddie »

@HansR true - I hadn't realised the database was on the same host. Even so, I would do a database process restart rather than a reboot. Also, the old username was being logged in the MX log file, so will be obtained from MX config rather than the database.
Freddie
Image
Post Reply