{"action":"created","issue":{"url":"https://api.github.com/repos/ab77/netflix-proxy/issues/47","labels_url":"https://api.github.com/repos/ab77/netflix-proxy/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/ab77/netflix-proxy/issues/47/comments","events_url":"https://api.github.com/repos/ab77/netflix-proxy/issues/47/events","html_url":"https://github.com/ab77/netflix-proxy/issues/47","id":116607323,"number":47,"title":"Installation on Azure","user":{"login":"rosch100","id":5745224,"avatar_url":"https://avatars.githubusercontent.com/u/5745224?v=3","gravatar_id":"","url":"https://api.github.com/users/rosch100","html_url":"https://github.com/rosch100","followers_url":"https://api.github.com/users/rosch100/followers","following_url":"https://api.github.com/users/rosch100/following{/other_user}","gists_url":"https://api.github.com/users/rosch100/gists{/gist_id}","starred_url":"https://api.github.com/users/rosch100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosch100/subscriptions","organizations_url":"https://api.github.com/users/rosch100/orgs","repos_url":"https://api.github.com/users/rosch100/repos","events_url":"https://api.github.com/users/rosch100/events{/privacy}","received_events_url":"https://api.github.com/users/rosch100/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-11-12T18:11:32Z","updated_at":"2015-11-14T22:31:22Z","closed_at":null,"body":"I am using Ubuntu 14.04LTS.\r\nThe installation of Docker fails in the standard 14.04 setup:\r\n`modprobe: FATAL: Module aufs not found.`\r\n\r\nThis can be resolved in the following way:\r\n```\r\nsudo apt-get update\r\nsudo apt-get install lxc wget bsdtar curl\r\nsudo apt-get install linux-image-extra-$(uname -r)\r\nsudo modprobe aufs\r\n```\r\nAfter installing Docker and running the script:\r\n`sudo git clone https://github.com/ab77/netflix-proxy /opt/netflix-proxy && cd /opt/netflix-proxy && ./build.sh`\r\n\r\nI get the error:\r\n\r\n`./build.sh: line 104: /etc/network/interfaces: Permission denied`\r\nShould build.sh be run with root privileges - or does line 104 need to be changed?\r\n\r\nWhen I then run `sudo ./build.sh`, I get the error:\r\n```\r\nclientip= ipaddr=102.112.56.71 extip=109.215.95.116\r\nWARNING: enabling DNS recursion...\r\nallow-recursion { trusted; };\r\nrecursion yes;\r\nadditional-from-auth yes;\r\nadditional-from-cache yes;\r\n/opt/netflix-proxy /opt/netflix-proxy\r\niptables: Chain already exists.\r\n```\r\nIt seems that clientip cannot be found here and the previous run already created an iptables chain.\r\n\r\nThen I tried to run build.sh with sudo right after the installation of Docker (clean install):\r\n`sudo ./build.sh -c 88.217.181.52 -r 0 -b 1`\r\n\r\nThe container installation runs now, but at the end an error is registered:\r\n```\r\nStarting Docker containers (local)\r\n8318309fbdb2c07aa5e1083a72cf7532101fb90ea06be62fbb2223bfa0e3363f\r\nError response from daemon: Cannot start container 8318309fbdb2c07aa5e1083a72cf7532101fb90ea06be62fbb2223bfa0e3363f: failed to create endpoint bind on network bridge: Error starting userland proxy: listen udp 0.0.0.0:53: bind: address already in use\r\n```\r\n\r\nFull listing:\r\n```\r\nclientip=88.217.181.52 ipaddr=100.77.174.129 extip=23.98.149.196\r\ndisabling DNS recursion...\r\n\t\tallow-recursion { none; };\r\n\t\trecursion no;\r\n\t\tadditional-from-auth no;\r\n\t\tadditional-from-cache no;\r\n/opt/netflix-proxy /opt/netflix-proxy\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nThe following NEW packages will be installed:\r\n  iptables-persistent\r\n0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.\r\nNeed to get 10.2 kB of archives.\r\nAfter this operation, 62.5 kB of additional disk space will be used.\r\nGet:1 http://azure.archive.ubuntu.com/ubuntu/ trusty/universe iptables-persistent all 0.5.7 [10.2 kB]\r\nFetched 10.2 kB in 0s (18.1 kB/s)        \r\nPreconfiguring packages ...\r\nSelecting previously unselected package iptables-persistent.\r\n(Reading database ... 59998 files and directories currently installed.)\r\nPreparing to unpack .../iptables-persistent_0.5.7_all.deb ...\r\n Removing any system startup links for /etc/init.d/iptables-persistent ...\r\nUnpacking iptables-persistent (0.5.7) ...\r\nProcessing triggers for ureadahead (0.100.0-16) ...\r\nSetting up iptables-persistent (0.5.7) ...\r\n * Loading iptables rules...                                                                                                                                                   *  IPv4...                                                                                                                                                                    *  IPv6...                                                                                                                                                            [ OK ] \r\nProcessing triggers for ureadahead (0.100.0-16) ...\r\nUpdating db.override with ipaddr=23.98.149.196 and date=20151112\r\nBuilding docker containers\r\nSending build context to Docker daemon 5.632 kB\r\nStep 1 : FROM centos\r\nlatest: Pulling from library/centos\r\nfa5be2806d4c: Pull complete \r\n0cd86ce0a197: Pull complete \r\ne9407f1d4b65: Pull complete \r\nc9853740aa05: Pull complete \r\ne9fa5d3a0d0e: Pull complete \r\nDigest: sha256:c96eeb93f2590858b9e1396e808d817fa0ba4076c68b59395445cb957b524408\r\nStatus: Downloaded newer image for centos:latest\r\n ---> e9fa5d3a0d0e\r\nStep 2 : MAINTAINER anton.belodedenko@gmail.com\r\n ---> Running in bed32e83c12d\r\n ---> dfdcfb42c154\r\nRemoving intermediate container bed32e83c12d\r\nStep 3 : ADD named.conf /etc/named.conf\r\n ---> 0054ab8bc65d\r\nRemoving intermediate container 6bf635a6d7e9\r\nStep 4 : ADD named.recursion.conf /etc/named.recursion.conf\r\n ---> ceaba309fd94\r\nRemoving intermediate container 19466bda2edb\r\nStep 5 : RUN yum -y install bind bind-chroot\r\n ---> Running in d25a124594c8\r\nLoaded plugins: fastestmirror\r\nDetermining fastest mirrors\r\n * base: pubmirrors.dal.corespace.com\r\n * extras: centos.den.host-engine.com\r\n * updates: mirror.rackspace.com\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package bind.x86_64 32:9.9.4-18.el7_1.5 will be installed\r\n--> Processing Dependency: bind-libs = 32:9.9.4-18.el7_1.5 for package: 32:bind-9.9.4-18.el7_1.5.x86_64\r\n--> Processing Dependency: liblwres.so.90()(64bit) for package: 32:bind-9.9.4-18.el7_1.5.x86_64\r\n--> Processing Dependency: libisccfg.so.90()(64bit) for package: 32:bind-9.9.4-18.el7_1.5.x86_64\r\n--> Processing Dependency: libisccc.so.90()(64bit) for package: 32:bind-9.9.4-18.el7_1.5.x86_64\r\n--> Processing Dependency: libisc.so.95()(64bit) for package: 32:bind-9.9.4-18.el7_1.5.x86_64\r\n--> Processing Dependency: libdns.so.100()(64bit) for package: 32:bind-9.9.4-18.el7_1.5.x86_64\r\n--> Processing Dependency: libbind9.so.90()(64bit) for package: 32:bind-9.9.4-18.el7_1.5.x86_64\r\n---> Package bind-chroot.x86_64 32:9.9.4-18.el7_1.5 will be installed\r\n--> Running transaction check\r\n---> Package bind-libs.x86_64 32:9.9.4-18.el7_1.5 will be installed\r\n--> Processing Dependency: bind-license = 32:9.9.4-18.el7_1.5 for package: 32:bind-libs-9.9.4-18.el7_1.5.x86_64\r\n--> Running transaction check\r\n---> Package bind-license.noarch 32:9.9.4-18.el7_1.5 will be installed\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n================================================================================\r\n Package            Arch         Version                    Repository     Size\r\n================================================================================\r\nInstalling:\r\n bind               x86_64       32:9.9.4-18.el7_1.5        updates       1.8 M\r\n bind-chroot        x86_64       32:9.9.4-18.el7_1.5        updates        82 k\r\nInstalling for dependencies:\r\n bind-libs          x86_64       32:9.9.4-18.el7_1.5        updates       1.0 M\r\n bind-license       noarch       32:9.9.4-18.el7_1.5        updates        80 k\r\n\r\nTransaction Summary\r\n================================================================================\r\nInstall  2 Packages (+2 Dependent packages)\r\n\r\nTotal download size: 2.9 M\r\nInstalled size: 6.8 M\r\nDownloading packages:\r\nwarning: /var/cache/yum/x86_64/7/updates/packages/bind-chroot-9.9.4-18.el7_1.5.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY\r\nPublic key for bind-chroot-9.9.4-18.el7_1.5.x86_64.rpm is not installed\r\n--------------------------------------------------------------------------------\r\nTotal                                              3.2 MB/s | 2.9 MB  00:00     \r\nRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\r\nImporting GPG key 0xF4A80EB5:\r\n Userid     : \"CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>\"\r\n Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5\r\n Package    : centos-release-7-1.1503.el7.centos.2.8.x86_64 (@CentOS)\r\n From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\n  Installing : 32:bind-license-9.9.4-18.el7_1.5.noarch                      1/4 \r\n  Installing : 32:bind-libs-9.9.4-18.el7_1.5.x86_64                         2/4 \r\n  Installing : 32:bind-9.9.4-18.el7_1.5.x86_64                              3/4 \r\nwarning: /etc/named.conf created as /etc/named.conf.rpmnew\r\n  Installing : 32:bind-chroot-9.9.4-18.el7_1.5.x86_64                       4/4 \r\n  Verifying  : 32:bind-libs-9.9.4-18.el7_1.5.x86_64                         1/4 \r\n  Verifying  : 32:bind-license-9.9.4-18.el7_1.5.noarch                      2/4 \r\n  Verifying  : 32:bind-9.9.4-18.el7_1.5.x86_64                              3/4 \r\n  Verifying  : 32:bind-chroot-9.9.4-18.el7_1.5.x86_64                       4/4 \r\n\r\nInstalled:\r\n  bind.x86_64 32:9.9.4-18.el7_1.5     bind-chroot.x86_64 32:9.9.4-18.el7_1.5    \r\n\r\nDependency Installed:\r\n  bind-libs.x86_64 32:9.9.4-18.el7_1.5  bind-license.noarch 32:9.9.4-18.el7_1.5 \r\n\r\nComplete!\r\n ---> f01aed3a930e\r\nRemoving intermediate container d25a124594c8\r\nStep 6 : RUN chown -hR named:named /var/named\r\n ---> Running in 21b29e5b82f0\r\n ---> 3c16cebb658f\r\nRemoving intermediate container 21b29e5b82f0\r\nStep 7 : CMD /usr/sbin/named -u named -c /etc/named.conf -f\r\n ---> Running in 58c52f413f66\r\n ---> 0ccd5c7d74e5\r\nRemoving intermediate container 58c52f413f66\r\nSuccessfully built 0ccd5c7d74e5\r\nSending build context to Docker daemon 3.072 kB\r\nStep 1 : FROM fedora\r\nlatest: Pulling from library/fedora\r\n369aca82a5c0: Pull complete \r\na887c7ad7f3f: Pull complete \r\nDigest: sha256:50432151312d9ed1af4becc4ab58ca1d26a36f4c345cd79cc3d9da79ae88be6e\r\nStatus: Downloaded newer image for fedora:latest\r\n ---> a887c7ad7f3f\r\nStep 2 : MAINTAINER anton.belodedenko@gmail.com\r\n ---> Running in 38009b109d54\r\n ---> 31ebd0300856\r\nRemoving intermediate container 38009b109d54\r\nStep 3 : RUN yum -y install udns-devel sniproxy\r\n ---> Running in 6d3c6b1b216e\r\nYum command has been deprecated, redirecting to '/usr/bin/dnf -y install udns-devel sniproxy'.\r\nSee 'man dnf' and 'man yum2dnf' for more information.\r\nTo transfer transaction metadata from yum to DNF, run:\r\n'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'\r\n\r\nLast metadata expiration check performed 0:01:39 ago on Thu Nov 12 19:56:13 2015.\r\nDependencies resolved.\r\n================================================================================\r\n Package            Arch           Version                 Repository      Size\r\n================================================================================\r\nInstalling:\r\n libev              x86_64         4.19-2.fc23             fedora          49 k\r\n sniproxy           x86_64         0.4.0-2.fc23            fedora          46 k\r\n udns               x86_64         0.4-4.fc23              fedora          63 k\r\n udns-devel         x86_64         0.4-4.fc23              fedora          32 k\r\n\r\nTransaction Summary\r\n================================================================================\r\nInstall  4 Packages\r\n\r\nTotal download size: 189 k\r\nInstalled size: 358 k\r\nDownloading Packages:\r\n--------------------------------------------------------------------------------\r\nTotal                                            98 kB/s | 189 kB     00:01     \r\nRunning transaction check\r\nTransaction check succeeded.\r\nRunning transaction test\r\nTransaction test succeeded.\r\nRunning transaction\r\n  Installing  : udns-0.4-4.fc23.x86_64                                      1/4 \r\n  Installing  : libev-4.19-2.fc23.x86_64                                    2/4 \r\n  Installing  : sniproxy-0.4.0-2.fc23.x86_64                                3/4 \r\n  Installing  : udns-devel-0.4-4.fc23.x86_64                                4/4 \r\n  Verifying   : sniproxy-0.4.0-2.fc23.x86_64                                1/4 \r\n  Verifying   : libev-4.19-2.fc23.x86_64                                    2/4 \r\n  Verifying   : udns-0.4-4.fc23.x86_64                                      3/4 \r\n  Verifying   : udns-devel-0.4-4.fc23.x86_64                                4/4 \r\n\r\nInstalled:\r\n  libev.x86_64 4.19-2.fc23             sniproxy.x86_64 0.4.0-2.fc23            \r\n  udns.x86_64 0.4-4.fc23               udns-devel.x86_64 0.4-4.fc23            \r\n\r\nComplete!\r\n ---> a626688f91cf\r\nRemoving intermediate container 6d3c6b1b216e\r\nStep 4 : CMD /usr/sbin/sniproxy -c /data/sniproxy.conf -f\r\n ---> Running in ab9323e8d2d9\r\n ---> 77a3e1777542\r\nRemoving intermediate container ab9323e8d2d9\r\nSuccessfully built 77a3e1777542\r\nStarting Docker containers (local)\r\n8318309fbdb2c07aa5e1083a72cf7532101fb90ea06be62fbb2223bfa0e3363f\r\nError response from daemon: Cannot start container 8318309fbdb2c07aa5e1083a72cf7532101fb90ea06be62fbb2223bfa0e3363f: failed to create endpoint bind on network bridge: Error starting userland proxy: listen udp 0.0.0.0:53: bind: address already in use\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ab77/netflix-proxy/issues/comments/156751602","html_url":"https://github.com/ab77/netflix-proxy/issues/47#issuecomment-156751602","issue_url":"https://api.github.com/repos/ab77/netflix-proxy/issues/47","id":156751602,"user":{"login":"ab77","id":2033996,"avatar_url":"https://avatars.githubusercontent.com/u/2033996?v=3","gravatar_id":"","url":"https://api.github.com/users/ab77","html_url":"https://github.com/ab77","followers_url":"https://api.github.com/users/ab77/followers","following_url":"https://api.github.com/users/ab77/following{/other_user}","gists_url":"https://api.github.com/users/ab77/gists{/gist_id}","starred_url":"https://api.github.com/users/ab77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ab77/subscriptions","organizations_url":"https://api.github.com/users/ab77/orgs","repos_url":"https://api.github.com/users/ab77/repos","events_url":"https://api.github.com/users/ab77/events{/privacy}","received_events_url":"https://api.github.com/users/ab77/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T22:31:22Z","updated_at":"2015-11-14T22:31:22Z","body":"Could be a timing issue or some kind of other Azure bandess..\n\nOn 14 November 2015 at 13:39, rosch100 <notifications@github.com> wrote:\n\n> That was the case. After restarting bind and sniproxy, it seems to be\n> working.\n> However, it is unclear, why bind and sniproxy do not start automatically.\n> The scripts docker-bind.conf and docker-sniproxy.conf can be found in\n> /etc/init.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/ab77/netflix-proxy/issues/47#issuecomment-156697451>.\n>\n"}}