Open fritzcloud opened 2 years ago
Hello,
I looked through the dockerfile to make sure that it jives with the installation instructions as far as creating the environment and everything looks good.
That being said, we can rule out permissions. We know this because uploading small files works.
The only other limiting factor is PHP. When we deploy HRConvert2 on bare metal we manually modify the PHP ini file to increase the PHP default values for 'max_post_size' and 'upload_max_filesize' to account for this. I would start looking here.
More reading about this error from the official docs is available here.
ERROR MESSAGE
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-6002, <SESSION_IDENTIFIER>: Could not upload file <FILE_NAME> to <FILE_PATH>!
FILE
convertCore.php
FATAL
NO
LOGGED
YES
ERROR DESCRIPTION
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
The file or folder located at <FILE_PATH> does not exist or cannot be accessed.
The www-data:www-data user:group needs to have read & write access to the specified file or directory.
This may be the result of incorrect file permission levels on the directory where the specified file or directory is stored.
This may be the result of incorrect user or group associations for the www-data user or group.
The device where data is stored has an insufficient amount of storage space available.
Hello, I have the same problem Following @zelon88 suggestion, I entered the container, updated the php.ini and restarted apache2 Now it works, code below:
sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 16G/g' /etc/php/7.4/apache2/php.ini
sed -i 's/post_max_size = 8M/post_max_size = 16G/g' /etc/php/7.4/apache2/php.ini
/etc/init.d/apache2 restart
When uploading some documents (not all, especially very small pdfs and pictures seem to be fine) I get an upload error in the log:
ERROR!!! June 27, 2022, 10:07 am, HRConvert2-6002, a16c5885dfb1/e0e7e40c4152: Could not upload file "FILE NAME" to /home/converter/a16c5885dfb1/e0e7e40c4152/"FILE NAME"! ERROR!!! June 27, 2022, 10:07 am, HRConvert2-18, a16c5885dfb1/e0e7e40c4152: Upload Failed!
The website does not show any errors, but when continuing it says 0 valid documents.