Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

Cumulus on a Samba share - no autostart with start stop skript

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
maddinthebrain
Posts: 33
Joined: Mon 07 Aug 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Cumulus on a Samba share - no autostart with start stop skript

Post by maddinthebrain »

Hello folks,
As a I had damaged SD card with my raspi I put Cumulus on my Nas and mounted the share by Samba in the original place in the directory tree. Everything works fine but autostart after booting the raspbian. I guess it's because the share is not mounted quick enough. Starting it manually works fine. The backup and the daily restart defined in crop job work fine as well.

Any idea? Thanks in advance.

Merry Christmas

Martin
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by dazza1223 »

same here mate but i cant find the way to fix it
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by jlmr731 »

Is your network share mounted at boot?
Are you using a bash script to start up cumulus?

If yes then you can add in a delay to your cumulus start up script.
Like this

Code: Select all

#!/bin/bash
sleep 30
## the rest of you startup script.....
Now the sleep command will pause for what time you use to sleep 10 sec use sleep 10, to sleep 2 minutes use sleep 2m.
Depending on when in the boot up process your script and networking share get started you may have to adjust the time.
maybe start at 2 minutes to see if that works
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by dazza1223 »

o ok i will try that thank u
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
maddinthebrain
Posts: 33
Joined: Mon 07 Aug 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by maddinthebrain »

I use cronjob to start Cumulus.

Code: Select all

@reboot sudo /home/pi/CumulusMX/cumulusmx.sh  
It is the start stop Skript.
How to do this here? Put it in a small bash file? Like that

Code: Select all

#!/bin/bash
sleep 30
Sudo /home/pi/CumulusMX/cumulusmx.sh  
?

Martin
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by dazza1223 »

yh mate put it at the top off it
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
maddinthebrain
Posts: 33
Joined: Mon 07 Aug 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by maddinthebrain »

It worked! Perfect! Thanks a lot

Martin
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by dazza1223 »

Glad to here that
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by jlmr731 »

maddinthebrain wrote:I use cronjob to start Cumulus.

Code: Select all

@reboot sudo /home/pi/CumulusMX/cumulusmx.sh  
It is the start stop Skript.
How to do this here? Put it in a small bash file? Like that

Code: Select all

#!/bin/bash
sleep 30
Sudo /home/pi/CumulusMX/cumulusmx.sh  
?

Martin
glad to here that worked, figured it was easier than writing a script to check if share was up.

Now you should be able to to put the sleep 30 inside the cumulusmx.sh instead of making another script to call cumulusmx.sh
maddinthebrain
Posts: 33
Joined: Mon 07 Aug 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by maddinthebrain »

jlmr731 wrote:
glad to here that worked, figured it was easier than writing a script to check if share was up.

Yeah, indeed. Even if it is not perfect but it works.
jlmr731 wrote:
Now you should be able to to put the sleep 30 inside the cumulusmx.sh instead of making another script to call cumulusmx.sh
Well I guess I'll leave this way, because the Smart home server Fhem had the same problem, I call its script with an additional line in my startup.sh.
Furthermore I don't want to edit those scripts, as they will be updated from time to time.


Cheers Martin
jank
Posts: 239
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: FineOffset WS3080
Operating System: Debian Buster - Raspbian - Raspb
Location: Germany - nearby Kassel

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by jank »

Hello

the cumulusMX Start Stop Script is able to handle such conditions.
Some month ago, one had a problem running cumulusmx.sh when installed on a USB Drive which was also not mounted at system boot.
PLease check this: https://cumulus.hosiene.co.uk/viewtopic.p ... &start=150

Or a more inproved version: https://cumulus.hosiene.co.uk/viewtopic.p ... 59#p120459
This is, when cumulusmx.sh is being started by a init.d startup script but network drives are not mounted yet.
In this case, the script will run in a kind of loop until the drives are available....

cheers jan
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by jlmr731 »

jank wrote:Hello

the cumulusMX Start Stop Script is able to handle such conditions.
Some month ago, one had a problem running cumulusmx.sh when installed on a USB Drive which was also not mounted at system boot.
PLease check this: https://cumulus.hosiene.co.uk/viewtopic.p ... &start=150

Or a more inproved version: https://cumulus.hosiene.co.uk/viewtopic.p ... 59#p120459
This is, when cumulusmx.sh is being started by a init.d startup script but network drives are not mounted yet.
In this case, the script will run in a kind of loop until the drives are available....

cheers jan
I thought of that script but was not sure it was setup to check for mounts, as i always look for the easiest thing to do.
jank
Posts: 239
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: FineOffset WS3080
Operating System: Debian Buster - Raspbian - Raspb
Location: Germany - nearby Kassel

Re: Cumulus on a Samba share - no autostart with start stop skript

Post by jank »

As far as I remember I made this option because for any reason the cron entry "@reboot" does not work anymore.
Someone had CumulusMX installed on a USB drive but it was mounted after the init.d Sctipt was executed with the result, that CumuluxMX could not be started.
For this reason, I made the option ./cumulusmx.sh -w (watchdog)
In this case you can create a normal cronjob which is being executed every 10 minutes (for example).
In case CumulusMX is already runing, nothing happens. In case CumulusMX is NOT running it is being started.
So in the worst case, CumulusMX is being started 10 minutes after reboot....his should be enough time to mount a USB drive or a network drive.
Jan
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
Locked