Code Monkey home page Code Monkey logo

Comments (6)

zelon88 avatar zelon88 commented on May 20, 2024

Hi there! Sorry to hear you're having trouble.

Can you please tell me the version of the application you are running? This information can be found in the versionInfo.php file located in the installation directory. Also could you please send me the 5 or so lines of log entries above this one? You can redact the time, filename, and seshash directories of the path but please leave the file extensions.

If you're feeling brave and this is a private install (not public facing) and you can limit outside access for testing...

You can search the convertCore.php file located in the installation directory for errorEntry('The file '.$Pathname.' failed second stage validation!', 14002, TRUE); and replace it with errorEntry('The file '.$Pathname.' failed second stage validation!', 14002, FALSE); and then try your conversion again. Doing this will allow HRConvert2 to continue after encountering this error. Your conversion will probably still fail, but we will get some interesting logs out of it that will help with diagnosing this.

from hrconvert2.

zelon88 avatar zelon88 commented on May 20, 2024

After carefully reviewing the log entry you already shared, I realized that your log entry doesn't have a session identifier. I think you might be running something other than the latest version of HRConvert2. The version can be found in the versionInfo.php file located in the installation directory.

The current version is v2.9.5 but I'll probably have v2.9.6 done tomorrow. One of the things being addressed is that the docs for this error (14002) and a couple others are inaccurate in stating this error is non-fatal. Still, v2.9.5 seems to work for me at least most of the time.

I recommend you backup your installation directory, especially the config.php file and then update HRConvert2 to the current v2.9.5 before troubleshooting your version further.

from hrconvert2.

HenriChabert avatar HenriChabert commented on May 20, 2024

Hello and thanks for your answers!

I was indeed in version 2.9.2 as I was using the Docker image that itself uses the releases on the project. I just tried changing it to master but I still have the same problem, here are the logs that I get:

Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/f5ad64e98703: Verified inbound connection.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/f5ad64e98703: Verified globals.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/f5ad64e98703: Verified required directories.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/f5ad64e98703: Cleaned temporary location.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/f5ad64e98703: Cleaned convert location.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/f5ad64e98703: Could not verify tokens!
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/f5ad64e98703: Verified color scheme.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/f5ad64e98703: Verified language.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/f5ad64e98703: Displaying the GUI.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Verified inbound connection.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Verified globals.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Created a directory at /home/converter/a90b82c9243c/52027d28ddcf/.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Created a directory at /var/www/html/HRProprietary/HRConvert2/DATA/a90b82c9243c/52027d28ddcf/.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Verified required directories.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Cleaned temporary location.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Cleaned convert location.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Verified tokens.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Verified color scheme.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Verified language.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Displaying the GUI.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Initiating Uploader.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: User selected to Upload file test.pdf.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Uploaded file test.pdf to /home/converter/a90b82c9243c/52027d28ddcf/test.pdf.
Op-Act, November 17, 2022, 9:59 am, a90b82c9243c/52027d28ddcf: Upload Complete.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified inbound connection.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified globals.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified required directories.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Cleaned temporary location.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Cleaned convert location.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified tokens.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified color scheme.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified language.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Displaying the GUI.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified inbound connection.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified globals.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified required directories.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Cleaned temporary location.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Cleaned convert location.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified tokens.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified color scheme.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified language.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Skipping display GUI procedure.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Initiating Converter.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: User selected to perform OCR on file test.pdf.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Copying file test.pdf to /var/www/html/HRProprietary/HRConvert2/DATA/a90b82c9243c/52027d28ddcf/test.pdf.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Copied file test.pdf.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified file /home/converter/a90b82c9243c/52027d28ddcf/test.txt.
ERROR!!! November 17, 2022, 10:00 am, Henri Convert-22, a90b82c9243c/52027d28ddcf: OCR Operation Failed!
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified inbound connection.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified globals.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified required directories.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Cleaned temporary location.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Cleaned convert location.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified tokens.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified color scheme.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Verified language.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Skipping display GUI procedure.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: Initiating Downloader.
Op-Act, November 17, 2022, 10:00 am, a90b82c9243c/52027d28ddcf: User selected to Download file test.txt.
ERROR!!! November 17, 2022, 10:00 am, Henri Convert-14002, a90b82c9243c/52027d28ddcf: The file /var/www/html/HRProprietary/HRConvert2/DATA/a90b82c9243c/52027d28ddcf/test.txt failed second stage validation!

Here, the file is test.pdf and I tried to convert it into .txt..
I have verified that I am using the version 2.9.5 of HRConvert2.

Thanks for your help, do not hesitate if you need me to investigate any further. Fyi, my system is a Debian GNU/Linux 11.0 and I am launching HRConvert through the Docker image proposed here: https://github.com/dwaaan/HRConvert2-Docker

from hrconvert2.

HenriChabert avatar HenriChabert commented on May 20, 2024

I also tried to set this error as non blocking as you suggested, but as expected, convert fails with these two log lines:

ERROR!!! November 17, 2022, 10:06 am, Henri Convert-3002, a90b82c9243c/52027d28ddcf: File test.txt does not exist!
ERROR!!! November 17, 2022, 10:06 am, Henri Convert-19, a90b82c9243c/52027d28ddcf: Download Failed!

And actually, I feel that makes sense because the file that is copied to the new temp folder is the original file, before it is converted. Thus, although the file test.txt does not exist, it is the file test.pdf that is in this folder, so it seems the extension to test is not the right one or the file is somehow not converted with the right extension.

See on the bottom the content of the file HRProprietary/HRConvert2/DATA/a90b82c9243c/52027d28ddcf.
image

from hrconvert2.

HenriChabert avatar HenriChabert commented on May 20, 2024

Hi @zelon88,

So after a little bit more of investigation, I found out two things that made my file failing:

  • There was a problem when filename contained a whitespace, I submitted a PR to fix that here: #23
  • There was a problem with .mov file although it was written as supported in documentation. I submitted a PR here: #24

About the last one, I have a question, where is the variable $VideoArray initialized line 370 used? Can't we use this one for the conversion instead of $videoarray initialized line 1133?

from hrconvert2.

zelon88 avatar zelon88 commented on May 20, 2024

Thanks for taking the time to support the project!

I've recently merged these and will get back to you in a future version about your last question.

from hrconvert2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.