Cron job failing
Cron job failing
OK - so I have successfully been able to 'migrate' my site to a new server, and can successfully get my site appearing.
I'm the first to admit, that I don't understand how 'everything' works, so please ignore my lack of knowledge.
I run a Davis Vantage Pro 2 station, with data uploaded via Weatherlink. This data is then (imported?) to Cumulus running on a Raspberry Pi.
I can see both Cumulus, and Weatherlink connected on my wifi, and their IP addresses. I can connect to Weatherlink by typin in the IP address, but not Cumulus.
Using Jachym's instructions, I am trying to use a Cron job to upload data to my site - before the site failed, this had been working perfectly, but is now failing.
My site is www.eyesontheweather.com.au. All MT files are in the template sub-directory.
My Cron job is www.eyesontheweather.com.au/update/update.php?password=******, but is failing with the following error (there is what appears at the bottom of the error message)
<p class="reason-text">The server cannot find the requested page:</p>
</div>
<section class="additional-info">
<div class="container">
<div class="additional-info-items">
<ul>
<li>
<img src="/img-sys/server_misconfigured.png" class="info-image" />
<div class="info-heading">
www.eyesontheweather.com.au/update/update.php?password=****** (port 80)
</div>
Are there ANY helpful people out there that can point me in the right direction? (note - tried emailing Jachym, but have had no answer to any emails I have sent him so far this year).
Thanks.
I'm the first to admit, that I don't understand how 'everything' works, so please ignore my lack of knowledge.
I run a Davis Vantage Pro 2 station, with data uploaded via Weatherlink. This data is then (imported?) to Cumulus running on a Raspberry Pi.
I can see both Cumulus, and Weatherlink connected on my wifi, and their IP addresses. I can connect to Weatherlink by typin in the IP address, but not Cumulus.
Using Jachym's instructions, I am trying to use a Cron job to upload data to my site - before the site failed, this had been working perfectly, but is now failing.
My site is www.eyesontheweather.com.au. All MT files are in the template sub-directory.
My Cron job is www.eyesontheweather.com.au/update/update.php?password=******, but is failing with the following error (there is what appears at the bottom of the error message)
<p class="reason-text">The server cannot find the requested page:</p>
</div>
<section class="additional-info">
<div class="container">
<div class="additional-info-items">
<ul>
<li>
<img src="/img-sys/server_misconfigured.png" class="info-image" />
<div class="info-heading">
www.eyesontheweather.com.au/update/update.php?password=****** (port 80)
</div>
Are there ANY helpful people out there that can point me in the right direction? (note - tried emailing Jachym, but have had no answer to any emails I have sent him so far this year).
Thanks.
- lemimi
- Advisor
- Posts: 86
- Joined: Wed Dec 12, 2018 3:31 pm
- Location: France - Normandie
- Station model: Brandson 304557
- Contact:
Re: Cron job failing
Hello,
You say MT is located in the /template subdirectory.
http://www.eyesontheweather.com.au/temp ... esktop.php is OK.
The CRON task should also come from this subdirectory, try this:
http://www.eyesontheweather.com.au/temp ... ?password=*****
This address without the /template returns me a 403 error
Sincerely... Michel
You say MT is located in the /template subdirectory.
http://www.eyesontheweather.com.au/temp ... esktop.php is OK.
The CRON task should also come from this subdirectory, try this:
http://www.eyesontheweather.com.au/temp ... ?password=*****
This address without the /template returns me a 403 error
Sincerely... Michel
- lemimi
- Advisor
- Posts: 86
- Joined: Wed Dec 12, 2018 3:31 pm
- Location: France - Normandie
- Station model: Brandson 304557
- Contact:
Re: Cron job failing
If it helps, on my side I use command line tool "curl" in my cron jobs for MT. In your case it could give:
curl http://www.eyesontheweather.com.au/temp ... ?password=*****
or
curl http://www.eyesontheweather.com.au/temp ... ***&errors
I mentioned it here: http://www.meteotemplate.com/forum/view ... 896#p11896
Michel
curl http://www.eyesontheweather.com.au/temp ... ?password=*****
or
curl http://www.eyesontheweather.com.au/temp ... ***&errors
I mentioned it here: http://www.meteotemplate.com/forum/view ... 896#p11896
Michel
Re: Cron job failing
Well.. .there is SOME success. The Cronjob is running now - but Cumulus on my Raspberry Pi is not sending any data now.
I'm messaging the Cumulus board to understand what the problem is - I don't understand the way things work.
It feels like baby steps at the moment.....
I'm messaging the Cumulus board to understand what the problem is - I don't understand the way things work.
It feels like baby steps at the moment.....
-
- Forecaster
- Posts: 182
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: Cron job failing
Hi,
Maybe I don't know all the info, but you wrote that Weatherlink is capturing data from your Davis, sending it to Mt, and Mt is then sending it to Cumulus? Or I'm a wrong?
What are you using to send data to Weatherlink? Ip logger or Weatherlink live? In both cases you can send data directly from Davis to MT using either the IP plugin or the WLL plugin to Weatherlink and to Cumulus.
I'm using a mixture: using a meteobridge to capture data from Davis through weatherlink live and the davis Wll MT plugin too. and using a easycron (it's a free cronjob website) cronjob for the latter, with meteobridge you don't need one.
My weatherlink gets data too from the meteobridge, and my CumulusMX gets data directly from my Davis.
Sounds easier, I think.
I try to use the Weatherlinklive as the middle man for everything to send data as much as I can, most reliable.
succes!
alex
Maybe I don't know all the info, but you wrote that Weatherlink is capturing data from your Davis, sending it to Mt, and Mt is then sending it to Cumulus? Or I'm a wrong?
What are you using to send data to Weatherlink? Ip logger or Weatherlink live? In both cases you can send data directly from Davis to MT using either the IP plugin or the WLL plugin to Weatherlink and to Cumulus.
I'm using a mixture: using a meteobridge to capture data from Davis through weatherlink live and the davis Wll MT plugin too. and using a easycron (it's a free cronjob website) cronjob for the latter, with meteobridge you don't need one.
My weatherlink gets data too from the meteobridge, and my CumulusMX gets data directly from my Davis.
Sounds easier, I think.
I try to use the Weatherlinklive as the middle man for everything to send data as much as I can, most reliable.
succes!
alex
Re: Cron job failing
Unfortunately the other way around. I am using a Weatherlink Wifi Logger so there is no need for a permanent USB connection to the station. I then download the data on Weatherlink every week or so wirelessly.Weatherlink is capturing data from your Davis, sending it to Mt, and Mt is then sending it to Cumulus? Or I'm wrong?
Somehow (this is the bit I don't understand/can't remember how it works!!) Cumulus 'gets' this data using the IP address, FTP, or some other means, and then sends the data via a Cron Job on EasyCron to MT.
At least, that is how I think it works, but I'm no expert, and it was all set up and working smoothly until a month or so ago.
Now my router shows both a Cumulus IP and a Weatherlink IP, but no data upload to my site!!
-
- Forecaster
- Posts: 182
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: Cron job failing
1. check if the easycron has not failed. sometimes it does: you need just to reset it. But I don't think it's this.
2. Eaycron just makes sure that the data is saved every 5 minutes to your database.
has nothing to do with capturing data.
3. Check your paths in Cumulus (MX?), probably that's not ok anymore, because you said you changed server.
4. If your up to it: use the DavisWLL (search in this forum for the subject DavisWLL) plugin to send directly to MT instead of through Cumulus.
succes!
2. Eaycron just makes sure that the data is saved every 5 minutes to your database.
has nothing to do with capturing data.
3. Check your paths in Cumulus (MX?), probably that's not ok anymore, because you said you changed server.
4. If your up to it: use the DavisWLL (search in this forum for the subject DavisWLL) plugin to send directly to MT instead of through Cumulus.
succes!
Re: Cron job failing
It's not. The Cron is working fine.1. check if the easycron has not failed. sometimes it does: you need just to reset it. But I don't think it's this.
I am guessing that this MIGHT be the problem.. only issue is I have lost the password to access my Pi, and whilst I SHOULD be able to connect by typing in the IP address and :8998, it's not working. I am going to try a new install on a backup Pi tomorrow, after I purchase a new SD card3. Check your paths in Cumulus (MX?), probably that's not ok anymore, because you said you changed server.
I don't have a Davis WLL. I have an 3rd party WiFiLogger2 Data Logger for Davis Pro2 - that by the sound of it does the same job at half the price.4. If your up to it: use the DavisWLL (search in this forum for the subject DavisWLL) plugin to send directly to MT instead of through Cumulus.
-
- Forecaster
- Posts: 182
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: Cron job failing
now we getting somewhere.
for the password check this link: https://howtoraspberrypi.com/recover-pa ... pberry-pi/
and probably the ip adress of your pi has changed by changing to new server, this happens frequently , had the same issue also.
can you access cumulus by entering localhost:8998 , you would need to attach your pi to a screen (yr tv with hdmi for example and a keyboard) ann type in localhost:8998 in the webbrowser of your pi.
succes!
for the password check this link: https://howtoraspberrypi.com/recover-pa ... pberry-pi/
and probably the ip adress of your pi has changed by changing to new server, this happens frequently , had the same issue also.
can you access cumulus by entering localhost:8998 , you would need to attach your pi to a screen (yr tv with hdmi for example and a keyboard) ann type in localhost:8998 in the webbrowser of your pi.
succes!
-
- Forecaster
- Posts: 182
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: Cron job failing
and probably the ip adress of your pi just has changed one digit: for example 192.168.0.164 to 192.168.0.167 or something.
the change will be in the last three digits of the ip adress, you could try changing the ip with putty (using ssh) until you get lucky and get access.
when you found this you can access cumulus
the change will be in the last three digits of the ip adress, you could try changing the ip with putty (using ssh) until you get lucky and get access.
when you found this you can access cumulus
Re: Cron job failing
My router is showing CumulusMX on my Raspberry Pi with an IP address 192.168.1.2and probably the ip adress of your pi just has changed one digit: for example 192.168.0.164 to 192.168.0.167 or something.
the change will be in the last three digits of the ip adress, you could try changing the ip with putty (using ssh) until you get lucky and get access.
If I connect to 192.168.1.2:8998 OR cumulusmx:8998, I get an ERR_CONNECTION_REFUSED message.
Rebuild tomorrow.
I can connect to the pi using PuTTY, but at the prompt, cannot enter a valid password. Will the link to resetting the password, bypass this?
-
- Forecaster
- Posts: 182
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: Cron job failing
you will need to follow the instructions in the link.
did not try this yet myself, but I found it by googling 'password recovery raspberry pi'.
maybe you can found yr answer to recover yr password if you google yourself.
my next guess is that cumulus just stopped working on your pi, probably.
but to check that you need to login.
unless your Cumulus is set to start as a daemon whenever you restart your pi, then you could try restarting yr pi.
did not try this yet myself, but I found it by googling 'password recovery raspberry pi'.
maybe you can found yr answer to recover yr password if you google yourself.
my next guess is that cumulus just stopped working on your pi, probably.
but to check that you need to login.
unless your Cumulus is set to start as a daemon whenever you restart your pi, then you could try restarting yr pi.