Opened 4 years ago

Closed 4 years ago

#13608 closed defect (worksforme)

Building Tor Browser in LXC for 64bit Linux is broken due to running out of disc space

Reported by: gk Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Keywords: tbb-gitian
Cc: dcf, mikeperry Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by gk)

Since we switched to an ESR 31 based Tor Browser building with LXC results in

$ tail gitian-builder/var/build.log
cp: writing `/home/ubuntu/install/Browser/platform.ini': No space left on device
cp: writing `/home/ubuntu/install/Browser/plugin-container': No space left on device
cp: writing `/home/ubuntu/install/Browser/precomplete': No space left on device
cp: writing `/home/ubuntu/install/Browser/removed-files': No space left on device
cp: writing `/home/ubuntu/install/Browser/run-mozilla.sh': No space left on device
cp: writing `/home/ubuntu/install/Browser/update-settings.ini': No space left on device
cp: writing `/home/ubuntu/install/Browser/updater': No space left on device
cp: writing `/home/ubuntu/install/Browser/updater.ini': No space left on device
cp: cannot create directory `/home/ubuntu/install/Browser/webapprt': No space left on device
cp: writing `/home/ubuntu/install/Browser/webapprt-stub': No space left on device

on *some* machines when trying to build 64bit bundles. There are machines where bumping the space limit (in commit e371d36c295a11bca2c6d3f59777f8a1177e4c14) is helping as expected but there are others where this does not seem to be the case.

Child Tickets

Change History (5)

comment:1 Changed 4 years ago by gk

Cc: mikeperry added

A week ago I tried to get our common LXC machine to be able to build ESR 31 based Tor Browser bundles. But creating the LXC containers just gave me new ones which hit the issue in this ticket while I don't have that problem on my laptop. Not sure why kpartx is not doing the things we want here, i.e. creating properly sized LXC containers.

comment:2 Changed 4 years ago by gk

Description: modified (diff)
Summary: Building Tor Browser in LXC is broken due to running out of disc spaceBuilding Tor Browser in LXC for 64bit Linux is broken due to running out of disc space

comment:3 Changed 4 years ago by dcf

I'm hitting this too on the shared build VM. I don't know much about LXC nor how to debug it.

This command shows that the container is apparently only 9.4 GB in size:

$ LXC_SUITE=lucid LXC_ARCH=amd64 on-target df -h /
Filesystem            Size  Used Avail Use% Mounted on
-                     9.4G  9.0G  1.6M 100% /

It seems to be the same in lucid-i386, but in that case it just barely fits:

$ LXC_SUITE=lucid LXC_ARCH=i386 on-target df -h /
Filesystem            Size  Used Avail Use% Mounted on
-                     9.4G  8.4G  597M  94% /

comment:4 Changed 4 years ago by dcf

I deleted base-lucid-amd64{,.qcow2} (only those files) and added some extra debugging to make-base-vm. When I did mkbundle-linux.sh, the image got created with the right size (15 GB) and the build completed successfully. I'm pretty sure I had in the past tried deleting all disk images and starting from scratch, and it didn't work. Maybe something to do with deleting only one of them. Anyway, it seems fixed for me for now.

comment:5 Changed 4 years ago by gk

Resolution: worksforme
Status: newclosed

Whoa, you are right. And I spent *quite* some time debugging that before (which included deleting and recreating the containers to no avail). It might be related to the fact that the build machine + other equipment hosted at 1984 was not reachable a while. Maybe some upgrade happened after that, dunno. Anyway, this works for me again, too.

Note: See TracTickets for help on using tickets.