oxidized icon indicating copy to clipboard operation
oxidized copied to clipboard

Rugged::NetworkError: unsupported URL protocol

Open gp1009658 opened this issue 1 year ago • 3 comments

rugged:1.7.2 oxidized:0.30.1

gp1009658 avatar Jun 26 '24 15:06 gp1009658

i have install oxidized,but when i hook to gitlab,don't work normal. there is the information. "NetworkError: unsupported URL protocol"

gp1009658 avatar Jun 26 '24 15:06 gp1009658

This seems to be a common issue. How did you install?

Here's how I fixed it for my system:

  • uninstall oxidized and rugged
  • gem install rugged -v 1.5.0.1 -- --with-ssh
  • Build from Git. Follow all steps until rake install
  • BEFORE doing rake install, edit the file oxidized.gemspec in the repo: change the line s.add_runtime_dependency 'rugged', '~> 1.6' to s.add_runtime_dependency 'rugged', '~> 1.5'
  • Continue with rake install

KarlTheFish avatar Jul 04 '24 07:07 KarlTheFish

Can you post your config file? I suspect you are using http instead of ssh to access the remote git.

robertcheramy avatar Jul 05 '24 04:07 robertcheramy

This issue is stale because it has been open 90 days with no activity.

github-actions[bot] avatar Oct 04 '24 02:10 github-actions[bot]

After having played with rugged the last days, I think the problem is, as stated by @KarlTheFish, that rugged needs to be installed --with-ssh. As this is a common issue, I plan to make a better warning, including the hint to install Rugged with ssh-support when Rugged::features does not include :ssh.

robertcheramy avatar Oct 09 '24 15:10 robertcheramy