Welcome to the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - 28 November 2014
Latest Cumulus MX release v3.0.0 build 3047 - 03 February 2019. See the Wiki for download

CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

Moderator: mcrossley

richard_newberry
Posts: 294
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Stretch (VMWARE Esxi 6.5)
Location: Leicester
Contact:

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by richard_newberry » Tue 27 Nov 2018 1:24 am

i have only took out Raspberry pi bit because mines not a Raspberry Pi

Please see attached the files as requested.

I have deleted the old file and still the same error message.
You do not have the required permissions to view the files attached to this post.
Desford Weather
http://www.desford-weather.co.uk
http://desford-weather.co.uk
Also on Desford weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

jank
Posts: 311
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by jank » Tue 27 Nov 2018 8:13 am

Hello Richard
I downloaded your file and started it on my Raspberry PI and it worked as expected.
Some posts ago, you wrote about this error message:

error is: ./cumulusmx.sh: line 1131: syntax error: unexpected end of file
But in the attached docx file I can see, that the command: ./cumulusmx.sh -s is correctly showing the status information without the above error.
The only error is on top of the status page:

./cumulusmx.sh: line 633: [: 3043: unary operator expected

And this error is "normal" because the variable: $MXVERSIONONLINE is pointing to "http://sandaysoft.com/forum/" and must be changed to
"https://cumulus.hosiene.co.uk/" .......

So I am a little bit confused where, and when you get the error error is: ./cumulusmx.sh: line 1131: syntax error: unexpected end of file ?

Jan
Want to see your Station values on SSH? Cumulusnow http://sandaysoft.com/forum/viewtopic.php?f=27&t=14062
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767

richard_newberry
Posts: 294
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Stretch (VMWARE Esxi 6.5)
Location: Leicester
Contact:

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by richard_newberry » Tue 27 Nov 2018 10:03 am

I dont know.

I will alter the script to point to the right url.

Thanks Jank.
Desford Weather
http://www.desford-weather.co.uk
http://desford-weather.co.uk
Also on Desford weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

jank
Posts: 311
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by jank » Tue 27 Nov 2018 11:10 am

richard_newberry wrote:
Tue 27 Nov 2018 10:03 am
I dont know.
I will alter the script to point to the right url.
Thanks Jank.
Okay you can find it in line 170
and replace this line with
MXVERSIONONLINE=$(curl -s https://cumulus.hosiene.co.uk/ -o /tmp/version.txt | grep -i "Latest Cumulus MX release" /tmp/version.txt | sed 's/^.*v3.0.0/>v3.0.0/' |cut -c2-18)


So I assume, I can ignore this error (post) from you?
richard_newberry wrote:
Mon 12 Nov 2018 11:24 pm
i am getting error on kernel on 4.18

error is: ./cumulusmx.sh: line 1131: syntax error: unexpected end of file

An thing would be appreciated.
Want to see your Station values on SSH? Cumulusnow http://sandaysoft.com/forum/viewtopic.php?f=27&t=14062
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767

richard_newberry
Posts: 294
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Stretch (VMWARE Esxi 6.5)
Location: Leicester
Contact:

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by richard_newberry » Tue 27 Nov 2018 11:25 pm

Thanks Jank, that's sorted it out.

Sorry to waste your time.
Desford Weather
http://www.desford-weather.co.uk
http://desford-weather.co.uk
Also on Desford weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

User avatar
billy
Posts: 44
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: Oregon WMR200
Operating System: RPi jessie
Location: Perth, Australia

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by billy » Tue 05 Feb 2019 10:28 am

Recently I upgraded to V2.5.5.0 and now when I check the status with "sudo ./cumulusmx.sh -s" I get errors that are probably due to the first one reported "nc: port number invalid".

Capture.PNG

If I use "/etc/init.d/cumulusmx" status to check status I get:

Capture2.PNG

None of this seems significant because everything else apparently functions as expected despite what the script reports (or doesn't). The script is started at boot using init.d.

This has been reported previously in this thread but I can't find any solutions - at least that I understand and can work out how to implement. The reason I would like to solve it is the "nc: port number invalid " seems to be causing a cron job, that does a daily backup, to issue an email each time - but the backup works.

So, is there a "simple" solution to its irritating consequence?
You do not have the required permissions to view the files attached to this post.

jank
Posts: 311
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by jank » Tue 05 Feb 2019 11:20 am

Hello

if you have a look into your first screenshot, you can see, that there is not an IPv4 IP Address listed, but an IPv6 IP address.

Background:
An IPv4 address with Port 8998 looks like 192.168.3.222:8998
an IPv6 Address looks like: xxxx:xxxx:xxxx:xxxx (Hexdecimal characters)

You can do me a favour....I just looked into the code and I can see, that I determine the IP Address with the command: hostname -I
Can you pleasecheck this command on your PI:
hostname -I

I assume, you are getting the IPv6 IP address instead of an IPv4 IP address ?

If you see an IPv6 Address, you can temporary disable IPv6 with this command

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

After the next reboot, IPv6 is still enabled, or insert
echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6 to enable it immidiately

I assume, you are still using an IPv4 Network ?
If you think it is safe to turn IPv6 permanently off, follow this:
nano /etc/sysctl.d/01-disable-ipv6.conf to create an empty file and insert this line:

net.ipv6.conf.all.disable_ipv6 = 1
Save.
This will permanently disable IPv6 (If you need IPv6 sometime in the future, remove this file......

Would this be an option for you ?

Jan
Want to see your Station values on SSH? Cumulusnow http://sandaysoft.com/forum/viewtopic.php?f=27&t=14062
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767

User avatar
billy
Posts: 44
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: Oregon WMR200
Operating System: RPi jessie
Location: Perth, Australia

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by billy » Tue 05 Feb 2019 1:08 pm

hostname -I does indeed give the IPv6 IP address

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 results in:
"-bash: /proc/sys/net/ipv6/conf/all/disable_ipv6: Permission denied"
(prefixing sudo does not change this)

However, I have successfully made /etc/sysctl.d/01-disable-ipv6.conf
And after a reboot sudo ./cumulusmx.sh -s no longer produces the error.

My network seems to have both an IPv4 and an IPv6 address - when checking network settings on a windows 10 pc. But I don't really know what I'm doing in that area so may not be looking at the correct part.

The daily cron job doing the backup happens early tomorrow morning, so I await the outcome.

It's looking promising - thank you!

User avatar
billy
Posts: 44
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: Oregon WMR200
Operating System: RPi jessie
Location: Perth, Australia

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by billy » Fri 08 Feb 2019 2:03 am

Jan, just confirming that seems to have sorted it out. Thanks for your help.

Post Reply