ffmpeg encoding error moov atom not found

I am encoding video on Alpine based linux system. It was encoding properly suddenly error started coming

I, [2019-01-11T04:50:57.870798 #1]  INFO -- : Running transcoding...
["/usr/bin/ffmpeg", "-y", "-i", "/myapp/tmp/1547182257-1-0002-1657/mp4/test_video.mp4", "-vcodec", "libx264", "-acodec", "aac", "-r", "30", "-strict", "-2", "-map_metadata", "-1", "-s", "640x360", "-aspect", "1.7777777777777777", "/myapp/tmp/1547182257-1-0002-1657/mp4/tmpfile.mp4"]

E, [2019-01-11T04:50:57.893509 #1] ERROR -- : Failed encoding...
["/usr/bin/ffmpeg", "-y", "-i", "/myapp/tmp/1547182257-1-0002-1657/mp4/test_video.mp4", "-vcodec", "libx264", "-acodec", "aac", "-r", "30", "-strict", "-2", "-map_metadata", "-1", "-s", "640x360", "-aspect", "1.7777777777777777", "/myapp/tmp/1547182257-1-0002-1657/mp4/tmpfile.mp4"]

ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.4.0 (Alpine 6.4.0)
  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libmp3lame --enable-librtmp --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f52bf838520] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f52bf838520] moov atom not found
/myapp/tmp/1547182257-1-0002-1657/mp4/test_video.mp4: Invalid data found when processing input

Any suggestions?