Skip to content
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

Drone cannot clone repo: could not read Username for 'URL' #1177

Closed
thepapanoob opened this issue Sep 1, 2015 · 4 comments
Closed

Drone cannot clone repo: could not read Username for 'URL' #1177

thepapanoob opened this issue Sep 1, 2015 · 4 comments

Comments

@thepapanoob
Copy link

Good day everyone!

my drone build is failing due to not being able to clone the repository from my gogs server
My gogs server is running behind a nginx proxy that serves https but serving it directly without nginx doesnt fix the problem!

This is the output from Drone:

$ git clone --depth=50 --recursive --branch=master http://domain/user/repo.git /var/cache/drone/src/domain/user/repo
Cloning into '/var/cache/drone/src/domain/user/repo'...
fatal: could not read Username for 'http://domain': No such device or address

and this is my .drone.yml

image: drone_nodejs
script:
- cd NodejsWebApp1/NodejsWebApp1
- npm install
- npm test

and for the sake of completion my Dockerfile for drone_nodejs

FROM node:0.12.7-slim

RUN apt-get update -y \
    && apt-get install -y git

CMD [ "node" ]
@bradrydzewski
Copy link
Contributor

hey there, you'll want to follow #860

@thepapanoob
Copy link
Author

my repository im trying to clone is not a private repository! the only thing i activated in the gogs config is that you need a registration to browse the repo's

@bradrydzewski
Copy link
Contributor

Can the repository be cloned without registration (ie username/password)? If not, we need #860 to clone non-public repositories

@thepapanoob
Copy link
Author

oh pardon it was quite early and i didn't realize that this had impact on cloning repo's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants