{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/news/issues/901","labels_url":"https://api.github.com/repos/owncloud/news/issues/901/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/news/issues/901/comments","events_url":"https://api.github.com/repos/owncloud/news/issues/901/events","html_url":"https://github.com/owncloud/news/issues/901","id":123736643,"number":901,"title":"502 errors citing news/api after Tasks app upgrade","user":{"login":"Bugsbane","id":401733,"avatar_url":"https://avatars.githubusercontent.com/u/401733?v=3","gravatar_id":"","url":"https://api.github.com/users/Bugsbane","html_url":"https://github.com/Bugsbane","followers_url":"https://api.github.com/users/Bugsbane/followers","following_url":"https://api.github.com/users/Bugsbane/following{/other_user}","gists_url":"https://api.github.com/users/Bugsbane/gists{/gist_id}","starred_url":"https://api.github.com/users/Bugsbane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bugsbane/subscriptions","organizations_url":"https://api.github.com/users/Bugsbane/orgs","repos_url":"https://api.github.com/users/Bugsbane/repos","events_url":"https://api.github.com/users/Bugsbane/events{/privacy}","received_events_url":"https://api.github.com/users/Bugsbane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/news/labels/Support","name":"Support","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-23T23:32:52Z","updated_at":"2016-01-09T22:13:30Z","closed_at":"2016-01-09T15:49:03Z","body":"After a failed upgrade of the tasks app (reported at https://github.com/owncloud/tasks/issues/286 ) my ownCloud site just gives 502 errors, with the following news errors in the log. Even disabling news doesn't seem to get rid of the 502's.\r\n\r\nNginx logs show this repeatedly:\r\n````\r\n[error] 15381#0: *20266 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: mydomain.com, request: \"GET /index.php/apps/news/api/v1-2/cleanup/before-update HTTP/1.1\", upstream: \"fastcgi://unix:/run/php-fpm/php-fpm.sock:\", host: \"mydomain.com\"\r\n````\r\n\r\nThe last errors in the ownCloud log are:\r\n\r\n````\r\n\r\n{\"reqId\":\"n27YRvgQfC7tH7xEphcy\",\"remoteAddr\":\"58.179.254.124\",\"app\":\"carddav\",\"message\":\"Exception: {\\\"Message\\\":\\\"HTTP\\\\\\/1.1 503 System in maintenance mode.\\\",\\\"Exception\\\":\\\"Sabre\\\\\\\\DAV\\\\\\\\Exception\\\\\\\\ServiceUnavailable\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 [internal function]: OC\\\\\\\\Connector\\\\\\\\Sabre\\\\\\\\MaintenancePlugin->checkMaintenanceMode(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#1 \\\\\\/srv\\\\\\/http\\\\\\/webapps\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#2 \\\\\\/srv\\\\\\/http\\\\\\/webapps\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(456): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('beforeMethod', Array)\\\\n#3 \\\\\\/srv\\\\\\/http\\\\\\/webapps\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(254): Sabre\\\\\\\\DAV\\\\\\\\Server->invokeMethod(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#4 \\\\\\/srv\\\\\\/http\\\\\\/webapps\\\\\\/owncloud\\\\\\/apps\\\\\\/contacts\\\\\\/appinfo\\\\\\/remote.php(84): Sabre\\\\\\\\DAV\\\\\\\\Server->exec()\\\\n#5 \\\\\\/srv\\\\\\/http\\\\\\/webapps\\\\\\/owncloud\\\\\\/remote.php(137): require_once('\\\\\\/srv\\\\\\/http\\\\\\/webap...')\\\\n#6 {main}\\\",\\\"File\\\":\\\"\\\\\\/srv\\\\\\/http\\\\\\/webapps\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/connector\\\\\\/sabre\\\\\\/maintenanceplugin.php\\\",\\\"Line\\\":84}\",\"level\":4,\"time\":\"Sun , 20 Dec 2015 - 07 02 pm\"}\r\n{\"reqId\":\"T27d\\/olhAZEiyB1qm4cl\",\"remoteAddr\":\"\",\"app\":\"PHP\",\"message\":\"file_get_contents(\\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/checksum.json): failed to open stream: No such file or directory at \\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/application.php#189\",\"level\":3,\"time\":\"Sun , 20 Dec 2015 - 09 53 pm\"}\r\n{\"reqId\":\"A1sqOxrWFs5jOFGG9aa6\",\"remoteAddr\":\"\",\"app\":\"PHP\",\"message\":\"file_get_contents(\\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/checksum.json): failed to open stream: No such file or directory at \\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/application.php#189\",\"level\":3,\"time\":\"Sun , 20 Dec 2015 - 09 54 pm\"}\r\n{\"reqId\":\"3yZgPqfTiOcdA8irQefy\",\"remoteAddr\":\"\",\"app\":\"PHP\",\"message\":\"file_get_contents(\\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/checksum.json): failed to open stream: No such file or directory at \\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/application.php#189\",\"level\":3,\"time\":\"Sun , 20 Dec 2015 - 09 54 pm\"}\r\n{\"reqId\":\"R7k5CFlnfseHW\\/8wC3JE\",\"remoteAddr\":\"\",\"app\":\"PHP\",\"message\":\"file_get_contents(\\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/checksum.json): failed to open stream: No such file or directory at \\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/application.php#189\",\"level\":3,\"time\":\"Sun , 20 Dec 2015 - 09 54 pm\"}\r\n{\"reqId\":\"F3sjdGtb2wHiK42cfzW7\",\"remoteAddr\":\"\",\"app\":\"PHP\",\"message\":\"file_get_contents(\\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/checksum.json): failed to open stream: No such file or directory at \\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/application.php#189\",\"level\":3,\"time\":\"Sun , 20 Dec 2015 - 09 55 pm\"}\r\n{\"reqId\":\"5\\/vP+VltTOb8c0mrOrTg\",\"remoteAddr\":\"\",\"app\":\"PHP\",\"message\":\"file_get_contents(\\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/checksum.json): failed to open stream: No such file or directory at \\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/application.php#189\",\"level\":3,\"time\":\"Sun , 20 Dec 2015 - 09 55 pm\"}\r\n{\"reqId\":\"+aXmEkp9PhDOjFqxbyZM\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"can't remove app tasks. It is not installed.\",\"level\":3,\"time\":\"Tue , 22 Dec 2015 - 01 10 am\"}\r\n{\"reqId\":\"UDnv8f3j5\\/sCpbjxx\\/HO\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"can't remove app tasks. It is not installed.\",\"level\":3,\"time\":\"Tue , 22 Dec 2015 - 01 14 am\"}\r\n{\"reqId\":\"kFbDMFAo6sn1d7mtR+os\",\"remoteAddr\":\"\",\"app\":\"PHP\",\"message\":\"file_get_contents(\\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/checksum.json): failed to open stream: No such file or directory at \\/srv\\/http\\/webapps\\/owncloud\\/apps\\/news\\/appinfo\\/application.php#189\",\"level\":3,\"time\":\"Tue , 22 Dec 2015 - 01 24 am\"}\r\n\r\n````\r\n\r\nDisabling Tasks and News and using occ maintenance:repair doesn't seem to make any difference.\r\n\r\nI also tried rerplacing the /apps/news folder with a newly downloaded version.\r\n\r\nDespite these errors, the News app was working just fine before my attempted upgrade of Tasks, and I'm quite sure I only opted to upgrade Tasks and not News. Neither checksum.json or news/api appear to exist."},"comment":{"url":"https://api.github.com/repos/owncloud/news/issues/comments/170287022","html_url":"https://github.com/owncloud/news/issues/901#issuecomment-170287022","issue_url":"https://api.github.com/repos/owncloud/news/issues/901","id":170287022,"user":{"login":"Bugsbane","id":401733,"avatar_url":"https://avatars.githubusercontent.com/u/401733?v=3","gravatar_id":"","url":"https://api.github.com/users/Bugsbane","html_url":"https://github.com/Bugsbane","followers_url":"https://api.github.com/users/Bugsbane/followers","following_url":"https://api.github.com/users/Bugsbane/following{/other_user}","gists_url":"https://api.github.com/users/Bugsbane/gists{/gist_id}","starred_url":"https://api.github.com/users/Bugsbane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bugsbane/subscriptions","organizations_url":"https://api.github.com/users/Bugsbane/orgs","repos_url":"https://api.github.com/users/Bugsbane/repos","events_url":"https://api.github.com/users/Bugsbane/events{/privacy}","received_events_url":"https://api.github.com/users/Bugsbane/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T22:13:30Z","updated_at":"2016-01-09T22:13:30Z","body":"Sorry. I should have updated. Yes, clearing the PHP cache and restarting the server fixed the issue. Carry on. :)"}}