cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
940 stars 33 forks source link

path segment [0] is empty stage=gitea #239

Closed ogdabou closed 2 months ago

ogdabou commented 2 months ago

Hello,

Thanks for this !

I'm trying to backup gitea to Github an get the following error :

2024-05-08T11:57:26Z ERR path segment [0] is empty stage=gitea url={REDACTED}

I'm not sure to understand wwhat I should change

My configuration looks like this :

source:
  gitea:
    - url: xx
      username: xx
      password: xx
      wiki: false
      starred: true
      ssh: false
  #    issues: true
      filter:
        excludearchived: true
        excludeforks: true
destination:
  github:
    - organization: xx
      force: true
      visibility:
        repositories: private
      token: xx

The values between {{}} are redacted, they are provided for Gickup 0.10 running in a container

Do you know what I'm missing or providing wrongly ?

Thanks a lot :)

cooperspencer commented 2 months ago

Hi,

can you give me a bit more logs? Like a full run until you reach that error. Please redact everything you don't want me to know.

ogdabou commented 2 months ago

Sure,

thanks for your answer,

I reproduced it locally with docker:

docker run -v ${PWD}/conf.yml:/gickup/conf.yml buddyspencer/gickup >& debug.log

Here are the logs:

2024-05-08T13:35:01Z INF Reading /gickup/conf.yml file=/gickup/conf.yml
2024-05-08 13:35:01 INF Configuration loaded destinations=1 pairs=1 sources=1
2024-05-08 13:35:01 INF Backup run starting
2024-05-08 13:35:01 INF grabbing my repositories stage=gitea url=xxxxxxx
2024-05-08 13:35:01 ERR path segment [0] is empty stage=gitea url=xxxxxxx
2024-05-08 13:35:01 ERR path segment [0] is empty stage=gitea url=xxxxxxx
2024-05-08 13:35:01 ERR path segment [0] is empty stage=gitea url=xxxxxxx
2024-05-08 13:35:01 ERR path segment [0] is empty stage=gitea url=xxxxxxx
2024-05-08 13:35:01 ERR path segment [0] is empty stage=gitea url=xxxxxxx
2024-05-08 13:35:01 ERR path segment [0] is empty stage=gitea url=xxxxxxx

Then it rapidly loops over the same error.

The gitea instance I'm trying to hit is using version gitea/gitea:1.21.11

cooperspencer commented 2 months ago

That's really interesting... I'll have a look into it and get back to you

ogdabou commented 2 months ago

Thanks :muscle:

ogdabou commented 2 months ago

Hey @cooperspencer, it's not an issue, maybe the error message could be improved but that's it.

My configuration is missing a token,

So I created one, and it works :muscle:

cooperspencer commented 2 months ago

I just wanted to answer you. Great that you found the issue :smile: