Lumi icon indicating copy to clipboard operation
Lumi copied to clipboard

Lumi: File could not be saved

Open devaxel opened this issue 3 years ago • 8 comments

Lumi 0.7.2 Opened a h5p-File, which I created two weeks ago. The project consists of a Video (45min) an some questions. I just replaced the Videofile and want to save the h5p-File, but get the Error "h5p File could not be saved". Is there any Log or hint, why Lumi can't save the file?

devaxel avatar Sep 17 '21 10:09 devaxel

Same in LUMI 0.8.1. For excample: I repaced the Video-File and try to save the h5p-Project with a different name. Receive the message "... could not be saved" and the Dev-Tools shows this "api/v1/lumi?contentId=2406055844&path=undefined:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)" Any solution for that?

devaxel avatar Sep 22 '21 11:09 devaxel

Lumi does not create logs by default. It's possible to start Lumi in debug mode by starting it from the command line like this (Windows 10):

set DEBUG=h5p*
set LOG_LEVEL=debug
C:\Users\YOURWINDOWSUSERNAME\AppData\Local\Programs\lumi\Lumi.exe

You'll then see a long log. Reproduce the error and copy the last 50-100 lines here and we can check what's wrong. The error message you get is very generic as it obscures the actual error by just giving a 500 HTTP response.

sr258 avatar Sep 22 '21 14:09 sr258

Thanks for your response. While starting Lumi the Log in the command line is written and ends with 2021-09-23T09:12:40.167Z h5p:ContentFileScanner Checking entry $.interactiveVideo.assets.interactions[8].adaptivity.wrong.message (type text) 2021-09-23T09:12:40.168Z h5p:ContentScanner seekLabel has no params but is not optional. 2021-09-23T09:12:40.168Z h5p:ContentFileScanner Checking entry $.interactiveVideo.assets.interactions[8].adaptivity.requireCompletion (type boolean) 2021-09-23T09:12:40.168Z h5p:ContentScanner visuals has no params but is not optional. 2021-09-23T09:12:40.169Z h5p:ContentScanner goto has no params but is not optional. 2021-09-23T09:12:40.169Z h5p:ContentFileScanner Checking entry $.interactiveVideo.assets.bookmarks (type list) 2021-09-23T09:12:40.169Z h5p:ContentFileScanner Checking entry $.interactiveVideo.assets.endscreens (type list) 2021-09-23T09:12:40.169Z h5p:ContentFileScanner Checking entry $.interactiveVideo.assets.endscreens[0] (type group) 2021-09-23T09:12:40.170Z h5p:ContentFileScanner Checking entry $.interactiveVideo.assets.endscreens[0].time (type number) 2021-09-23T09:12:40.170Z h5p:ContentFileScanner Checking entry $.interactiveVideo.assets.endscreens[0].label (type text)2021-09-23T09:12:40.170Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary (type group) 2021-09-23T09:12:40.178Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task (type library) 2021-09-23T09:12:40.178Z h5p:LibraryManager loading semantics for library H5P.Summary-1.10 2021-09-23T09:12:40.179Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.intro (type text) 2021-09-23T09:12:40.179Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.summaries (type list) 2021-09-23T09:12:40.179Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.summaries[0] (type group) 2021-09-23T09:12:40.180Z h5p:ContentScanner summary has no params but is not optional. 2021-09-23T09:12:40.180Z h5p:ContentScanner found single group entry $.interactiveVideo.summary.task.params.summaries[0].tip 2021-09-23T09:12:40.180Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.summaries[0].tip (type text) 2021-09-23T09:12:40.181Z h5p:ContentScanner found single group entry $.interactiveVideo.summary.task.params.overallFeedback 2021-09-23T09:12:40.181Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.overallFeedback (type list) 2021-09-23T09:12:40.182Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.overallFeedback[0] (type group) 2021-09-23T09:12:40.182Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.overallFeedback[0].from (type number) 2021-09-23T09:12:40.183Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.overallFeedback[0].to (type number) 2021-09-23T09:12:40.183Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.solvedLabel (type text) 2021-09-23T09:12:40.184Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.scoreLabel (type text) 2021-09-23T09:12:40.184Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.resultLabel (type text) 2021-09-23T09:12:40.185Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.labelCorrect (type text) 2021-09-23T09:12:40.185Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.labelIncorrect (type text) 2021-09-23T09:12:40.185Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.alternativeIncorrectLabel (type text) 2021-09-23T09:12:40.185Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.labelCorrectAnswers (type text) 2021-09-23T09:12:40.186Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.tipButtonLabel (type text) 2021-09-23T09:12:40.186Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.scoreBarLabel (type text) 2021-09-23T09:12:40.186Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.task.params.progressText (type text) 2021-09-23T09:12:40.193Z h5p:ContentFileScanner Checking entry $.interactiveVideo.summary.displayAt (type number) 2021-09-23T09:12:40.193Z h5p:ContentFileScanner Checking entry $.override (type group) 2021-09-23T09:12:40.194Z h5p:ContentFileScanner Checking entry $.override.autoplay (type boolean) 2021-09-23T09:12:40.194Z h5p:ContentFileScanner Checking entry $.override.loop (type boolean) 2021-09-23T09:12:40.194Z h5p:ContentFileScanner Checking entry $.override.showSolutionButton (type select) 2021-09-23T09:12:40.195Z h5p:ContentFileScanner Checking entry $.override.showBookmarksmenuOnLoad (type boolean) 2021-09-23T09:12:40.195Z h5p:ContentFileScanner Checking entry $.override.showRewind10 (type boolean) 2021-09-23T09:12:40.195Z h5p:ContentFileScanner Checking entry $.override.preventSkipping (type boolean) 2021-09-23T09:12:40.196Z h5p:ContentFileScanner Checking entry $.override.deactivateSound (type boolean) 2021-09-23T09:12:40.196Z h5p:ContentFileScanner Checking entry $.l10n (type group) 2021-09-23T09:12:40.196Z h5p:ContentFileScanner Checking entry $.l10n.interaction (type text) 2021-09-23T09:12:40.197Z h5p:ContentFileScanner Checking entry $.l10n.play (type text) 2021-09-23T09:12:40.197Z h5p:ContentFileScanner Checking entry $.l10n.pause (type text) 2021-09-23T09:12:40.197Z h5p:ContentFileScanner Checking entry $.l10n.mute (type text) 2021-09-23T09:12:40.197Z h5p:ContentFileScanner Checking entry $.l10n.unmute (type text) 2021-09-23T09:12:40.198Z h5p:ContentFileScanner Checking entry $.l10n.quality (type text) 2021-09-23T09:12:40.198Z h5p:ContentFileScanner Checking entry $.l10n.captions (type text) 2021-09-23T09:12:40.198Z h5p:ContentFileScanner Checking entry $.l10n.close (type text) 2021-09-23T09:12:40.199Z h5p:ContentFileScanner Checking entry $.l10n.fullscreen (type text) 2021-09-23T09:12:40.199Z h5p:ContentFileScanner Checking entry $.l10n.exitFullscreen (type text) 2021-09-23T09:12:40.200Z h5p:ContentFileScanner Checking entry $.l10n.summary (type text) 2021-09-23T09:12:40.200Z h5p:ContentFileScanner Checking entry $.l10n.bookmarks (type text) 2021-09-23T09:12:40.200Z h5p:ContentFileScanner Checking entry $.l10n.endscreen (type text) 2021-09-23T09:12:40.201Z h5p:ContentFileScanner Checking entry $.l10n.defaultAdaptivitySeekLabel (type text) 2021-09-23T09:12:40.201Z h5p:ContentFileScanner Checking entry $.l10n.continueWithVideo (type text) 2021-09-23T09:12:40.201Z h5p:ContentFileScanner Checking entry $.l10n.playbackRate (type text) 2021-09-23T09:12:40.202Z h5p:ContentFileScanner Checking entry $.l10n.rewind10 (type text) 2021-09-23T09:12:40.202Z h5p:ContentFileScanner Checking entry $.l10n.navDisabled (type text) 2021-09-23T09:12:40.202Z h5p:ContentFileScanner Checking entry $.l10n.sndDisabled (type text) 2021-09-23T09:12:40.209Z h5p:ContentFileScanner Checking entry $.l10n.requiresCompletionWarning (type text) 2021-09-23T09:12:40.209Z h5p:ContentFileScanner Checking entry $.l10n.back (type text) 2021-09-23T09:12:40.210Z h5p:ContentFileScanner Checking entry $.l10n.hours (type text) 2021-09-23T09:12:40.210Z h5p:ContentFileScanner Checking entry $.l10n.minutes (type text) 2021-09-23T09:12:40.210Z h5p:ContentFileScanner Checking entry $.l10n.seconds (type text) 2021-09-23T09:12:40.210Z h5p:ContentFileScanner Checking entry $.l10n.currentTime (type text) 2021-09-23T09:12:40.211Z h5p:ContentFileScanner Checking entry $.l10n.totalTime (type text) 2021-09-23T09:12:40.211Z h5p:ContentFileScanner Checking entry $.l10n.singleInteractionAnnouncement (type text) 2021-09-23T09:12:40.211Z h5p:ContentFileScanner Checking entry $.l10n.multipleInteractionsAnnouncement (type text) 2021-09-23T09:12:40.211Z h5p:ContentFileScanner Checking entry $.l10n.videoPausedAnnouncement (type text) 2021-09-23T09:12:40.212Z h5p:ContentFileScanner Checking entry $.l10n.content (type text) 2021-09-23T09:12:40.212Z h5p:ContentFileScanner Checking entry $.l10n.answered (type text) 2021-09-23T09:12:40.212Z h5p:ContentFileScanner Checking entry $.l10n.endcardTitle (type text) 2021-09-23T09:12:40.212Z h5p:ContentFileScanner Checking entry $.l10n.endcardInformation (type text) 2021-09-23T09:12:40.213Z h5p:ContentFileScanner Checking entry $.l10n.endcardInformationNoAnswers (type text) 2021-09-23T09:12:40.213Z h5p:ContentFileScanner Checking entry $.l10n.endcardInformationMustHaveAnswer (type text) 2021-09-23T09:12:40.213Z h5p:ContentFileScanner Checking entry $.l10n.endcardSubmitButton (type text) 2021-09-23T09:12:40.213Z h5p:ContentFileScanner Checking entry $.l10n.endcardSubmitMessage (type text) 2021-09-23T09:12:40.214Z h5p:ContentFileScanner Checking entry $.l10n.endcardTableRowAnswered (type text) 2021-09-23T09:12:40.214Z h5p:ContentFileScanner Checking entry $.l10n.endcardTableRowScore (type text) 2021-09-23T09:12:40.214Z h5p:ContentFileScanner Checking entry $.l10n.endcardAnsweredScore (type text) 2021-09-23T09:12:40.215Z h5p:ContentFileScanner Checking entry $.l10n.endCardTableRowSummaryWithScore (type text) 2021-09-23T09:12:40.215Z h5p:ContentFileScanner Checking entry $.l10n.endCardTableRowSummaryWithoutScore (type text) 2021-09-23T09:12:40.223Z h5p:PackageExporter adding content files to 25700893 2021-09-23T09:12:40.298Z h5p:H5PEditor getting library overview for libraries: H5P.InteractiveVideo 1.22. Requested language: de 2021-09-23T09:12:40.299Z h5p:LibraryManager loading library H5P.InteractiveVideo-1.22. Requested language: de 2021-09-23T09:12:40.302Z h5p:LibraryManager Trying to localize title 2021-09-23T09:12:40.302Z h5p:TranslatorWithFallback Trying to localize key H5P_InteractiveVideo.title into de 2021-09-23T09:12:40.303Z h5p:TranslatorWithFallback Trying namespace hub 2021-09-23T09:12:40.303Z h5p:TranslatorWithFallback Successfully localized to Interaktives Video (Interactive Video)

Then I changed the Videofile in Lumi (delete the video and inserted a new one) and try to save to a new h5p-file - error "File could not be saved"...but in the Log nothing more happens, no entries are added. The logging ends after starting Lumi and open the h5p-project file.

devaxel avatar Sep 23 '21 09:09 devaxel

Sorry for the inactivity here. I have some time to pick this up again. Does this consistently happen with the same file and can be reproduced? If so, could you upload it to a sharing system like Dropbox and share the link with [email protected].

sr258 avatar Dec 06 '21 16:12 sr258

Hi We have the Same Bug, after switching a Video the File you cant save... All Files have the Problem.

somion2606 avatar May 05 '23 14:05 somion2606

Hi, and one more ... but tried also to unpack and save the HP5...

All works fine as I add an MP4 and save it. Replacing or removing leads always to a "... could not be saved" in the same or a new H5P file... it's a filesize or video bug?

Tried to replace the big MP4 with a mall one in the h5p-zip using same name but didn't work... think cant pass the json-check without edit in content.json...

So removed the last slide in slides [{}, ... ,{}] in content.json and the video file and folder ... but also didnt work. Is there a slide counter or hash? How to fix a file?

khsbsolc avatar Jun 09 '23 10:06 khsbsolc

Same happens if you try to remove a video from your H5P. The H5P is not saved with the error-message "...could not be saved". The H5P-file is writte though, but only contains /h5p.json and /content/content.json - /content/images, /conten/videos and all the editor-related parts of the h5p-file are missing.

Workaround: If you remove the video first using 7zip or any other zip-tool from the h5p-file, then you can remove the (now broken) video in Lumi without crashing the file upon saving...

laboratum avatar Jul 03 '23 11:07 laboratum

Works for me! THX

khsbsolc avatar Jul 19 '23 16:07 khsbsolc