[Dxspider-support] Help please! user_json is 13Gb!

Keith Maton g6nhu at me.com
Wed Dec 7 14:11:55 GMT 2022


Jan,

This looks like a more efficient way than my current method of tidying the logs.  A couple of questions.

Why use 1-12 for the month, wouldn’t a * work just the same?

What is the relevance of (q[find…. Rather than just spawn(find ?

Thanks.



> On 7 Dec 2022, at 12:27, Jan via Dxspider-support <dxspider-support at tobit.co.uk> wrote:
> 
> Kin
> This is the correct sript. (I did not move the mouse far enough....)
> 
> 0 0 * 1-12 * spawn(q[find /spider/local_data/debug -type f -mtime +2 -exec rm -f {} \;])
> 2 0 * 1-12 * spawn(q[find /spider/local_data/log -type f -mtime +2 -exec rm -f {} \;])
> 3 0 * 1-12 * spawn(q[find /spider/local_data/spots -type f -mtime +2 -exec rm -f {} \;])
> 4 0 * 1-12 * spawn(q[find /spider/local_data/wcy -type f -mtime +1 -exec rm -f {} \;])
> 5 0 * 1-12 * spawn(q[find /spider/local_data/wwv -type f -mtime +1 -exec rm -f {} \;])
> 
> 
> 
> 
> Op 7-12-2022 om 12:18 schreef Joaquin via Dxspider-support:
>> Jan, looks like they are missing ")" ????
>> 
>> Kin EA3CV
>> 
>> 
>> 
>> El 07/12/2022 a las 11:13, Jan via Dxspider-support escribió:
>>> Keith
>>>  I am using this script in the crontab
>>> 
>>> #We need to clean old data
>>> #
>>> 0 0 * 1-12 * spawn(q[find /spider/local_data/debug -type f -mtime +2 -exec rm -$
>>> 2 0 * 1-12 * spawn(q[find /spider/local_data/log -type f -mtime +2 -exec rm -f $
>>> 3 0 * 1-12 * spawn(q[find /spider/local_data/spots -type f -mtime +2 -exec rm -$
>>> 4 0 * 1-12 * spawn(q[find /spider/local_data/wcy -type f -mtime +1 -exec rm -f $
>>> 5 0 * 1-12 * spawn(q[find /spider/local_data/wwv -type f -mtime +1 -exec rm -f $
>>> 
>>> 73
>>> Jan PA4JJ
>>> 
>>> Op 7-12-2022 om 11:06 schreef Keith Maton via Dxspider-support:
>>>> I can’t, the SD card is full and the export fails.  Now the node has stopped again.
>>>> 
>>>> Looking for logs I can delete so I can try again..
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On 7 Dec 2022, at 09:32, Joaquin via Dxspider-support <dxspider-support at tobit.co.uk> <mailto:dxspider-support at tobit.co.uk> wrote:
>>>>> 
>>>>> Sorry, I don't know why I didn't read about the user_json file.
>>>>> Do an export_user, remove the 13GB one, and reboot.
>>>>> 
>>>>> Kin
>>>>> 
>>>>> El 07/12/2022 a las 10:29, Joaquin via Dxspider-support escribió:
>>>>>> Keith,
>>>>>> 
>>>>>> Look to see what you have defined in debug: sh/debug, you also have many traces and you can reduce them with unset/debug.
>>>>>> Or you can limit the number of log files if your FS is small.
>>>>>> 
>>>>>> Kin
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> El 07/12/2022 a las 10:23, Keith Maton via Dxspider-support escribió:
>>>>>>> I spoke too soon.
>>>>>>> 
>>>>>>> Woke up this morning to a crashed node, the Pi was still running but when I tried to connect externally to the node, I had no response, when I logged on and issued a /spider/perl/console.pl command, I just had a grey screen.  I’ve checked the debug log and it fell over at 02:29:47 this morning.  The last entry in the debug log is just a normal spot.
>>>>>>> 
>>>>>>> I successfully rebooted and it’s all running but I have PRTG monitoring and I just got pinged for low disk space.
>>>>>>> 
>>>>>>> When I check, my /local_data/user_json file has grown to 13Gb.
>>>>>>> 
>>>>>>> Any idea what’s caused this?  Can I just stop the node, delete the file and restart?  I suspect with less than 50Mb disk space, it’s going to crash soon anyway.
>>>>>> 
>>>>>> 
>>>>>> _______________________________________________
>>>>>> Dxspider-support mailing list
>>>>>> Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
>>>>>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>>>> _______________________________________________
>>>>> Dxspider-support mailing list
>>>>> Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
>>>>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Dxspider-support mailing list
>>>> Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
>>>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>> 
>>> -- 
>>> 73
>>> Jan
>>> PA4JJ
>>> ______________________________________________________
>>> 
>>> My dxspider clusters running 24/7 on a raspberry pi 2
>>> pa4jj-2 telnet 77.174.195.163 port 7300
>>> pa4jj-3 telnet 77.174.195.163 port 7388
>>> 
>>> 
>>> _______________________________________________
>>> Dxspider-support mailing list
>>> Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
>>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>> 
>> 
>> _______________________________________________
>> Dxspider-support mailing list
>> Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
> 
> -- 
> 73
> Jan
> PA4JJ
> ______________________________________________________
> 
> My dxspider clusters running 24/7 on a raspberry pi 2
> pa4jj-2 telnet 77.174.195.163 port 7300
> pa4jj-3 telnet 77.174.195.163 port 7388
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at tobit.co.uk
> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20221207/62de322e/attachment.htm>


More information about the Dxspider-support mailing list