-
Notifications
You must be signed in to change notification settings - Fork 28
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
Clone failed: could not read Username for '$url': No such device or address #66
Comments
that has something to do with the crafted netrc config ... |
... not sure what exactly go wrong through ... based on the info you provide |
I have the same issue and i think i can add somme informations:
clone:
git:
image: woodpeckerci/plugin-git:2.0.3
settings:
recursive: false
pipeline:
Check docker-compose files:
image: docker/compose
pull: true
commands:
- apk add --no-cache bash
- bash ./test-all
when:
- event: "push"
branch: [main, master]
- event: [pull_request, manual, deployment]
Deploy dockers:
image: appleboy/drone-ssh
pull: true
settings:
host: xxx.xxxx.xxx
username: root
key:
from_secret: ansible_private_key
port: 22
command_timeout: 2h
script:
- cd /opt/docker-compose
- git pull
- ./deploy-all
when:
environment: production
event: deployment
when:
- event: "push"
branch: [main, master]
- event: [pull_request, manual, deployment] With this file i have the same issue:
BUT, if I remove the
pipeline:
Check docker-compose files:
image: docker/compose
pull: true
commands:
- apk add --no-cache bash
- bash ./test-all
when:
- event: "push"
branch: [main, master]
- event: [pull_request, manual, deployment]
Deploy dockers:
image: appleboy/drone-ssh
pull: true
settings:
host: xxxxx.xxxxx.xxxxx
username: root
key:
from_secret: ansible_private_key
port: 22
command_timeout: 2h
script:
- cd /opt/docker-compose
- git pull
- ./deploy-all
when:
environment: production
event: deployment
when:
- event: "push"
branch: [main, master]
- event: [pull_request, manual, deployment] Output:
Edit: |
Now that you mention it, I recall trying to configure the clone plugin like that and I stumbled upon the same issue. In fact, I was able to reproduce the issue with just this: clone:
git:
image: woodpeckerci/plugin-git:2.0.3 |
Could be related to the change from #1352 |
Probably it is. After rollback to docker image before this pr almost everything works again. |
I do have the same issue (message I am also using the next version of woodpecker with Gitea/Forgejo and my step is configured like that:
Also when I restart the pipeline later (without any change in configuration/any new commit) the build works successfully. I am pretty sure that the fact that more jobs are started than agents are available thus some jobs are delayed is the relevant factor. |
what info would be useful to provide? |
Unchecking |
I found this issue today by coincidence: gitkraken/vscode-gitlens#1027. They report to having this problem when using HTTPS instead of SSH. I then saw in the log that the woodpeckerci/plugin-git indeed uses the html_url I checked the content of the webhook in Forgejo. It contains both urls:
Maybe switching to SSH would make it more stable? |
you can use ssh only with users ssh key and woodpecker does not have it and should not have it either so that's not really an option |
I wonder if this should be the default given how many people seem to face issues with it. And not all of them will arrive here and read through this issue? |
As this is only in development version and 1.0 will be breaking anyway, it's better to use secure by default |
I still have the issue even when I uncheck the option. Doesn't seem to be a "reliable workaround". |
@patrickuhlmann Do you still face this error with the latest plugin version and latest WP server? If so, could you post your setup in more detail and also what repo options are enabled/disabled? |
I updated all components and still face the same issue. I run everything in docker containers on a Synology Diskstation. I have the following containers:
The error happens when I run renovate. This job is running more than one hours and occupies one runner. It creates many pull requests which in turn trigger builds on other repositories. These builds are running on the second runner. In the beginning everything works fine. After a while (when lots of jobs are queued up) they start to fail. The job output is always like this:
The configuration of the job(s) is:
All pipelines are similar. For example
In the forgejo log I see
In the runner I see
In the woodpecker logs, I see
One thing I am wondering is this "database is locked". Is this normal? Might the problem be that I am using an sqlite3 database? |
Likely, I've seen this error with sqlite3 in the past when there was too much load on the DB. And as you're saying, during the renovate run more runs spin up from the PRs opened by renovate which then likely overload the sqlite3 DB. sqlite3 is usually only suitable for dev purposes, it's better to use postgres or mysql even for semi-production home use. |
Hi all, I'm running into this problem with Gitea latest and woodpecker latest as of today. |
I switched to postgres but face still the same problem. Btw. in the end it would have surprised me as Sqlite is very much underestimated. It was already able to handle thousands of selects and inserts in a very short time even on multiple gigabytes large databases years ago (you will find plenty of benchmarks info if you search for it). |
@thechubbypanda can you verify the issue only exists in WP latest and not in WP 2.0.0? If so, maybe you can track it down further to a specific commit? All |
I am now running WP 2.0.0 and still have this issue |
Ok so:
Gives the same error unless I overwrite the clone step:
Conclusion: Something else is wrong |
@thechubbypanda Thanks. Strange though, as many people use 2.0 + meanwhile and we haven't yet heard of more issues like this. I also administrate multiple instances and haven't come across the issue in months. Are you running WP in docker or via a host install? And since you wrote
Did it work before with an older version/different setup? |
In terms of "today" I merely meant that I just tested it. Given that the issue is a few months old now. I'm running dockerized at the moment. I started spinning up a completely clean installation of both Gitea and woodpecker yesterday. Will report back if that works. Then it's a matter of narrowing down what setting or situation is causing the problem. I will note that it's extremely tough to debug the docker images given they appear to not even have sh installed. |
FOUND IT @pat-s: Set that to true and the error appears, set to false, it works as expected. |
Can you try to set https://woodpecker-ci.org/docs/administration/server-config#woodpecker_authenticate_public_repos to |
Yes, this is (partly) known. Even though my guess would have been that it is very unlikely that it is an issue in the image as otherwise we would have gotten many more reports here. It is likely that @qwerty287 Maybe we should add a warning if Gitea is used as a forge and |
Is there a scenario where just having that enabled by default is a bad idea? Or at least inversing it? |
No, because that's only necessary if you require logins for everything. If |
Well regardless, that has fixed the issue for me at least. Thanks |
The error message is quote non-descriptive and it's not easy for users to find out how to solve the issue. Even when searching the main repo this is tricky as the issue is being discussed/reported here, and not all users will even arrive here. I wonder how this can be better communicated - in the end, such details/issues lead to a bad user experience. |
Closing here now as the issue seems to be resolved and other users arriving here should find the solution. Yet I think we should somehow assert |
So it was #25 all along :/ |
For me I think the problem was weak hardware. As soon as I switched from my diskstation to a dedicated computer and forgejo as well as woodpecker run much faster the problem was gone as well. |
Describe the bug
Say you have two pipelines defined where the first clones fine but takes about an hour to finish. The default clone operation fails on the second pipeline with the message:
when running against Forgejo v1.19 even when
WOODPECKER_AUTHENTICATE_PUBLIC_REPOS=true
is set.I believe this issue is related to some timeout value on Forgejo's side since in its logs I get a
404 Unauthorized access
message.System Info
The
/version
slug is not working for me against my server instance -- I'm getting a 404.Version: next-3a475ce2
Image: docker.io/woodpeckerci/woodpecker-server:next
Hash: 09e1c0597a92
Compose file example:
Additional Context
As a workaround I implemented my own clone step using an access token as the password instead with an alpine container. For example, cloning
https://$USER:[email protected]/$ORG/$REPO
works fine for me.This is what I'm using specifically:
The text was updated successfully, but these errors were encountered: