Comments (4)
Agreed. Do you have crashfile for this, so we can see the call stack.
Which rugged version are you running (gem list|grep rugged).
from oxidized.
I get this error on debug:
Failed to make directory '/home/ytti/.config/oxidized/oxidized.git/objects': Permission denied
/var/lib/gems/2.1.0/gems/oxidized-0.3.0/lib/oxidized/output/git.rb:75:in `init_at': Failed to make directory '/home/ytti/.config/oxidized/oxidized.git/objects': Permission denied (Rugged::OSError)
Without debug:
Failed to make directory '/home/ytti/.config/oxidized/oxidized.git/objects': Permission denied
Which I think is good enough.
[[email protected] ~/.config/oxidized]% gem list|grep -i rugged
rugged (0.21.0)
I tested by doing
'sudo chown root oxidized.git'
Can you repro your bad warning message on 0.21.0, if so, how?
from oxidized.
Debugging some more. I've found if the repo already exists but is owned by another user it fails with this error. I did this by backupping my current directory; chown -R will * on the respository.
rugged (0.21.2) here.
2015-02-22 10:40:42 UTC
wrong argument type Rugged::Repository (expected String) [TypeError]
--------------------------------------------------
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/output/git.rb:36:in `init_at'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/output/git.rb:36:in `rescue in store'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/output/git.rb:32:in `store'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/worker.rb:37:in `process'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/worker.rb:13:in `block in work'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/worker.rb:13:in `each'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/worker.rb:13:in `work'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/core.rb:36:in `run'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/core.rb:29:in `initialize'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/core.rb:11:in `new'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/core.rb:11:in `new'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/lib/oxidized/cli.rb:9:in `run'
/var/lib/gems/1.9.1/gems/oxidized-0.2.3/bin/oxidized:9:in `<top (required)>'
/usr/local/bin/oxidized:23:in `load'
/usr/local/bin/oxidized:23:in `<main>'
--------------------------------------------------
from oxidized.
In my test
- having repo owned by another user => reasonable error message
- having write to repo AND read to repo/config but NOT to other files => unreasonable error message
After change:
[[email protected] ~/.config/oxidized]% sudo chown root oxidized.git
[[email protected] ~/.config/oxidized]% oxidized
first 'Could not find repository from '/home/ytti/.config/oxidized/oxidized.git'' was raised while opening git repo, then 'Failed to make directory '/home/ytti/.config/oxidized/oxidized.git/objects': Permission denied' was while trying to create git repo
[[email protected] ~/.config/oxidized]% sudo chown ytti oxidized.git
[[email protected] ~/.config/oxidized]% cd oxidized.git
[[email protected] ~/.config/oxidized/oxidized.git]% sudo chown root *
[[email protected] ~/.config/oxidized/oxidized.git]% oxidized
first 'Could not open '/home/ytti/.config/oxidized/oxidized.git/config': Permission denied' was raised while opening git repo, then 'Could not open '/home/ytti/.config/oxidized/oxidized.git/config': Permission denied' was while trying to create git repo
[[email protected] ~/.config/oxidized/oxidized.git]% sudo chown ytti config
[[email protected] ~/.config/oxidized/oxidized.git]% oxidized
first 'Failed to create temporary file '/home/ytti/.config/oxidized/oxidized.git/objects/tmp_object_git2_Jwk9Fu': Permission denied' was raised while opening git repo, then 'wrong argument type Rugged::Repository (expected String)' was while trying to create git repo
[[email protected] ~/.config/oxidized/oxidized.git]%
from oxidized.
Related Issues (20)
- HTTPS: unsupported protocol [OpenSSL::SSL::SSLError] HOT 2
- HP ArubaOS-CX: power-consumption starting with version FL.10.13.xxxx - permanent power changes logged HOT 2
- rake test fails on Oxidized::SSH::#connect#test_0001 HOT 1
- ERROR -- : Hook push_to_remote SshError: remote rejected authentication: Failed getting response
- Load nodes didn't recognized ArubaOS Mobility Controller 8.10.0.9 (use aosw or Aaosw) and F5 Big-IP (use tmos) HOT 1
- passwords with special characters (dollar sign and space) HOT 3
- ArubaOS8 need update propmt
- about not login use password (maybe is ruby net-ssh problem or oxidized??) HOT 4
- vyatta snmp community secret leakage HOT 1
- Contribution: miscellaneous models HOT 5
- Unable to backup Nexus 9000 switch - More when display running-config HOT 2
- FortiOS stopped doing a "show full-configuration" HOT 1
- Web API /next returns status 500 if node is waiting to poll
- how to secure config file ( hide / encrypt password) HOT 1
- Git error due to unproper shutdown HOT 2
- IOSXR - "Admin mode has been deprecated" HOT 3
- SSH cipher update - openssh bug CVE-2023-48795
- undefined method 'url' HOT 8
- Trying to create group-based repos when not configured to? HOT 2
- change default ssh port HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oxidized.