-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with drone in a docker compose, on restart, after first drone login, I need to delete gogs Personal Access Tokens in order to login again #7172
Comments
I'm also getting this error and it hasn't been fixed until now. XD |
I'm also getting the same issue.
version: '3'
services:
gogs:
image: gogs/gogs:0.13.0
volumes:
- ./gogs:/data
ports:
- "3002:3000"
drone-server:
image: drone/drone:2.16.0
ports:
- "8000:80"
restart: always
environment:
- DRONE_AGENTS_ENABLED=true
- DRONE_GOGS_SERVER=http://gogs:3000
- DRONE_RPC_SECRET=mysecret
- DRONE_SERVER_HOST=drone-server
- DRONE_SERVER_PROTO=http
- DRONE_GOGS_SKIP_VERIFY=false
drone-runner:
image: drone/drone-runner-docker:1.8.3
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone-server
- DRONE_RPC_SECRET=mysecret
- DRONE_RUNNER_CAPACITY=1
- DRONE_RUNNER_NAME=my-first-runner |
Same on a Debian 10 server, can anyone take a look into this? |
When I directly give the gogs/internal/db/access_tokens.go Lines 107 to 119 in 7be3ea1
|
I'm also getting the same issue too. |
Same issue here. Does anyone has a clue for a temporary dirty fix? |
@unknwon I see that this bug is discussed on the drone forum. Is oAuth supported in gogs to solve this problem? https://discuss.harness.io/t/drone-io-issues-in-docker-compose-with-token-in-bundle-with-gogs/12648/3 |
I'm also getting the same issue |
same issue, any update? |
the same , how to deal with |
Just want to poke my head in and say I'm experiencing this also. I guess I should start trying to find this token. Wherever it is. |
Write me down as one of those who have faced this problem. |
Same issue here, I guess Gogs should support OAuth in order to seamlessly integrate with Drone. See "step 5" at https://docs.drone.io/server/provider/gogs/ See also #4602 |
I deleted all my aplication's token and drone worked again |
New link is: https://drone.discourse.group/t/drone-io-issues-in-docker-compose-with-token-in-bundle-with-gogs/12648/8 |
Gogs version
0.13.0+dev
Git version
Operating system
Ubuntu 22.04
Database
SQLite 3
Describe the bug
I can, from drone, register to gogs, a Personal Account Token is created, I'm able to run pipelines and so on, after I restart the infrastructure, if from drone I try to login I get "Unauthorized", in order to login again I have to delete Personal Access Token from gogs and perform a new registration.
mine docker-compose.yml:
To reproduce
docker compose up
Expected behavior
on second run (restart) I should be able to login inside gogs via drone
Additional context
gogs.log
Code of Conduct
The text was updated successfully, but these errors were encountered: