@freddie: true, good point. Nevertheless in case of problems I almost automatically reset the whole system before pointing with the finger to the guilty ones.
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
MySQL and FTP usernames
Moderator: mcrossley
- 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
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
- 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
Just t be clear (because I can get confused by some terminology) the database is on the same (remote) host as the web server - at a Siteground facility in Singapore. I'm in Perth Western Australia.
-
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
@billy is the database on the same host as CumulusMX? I ask because the error message you posted earlier showed user tillyspa@localhost - which suggests MX and the database are on the same host.
Having said that - I don't think I've seen that particular error message before (the "definer" bit), so perhaps you would like to zip up your MXdiags file and attach to a reply on this thread?
Having said that - I don't think I've seen that particular error message before (the "definer" bit), so perhaps you would like to zip up your MXdiags file and attach to a reply on this thread?
- 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
Well, that seems to be clear it is not on the localhost. That is interesting because the call you indicated appears to be to the localhost.
Interesting! You might want to ask yourself: is it an error at all?
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: MySQL and FTP usernames
Indeed: what @freddie says the MXdiags.
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
- 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
OK here is the mxdiag file after a startup I have just done (including a reboot). The monthly log update interval is 5 minutes, and as you will see it fails at 20:40 (near end of diag file). The custom mysql update of the realtime file proceeded correctly, and this morning the dayfile was updated correctly.
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: MySQL and FTP usernames
@billy:
Well the MXdiags in combination with the code shows that the error comes from creating a new SqlConnection object so it is BEFORE even trying to connect. There are only two places where the connection id is set.
I think it is better Mark looks at this.
But your 'tillyspa'@'localhost' must come from some setting somewhere. In the mean time you could try a find it on the system (from the CumulusMX directory):
Well the MXdiags in combination with the code shows that the error comes from creating a new SqlConnection object so it is BEFORE even trying to connect. There are only two places where the connection id is set.
I think it is better Mark looks at this.
But your 'tillyspa'@'localhost' must come from some setting somewhere. In the mean time you could try a find it on the system (from the CumulusMX directory):
Code: Select all
grep -rnw './' -e 'tillyspa'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
- 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
Thanks - nothing unexpected - it reports it occurs in (a) recent mxdiags filesHansR wrote: ↑Tue 09 Feb 2021 1:19 pm But your 'tillyspa'@'localhost' must come from some setting somewhere. In the mean time you could try a find it on the system (from the CumulusMX directory):Code: Select all
grep -rnw './' -e 'tillyspa'
The positive in this is you have taught me how to search in multiple files in Linux - thanks
- 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
You're welcome
You could also try to find it anywhere on the system: so as user root you use the same command starting in /
Although it would surprise me but you never know.
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
-
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
I've just been googling the error message. It is an error that comes from mysql and is to do with database internals not being incorrect (typically if you use a "view" and the definer of the view - the user that created it - no longer exists). It can occur when you migrate your database using mysqldump.
One way around it is to add the missing user, and grant it appropriate privileges. I think that is overkill for Cumulus databases where you can recreate tables any time from the contents of your data files.
The simplest way around it is to drop the table, and use the ExportMySQL utility to recreate it.
Shut down Cumulus, and then drop your Feb 2021 table. You will need to do this through your cPanel interface.
Then open a terminal window, cd to your Cumulus installation and issue the following command.
Once it has completed then restart Cumulus.
One way around it is to add the missing user, and grant it appropriate privileges. I think that is overkill for Cumulus databases where you can recreate tables any time from the contents of your data files.
The simplest way around it is to drop the table, and use the ExportMySQL utility to recreate it.
Shut down Cumulus, and then drop your Feb 2021 table. You will need to do this through your cPanel interface.
Then open a terminal window, cd to your Cumulus installation and issue the following command.
Code: Select all
sudo mono ExportMySQL.exe data/Feb21log.txt- 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
The problem is solved - thanks to Freddie and Hans. I had guessed this was a CMX problem, but it wasn't
. Freddie's suggestion that it was the MySQL database/table itself causing the problem was spot-on, and it makes sense - with the benefit of hind-site - because the other uploads were working fine. The specific reason was I have a trigger in my Monthly table which has a "Definer" that was tillyspa@localhost. I had never noticed this before (this is the only trigger I have). I simply deleted that box and the system automatically replaced it with another username@localhost and bingo - the uploads started working (the username inserted is a scrambled set of letters and digits that make no sense to me
).
The trigger, incidentally, activates after each insert into the monthly table and calculates and stores, in another table, the hourly rainfall, sunshine hours and insolation. This gives the data for the "Drill Down" tabs for these measures that you can see here https://tillyspaws.com/vp2waw/graphs_historic.php. This is another treasure borrowed from Mark Crossley's Wilmslow site
.
So, once again to Hans and Freddie for being so helpful. I would not have got there without your guidance

The trigger, incidentally, activates after each insert into the monthly table and calculates and stores, in another table, the hourly rainfall, sunshine hours and insolation. This gives the data for the "Drill Down" tabs for these measures that you can see here https://tillyspaws.com/vp2waw/graphs_historic.php. This is another treasure borrowed from Mark Crossley's Wilmslow site
So, once again to Hans and Freddie for being so helpful. I would not have got there without your guidance
- 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
Good.
Have to start using a database sometime...
Just to have problems i never knew
Have to start using a database sometime...
Just to have problems i never knew
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
- 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
I came to MySQL as a complete novice (along with weather station, linux, rpi, php etc etc) only a handful of years ago, and I am still one. But the database side was pretty straightforward, and it does provide a great way to extract and utilize the weather station data. The sql language is a bit tedious and limiting but I bumble along. Most importantly, the problem of the last couple of days was the only significant issue I've had or at least that I remember - maybe that's the problem
. This infrequency in having problems means I have to reinvent the wheel - or more correctly, my understanding of how the wheel works - every now and then. If the problems were more frequent maybe I would learn and retain more
.