Hi Ilario,

I opened an issue for the $RANDOM Thing.
I didn't know that shared-state replaced alfred.
I had the Problem with visualization in the luci-batman-adv Package which needed alfred-vis.
So I am using it therefore ;-)

Regards,
Andy

Am Di., 10. Nov. 2020 um 11:14 Uhr schrieb Ilario Gelmetti <iochesonome@gmail.com>:
Wow, you're finding pleeenty of issues with OpenWrt snapshot, could you
open one issue on Github for each of them?
Otherwise I fear we will forget about some of them.
Many thanks!!!!

There's also an error from Alfred, did you manually select Alfred package?
That Alfred cron line gets inserted here:
https://github.com/openwrt-routing/packages/blob/master/alfred/files/alfred.init#L127
In LibreMesh, shared-state was developed in order to avoid using Alfred.
Ciao!
Ilario

On 11/10/20 10:38 AM, Andy Schopf wrote:
> So as the second step I checked this on my "regular" node with openwrt
> 19.07.4
>
> logread shows:
> Tue Nov 10 10:34:00 2020 cron.info <http://cron.info> crond[720]: USER
> root pid 21244 cmd ((sleep $(($RANDOM % 30));
> /etc/shared-state/publishers/shared-state-publish_vouchers &&
> shared-state sync pirania &> /dev/null)&)
> Tue Nov 10 10:35:00 2020 cron.info <http://cron.info> crond[720]: USER
> root pid 21392 cmd ((sleep $(($RANDOM % 120)); shared-state sync
> babeld-hosts &> /dev/null)&)
> Tue Nov 10 10:35:00 2020 cron.info <http://cron.info> crond[720]: USER
> root pid 21393 cmd ((sleep $(($RANDOM % 120)); shared-state sync
> bat-hosts &> /dev/null)&)
> Tue Nov 10 10:35:00 2020 cron.info <http://cron.info> crond[720]: USER
> root pid 21394 cmd ((sleep $(($RANDOM % 120)); shared-state sync
> dnsmasq-hosts &> /dev/null)&)
> Tue Nov 10 10:35:00 2020 cron.info <http://cron.info> crond[720]: USER
> root pid 21396 cmd ((sleep $(($RANDOM % 120)); shared-state sync
> dnsmasq-leases &> /dev/null)&)
> Tue Nov 10 10:35:00 2020 cron.info <http://cron.info> crond[720]: USER
> root pid 21398 cmd ((sleep $(($RANDOM % 120)); shared-state sync
> nodes_and_links &> /dev/null)&)
> Tue Nov 10 10:35:00 2020 cron.info <http://cron.info> crond[720]: USER
> root pid 21403 cmd ( for file in /etc/alfred/* ; do [ -x $file ] &&
> $file ; done )
> Tue Nov 10 10:36:00 2020 cron.info <http://cron.info> crond[720]: USER
> root pid 21542 cmd ((for dataFile in /var/shared-state/data/* ; do
> shared-state bleach $(basename $dataFile .json); done &> /dev/null)&)
> Tue Nov 10 10:36:00 2020 cron.info <http://cron.info> crond[720]: USER
> root pid 21543 cmd ((sleep $(($RANDOM % 30));
> /etc/shared-state/publishers/shared-state-publish_vouchers &&
> shared-state sync pirania &> /dev/null)&)
>
> So no value, too
> BUT its an cron.info <http://cron.info>, not an cron.err like below.
> AND
> echo $RANDOM shows a random value each time...
>
> So again a problem of snapshot!
>
> Regards,
> Andy
>
> Am Di., 10. Nov. 2020 um 10:32 Uhr schrieb Andy Schopf
> <andymcschopf@gmail.com <mailto:andymcschopf@gmail.com>>:
>
>     hi all,
>
>     I found this output in logread:
>     Tue Nov 10 10:24:00 2020 cron.err crond[4541]: USER root pid 7114
>     cmd ((sleep $(($RANDOM % 30));
>     /etc/shared-state/publishers/shared-state-publish_vouchers &&
>     shared-state sync pirania &> /dev/null)&)
>     Tue Nov 10 10:24:00 2020 cron.err crond[4541]: USER root pid 7115
>     cmd ((for dataFile in /var/shared-state/data/* ; do shared-state
>     bleach $(basename $dataFile .json); done &> /dev/null)&)
>     Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7133
>     cmd ((sleep $(($RANDOM % 120)); shared-state sync dnsmasq-leases &>
>     /dev/null)&)
>     Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7134
>     cmd ((sleep $(($RANDOM % 120)); shared-state sync babeld-hosts &>
>     /dev/null)&)
>     Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7135
>     cmd ((sleep $(($RANDOM % 120)); shared-state sync bat-hosts &>
>     /dev/null)&)
>     Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7136
>     cmd ((sleep $(($RANDOM % 120)); shared-state sync nodes_and_links &>
>     /dev/null)&)
>     Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7137
>     cmd ((sleep $(($RANDOM % 120)); shared-state sync dnsmasq-hosts &>
>     /dev/null)&)
>     Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7138
>     cmd ( for file in /etc/alfred/* ; do [ -x $file ] && $file ; done )
>     Tue Nov 10 10:26:00 2020 cron.err crond[4541]: USER root pid 7154
>     cmd ((sleep $(($RANDOM % 30));
>     /etc/shared-state/publishers/shared-state-publish_vouchers &&
>     shared-state sync pirania &> /dev/null)&)
>
>     I thought the output in the logilfe should be with the used values?
>     I also got no return of an value by -> echo $RANDOM
>
>     Where should this be initialized?
>
>     Regards,
>     Andy
>
>
> _______________________________________________
> lime-users mailing list
> lime-users@lists.libremesh.org
> https://lists.libremesh.org/mailman/listinfo/lime-users
>


--
Ilario
iochesonome@gmail.com
ilario@sindominio.net
_______________________________________________
lime-users mailing list
lime-users@lists.libremesh.org
https://lists.libremesh.org/mailman/listinfo/lime-users