{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/2607","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/2607/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/2607/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/2607/events","html_url":"https://github.com/lxc/lxd/issues/2607","id":188476889,"number":2607,"title":"Running container suddenly producing config errors when using exec","user":{"login":"bigjools","id":11657873,"avatar_url":"https://avatars.githubusercontent.com/u/11657873?v=3","gravatar_id":"","url":"https://api.github.com/users/bigjools","html_url":"https://github.com/bigjools","followers_url":"https://api.github.com/users/bigjools/followers","following_url":"https://api.github.com/users/bigjools/following{/other_user}","gists_url":"https://api.github.com/users/bigjools/gists{/gist_id}","starred_url":"https://api.github.com/users/bigjools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigjools/subscriptions","organizations_url":"https://api.github.com/users/bigjools/orgs","repos_url":"https://api.github.com/users/bigjools/repos","events_url":"https://api.github.com/users/bigjools/events{/privacy}","received_events_url":"https://api.github.com/users/bigjools/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-10T10:52:46Z","updated_at":"2016-11-11T10:28:05Z","closed_at":null,"body":"\r\n# Required information\r\n\r\n * Distribution: Ubuntu\r\n * Distribution version: 16.04\r\n * The output of \"lxc info\" or if that fails:\r\n   * Kernel version: 4.4.0-42-generic\r\n   * LXC version: 2.0.5\r\n   * LXD version: 2.5-0ubuntu1~ubuntu16.04.1~ppa1\r\n   * Storage backend in use: directory\r\n\r\n# Issue description\r\n\r\n```\r\ned@li157-164:/etc/apache2$ lxc exec wordpress bash\r\nerror: Error opening startup config file: \"loading config file for the container failed\"\r\n\r\ned@li157-164:/etc/apache2$ lxc config show wordpress\r\nname: wordpress\r\nprofiles:\r\n- default\r\nconfig:\r\n  boot.autostart: \"1\"\r\n  volatile.base_image: 615070e4260de515886f2368daeb4bd0d0cd84fe5b53bacacda0873492ccbd4e\r\n  volatile.eth0.hwaddr: 00:16:3e:73:9e:2c\r\n  volatile.last_state.idmap: '[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":100000,\"Nsid\":0,\"Maprange\":65536},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":100000,\"Nsid\":0,\"Maprange\":65536}]'\r\ndevices:\r\n  root:\r\n    path: /\r\n    type: disk\r\nephemeral: false\r\n\r\n```\r\n\r\n# Steps to reproduce\r\n\r\nNo idea, this started happening on a previously-working container, which is still running. lxd was upgraded in the meantime from the version used for deployment but I can't recall which version.\r\n\r\n# Information to attach\r\n\r\n - [ ] any relevant kernel output (dmesg)\r\n - [ ] container log (lxc info NAME --show-log)\r\n - [x ] main daemon log (/var/log/lxd.log)\r\n```\r\nt=2016-11-10T05:45:53-0500 lvl=info msg=\"Executing command\" environment=\"[HOME=/root TERM=screen-bce USER=root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]\" args=\"[/usr/bin/lxd forkexec wordpress /var/lib/lxd/containers /var/log/lxd/wordpress/lxc.conf -- env HOME=/root TERM=screen-bce USER=root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -- cmd bash]\"\r\nt=2016-11-10T05:45:53-0500 lvl=info msg=\"Executed command\" exit_status=255 environment=\"[HOME=/root TERM=screen-bce USER=root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]\" args=\"[/usr/bin/lxd forkexec wordpress /var/lib/lxd/containers /var/log/lxd/wordpress/lxc.conf -- env HOME=/root TERM=screen-bce USER=root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -- cmd bash]\"\r\n```\r\n - [ ] output of the client with --debug\r\n - [ ] output of the daemon with --debug\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/259928296","html_url":"https://github.com/lxc/lxd/issues/2607#issuecomment-259928296","issue_url":"https://api.github.com/repos/lxc/lxd/issues/2607","id":259928296,"user":{"login":"stgraber","id":2230599,"avatar_url":"https://avatars.githubusercontent.com/u/2230599?v=3","gravatar_id":"","url":"https://api.github.com/users/stgraber","html_url":"https://github.com/stgraber","followers_url":"https://api.github.com/users/stgraber/followers","following_url":"https://api.github.com/users/stgraber/following{/other_user}","gists_url":"https://api.github.com/users/stgraber/gists{/gist_id}","starred_url":"https://api.github.com/users/stgraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgraber/subscriptions","organizations_url":"https://api.github.com/users/stgraber/orgs","repos_url":"https://api.github.com/users/stgraber/repos","events_url":"https://api.github.com/users/stgraber/events{/privacy}","received_events_url":"https://api.github.com/users/stgraber/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T10:28:05Z","updated_at":"2016-11-11T10:28:05Z","body":"Cool, so that confirms what we thought, for some reason, you're still running 2.4.1 despite having upgraded to 2.5. Can you attach /var/log/lxd/lxd.log and /var/log/dpkg.log?\r\n\r\nIt's going to be a packaging bug, hopefully I can figure it out with those two logs.\r\n\r\nTo fix your LXD, just run \"systemctl restart lxd\" and it'll come back up as 2.5 and the problem will be gone."}}
{"actor":{"display_login":"stgraber"}}