git ubuntu build-source fails on cosmic for postfix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Attempting to use git-ubuntu to build postfix under cosmic fails, complaining about not having permissions open a tarball.
[Test Case]
$ git-ubuntu clone postfix
$ cd postfix
$ lxc image list
...
| | 5a0e42b9ea44 | no | ubuntu 18.10 amd64 (daily) (20180829) | x86_64 | 175.40MB | Aug 30, 2018 at 6:14pm (UTC) |
...
Get an 18.10 image ID. In this case: 5a0e42b9ea44
$ git ubuntu build-source -v --lxd-image 5a0e42b9ea44 --sign --keep-build-env
It will fail with:
09/07/2018 18:00:00 - ERROR:Command exited 2: /usr/bin/lxc exec moved-mutt -- sudo -s -H -u ubuntu tar zxCf /tmp /tmp/tmptsr1slu
09/07/2018 18:00:00 - ERROR:stdout:
09/07/2018 18:00:00 - ERROR:stderr: tar (child): /tmp/tmptsr1slu
If you look inside the container, you'll see:
# ls -l /tmp/tmptsr1slu
-rw------- 1 1001 1001 4673602 Sep 7 18:00 /tmp/tmptsr1slu
Pretty sure this is a duplicate of bug 1749609.
On Fri, Sep 7, 2018, 4:25 PM Karl Stenerud <email address hidden>
wrote:
> Public bug reported: v.tar.gz v.tar.gz: v.tar.gz v.tar.gz /bugs.launchpad .net/bugs/ 1791371 /bugs.launchpad .net/usd- importer/ +bug/1791371/ +subscriptions
>
> [Impact]
>
> Attempting to use git-ubuntu to build postfix under cosmic fails,
> complaining about not having permissions open a tarball.
>
> [Test Case]
>
> $ git-ubuntu clone postfix
> $ cd postfix
> $ lxc image list
> ...
> | | 5a0e42b9ea44 | no | ubuntu 18.10 amd64 (daily) (20180829) |
> x86_64 | 175.40MB | Aug 30, 2018 at 6:14pm (UTC) |
> ...
> Get an 18.10 image ID. In this case: 5a0e42b9ea44
>
> $ git ubuntu build-source -v --lxd-image 5a0e42b9ea44 --sign --keep-
> build-env
>
> It will fail with:
>
> 09/07/2018 18:00:00 - ERROR:Command exited 2: /usr/bin/lxc exec moved-mutt
> -- sudo -s -H -u ubuntu tar zxCf /tmp /tmp/tmptsr1slu
> 09/07/2018 18:00:00 - ERROR:stdout:
> 09/07/2018 18:00:00 - ERROR:stderr: tar (child): /tmp/tmptsr1slu
> Cannot open: Permission denied
>
> If you look inside the container, you'll see:
>
> # ls -l /tmp/tmptsr1slu
> -rw------- 1 1001 1001 4673602 Sep 7 18:00 /tmp/tmptsr1slu
>
> ** Affects: usd-importer
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Ubuntu
> Server Dev import team, which is subscribed to usd-importer.
> https:/
>
> Title:
> git ubuntu build-source fails on cosmic for postfix
>
> To manage notifications about this bug go to:
> https:/
>