Closed amiles347 closed 3 years ago
Hi Andy,
I am using the same camera and it works fine on my side so we'll need to investigate a bit deeper.
Did you fill the info in ftp-settings.sh
?
Currently, if you have UPLOAD_IMG set to true but ftp-settings.sh
not filled, it will create a lot of lftp threads and it can kill the service.
Thomas
Yes - ftp is working. Last night, I reduced the image size for ftp transfer and it didn't crash. So I think you have almost the right diagnosis. Each ftp transfer was overlapping until they eventually got too many and killed the service. However, wouldn't that produce an over memory limit rather than a seg fault?
I had a similar issue with lftp when it snowed a lot and the wifi connection got really bad. I have seen some segfaults as well during timelapse creation. I believe the segfault happens when one of the threads dies unexpectedly (lack of memory for example). I will have to do some research to see if it can be handled more nicely.
Not a fix but you can use systemd to restart the service should it go down for any reason:
[Service] User=pi ExecStart=/home/pi/allsky/allsky.sh StandardOutput=null StandardError=syslog SyslogFacility=local5 Restart=on-failure
Andy
Thanks Any, that's a good idea. For some reason, I have a similar version on my camera but forgot to commit the changes.
Restart=always
RestartSec=5
I read something about the fact that if it tries to restart too many times with 10 seconds, it won't start at all. That's why I added the delay.
This issue is from a much older release of the AllSky software. If you think it might still be relevant, please test it with the newest version and submit a new issue if needed. Users have not reported this problem in a while.
I've a recurring segmentation fault. It happens nightly but at different times:
settings.json:
{"width":"0","height":"0","exposure":"10000","maxexposure":"20000","autoexposure":"1","gain":"50","maxgain":"200","autogain":"0","gamma":"50","brightness":"50","wbr":"53","wbb":"90","bin":"1","delay":"10","daytimeDelay":"5000","type":"1","quality":"95","usb":"40","filename":"image.jpg","flip":"0","text":"text","textx":"15","texty":"30","fontname":"0","fontcolor":"255 255 255","fonttype":"0","fontsize":"0.7","fontline":"1","latitude":"51N","longitude":"2W","angle":"-6","time":"1","darkframe":"0","showDetails":"1"}
config.sh:
Night 1 log file (Crashed early on in the night):
Night 2 log file (Appears to crash on transition from night to day. However, no end of night data generated):
Using an ASI224MC on a Pi 3 B+. Could it be an unexpected exit from the ftp server causing some issue?
Andy