samatild / LinuxAiOPerf

Linux All-In-One Performance Checker & Report tool
MIT License
22 stars 1 forks source link

Issue when loading the gz file to your web app #12

Closed waldirio closed 1 year ago

waldirio commented 1 year ago

Hello,

I'm facing some issues when loading the .gz file to your application, the compacted file was created by the script, I can extract and check the content with no issues. However, when selecting the .gz file and clicking on Upload, I can see the message below.

Something Went Wrong!

An unexpected error has occurred during the upload. Please review the following guidelines:
Guidelines:

    Your tarball contents do not match server requirements.
    Are you uploading the correct report?
    Ensure that you are running the latest version.
    Tarball should be generated from the collector script.
    Instructions on how to collect data can be found [here](https://github.com/samatild/LinuxAiOPerf#how-to-collect-data-capture).
waldirio commented 1 year ago

Hello @samatild

btw, is there any other project that you are sharing the content of the webapp that you are hosting? That one it's also pretty interesting and I'm sure that we can improve it.

Thank you for your work as well! Congrats++ Waldirio

samatild commented 1 year ago

Hi @waldirio Thanks!

The webapp is maintained separately.

I have added additional server exceptions which block the upload of reports that got generated from previous versions. Currently the server only supports release 1.7 onwards If some of the files are missing from the tarball, it will fail, most likely some required file is not being generated , and I'm aiming for the other issue #9 you opened

let me check

samatild commented 1 year ago

Yeah, as initially assumed: Issue from #9 causing a missing file on the report.

Fixed on script release 1.8 issues by #13 by forcing output files to be created before the start of actual captures.

@waldirio feel free to re-open this one if it still doesn't work after testing with 1.8

waldirio commented 1 year ago

Hello @samatild

Thank you for the heads up.

Tested in the latest version

# ./linux_aio_perfcheck.sh --version
Linux All-in-One Performance Collector, version 1.8

When loading the new gz file in the webapp

Something Went Wrong!

An unexpected error has occurred during the upload. Please review the following guidelines:
Guidelines:

    Your tarball contents do not match server requirements.
    Are you uploading the correct report?
    Ensure that you are running the latest version.
    Tarball should be generated from the collector script.
    Instructions on how to collect data can be found [here](https://github.com/samatild/LinuxAiOPerf#how-to-collect-data-capture).

Thank you! Waldirio

waldirio commented 1 year ago

Hello,

Btw, I can't reopen your issue, I believe only you can do it.

Thank you! Waldirio

samatild commented 1 year ago

found an issue on how web app processes the uploaded files, implemented a small band-aid :) hope it works