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

The repo "https://github.com/netbox-community/devicetype-library.git" is not a valid git repo. #129

Open
raad-orfali opened this issue Mar 24, 2024 · 8 comments

Comments

@raad-orfali
Copy link

I Followed the instruction to clone, config .env and run the ./nb-dt-import.py but getting this error.

Note that I don't have net issue and I can git clone https://github.com/netbox-community/devicetype-library.git without any issues

I also tried to create empty repo folder manually and run the command but getting the below error:

Package devicetype-library is already installed, updating /opt/Device-Type-Library-Import/repo
An unknown error occurred: "Git Repository Error"

EBADBEEF added a commit to EBADBEEF/Device-Type-Library-Import that referenced this issue Apr 10, 2024
I can't think of a reason to enforce this. When script is run by default
(at least with git version 2.42.0), there is no '.git' at the end of the
remote.

Here is what 'git remote -v' shows:
  origin  https://github.com/netbox-community/devicetype-library

After removing the check, we can run the script multiple times in a row
without deleting the 'repo' folder.

Fixes issue netbox-community#129
@raad-orfali
Copy link
Author

Thanks a lot problem solved.

kindly update the README if possible to reflect the same for new users.

@wit543 wit543 mentioned this issue May 27, 2024
@mhdan
Copy link

mhdan commented Aug 14, 2024

I have the same problem but removing the GitInvalidRepositoryError line does not solve my problem.
any idea what is the main reason of this issue?

@Azmodeszer
Copy link

Same here...

@Azmodeszer
Copy link

Any news?

@Azmodeszer
Copy link

Yes, that was suggested earlier in this issue, but removing it does not work for me.

@mhdan
Copy link

mhdan commented Sep 28, 2024

In my case the problem was that cloning the repo does take lots of time and the main reason was it.
I solved the problem by manually downloading the repo and unzipping it to the required path.

The timeout is caught and prints the wrong error and it confuses people.

@Azmodeszer
Copy link

Still getting The repo "https://github.com/netbox-community/devicetype-library" is not a valid git repo.

@DrDoc777
Copy link

DrDoc777 commented Dec 7, 2024

Still getting The repo "https://github.com/netbox-community/devicetype-library" is not a valid git repo.

Had same here, but after installed on a fresh ubuntu "as-is" I don't have the problem on the fresh one; even if the https://github.com/netbox-community/devicetype-library.git is specified in the .env file

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

4 participants