owncloud-archive / news

:newspaper: News app for ownCloud
GNU Affero General Public License v3.0
290 stars 106 forks source link

custom Python updater Request failed with 401 #952

Closed g4bb4j03 closed 8 years ago

g4bb4j03 commented 8 years ago

Since I updated my ownCloud Server to version 9 and News Update to version 8.0.0 the custom Python update script reports an request failed with 401 on the command line. But the user and password are correct I used them before without any issue. In the ownCloud log I can see Login fail messages. First of all I was thinking maybe I did something wrong with the "make" that I have to run since all the Java scritp and PHP libs are not longe i nthe git repo but I get the same issue when I use the release tar.gz. What am I doing wrong?

System Information

2016-03-27 21:12:15,442 - ownCloud News Updater - ERROR - https://mydomain.net/index.php/apps/news/api/v1-2: Request failed with 401: {"message":"CORS requires basic auth"} Trying again in 30 seconds
2016-03-27 21:12:45,551 - ownCloud News Updater - ERROR - https://mydomain.net/index.php/apps/news/api/v1-2: Request failed with 401: {"message":"CORS requires basic auth"} Trying again in 30 seconds
2016-03-27 21:13:15,648 - ownCloud News Updater - ERROR - https://mydomain.net/index.php/apps/news/api/v1-2: Request failed with 401: {"message":"CORS requires basic auth"} Trying again in 30 seconds
2016-03-27 21:13:45,827 - ownCloud News Updater - ERROR - https://mydomain.net/index.php/apps/news/api/v1-2: Request failed with 401: {"message":"CORS requires basic auth"} Trying again in 30 seconds
2016-03-27 21:14:15,921 - ownCloud News Updater - ERROR - https://mydomain.net/index.php/apps/news/api/v1-2: Request failed with 401: {"message":"CORS requires basic auth"} Trying again in 30 seconds
2016-03-27 21:14:46,195 - ownCloud News Updater - ERROR - https://mydomain.net/index.php/apps/news/api/v1-2: Request failed with 401: {"message":"CORS requires basic auth"} Trying again in 30 seconds

Contents of owncloud/data/owncloud.log

{"reqId":"pcsj23QQ4B9OajsTbPbt","remoteAddr":"127.0.0.1","app":"core","message":"Login failed: '' (Remote IP: '127.0.0.1')","level":2,"time":"2016-03-27T19:12:15+00:00","method":"GET","url":"\/index.php\/apps\/news\/api\/v1-2\/cleanup\/before-update"}
{"reqId":"CJYP\/CdRQOxNoFIGqy6T","remoteAddr":"127.0.0.1","app":"core","message":"Login failed: '' (Remote IP: '127.0.0.1')","level":2,"time":"2016-03-27T19:12:45+00:00","method":"GET","url":"\/index.php\/apps\/news\/api\/v1-2\/cleanup\/before-update"}
{"reqId":"6XZLzS+cw84nx1oqKzPA","remoteAddr":"127.0.0.1","app":"core","message":"Login failed: '' (Remote IP: '127.0.0.1')","level":2,"time":"2016-03-27T19:13:15+00:00","method":"GET","url":"\/index.php\/apps\/news\/api\/v1-2\/cleanup\/before-update"}
{"reqId":"6o6jRpkoLWi5rQeg9RDm","remoteAddr":"127.0.0.1","app":"core","message":"Login failed: '' (Remote IP: '127.0.0.1')","level":2,"time":"2016-03-27T19:13:45+00:00","method":"GET","url":"\/index.php\/apps\/news\/api\/v1-2\/cleanup\/before-update"}
{"reqId":"pjpjr1FPh\/\/jB7Pj0Vfi","remoteAddr":"127.0.0.1","app":"core","message":"Login failed: '' (Remote IP: '127.0.0.1')","level":2,"time":"2016-03-27T19:14:15+00:00","method":"GET","url":"\/index.php\/apps\/news\/api\/v1-2\/cleanup\/before-update"}
{"reqId":"yM+sR786b8nwYd3d2A\/\/","remoteAddr":"127.0.0.1","app":"core","message":"Login failed: '' (Remote IP: '127.0.0.1')","level":2,"time":"2016-03-27T19:14:46+00:00","method":"GET","url":"\/index.php\/apps\/news\/api\/v1-2\/cleanup\/before-update"}
g4bb4j03 commented 8 years ago

Sorry is now issue of the news app was a issue with my owncloud 9 update. Some how the permission on my .htaccess was wrong and the mode rewrite rules did not work.

BernhardPosselt commented 8 years ago

OK great :)