OUTAGE - 2 days! Urgent - Unable to generate pdfs 404 Not Found

We have a process in place and have not made any recent changes. Our application is down due to the 404 errors from aspose. Please advise if you need additional Information.

Here is from the errors we received
PHP Fatal error: Uncaught Aspose\PDF\ApiException: [404] Client error: PUT [https://api.aspose.cloud/v3.0/pdf/storage/file/copy/template/cover_page_edited_05092025.pdf?destPath=working%2F9ccf45c773_cover_page_edited_05092025.pdf](https://api.aspose.cloud/v3.0/pdf/storage/file/copy/template/cover_page_edited_05092025.pdf?destPath=working%2F9ccf45c773_cover_page_edited_05092025.pdf) resulted in a 404 Not Found response:
{“RequestId”:“6402d7b1d24926407abfc87b97b54054”,“Error”:{“Code”:“errorAmazonS3Storage”,“Message”:"AmazonS3 Storage excep (truncated…)
in /var/www/aspose-pdf-cloud-php/src/Aspose/PDF/Api/PdfApi.php:144
Stack trace:
#0 /var/www/aspose-pdf-cloud-php/src/Aspose/PDF/Api/PdfApi.php(101): Aspose\PDF\Api\PdfApi->copyFileWithHttpInfo(‘template/cover_…’, ‘working/9ccf45c…’, NULL, NULL, NULL)
#1 /var/www/aspose-pdf-cloud-php/affiliation_agreement/aspose_xml.class.affil.php(829): Aspose\PDF\Api\PdfApi->copyFile(‘template/cover_…’, ‘working/9ccf45c…’)
#2 /var/www/aspose-pdf-cloud-php/affiliation_agreement/generate_pdf_from_xml.affil.php(78): PdfApiUsage->copyFile(‘template/cover_…’, ‘working/9ccf45c…’)
#3 {main}
thrown in /var/www/aspose-pdf-cloud-php/src/Aspose/PDF/Api/PdfApi.php on line 144

Fatal error: Uncaught Aspose\PDF\ApiException: [404] Client error: PUT [https://api.aspose.cloud/v3.0/pdf/storage/file/copy/template/cover_page_edited_05092025.pdf?destPath=working%2F9ccf45c773_cover_page_edited_05092025.pdf](https://api.aspose.cloud/v3.0/pdf/storage/file/copy/template/cover_page_edited_05092025.pdf?destPath=working%2F9ccf45c773_cover_page_edited_05092025.pdf) resulted in a 404 Not Found response:
{“RequestId”:“6402d7b1d24926407abfc87b97b54054”,“Error”:{“Code”:“errorAmazonS3Storage”,“Message”:"AmazonS3 Storage excep (truncated…)
in /var/www/aspose-pdf-cloud-php/src/Aspose/PDF/Api/PdfApi.php on line 144

Aspose\PDF\ApiException: [404] Client error: PUT [https://api.aspose.cloud/v3.0/pdf/storage/file/copy/template/cover_page_edited_05092025.pdf?destPath=working%2F9ccf45c773_cover_page_edited_05092025.pdf](https://api.aspose.cloud/v3.0/pdf/storage/file/copy/template/cover_page_edited_05092025.pdf?destPath=working%2F9ccf45c773_cover_page_edited_05092025.pdf) resulted in a 404 Not Found response:
{“RequestId”:“6402d7b1d24926407abfc87b97b54054”,“Error”:{“Code”:“errorAmazonS3Storage”,“Message”:"AmazonS3 Storage excep (truncated…)
in /var/www/aspose-pdf-cloud-php/src/Aspose/PDF/Api/PdfApi.php on line 144

Call Stack:
0.0008 413328 1. {main}() /var/www/aspose-pdf-cloud-php/affiliation_agreement/generate_pdf_from_xml.affil.php:0
1.8691 20370560 2. PdfApiUsage->copyFile() /var/www/aspose-pdf-cloud-php/affiliation_agreement/generate_pdf_from_xml.affil.php:78
1.8691 20370560 3. Aspose\PDF\Api\PdfApi->copyFile() /var/www/aspose-pdf-cloud-php/affiliation_agreement/aspose_xml.class.affil.php:829

hi, @pfrworksite.
What type of storage are you using? Please provide sample code to reproduce the issue.

FYI - We have made no code changes prior to this error.

Storage is digital ocean for storage. It’s possible they use something else in the backend.

Here is the code clip based on the error:

function create_managers_checklist($file_prefix,$xml_file){
$file_start = time();
$oPDF2 = new PdfApiUsage;
$oPDF2->setUp();
$managFile = $file_prefix.‘_Managers_Affiliate_Data_Form.pdf’;
$tempFileFull = ‘working/’.$managFile;
$oPDF2->copyFile(‘template/Managers_Affiliate_Data_Form_2024_01_17.pdf’, $tempFileFull);
$oPDF2->writeFromXml($managFile,‘/working/xml/’.$xml_file);
$oPDF2->copyFile($tempFileFull, ‘final/’.$managFile);
$oPDF2->testFlatten($managFile);
$file_end = time();
$time_elapsed = $file_end - $file_start;
echo "Processing file: “.$managFile.” took “.$time_elapsed. " seconds.”.PHP_EOL;
$oPDF2->pullFromCloud(“final”,$managFile);
}

Hi, I just paid for support. Are you able to expedite the assistance on this one?

@pfrworksite , this code sample is correct. Can you view files in storage on Dashboard?

I can see some files but not the ones we are looking for. We use Aspose in different use cases. 2 of the 3 are failing.

@pfrworksite, So try to upload the missing files. And check the data retention policy in the storage.

Our templates folder was there for years, along with many files. Around Monday the folder completely disappeared. We had not changed the retention settings to keep it indefinitely, so Aspose appears to have lost it.

@pfrworksite, thank you for feedback. Does this files exists on the digital ocean storage? We will investigate the issue and continue to assist you accordingly.