allsky icon indicating copy to clipboard operation
allsky copied to clipboard

scripts/timelapse.sh: line 102: : No such file or directory

Open robmorin opened this issue 5 years ago • 1 comments

Seems $ALLSKY_TMP might not be created or in wrong place or empty variable?

I ran the below manually as I did not have TIMELAPSE= set to true I do have a tmp dir within /home/pi/allsky dir

Output of /home/pi/allsky/scripts/timelapse.sh 20211013

pi@allsky:~/allsky$ scripts/timelapse.sh 20211013 timelapse.sh: Not regenerating sequence because KEEP_SEQUENCE was given and 604 links are present timelapse.sh: Using video scale 1442x1080 scripts/timelapse.sh: line 102: : No such file or directory

*** timelapse.sh: ERROR: ffmpeg failed. Error log is in ''.

Links in '/home/pi/allsky/images/20211013/sequence' left for debugging. Remove them when the problem is fixed.

rgrep of the allsky dir looking for that variable results in:

pi@allsky:~/allsky$ rgrep ALLSKY_TMP *

allsky.sh:mkdir -p "${ALLSKY_TMP}" allsky.sh:echo "${ARGUMENTS[@]}" > ${ALLSKY_TMP}/capture_args.txt config_repo/Makefile: @echo -e "export ALLSKY_TMP=/tmp\nexport ALLSKY_CONFIG=$(DESTDIR)$(sysconfdir)/allsky\nexport ALLSKY_SCRIPTS=$(DESTDIR)$(libexecdir)\nexport ALLSKY_NOTIFICATION_IMAGES=$(DESTDIR)$(sharedir)\nexport ALLSKY_IMAGES=/home/allsky/Pictures/" > $(DESTDIR)$(sysconfdir)/profile.d/allsky.sh scripts/upload.sh:LOG="${ALLSKY_TMP}/upload_log.txt" scripts/upload.sh: LFTP_CMDS="${ALLSKY_TMP}/lftp_cmds.txt" scripts/copy_notification_image.sh:IMAGE_TO_USE="${ALLSKY_TMP}/notification-${FULL_FILENAME}" scripts/copy_notification_image.sh: cp "${ALLSKY_HOME}/${FULL_FILENAME}" "${ALLSKY_TMP}" scripts/copy_notification_image.sh: IMAGE_TO_USE="${ALLSKY_TMP}/${FULL_FILENAME}" scripts/timelapse.sh: mkdir -p "${ALLSKY_TMP}" scripts/timelapse.sh: TMP="${ALLSKY_TMP}/timelapseTMP.txt" scripts/postData.sh:OUTPUT_FILE="${ALLSKY_TMP}/${FILE}" variables.sh: ALLSKY_TMP="${ALLSKY_TMP:-${ALLSKY_HOME}/tmp}"

Thanks for all your hard work on this great project!

robmorin avatar Oct 14 '21 12:10 robmorin

@robmorin Thanks for pointing this out. I just submitted a bug fix for it. It wasn't setting the TMP variable in the correct place, so the >> ${TMP} failed. You can grab the new timelapse.sh file.

You're welcome for all the hard work. We enjoy doing it, and the thanks we receive helps us keep going.

EricClaeys avatar Oct 14 '21 12:10 EricClaeys