{"action":"created","issue":{"url":"https://api.github.com/repos/pyrovski/wrtbwmon/issues/16","repository_url":"https://api.github.com/repos/pyrovski/wrtbwmon","labels_url":"https://api.github.com/repos/pyrovski/wrtbwmon/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/pyrovski/wrtbwmon/issues/16/comments","events_url":"https://api.github.com/repos/pyrovski/wrtbwmon/issues/16/events","html_url":"https://github.com/pyrovski/wrtbwmon/issues/16","id":152800290,"number":16,"title":"iptables v1.4.21: host/network `eth1' not found when trying to use old usage.db","user":{"login":"mw446391","id":5002030,"avatar_url":"https://avatars.githubusercontent.com/u/5002030?v=3","gravatar_id":"","url":"https://api.github.com/users/mw446391","html_url":"https://github.com/mw446391","followers_url":"https://api.github.com/users/mw446391/followers","following_url":"https://api.github.com/users/mw446391/following{/other_user}","gists_url":"https://api.github.com/users/mw446391/gists{/gist_id}","starred_url":"https://api.github.com/users/mw446391/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mw446391/subscriptions","organizations_url":"https://api.github.com/users/mw446391/orgs","repos_url":"https://api.github.com/users/mw446391/repos","events_url":"https://api.github.com/users/mw446391/events{/privacy}","received_events_url":"https://api.github.com/users/mw446391/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T15:18:11Z","updated_at":"2016-05-03T17:04:08Z","closed_at":null,"body":"Hi - I have updated my wrtbwmon script with rev 208c412.\r\n\r\nI'm not sure which version I used before but I remember I installed the previous version on 17 JAN).\r\n\r\nThe new version works but I have problems getting it to work with my old usage.db.\r\n\r\nWhen I tried an update, I get these errors:\r\nroot@OpenWrt:~# /transfer/wrtbwmon# wrtbwmon.sh update /tmp/usage.db\r\niptables v1.4.21: host/network `eth1' not found\r\nTry `iptables -h' or 'iptables --help' for more information.\r\niptables v1.4.21: host/network `eth1' not found\r\nTry `iptables -h' or 'iptables --help' for more information.\r\n\r\nIf I start with a fresh usage.db then all works:\r\n\r\nroot@OpenWrt:~# /transfer/wrtbwmon# rm /tmp/usage.db\r\nroot@OpenWrt:~# /transfer/wrtbwmon# wrtbwmon.sh setup /tmp/usage.db\r\nroot@OpenWrt:~# /transfer/wrtbwmon# wrtbwmon.sh update /tmp/usage.db\r\nroot@OpenWrt:~# \r\n\r\nBut when I restore the old usage.db and try an update, then it fails again:\r\n\r\nroot@OpenWrt:~# /transfer/wrtbwmon# cp /tmp/usage.db-bak /tmp/usage.db\r\nroot@OpenWrt:~# /transfer/wrtbwmon# wrtbwmon.sh update /tmp/usage.db\r\niptables v1.4.21: host/network `eth1' not found\r\nTry `iptables -h' or 'iptables --help' for more information.\r\niptables v1.4.21: host/network `eth1' not found\r\nTry `iptables -h' or 'iptables --help' for more information.\r\n\r\nHas there been a change in the DB layout since JAN? If not, how can I merge the old and new usage.db?"},"comment":{"url":"https://api.github.com/repos/pyrovski/wrtbwmon/issues/comments/216596789","html_url":"https://github.com/pyrovski/wrtbwmon/issues/16#issuecomment-216596789","issue_url":"https://api.github.com/repos/pyrovski/wrtbwmon/issues/16","id":216596789,"user":{"login":"pyrovski","id":308089,"avatar_url":"https://avatars.githubusercontent.com/u/308089?v=3","gravatar_id":"","url":"https://api.github.com/users/pyrovski","html_url":"https://github.com/pyrovski","followers_url":"https://api.github.com/users/pyrovski/followers","following_url":"https://api.github.com/users/pyrovski/following{/other_user}","gists_url":"https://api.github.com/users/pyrovski/gists{/gist_id}","starred_url":"https://api.github.com/users/pyrovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyrovski/subscriptions","organizations_url":"https://api.github.com/users/pyrovski/orgs","repos_url":"https://api.github.com/users/pyrovski/repos","events_url":"https://api.github.com/users/pyrovski/events{/privacy}","received_events_url":"https://api.github.com/users/pyrovski/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T17:04:07Z","updated_at":"2016-05-03T17:04:07Z","body":"I don't recall if there was a change in the layout. Wrtbwmon is not\ndesigned to migrate DB versions yet, but it's just a CSV file. The column\nnames are on the first line of the file.\n\nOn Tue, May 3, 2016 at 8:18 AM, mw446391 <notifications@github.com> wrote:\n\n> Hi - I have updated my wrtbwmon script with rev 208c412\n> <https://github.com/pyrovski/wrtbwmon/commit/208c412fa4a8dca98c1791016e93642a7f3b70cc>\n> .\n>\n> I'm not sure which version I used before but I remember I installed the\n> previous version on 17 JAN).\n>\n> The new version works but I have problems getting it to work with my old\n> usage.db.\n>\n> When I tried an update, I get these errors:\n> root@OpenWrt:~# /transfer/wrtbwmon# wrtbwmon.sh update /tmp/usage.db\n> iptables v1.4.21: host/network eth1' not found\n> Tryiptables -h' or 'iptables --help' for more information.\n> iptables v1.4.21: host/network eth1' not found\n> Tryiptables -h' or 'iptables --help' for more information.\n>\n> If I start with a fresh usage.db then all works:\n>\n> root@OpenWrt:~# /transfer/wrtbwmon# rm /tmp/usage.db\n> root@OpenWrt:~# /transfer/wrtbwmon# wrtbwmon.sh setup /tmp/usage.db\n> root@OpenWrt:~# /transfer/wrtbwmon# wrtbwmon.sh update /tmp/usage.db\n> root@OpenWrt:~#\n>\n> But when I restore the old usage.db and try an update, then it fails again:\n>\n> root@OpenWrt:~# /transfer/wrtbwmon# cp /tmp/usage.db-bak /tmp/usage.db\n> root@OpenWrt:~# /transfer/wrtbwmon# wrtbwmon.sh update /tmp/usage.db\n> iptables v1.4.21: host/network eth1' not found\n> Tryiptables -h' or 'iptables --help' for more information.\n> iptables v1.4.21: host/network eth1' not found\n> Tryiptables -h' or 'iptables --help' for more information.\n>\n> Has there been a change in the DB layout since JAN? If not, how can I\n> merge the old and new usage.db?\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/pyrovski/wrtbwmon/issues/16>\n>\n\n\n\n-- \n\nPeter Bailey\nMountain View, CA\nPhone: (651) 538-0340\n"}}