wallabag / android-app

Android application to read your articles saved in your wallabag. You can also easily add new articles.
https://www.wallabag.org
GNU General Public License v3.0
483 stars 259 forks source link

Error 500 with Wallabag server 2.3.5 #757

Closed biva closed 5 years ago

biva commented 5 years ago

Hello, I just updated to 2.3.5 and my wallabag on android (2.1.0) displays now this error: Error: com.di72nn.stuff.wallabag.apiwrapper.exceptions.UnsuccessfulResponseException: HTTP response: 500 Internal Server Error I tried to reinstall the app, but same issue :(

I see a lot of related issues but I don't find a solution for me (https://github.com/wallabag/android-app/issues/649 or https://github.com/wallabag/android-app/issues/97 or https://github.com/wallabag/android-app/issues/731 for example)

biva commented 5 years ago

@j0k3r thank you for your comment in https://github.com/wallabag/wallabag/issues/3817

It's a bad configuration.

Is it a bad configuration on my wallabag server? My Android client? Of wallabag server in general? How could I investigate this issue?

For reference:

j0k3r commented 5 years ago

I said it's a bad wallabag configuration for the related issue, not yours. Can you check for logs in wallabag? like var/logs/*

biva commented 5 years ago

logs:

[2019-01-02 15:47:09] request.INFO: Matched route "api_get_version". {"route":"api_get_version","route_parameters":{"_controller":"Wallabag\ApiBundle\Controller\UserRestController::getVersionAction","_format":"json","_route":"api_get_version"},"request_uri":"https://www.mywallabag.com/api/version.json","method":"GET"} [] [2019-01-02 15:47:09] app.ERROR: Authentication failure for user "", from IP "192.168.1.1", with UA: "okhttp/3.11.0". [] [] [2019-01-02 15:47:10] request.INFO: Matched route "api_get_entries". {"route":"api_get_entries","route_parameters":{"_controller":"Wallabag\ApiBundle\Controller\EntryRestController::getEntriesAction","_format":"json","_route":"api_get_entries"},"request_uri":"https:// www.mywallabag.com/api/entries.json?order=desc&page=1&perPage=1&since=0&sort=created","method":"GET"} [] [2019-01-02 15:47:10] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The directory "/var/www/html/wallabag/var/cache/prod/jms_serializer" is not writable." at /var/www/html/wallabag/vendor/jms/metadata/src/Metadata/Cache/FileCache.php line 39 {"exception":"[object] (InvalidArgumentException(code: 0): The directory \"/var/www/html/wallabag/var/cache/prod/jms_serializer\" is not writable. at /var/www/html/wallabag/vendor/jms/metadata/src/Metadata/Cache/FileCache.php:39)"} []

biva commented 5 years ago

I made the directory writable with sudo chown -R www-data:www-data bin app/config vendor data web var And now it works :) Thank you!!

j0k3r commented 5 years ago

https://doc.wallabag.org/en/admin/installation/rightaccess.html :wink: