On 10/07/18 20:33, mm0fmf wrote:
> On 10/07/2018 08:53, RobH wrote:
>> After getting help from people in this group, my python intruder program
>> was working just great at first.
>>
>> Then a few days later , when I ran the python script, it returned:
>>
>> IOError: [Errno 28] No space left on device.
>>
>> I then ran
>>
>> pi@raspberrypi:/mnt/CCTV/PiZero $ df -Bm
>> Filesystem 1M-blocks Used Available Use%
Mounted on
>> /dev/root 14850M 3434M
10752M 25% /
>> devtmpfs 182M
0M 182M 0% /dev
>> tmpfs 186M
186M 0M 100% /dev/shm <<<<
>> tmpfs 186M
8M 178M 4% /run
>>
>> Next, I ran:
>>
>> pi@raspberrypi:/mnt/CCTV/PiZero $ ls -l /run/shm
>> lrwxrwxrwx 1 root root 8 Jun 24 18:46 /run/shm -> /dev/shm
>>
>> Then:
>>
>> pi@raspberrypi:/mnt/CCTV/PiZero $ cp /run/shm/*.h264 /mnt/CCTV/PiZero
>>
>> Where about 30/40 h264 files were copied across to my NAS /PiZero folder
>>
>> pi@raspberrypi:/mnt/CCTV/PiZero $ rm -f /run/shm/*.h264
>> pi@raspberrypi:/mnt/CCTV/PiZero $ df -Bm
>> Filesystem 1M-blocks Used Available Use%
Mounted on
>> /dev/root 14850M 3434M
10752M 25% /
>> devtmpfs 182M
0M 182M 0% /dev
>> tmpfs 186M
0M 186M 0% /dev/shm
>>
>> I am curious as to why this is happening, as the files are being written
>> to the sdcard, or it looks that way.
>>
>> The whole purpose of the script was to avoid files being written to the
>> sdcard.
>> Correct me if I am wrong here.
>
> You are wrong. The main problem is failure to read what is on the screen
> followed by jumping to the wrong conclusion.
>
> For example, this thread title includes "no space on sdcard" yet the
> error message was "no space left on device". The df (disk free) command
> shows there is 10725MB free. So why did you decide the sdcard was full
> when the command you ran showed 10G free?
>
> Read the message. Stop. Read it again. Then check you read it correctly.
>
>
Ok I assumed wrongly then that the device was the sdcard.
I thought that because of the error message, to follow, an no files
written to my NAS Pizero folder were copied or written.
pi@raspberrypi:~/Downloads $ python intruder.py
Traceback (most recent call last):
File "intruder.py", line 35, in
camera.wait_recording(10)
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line
1167, in wait_recording
encoder.wait(timeout)
File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", line
395, in wait
self.stop()
File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", line
815, in stop
super(PiVideoEncoder, self).stop()
File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", line
419, in stop
self._close_output()
File "/usr/lib/python2.7/dist-packages/picamera/encoders.py", line
349, in _close_output
mo.close_stream(output, opened)
File "/usr/lib/python2.7/dist-packages/picamera/mmalobj.py", line
368, in close_stream
stream.close()
IOError: [Errno 28] No space left on device
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|