Open onkelSuSE opened 3 weeks ago
nextcloud.log nextcloud.log
For problems in the Nextcloud Deck Android app, you should open an issue here: https://github.com/stefan-niedermann/nextcloud-deck/issues/
@niclasheinz not in this case: HTTP-Statuscode 500 is clearly a server related issue and nothing that can be influenced by a client.
@stefan-niedermann I said it because I tested it with two 2 PNGs and 1 PDF. Everything worked fine.
i'm here if i should test anything...
Looks like this is an issue if the files_sharing app is disabled. In that case we do not support file attachments.
We should probably catch this case more gracefully in the deck app code.
@stefan-niedermann Is that something the android app checks?
{"reqId":"TYL99WS3gWOkKisXWItS","level":3,"time":"2024-06-21T07:30:54+00:00","remoteAddr":"2a00:6020:b20e:8b00:ccfb:a1c6:231:cbe","user":"heisecke","app":"deck","method":"POST","url":"/nextcloud/index.php/apps/deck/api/v1.0/boards/1/stacks/1/cards/7/attachments?","message":"Exception thrown: Exception","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.29.0","version":"29.0.2.2","exception":{"Exception":"Exception","Message":"Class \"OCA\Files_Sharing\AppInfo\Application\" not found in file '/var/www/nextcloud/lib/private/Share20/Manager.php' line 733","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Class \"OCA\Files_Sharing\AppInfo\Application\" not found","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/deck/lib/Service/FilesAppService.php","line":218,"function":"createShare","class":"OC\Share20\Manager","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/apps/deck/lib/Service/AttachmentService.php","line":212,"function":"create","class":"OCA\Deck\Service\FilesAppService","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/apps/deck/lib/Controller/AttachmentApiController.php","line":73,"function":"create","class":"OCA\Deck\Service\AttachmentService","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"create","class":"OCA\Deck\Controller\AttachmentApiController","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Share20/Manager.php","Line":733},"CustomMessage":"Exception thrown: Exception"}}
@stefan-niedermann Is that something the android app checks?
No, I haven't been aware of this condition. You should add it to the API documentation :)
I will see if we can easily check that, we are already talking to the capabilities
endpoint, Can we get the information about the enabled app from there?
We should probably catch this case more gracefully in the deck app code.
Maybe HTTP 412 (Precondition failed)?
dear deck developers,
i want to try your deck application on android and for that i want to upload an attachment on a card. But this ends up in an error:
Error in Android:
`App Version: 1.24.1 App Version Code: 1024001 App Flavor: play
Files App Version Code: 30290090 (PROD)
OS Version: 4.19.87-27102101(G980FXXSKHXEA) OS API Level: 33 Device: x1s Manufacturer: samsung Model (and Product): SM-G980F (x1seea)
it.niedermann.nextcloud.deck.exceptions.UploadAttachmentFailedException: 1 attachments failed to upload:App Version: 1.24.1 App Version Code: 1024001 App Flavor: play
Files App Version Code: 30290090 (PROD)
OS Version: 4.19.87-27102101(G980FXXSKHXEA) OS API Level: 33 Device: x1s Manufacturer: samsung Model (and Product): SM-G980F (x1seea)
com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException: HTTP-Anfrage ist fehlgeschlagen mit HTTP-Statuscode: 500 at it.niedermann.nextcloud.deck.remote.api.RequestHelper$ResponseConsumer.onResponse(RequestHelper.java:70) at com.nextcloud.android.sso.helper.Retrofit2Helper$1.lambda$enqueue$0(Retrofit2Helper.java:87) at com.nextcloud.android.sso.helper.Retrofit2Helper$1.$r8$lambda$n0izO5V3AflskH7z1H8dSLmVKXo(Unknown Source:0) at com.nextcloud.android.sso.helper.Retrofit2Helper$1$$ExternalSyntheticLambda0.run(Unknown Source:6) at java.lang.Thread.run(Thread.java:1012) Caused by: java.lang.RuntimeException: HTTP StatusCode wasn't 2xx: Got [HTTP 500] for Call [GET http://localhost//index.php/apps/deck/api/v1.0/boards/1/stacks/1/cards/7/attachments] with Message: [{"status":500,"message":"Internal server error: Please contact the server administrator if this error reappears multiple times, please include the request ID \"mEv5QMohIS7TN3sdmCYj\" below in your report.","requestId":"mEv5QMohIS7TN3sdmCYj"} ] at it.niedermann.nextcloud.deck.remote.api.RequestHelper$ResponseConsumer.buildCause(RequestHelper.java:87) ... 5 more
Error on server side:
POST","url":"/nextcloud/index.php/apps/deck/api/v1.0/boards/1/stacks/1/cards/7/attachments?", "message":"Exception thrown: Exception","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.29.0","version":"29.0.2.2", "exception":{"Exception":"Exception", "Message":"Class \"OCA\\Files_Sharing\\AppInfo\\Application\" not found in file '/var/www/nextcloud/lib/private/Share20/Manager.php' line 733", "Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Class \"OCA\\Files_Sharing\\AppInfo\\Application\" not found","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/deck/lib/Service/FilesAppService.php","line":218,"function":"createShare","class":"OC\\Share20\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/deck/lib/Service/AttachmentService.php","line":212,"function":"create","class":"OCA\\Deck\\Service\\FilesAppService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/deck/lib/Controller/AttachmentApiController.php","line":73,"function":"create","class":"OCA\\Deck\\Service\\AttachmentService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"create","class":"OCA\\Deck\\Controller\\AttachmentApiController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Share20/Manager.php","Line":733},"CustomMessage":"Exception thrown: Exception"}}
Operating system: PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Web server: Apache: 2.4.59
Database: mariadb: mariadb-server-10.5/stable 1:10.11.6-0+deb12u1 arm64
PHP version: 8.1.29
Nextcloud version: (see Nextcloud admin page) Nextcloud Hub 8 (29.0.2)
Where did you install Nextcloud from: Homepage
Signing status:
If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder
If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder
or
Insert your config.php content here Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)
Insert your Nextcloud log here
Insert your browser log here, this could for example include: