Hello,
the news-android-app doesn’t work for me under nextcloud
Seems to be a fault while the app tries to login.
Ciao,
Joachim
Hello,
the news-android-app doesn’t work for me under nextcloud
Seems to be a fault while the app tries to login.
Ciao,
Joachim
Thanks for the bug report. Seems like I somehow need to find an Android device somewhere to debug such stuff
Anyhow, any chance that you could apply https://github.com/nextcloud/server/pull/110 to your instance and let us know whether this helps?
I’ll try it and come back to you…
@LukasReschke
Sorry for the noob question:
I’ve changed
lib/private/appframework/http/request.php lib/public/irequest.php
but where do I find
tests/lib/appframework/http/RequestTest.php
You don’t have to change this file
Then the patch doesn’t fix the error with the android news app
Try searching the bug tracker https://github.com/owncloud/News-Android-App/issues/520
Nothing really related to nextcloud, do you use an opcode cache?
Thank You @BernhardPosselt
sudo -u www-data php /var/www/owncloud/occ config:app:set news installed_version --value=“8.7.5”
fixed the issue
yes.
Ciao,
Joachim
Failed updates are probably related to that (my guess). I’d recommend to turn it off
Thanks for this hint too.
But if I switch it of, nextcloud tells me, I shall activate a memoy-cache…
Ignore the message
Isn’t it better to run an opcache and clear the cache when you update any PHP code? I never had problems with updates caused by an opcache (with the News app too). You can manually clear the cache, e.g. when using mod_php
by restarting Apache. Or restarting php-fpm
service when running PHP with FPM.
Unsure how the app update process should work, can you clear the cache using php code?
AFAIk you just have to place the new ownCloud files, restart Apache or PHP-fpm and then run the updater. Now the new PHP code should be re-cached.
You can clear it in PHP but it depends on which opcache you use for zend it is opcache_reset();
for xcache it’s different. There is actually already some code in place for this https://github.com/nextcloud/server/blob/ff0dda9412403a370f98504ae722d31b24682971/lib/private/legacy/util.php#L1331 But looks like this is only used for writing the config file: https://github.com/nextcloud/server/blob/e991b23d9d74a7d8af9d7f824a5bbeaf1e629604/lib/private/Config.php#L260
Note: I have not much experience with all the cache systems. However I’m using xcache or opcache on 2 servers with ownCloud and Drupal etc and never had any problems with it, if I restarted/reloaded Apache.
@LEDfan right, the only question is when should you restart the server? When you see the update button?
Seems to bee a bug in the android news app, referring to the wrong database field:
Glad you fround the solution. Moving this to support as it’s not about features of Nextcloud or is apps, and closing as it’s been solved. Feel free to post any updates to the bug report though.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.