Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp4 files are not uploaded after some time unknown #1

Closed
denven opened this issue Jan 7, 2023 · 2 comments
Closed

mp4 files are not uploaded after some time unknown #1

denven opened this issue Jan 7, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@denven
Copy link
Owner

denven commented Jan 7, 2023

Bug details:

  • Personal OneDrive account (not sure will it happen to the business account
  • found uploading stopped of *.mp4 file, but previously some mp4 files were uploaded
  • image files are still being uploaded
  • check the upload logs, and found a few errors as below:
create_upload_session /tmp/sd/record/2023Y01M04D05H/08M00S60.mp4, Error: CompactToken validation failed with reason code: 80049228.
upload_small_file /tmp/sd/record/2023Y01M07D00H/52M00S60.jpg, Error: CompactToken validation failed with reason code: 80049228.
@denven
Copy link
Owner Author

denven commented Jan 7, 2023

The errors are not related to the mp4 failure of uploading, the real cause is

  • the find command cannot assure the found items list by time ascendingly
# find /tmp/sd/record/2023Y01M07D01H/ -type f |  grep -A1 '14M00S60.jpg'
/tmp/sd/record/2023Y01M07D01H/14M00S60.jpg
/tmp/sd/record/2023Y01M07D01H/16M00S60.mp4
  • while using ls to check the order, the one newer than 14M00S60.jpg is not file 16M00S60.mp4
    image

  • the xxMyyS60.jpg file which xxMyyS60.mp4 has the same time generated to the recorded directory

  • when using find to search for the next file, sometimes it ignores the xxMyyS60.mp4 file and lists the next jpg file, if this situation continues, then only image files will be uploaded, and video files are ignored

# find /tmp/sd/record/2023Y01M07D01H/ -type f |  grep -A1 '15M00S60.jpg'
/tmp/sd/record/2023Y01M07D01H/15M00S60.jpg
/tmp/sd/record/2023Y01M07D01H/16M00S60.jpg

Fix solution: use ls to check next file

@denven
Copy link
Owner Author

denven commented Jan 7, 2023

Resolved

btw: The 80049228 error is caused by an invalid token which is not relevant to the file upload failure, check this issue solution #3

@denven denven closed this as completed Jan 7, 2023
@denven denven added the bug Something isn't working label Jan 7, 2023
@denven denven changed the title CompactToken validation failed with reason code: 80049228 mp4 files are not uploaded after some time unknown Jan 7, 2023
@denven denven self-assigned this Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant