# Drone stopped authenticating

**URL:** <https://drone.discourse.group/t/drone-stopped-authenticating/2861>\
**Category:** Drone Support\
**Created:** [July 9, 2020, 5:48am UTC](https://drone.discourse.group/t/drone-stopped-authenticating/2861 "2020-07-09T05:48:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![buddyspencer](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/buddyspencer/32/5648_2.png) [@buddyspencer](https://drone.discourse.group/u/buddyspencer)\
**Post date:** [July 9, 2020, 5:48am UTC](https://drone.discourse.group/t/drone-stopped-authenticating/2861/1 "2020-07-09T05:48:52Z")

</div>

Hi,

I had to change my server because the old one died. I switched everything onto the new server and started with docker-compose, everything is reachable and works fine except drone. Everytime I tried to authenticate I run into following error:  
`Login Failed. <small>Post "https://gitea.xxx.yyy/login/oauth/access_token": dial tcp 192.168.0.110:443: connect: no route to host</small>`

When I try to ping my gitea instance from the drone container, it works without any issues.

---

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [July 9, 2020, 1:10pm UTC](https://drone.discourse.group/t/drone-stopped-authenticating/2861/2 "2020-07-09T13:10:54Z")

</div>

are you running the latest version of Drone and Gitea? Gitea switched from basic authentication to oauth2 authentication. The error would indicate you may be running an old version of Gitea that lacks oauth2, or you did not configure a Gitea oauth2 application. You may also want to check with the Gitea community support to see if there was a regression.

---

<div class="post-metadata">

**Author:** ![buddyspencer](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/buddyspencer/32/5648_2.png) [@buddyspencer](https://drone.discourse.group/u/buddyspencer)\
**Post date:** [July 9, 2020, 4:26pm UTC](https://drone.discourse.group/t/drone-stopped-authenticating/2861/3 "2020-07-09T16:26:53Z")

</div>

I am running 1.12.1. I think that’s the latest.  
I also opened a request at the gitea community.

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [July 9, 2020, 5:15pm UTC](https://drone.discourse.group/t/drone-stopped-authenticating/2861/4 "2020-07-09T17:15:55Z")

</div>

> [@Can logging go to stdout instead of stderr?](https://drone.discourse.group/t/can-logging-go-to-stdout-instead-of-stderr/7672/1):
>
> When I try to ping my gitea instance from the drone container, it works without any issues.

The `no route to host` indicates a networking issue that prevents requests from reaching the target. Are you sure the address and port are reachable from inside the Drone container? Have you tried to curl or wget instead of ping? Are there firewall rules that could be blocking traffic at the https port, for example?

---

<div class="post-metadata">

**Author:** ![buddyspencer](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/buddyspencer/32/5648_2.png) [@buddyspencer](https://drone.discourse.group/u/buddyspencer)\
**Post date:** [July 10, 2020, 1:37pm UTC](https://drone.discourse.group/t/drone-stopped-authenticating/2861/5 "2020-07-10T13:37:58Z")

</div>

Hi,  
thanks, yes it must have been some firewall stuff. I switched from opensuse to ubuntu and now it is working fine again.
