What could be causing this error?



  • Been working on the Time-lapse Webcam tutorial in the Onion Handbook. (Onion Team, thanks for the writing the book!). It help to reset our Omega2+ and start from scratch as now the code matches the tutorial's code.

    Now receiving the following error(s):

    0_1497539833076_41f5a20e-3082-4c80-83f8-eea50c7e2084-image.png

    For now, just focusing on the first one - "can't cd to /root/sd/timeplase/" (was previously /root/sd/timelapse).

    Here is the code:

    0_1497539978472_MakeVideoError3.JPG

    Tried many searches (stackoverflow, etc..) and variations to line 3, but no success. It seems like a simple, but elusive, resolution.

    Any ideas! Thanks in advance.



  • If you followed the tutorial then is more likely that your SD is not mounted.

    First error indicates that folder /root/sd/timelapse doesn't exists, and second one depends on listing it's contents, so if folder doesn't exists then there is no content, so can't do 'ls' so 'for' exits.



  • @Carlos-Sancho

    Updated the path and eliminated that error. The shortcut link might not be setup correctly.

    0_1497553806540_MakeVideoError4.JPG

    Running ls for /tmp/run/mountd/mmcblk0p1/timelapse does list the *.jpg files.

    Now, working on this error.

    0_1497553963208_MakeVideoError5.JPG



  • May be shooting in the dark, but put the "do" back on the "for" line (line 8).



  • Revised the code to the following:

    0_1497630008224_MakeVideoCode.JPG

    It runs without generating the previous errors, but the results show more trouble shooting is necessary:

    0_1497630071409_MakeVideoResults.JPG

    There are *.jpg two files that are now in the directory after the program ran, and the new file(s) should be an *.mp4:

    0_1497630168691_MakeVideoFiles.JPG

    Now, working on to see what is causing it.



Looks like your connection to Onion Community was lost, please wait while we try to reconnect.