Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not saving to cloud after pdf generation #40

Open
ostasevych opened this issue Aug 10, 2023 · 1 comment
Open

Not saving to cloud after pdf generation #40

ostasevych opened this issue Aug 10, 2023 · 1 comment

Comments

@ostasevych
Copy link

ostasevych commented Aug 10, 2023

Hi! I have installed this app, trying to generate pdf with saving to cloud. There's the message, that it is successfully created and saved, however the file doesn't appear.

So, for the docx file in the logs I see:

[pdf_downloader] Error: RuntimeException: Converter "Array
(
    [0] => [fallback]
)
" has failed trying to convert MIME type "application/vnd.openxmlformats-officedocument.wordprocessingml.document" at <<closure>>

0. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 412
   OCA\PdfDownloader\Service\AnyToPdf->convertData()
1. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 478
   OCA\PdfDownloader\Service\FileSystemWalker->addFile()
2. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 543
   OCA\PdfDownloader\Service\FileSystemWalker->generateDownloadData()
3. /var/www/html/nextcloud/apps/pdf_downloader/lib/Controller/MultiPdfDownloadController.php line 313
   OCA\PdfDownloader\Service\FileSystemWalker->save()
4. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
   OCA\PdfDownloader\Controller\MultiPdfDownloadController->save()
5. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
   OC\AppFramework\Http\Dispatcher->executeController()
6. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch()
7. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
8. /var/www/html/nextcloud/lib/base.php line 1065
   OC\Route\Router->match()
9. /var/www/html/nextcloud/index.php line 36
   OC::handleRequest()

POST /apps/pdf_downloader/save/%252FDocuments%252Fdoc.pdf/%7BcacheFileId%7D
from 1**.***.1**.17 by username at 2023-08-10T22:42:37+03:00

The image JPEG file pdf generation says that it is fine, however no file appears.

I have also found that it is not possible to change the directory where to save the results: when changing it in the UI the window just refreshes, and the selection is not kept...

When trying to generate PNG I am getting the following error:

[pdf_downloader] Error: RuntimeException: Converter "Array
(
    [0] => [fallback]
)
" has failed trying to convert MIME type "image/png" at <<closure>>

0. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 412
   OCA\PdfDownloader\Service\AnyToPdf->convertData()
1. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 478
   OCA\PdfDownloader\Service\FileSystemWalker->addFile()
2. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 543
   OCA\PdfDownloader\Service\FileSystemWalker->generateDownloadData()
3. /var/www/html/nextcloud/apps/pdf_downloader/lib/Controller/MultiPdfDownloadController.php line 313
   OCA\PdfDownloader\Service\FileSystemWalker->save()
4. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
   OCA\PdfDownloader\Controller\MultiPdfDownloadController->save()
5. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
   OC\AppFramework\Http\Dispatcher->executeController()
6. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch()
7. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
8. /var/www/html/nextcloud/lib/base.php line 1065
   OC\Route\Router->match()
9. /var/www/html/nextcloud/index.php line 36
   OC::handleRequest()

POST /apps/pdf_downloader/save/%252FDocuments%252F%25D0%25BA%25D0%25B5%25D0%25BD%25D0%25B3%25D1%2583%25D1%2580%25D1%258F%25D1%2582%25D0%25BD%25D0%25B8%25D0%25BA.png/%252FDocuments%252F.%252F2023-08-10T22%253A52%253A14%252B03%253A00-Documents-%25D0%25BA%25D0%25B5%25D0%25BD%25D0%25B3%25D1%2583%25D1%2580%25D1%258F%25D1%2582%25D0%25BD%25D0%25B8%25D0%25BA.pdf/%7BcacheFileId%7D
from 1**.***.1**.17 by username at 2023-08-10T22:52:20+03:00

The same goes for plain TXT file:

[pdf_downloader] Error: RuntimeException: Converter "Array
(
[0] => [fallback]
)
" has failed trying to convert MIME type "text/plain" at <>

  1. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 412
    OCA\PdfDownloader\Service\AnyToPdf->convertData()
  2. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 478
    OCA\PdfDownloader\Service\FileSystemWalker->addFile()
  3. /var/www/html/nextcloud/apps/pdf_downloader/lib/Service/FileSystemWalker.php line 543
    OCA\PdfDownloader\Service\FileSystemWalker->generateDownloadData()
  4. /var/www/html/nextcloud/apps/pdf_downloader/lib/Controller/MultiPdfDownloadController.php line 313
    OCA\PdfDownloader\Service\FileSystemWalker->save()
  5. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\PdfDownloader\Controller\MultiPdfDownloadController->save()
  6. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
  7. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
  8. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
  9. /var/www/html/nextcloud/lib/base.php line 1065
    OC\Route\Router->match()
  10. /var/www/html/nextcloud/index.php line 36
    OC::handleRequest()

POST /apps/pdf_downloader/save/%252FDocuments%252F%25D1%2582%25D0%25B5%25D1%2581%25D1%2582.txt/%252FDocuments%252F.%252F2023-08-10T22%253A55%253A12%252B03%253A00-Documents-%25D1%2582%25D0%25B5%25D1%2581%25D1%2582.pdf/%7BcacheFileId%7D
from 1**.*.1.17 by username at 2023-08-10T22:55:36+03:00

@ostasevych ostasevych changed the title Not saving to cloud Not saving to cloud after pdf generation Aug 10, 2023
@rotdrop
Copy link
Owner

rotdrop commented Aug 16, 2023

Hi,

are the needed converter binaries installed, in particular unoconv? Does it work to convert the respective files on the command-line?

Maybe there are also some notes on the admin-settings page. There you will in particular find an overview of the converters that have been detected by the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants