{"action":"created","issue":{"url":"https://api.github.com/repos/ytti/oxidized/issues/529","repository_url":"https://api.github.com/repos/ytti/oxidized","labels_url":"https://api.github.com/repos/ytti/oxidized/issues/529/labels{/name}","comments_url":"https://api.github.com/repos/ytti/oxidized/issues/529/comments","events_url":"https://api.github.com/repos/ytti/oxidized/issues/529/events","html_url":"https://github.com/ytti/oxidized/issues/529","id":171633509,"number":529,"title":"TypeError - no implicit conversion of Oxidized::Node into String:","user":{"login":"SmokuSCB","id":21078747,"avatar_url":"https://avatars.githubusercontent.com/u/21078747?v=3","gravatar_id":"","url":"https://api.github.com/users/SmokuSCB","html_url":"https://github.com/SmokuSCB","followers_url":"https://api.github.com/users/SmokuSCB/followers","following_url":"https://api.github.com/users/SmokuSCB/following{/other_user}","gists_url":"https://api.github.com/users/SmokuSCB/gists{/gist_id}","starred_url":"https://api.github.com/users/SmokuSCB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmokuSCB/subscriptions","organizations_url":"https://api.github.com/users/SmokuSCB/orgs","repos_url":"https://api.github.com/users/SmokuSCB/repos","events_url":"https://api.github.com/users/SmokuSCB/events{/privacy}","received_events_url":"https://api.github.com/users/SmokuSCB/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ytti/oxidized/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"danilopopeye","id":27297,"avatar_url":"https://avatars.githubusercontent.com/u/27297?v=3","gravatar_id":"","url":"https://api.github.com/users/danilopopeye","html_url":"https://github.com/danilopopeye","followers_url":"https://api.github.com/users/danilopopeye/followers","following_url":"https://api.github.com/users/danilopopeye/following{/other_user}","gists_url":"https://api.github.com/users/danilopopeye/gists{/gist_id}","starred_url":"https://api.github.com/users/danilopopeye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danilopopeye/subscriptions","organizations_url":"https://api.github.com/users/danilopopeye/orgs","repos_url":"https://api.github.com/users/danilopopeye/repos","events_url":"https://api.github.com/users/danilopopeye/events{/privacy}","received_events_url":"https://api.github.com/users/danilopopeye/received_events","type":"User","site_admin":false},"assignees":[{"login":"danilopopeye","id":27297,"avatar_url":"https://avatars.githubusercontent.com/u/27297?v=3","gravatar_id":"","url":"https://api.github.com/users/danilopopeye","html_url":"https://github.com/danilopopeye","followers_url":"https://api.github.com/users/danilopopeye/followers","following_url":"https://api.github.com/users/danilopopeye/following{/other_user}","gists_url":"https://api.github.com/users/danilopopeye/gists{/gist_id}","starred_url":"https://api.github.com/users/danilopopeye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danilopopeye/subscriptions","organizations_url":"https://api.github.com/users/danilopopeye/orgs","repos_url":"https://api.github.com/users/danilopopeye/repos","events_url":"https://api.github.com/users/danilopopeye/events{/privacy}","received_events_url":"https://api.github.com/users/danilopopeye/received_events","type":"User","site_admin":false},{"login":"ytti","id":200527,"avatar_url":"https://avatars.githubusercontent.com/u/200527?v=3","gravatar_id":"","url":"https://api.github.com/users/ytti","html_url":"https://github.com/ytti","followers_url":"https://api.github.com/users/ytti/followers","following_url":"https://api.github.com/users/ytti/following{/other_user}","gists_url":"https://api.github.com/users/ytti/gists{/gist_id}","starred_url":"https://api.github.com/users/ytti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytti/subscriptions","organizations_url":"https://api.github.com/users/ytti/orgs","repos_url":"https://api.github.com/users/ytti/repos","events_url":"https://api.github.com/users/ytti/events{/privacy}","received_events_url":"https://api.github.com/users/ytti/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-17T11:19:43Z","updated_at":"2016-09-23T09:04:52Z","closed_at":"2016-08-29T19:46:14Z","body":"Hi,\r\nI'm trying to get oxidized to work with the WatchGuard device (firewareos). I was able to connect to the WatchGuard oxidized, but when trying enter to configurations in the action menu in the node list gets a following error: \r\n\r\n> 2016-08-17 12:03:54 - TypeError - no implicit conversion of Oxidized::Node into String:\r\n>         /usr/local/share/gems/gems/oxidized-0.16.2/lib/oxidized/output/file.rb:35:in `join'\r\n>         /usr/local/share/gems/gems/oxidized-0.16.2/lib/oxidized/output/file.rb:35:in `fetch'\r\n>         /usr/local/share/gems/gems/oxidized-0.16.2/lib/oxidized/nodes.rb:61:in `block in fetch'\r\n>         /usr/local/share/gems/gems/oxidized-0.16.2/lib/oxidized/nodes.rb:174:in `block in yield_node_output'\r\n>         /usr/local/share/gems/gems/oxidized-0.16.2/lib/oxidized/nodes.rb:126:in `synchronize'\r\n>         /usr/local/share/gems/gems/oxidized-0.16.2/lib/oxidized/nodes.rb:126:in `with_lock'\r\n>         /usr/local/share/gems/gems/oxidized-0.16.2/lib/oxidized/nodes.rb:170:in `yield_node_output'\r\n>         /usr/local/share/gems/gems/oxidized-0.16.2/lib/oxidized/nodes.rb:60:in `fetch'\r\n>         /usr/local/share/gems/gems/oxidized-web-0.7.1/lib/oxidized/web/webapp.rb:79:in `block in <class:WebApp>'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `call'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `[]'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (3 levels) in route!'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (2 levels) in route!'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `catch'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `each'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'\r\n>         /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'\r\n>         /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'\r\n>         /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'\r\n>         /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\r\n>         /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\r\n>         /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'\r\n>         /usr/local/share/gems/gems/rack-1.6.4/lib/rack/nulllogger.rb:9:in `call'\r\n>         /usr/local/share/gems/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in `call'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'\r\n>         /usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'\r\n>         /usr/local/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in `block in call'\r\n>         /usr/local/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `each'\r\n>         /usr/local/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `call'\r\n>         /usr/local/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:153:in `call'\r\n>         /usr/local/share/gems/gems/puma-2.16.0/lib/puma/server.rb:557:in `handle_request'\r\n>         /usr/local/share/gems/gems/puma-2.16.0/lib/puma/server.rb:404:in `process_client'\r\n>         /usr/local/share/gems/gems/puma-2.16.0/lib/puma/server.rb:270:in `block in run'\r\n>         /usr/local/share/gems/gems/puma-2.16.0/lib/puma/thread_pool.rb:106:in `call'\r\n>         /usr/local/share/gems/gems/puma-2.16.0/lib/puma/thread_pool.rb:106:in `block in spawn_thread' \r\n\r\nMy config:\r\n```\r\nusername: redacted\r\npassword: redacted\r\nmodel: firewareos\r\ninterval: 3600\r\nlog: /home/oxidized/.config/oxidized/log\r\nuse_syslog: false\r\ndebug: true\r\nthreads: 30\r\ntimeout: 20\r\nretries: 3\r\nprompt: !ruby/regexp /^([\\w.@-]+[#>]\\s?)$/\r\nrest: redacted:8888\r\nvars: {}\r\ngroups: {}\r\npid: /home/oxidized/.config/oxidized/pid\r\ninput:\r\n  default: ssh, telnet\r\n  debug: false\r\n  ssh:\r\n    secure: false\r\noutput:\r\n  file:\r\n    directory: /home/oxidized/.config/oxidized/configs\r\nsource:\r\n  default: csv\r\n  csv:\r\n    file: /home/oxidized/.config/oxidized/router.db\r\n    delimiter: !ruby/regexp /:/\r\n    map:\r\n      name: 0\r\n      model: 1\r\n      username: 2\r\n      password: 3\r\n    vars_map:\r\n      ssh_port: 4\r\nmodel_map:\r\n  cisco: ios\r\n  juniper: junos\r\n\r\n```\r\nI running Oxidized on fresh installed and updated Centos 7 with selinux in permissive mode. I would be grateful for any suggestion or help. Thx,\r\n"},"comment":{"url":"https://api.github.com/repos/ytti/oxidized/issues/comments/249140691","html_url":"https://github.com/ytti/oxidized/issues/529#issuecomment-249140691","issue_url":"https://api.github.com/repos/ytti/oxidized/issues/529","id":249140691,"user":{"login":"sorano","id":6185109,"avatar_url":"https://avatars.githubusercontent.com/u/6185109?v=3","gravatar_id":"","url":"https://api.github.com/users/sorano","html_url":"https://github.com/sorano","followers_url":"https://api.github.com/users/sorano/followers","following_url":"https://api.github.com/users/sorano/following{/other_user}","gists_url":"https://api.github.com/users/sorano/gists{/gist_id}","starred_url":"https://api.github.com/users/sorano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorano/subscriptions","organizations_url":"https://api.github.com/users/sorano/orgs","repos_url":"https://api.github.com/users/sorano/repos","events_url":"https://api.github.com/users/sorano/events{/privacy}","received_events_url":"https://api.github.com/users/sorano/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T09:04:52Z","updated_at":"2016-09-23T09:04:52Z","body":"Just setup a new oxidzed install (gem install) with file output configuration and experienced this issue.\r\n\r\noxidized -v\r\n0.16.3\r\n\r\nManually replacing /var/lib/gems/2.3.0/gems/oxidized-0.16.3/lib/oxidized/output/file.rb with the changes from https://github.com/ytti/oxidized/commit/699136c8c3a1a409a2eaa19019ec6df6bb4b61e0 solved the problem. So I guess its safe to merge this fix into the gem."}}
{"actor":{"display_login":"sorano"}}