{"action":"opened","issue":{"url":"https://api.github.com/repos/coreos/rkt/issues/2300","repository_url":"https://api.github.com/repos/coreos/rkt","labels_url":"https://api.github.com/repos/coreos/rkt/issues/2300/labels{/name}","comments_url":"https://api.github.com/repos/coreos/rkt/issues/2300/comments","events_url":"https://api.github.com/repos/coreos/rkt/issues/2300/events","html_url":"https://github.com/coreos/rkt/issues/2300","id":141990983,"number":2300,"title":"Rkt can't run k8s guestbook frontend","user":{"login":"sjpotter","id":1659735,"avatar_url":"https://avatars.githubusercontent.com/u/1659735?v=3","gravatar_id":"","url":"https://api.github.com/users/sjpotter","html_url":"https://github.com/sjpotter","followers_url":"https://api.github.com/users/sjpotter/followers","following_url":"https://api.github.com/users/sjpotter/following{/other_user}","gists_url":"https://api.github.com/users/sjpotter/gists{/gist_id}","starred_url":"https://api.github.com/users/sjpotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjpotter/subscriptions","organizations_url":"https://api.github.com/users/sjpotter/orgs","repos_url":"https://api.github.com/users/sjpotter/repos","events_url":"https://api.github.com/users/sjpotter/events{/privacy}","received_events_url":"https://api.github.com/users/sjpotter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-18T22:16:26Z","updated_at":"2016-03-18T22:16:26Z","closed_at":null,"body":"in k8s there's examples/guestbook.\r\n\r\nit's image is\r\n\r\n```\r\ngcr.io/google_samples/gb-frontend:v4\r\n```\r\n\r\nif you try to run it, it errors out with\r\n\r\n```\r\n# /opt/rkt/rkt run gcr.io/google_samples/gb-frontend:v4\r\nimage: using image from local store for image name coreos.com/rkt/stage1-coreos:1.1.0+git5010f43\r\nimage: using image from local store for image name gcr.io/google_samples/gb-frontend:v4\r\nnetworking: loading networks from /etc/rkt/net.d\r\nnetworking: loading network default with type ptp\r\n[ 2673.478241] apache2-foreground[4]: AH00557: apache2: apr_sockaddr_info_get() failed for rkt-4db2fc31-48b1-4a6a-aba4-a1d733c72c81\r\n[ 2673.478634] apache2-foreground[4]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message\r\n[ 2673.478868] apache2-foreground[4]: (6)No such device or address: AH00091: apache2: could not open error log file /proc/self/fd/2.\r\n[ 2673.479120] apache2-foreground[4]: AH00015: Unable to open logs\r\n```\r\n\r\nthis is because Apache is configured to use /proc/self/fd/2 as it's ErrorLog\r\n\r\n```\r\napache2.conf:ErrorLog /proc/self/fd/2\r\n```\r\n\r\nhowever, in changing the pod manifest to run ls -l /proc/self/fd we see\r\n\r\n```\r\n[ 2253.894338] ls[4]: total 0\r\n[ 2253.894918] ls[4]: lr-x------. 1 root root 64 Mar 18 22:05 0 -> /dev/null\r\n[ 2253.895537] ls[4]: lrwx------. 1 root root 64 Mar 18 22:05 1 -> socket:[114680]\r\n[ 2253.895999] ls[4]: lrwx------. 1 root root 64 Mar 18 22:05 2 -> socket:[114680]\r\n[ 2253.896385] ls[4]: lr-x------. 1 root root 64 Mar 18 22:05 3 -> /proc/4/fd\r\n```\r\ni.e. fd2 is a socket that probably can't be opened by apache?\r\n\r\nif we run this modified pod manfiest with --interactive we see\r\n\r\n```\r\ntotal 0\r\nlrwx------. 1 root root 64 Mar 18 22:06 0 -> /dev/console\r\nlrwx------. 1 root root 64 Mar 18 22:06 1 -> /dev/console\r\nlrwx------. 1 root root 64 Mar 18 22:06 2 -> /dev/console\r\nlr-x------. 1 root root 64 Mar 18 22:06 3 -> /proc/4/fd\r\n```\r\n\r\nand if we do the same with the original image it works\r\n\r\n```\r\n/opt/rkt/rkt run --interactive gcr.io/google_samples/gb-frontend:v4\r\nimage: using image from local store for image name coreos.com/rkt/stage1-coreos:1.1.0+git5010f43\r\nimage: using image from local store for image name gcr.io/google_samples/gb-frontend:v4\r\nnetworking: loading networks from /etc/rkt/net.d\r\nnetworking: loading network default with type ptp\r\n\t\\\t/AH00557: apache2: apr_sockaddr_info_get() failed for rkt-060d13ea-c93f-4bfb-a91b-424045c9d8b1\r\nAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message\r\nAH00557: apache2: apr_sockaddr_info_get() failed for rkt-060d13ea-c93f-4bfb-a91b-424045c9d8b1\r\nAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message\r\n[Fri Mar 18 22:09:53.455991 2016] [mpm_prefork:notice] [pid 4] AH00163: Apache/2.4.10 (Debian) PHP/5.6.18 configured -- resuming normal operations\r\n[Fri Mar 18 22:09:53.456121 2016] [core:notice] [pid 4] AH00094: Command line: 'apache2 -D FOREGROUND'\r\n```\r\n\r\nnot sure how we can fix this.  thoughts?\r\n\r\n@yifan-gu @alban @iaguis @jonboulle "}}