Comments (6)
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.
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.
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.
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
.
from hrconvert2.
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.
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)
- COPY AND PASTE THE INCLUDED "rc-local.service" FILE TO "/etc/systemd/system/rc-local.service"** HOT 4
- honestrepair.net is down? HOT 1
- Server reqa for 1k online user? HOT 1
- Cannot install on a Synology NAS HOT 1
- `rar` package unavailable on ARM HOT 2
- v3.1 - xlsx to pdf: failed second stage validation! HOT 9
- Video to Gif conversion HOT 2
- Support for subtitle conversions HOT 3
- Converter is not working HOT 3
- Command line or HTTP Rest API usage? HOT 4
- Conversions not working - <title>404 Not Found</title> HOT 3
- .avi file not shown after successful upload HOT 4
- Docker package for NAS HOT 1
- Hover Tooltips? HOT 1
- Default Dimensions For Photos HOT 1
- Error Timezone HOT 2
- Docker not maintained? HOT 34
- Access by API rest? HOT 2
- The specified Data Storage Directory does not exist HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hrconvert2.