{"action":"created","issue":{"url":"https://api.github.com/repos/ytti/oxidized/issues/497","repository_url":"https://api.github.com/repos/ytti/oxidized","labels_url":"https://api.github.com/repos/ytti/oxidized/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/ytti/oxidized/issues/497/comments","events_url":"https://api.github.com/repos/ytti/oxidized/issues/497/events","html_url":"https://github.com/ytti/oxidized/issues/497","id":165281541,"number":497,"title":"Hook Remote git error \"wrong argument type nil \"","user":{"login":"totosh","id":6329384,"avatar_url":"https://avatars.githubusercontent.com/u/6329384?v=3","gravatar_id":"","url":"https://api.github.com/users/totosh","html_url":"https://github.com/totosh","followers_url":"https://api.github.com/users/totosh/followers","following_url":"https://api.github.com/users/totosh/following{/other_user}","gists_url":"https://api.github.com/users/totosh/gists{/gist_id}","starred_url":"https://api.github.com/users/totosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totosh/subscriptions","organizations_url":"https://api.github.com/users/totosh/orgs","repos_url":"https://api.github.com/users/totosh/repos","events_url":"https://api.github.com/users/totosh/events{/privacy}","received_events_url":"https://api.github.com/users/totosh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-13T09:52:53Z","updated_at":"2016-07-13T12:26:01Z","closed_at":null,"body":"I'm trying to setup remote repo git but i get this error :\r\n```\r\nE, [2016-07-13T11:40:43.201248 #12005] ERROR -- : Hook push_to_remote_repo (#<GithubRepo:0x0000000221cda0>) failed (#<TypeError: wrong argument type nil (expected String)>) for event :post_store\r\nD, [2016-07-13T11:40:43.201307 #12005] DEBUG -- : lib/oxidized/worker.rb: Jobs 0, Want: 1\r\n```\r\n\r\n`$ oxidized -v` \r\n0.15.0\r\n\r\nI get this error with 2.1.2 and 2.1.8 Ruby version.\r\n\r\nBelow my config :\r\n\r\n```\r\npid:\r\n\"/var/run/oxidized/oxidized.pid\"\r\nlog: /var/log/oxidized/log\r\nuse_syslog: false\r\nusername: #####\r\npassword: #####\r\nmodel: cisco\r\ninterval: 10800\r\ndebug: true\r\nthreads: 30\r\ntimeout: 20\r\nretries: 3\r\nprompt: !ruby/regexp /^([\\w.@-]+[#>]\\s?)$/\r\nrest: #####\r\nvars: {}\r\ngroups: \r\n  net-cisco-backup:\r\n    username: #####\r\n    password: #####\r\ninput:\r\n  default: ssh\r\n  debug: false\r\n  ssh:\r\n    secure: false\r\noutput:\r\n  default: git\r\n  git: \r\n    user: #####\r\n    email: #####\r\n    repo: \"/home/oxidized/git-repos/default.git\" \r\nsource:\r\n  default: sql\r\n  sql:\r\n    adapter: sqlite\r\n    database: \"/etc/oxidized/oxidized.db\"\r\n    table: devices\r\n    map:\r\n      name: address\r\n      model: model\r\n      group: groupname\r\n      username: username\r\n      password: password\r\n      enable: enable\r\nmodel_map:\r\n  cisco: ios\r\n  juniper: junos\r\nhooks:\r\n  push_to_remote_repo:\r\n    type: githubrepo\r\n    remote_repo:\r\n      net-cisco-backup: \"git@gitlab.domain.lan:10022/oxidized/net-cisco-backup.git\"\r\n    events: [post_store]\r\n    publickey: /home/oxidized/.ssh/id_rsa.pub\r\n    privatekey: /home/oxidized/.ssh/id_rsa\r\n```\r\n\r\nLocal repo work fine.\r\n\r\nTotosh."},"comment":{"url":"https://api.github.com/repos/ytti/oxidized/issues/comments/232339556","html_url":"https://github.com/ytti/oxidized/issues/497#issuecomment-232339556","issue_url":"https://api.github.com/repos/ytti/oxidized/issues/497","id":232339556,"user":{"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},"created_at":"2016-07-13T12:26:01Z","updated_at":"2016-07-13T12:26:01Z","body":"Is  your node group 'net-cisco-backup'? If not, it won't work. It must match to your group.\r\n\r\nIf you don't have group, or you don't plan to put different groups to different repos. Then just change it to ```remote_repo: \"git@gitlab.domain.lan:10022/oxidized/net-cisco-backup.git```"}}
{"actor":{"display_login":"ytti"}}