-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Gogs to local: Warn: Authentication required #267
Comments
Hi,
It does a normal clone and keeps it up to date via pulling. |
can you remove you can remove |
Thanks. Same result. With source:
gogs:
- url: https://gogs.bytle.net/
# GOGS_TOKEN is an env
token: GOGS_TOKEN
# the user you want to clone the repositories from.
user: nickeau
username: nickeau
ssh: false
filter:
excludeforks: true # exclude forked repositories
# this includes the repo "aap"
include:
- aap
destination:
local:
# Export this path from Docker with a volume to make it accessible and more permanent.
- path: /tmp/gickup Result:
How do you do the auth, like that? git clone --mirror https://nickeau:$GOGS_TOKEN@gogs.bytle.net/nickeau/algo /tmp/algo
|
With or without username, it does not matter. Same behavior. |
Found. How it works. git clone --mirror https://$GOGS_TOKEN@gogs.bytle.net/nickeau/algo /tmp/algo
|
The token is working because it can list the repositories, by the way. Last Yaml, same output: source:
gogs:
- url: https://gogs.bytle.net/
# GOGS_TOKEN is an env
token: GOGS_TOKEN
# the user you want to clone the repositories from.
user: nickeau
ssh: false
filter:
excludeforks: true # exclude forked repositories
# this includes the repo "aap"
include:
- aap
destination:
local:
# Export this path from Docker with a volume to make it accessible and more permanent.
- path: /tmp/gickup |
With the docker run --rm \
-v ~/.config/gickup/gogs-to-local-conf.yml:/gickup/conf.yml \
-e GITHUB_TOKEN=$GITHUB_TOKEN \
-e GOGS_TOKEN=$GOGS_TOKEN \
--mount type=tmpfs,destination=/tmp \
ghcr.io/cooperspencer/gickup:0.10.34
/gickup/conf.yml --debug
|
can you remove everything in |
There is nothing, it's a temporary mount because it's required when you run the docker image --mount type=tmpfs,destination=/tmp I moved it to New conf: source:
gogs:
- url: https://gogs.bytle.net/
# GOGS_TOKEN is an env
token: GOGS_TOKEN
# the user you want to clone the repositories from.
user: nickeau
ssh: false
filter:
excludeforks: true # exclude forked repositories
# this includes the repo "aap"
include:
- aap
destination:
local:
# Export this path from Docker with a volume to make it accessible and more permanent.
- path: /target New run: docker run --rm \
-v ~/.config/gickup/gogs-to-local-conf.yml:/gickup/conf.yml \
-e GITHUB_TOKEN=$GITHUB_TOKEN \
-e GOGS_TOKEN=$GOGS_TOKEN \
--mount type=tmpfs,destination=/tmp \
--mount type=tmpfs,destination=/target \
ghcr.io/cooperspencer/gickup:0.10.34
/gickup/conf.yml --debug Same output:
|
It is really weird, because I can't reproduce this at all. source:
gogs:
- token: GOGS_TOKEN
user: buddy
url: http://127.0.0.1:3000
destination:
local:
- path: /tmp/ And it works perfectly fine. Is https://gogs.bytle.net/ publicly reachable? Would I be able to get an account there to investigate the issue? |
fixed with #268 |
Hallo,
I have an authentication problem but I don't know why.
I try a lot of configuration but could not make it work.
Below you can see the run and all the investigation that I have done.
The config from gogs to local:
The run:
The result:
Authentication test:
git clone --mirror https://nickeau:$GOGS_PASSWORD@gogs.bytle.net/nickeau/algo /tmp/algo
curl -sS -f -I -H "Authorization: token $GOGS_TOKEN" https://gogs.bytle.net/api/v1/user/repos
Note that I installed also gickup locally and got the same behavior.
I have no idea how to increase the log level. There is a log in the conf file but I don't see any log level.
How are you doing the cloning? via a mirror?
The text was updated successfully, but these errors were encountered: