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

Imaginary crashes- reliability question #2508

Closed
GogoFC opened this issue Jun 19, 2023 · 6 comments
Closed

Imaginary crashes- reliability question #2508

GogoFC opened this issue Jun 19, 2023 · 6 comments

Comments

@GogoFC
Copy link

GogoFC commented Jun 19, 2023

Steps To Reproduce

Imaginary works fine for a while. Then I use Nextcloud to edit some md files or upload photos, regular stuff, then Imaginary stops working. Reboot fixes it.

Photo previews showed only blank boxes. Rebooted.

Previews stopped generating for newly added photos. Rebooted

After reboot previews were generated for the photos I added before reboot but not newly added photos.

I rebooted the VM again and that didn't help.

Then I thought I'd restart the imaginary docker cointainer.

docker restart imaginary broke the UI and I got this message:
Screenshot from 2023-06-19 13-56-39

Rebooted again, previews are now working and new ones are generating. Everything seems to work.

I just restarted the docker container again to see if UI would break again and it didn't break.

Rebooted and everything works.

Broke twice today while just editing files and uploading photos.

Build Version

27.0.0

Environment

By using the scripts

Environment Details

Ubuntu 22 server
Besides not using ncadmin, mostly default settings were selected.

@GogoFC GogoFC added the bug label Jun 19, 2023
@GogoFC
Copy link
Author

GogoFC commented Jun 19, 2023

Update:

Managed to break it again.

I was just creating and editing a md file, uploaded some photos then the previews stopped again. Server was up for like 30 minutes maybe. Some photos wouldn't open and some photos actually opened, but not all.

Screenshots below:

Screenshot from 2023-06-19 15-19-54

Screenshot from 2023-06-19 15-18-26

@GogoFC
Copy link
Author

GogoFC commented Jun 19, 2023

So af far as logs, I see some recent ones which I'll paste

[no app in context] Error: GuzzleHttp\Exception\ClientException: Client error: `POST http://127.0.0.1:9000/pipeline?operations=%5B%7B%22operation%22%3A%22autorotate%22%7D%2C%7B%22operation%22%3A%22fit%22%2C%22params%22%3A%7B%22width%22%3A256%2C%22height%22%3A256%2C%22stripmeta%22%3A%22true%22%2C%22type%22%3A%22png%22%2C%22norotation%22%3A%22true%22%2C%22quality%22%3A%2280%22%7D%7D%5D` resulted in a `400 Bad Request` response:
{"message":"Empty or unreadable image","status":400}
 at <<closure>>

 0. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 69
    GuzzleHttp\Exception\RequestException::create("*** sensitive parameters replaced ***")
 1. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 204
    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
 2. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 153
    GuzzleHttp\Promise\Promise::callHandler()
 3. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php line 48
    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensitive parameters replaced ***")
 4. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 248
    GuzzleHttp\Promise\TaskQueue->run()
 5. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 224
    GuzzleHttp\Promise\Promise->invokeWaitFn()
 6. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 269
    GuzzleHttp\Promise\Promise->waitIfPending()
 7. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 226
    GuzzleHttp\Promise\Promise->invokeWaitList()
 8. /var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 62
    GuzzleHttp\Promise\Promise->waitIfPending()
 9. /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Promise\Promise->wait()
10. /var/www/nextcloud/lib/private/Http/Client/Client.php line 297
    GuzzleHttp\Client->request()
11. /var/www/nextcloud/lib/private/Preview/Imaginary.php line 147
    OC\Http\Client\Client->post()
12. /var/www/nextcloud/lib/private/Preview/GeneratorHelper.php line 62
    OC\Preview\Imaginary->getCroppedThumbnail()
13. /var/www/nextcloud/lib/private/Preview/Generator.php line 397
    OC\Preview\GeneratorHelper->getThumbnail()
14. /var/www/nextcloud/lib/private/Preview/Generator.php line 255
    OC\Preview\Generator->generateProviderPreview()
15. /var/www/nextcloud/lib/private/Preview/Generator.php line 155
    OC\Preview\Generator->getSmallImagePreview()
16. /var/www/nextcloud/lib/private/Preview/Generator.php line 116
    OC\Preview\Generator->generatePreviews()
17. /var/www/nextcloud/lib/private/PreviewManager.php line 192
    OC\Preview\Generator->getPreview()
18. /var/www/nextcloud/apps/files_trashbin/lib/Controller/PreviewController.php line 122
    OC\PreviewManager->getPreview()
19. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Files_Trashbin\Controller\PreviewController->getPreview()
20. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
21. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
22. /var/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
23. /var/www/nextcloud/lib/base.php line 1064
    OC\Route\Router->match()
24. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

GET /apps/files_trashbin/preview?fileId=11347&x=32&y=32&a=1
from 192.168.1.110 by nextcloudserver@domain.com at 2023-06-19T06:23:28-07:00

@szaimen
Copy link
Collaborator

szaimen commented Jun 19, 2023

Hi, see nextcloud/server#34262

@szaimen szaimen closed this as completed Jun 19, 2023
@GogoFC
Copy link
Author

GogoFC commented Jun 19, 2023

Hey. No that's not it. This really is a bug now.
I don't have server side encryption enabled.
Screenshot from 2023-06-19 19-03-05
Imaginary works but it crashes sometimes. I'll edit this post to explain that it works in the beginning and it ocasionally crashes.
I think I'll switch over to preview generator app, might take many hours but oh well, call me old fashioned :)

@GogoFC GogoFC changed the title Imaginary - Not a Bug, maybe a reliability question Imaginary crashes- reliability question Jun 19, 2023
@GogoFC
Copy link
Author

GogoFC commented Jun 19, 2023

Hi, see nextcloud/server#34262

Hey could you reopen this so that it will be seen, it's not the same issue. I though it would re-open after I had replied.

@enoch85 enoch85 reopened this Jun 19, 2023
@enoch85
Copy link
Member

enoch85 commented Aug 5, 2023

Any news?

@enoch85 enoch85 closed this as completed Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants