snapcraft cleanbuild 500 internal server error

Bug #1593409 reported by Alan Pope 🍺🐧🐱 🦄
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Won't Fix
Undecided
Unassigned

Bug Description

I have apt-cacher-ng installed on my laptop which may be a variable involved in this?

Whenever I do a "snapcraft cleanbuild" it sets up lxd and then does an apt update and then tries to get the necessary packages needed for my snap and 500 errors when getting the debs. Every time. Not a transient issue, been like it for days.

$ snapcraft cleanbuild
"confinement" property not specified: defaulting to "strict"
Creating snapcraft-early-lichenlike-castiel
Starting snapcraft-early-lichenlike-castiel
Setting up container with project assets
./
./parts/
./snapcraft.yaml
Waiting for a network connection...
Network connection established
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [213 kB]
Ign:5 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [46.3 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [97.1 kB]
Fetched 545 kB in 0s (1208 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  ca-certificates iso-codes libicu55 liblzo2-2 libxml2 libxslt1.1 libyaml-0-2 openssl python-apt-common python3-apt python3-blinker python3-bs4 python3-cffi-backend python3-chardet
  python3-cryptography python3-docopt python3-html5lib python3-idna python3-jsonschema python3-jwt python3-lxml python3-magic python3-oauthlib python3-petname python3-pkg-resources
  python3-progressbar python3-pyasn1 python3-requests python3-requests-oauthlib python3-requests-toolbelt python3-six python3-urllib3 python3-xdg python3-yaml sgml-base squashfs-tools
  xml-core
Suggested packages:
  isoquery python3-apt-dbg python-apt-doc python-blinker-doc python-cryptography-doc python3-cryptography-vectors python3-genshi python3-crypto python3-lxml-dbg python-lxml-doc
  python3-setuptools doc-base python3-ndg-httpsclient python3-openssl sgml-base-doc lxd debhelper
The following NEW packages will be installed:
  ca-certificates iso-codes libicu55 liblzo2-2 libxml2 libxslt1.1 libyaml-0-2 openssl python-apt-common python3-apt python3-blinker python3-bs4 python3-cffi-backend python3-chardet
  python3-cryptography python3-docopt python3-html5lib python3-idna python3-jsonschema python3-jwt python3-lxml python3-magic python3-oauthlib python3-petname python3-pkg-resources
  python3-progressbar python3-pyasn1 python3-requests python3-requests-oauthlib python3-requests-toolbelt python3-six python3-urllib3 python3-xdg python3-yaml sgml-base snapcraft
  squashfs-tools xml-core
0 upgraded, 38 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.0 MB of archives.
After this operation, 63.8 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 sgml-base all 1.26+nmu4ubuntu1 [12.5 kB]
Err:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 liblzo2-2 amd64 2.08-1.2
  500 Internal Server Error
Err:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 libyaml-0-2 amd64 0.1.6-3
  500 Internal Server Error
Err:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 openssl amd64 1.0.2g-1ubuntu4.1
  500 Internal Server Error
Err:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 ca-certificates all 20160104ubuntu1
  500 Internal Server Error
Get:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 openssl amd64 1.0.2g-1ubuntu4.1 [491 kB]
Err:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 iso-codes all 3.65-1
  500 Internal Server Error
Err:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 libicu55 amd64 55.1-7
  500 Internal Server Error
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libxml2 amd64 2.9.3+dfsg1-1ubuntu0.1
Err:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-apt-common all 1.1.0~beta1build1
  500 Internal Server Error
Err:10 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-apt amd64 1.1.0~beta1build1
  500 Internal Server Error
Err:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 xml-core all 0.13+nmu2
  500 Internal Server Error
Err:12 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxslt1.1 amd64 1.1.28-2.1
  500 Internal Server Error
Err:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-blinker all 1.3.dfsg2-1build1
  500 Internal Server Error
Err:14 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-bs4 all 4.4.1-1
  500 Internal Server Error
Err:15 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-cffi-backend amd64 1.5.2-1ubuntu1
  500 Internal Server Error
Err:16 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-pkg-resources all 20.7.0-1
  500 Internal Server Error
Err:17 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-chardet all 2.3.0-2
  500 Internal Server Error
Err:18 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-idna all 2.0-3
  500 Internal Server Error
Err:19 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-pyasn1 all 0.1.9-1
  500 Internal Server Error
Err:20 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-six all 1.10.0-3
  500 Internal Server Error
Err:21 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-cryptography amd64 1.2.3-1
  500 Internal Server Error
Err:22 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python3-docopt all 0.6.2-1build1
  500 Internal Server Error
Err:23 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-html5lib all 0.999-4
  500 Internal Server Error
Err:24 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-jsonschema all 2.5.1-4
  500 Internal Server Error
Err:25 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-jwt all 1.3.0-1
  500 Internal Server Error
Err:26 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-lxml amd64 3.5.0-1build1
  500 Internal Server Error
Err:27 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-oauthlib all 1.0.3-1
  500 Internal Server Error
Err:28 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-petname all 1.12-0ubuntu1
  500 Internal Server Error
Err:29 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python3-progressbar all 2.3-2
  500 Internal Server Error
Err:30 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-urllib3 all 1.13.1-2ubuntu0.16.04.1
  500 Internal Server Error
Err:31 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-requests all 2.9.1-3
  500 Internal Server Error
Err:32 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python3-requests-oauthlib all 0.4.0-1ubuntu1
  500 Internal Server Error
Err:33 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python3-requests-toolbelt all 0.6.0-2
  500 Internal Server Error
Err:34 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-xdg all 0.25-4
  500 Internal Server Error
Err:35 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-yaml amd64 3.11-3build1
  500 Internal Server Error
Err:36 http://archive.ubuntu.com/ubuntu xenial/main amd64 squashfs-tools amd64 1:4.3-3ubuntu2
  500 Internal Server Error
Err:37 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-magic all 1:5.25-2ubuntu1
  500 Internal Server Error
Get:38 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 snapcraft all 2.11 [71.6 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 libxml2 amd64 2.9.3+dfsg1-1ubuntu0.1 [696 kB]
Fetched 1271 kB in 2s (517 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/lzo2/liblzo2-2_2.08-1.2_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/liby/libyaml/libyaml-0-2_0.1.6-3_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20160104ubuntu1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/i/iso-codes/iso-codes_3.65-1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-apt/python-apt-common_1.1.0~beta1build1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-apt/python3-apt_1.1.0~beta1build1_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/x/xml-core/xml-core_0.13+nmu2_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxslt/libxslt1.1_1.1.28-2.1_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/blinker/python3-blinker_1.3.dfsg2-1build1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/beautifulsoup4/python3-bs4_4.4.1-1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-cffi/python3-cffi-backend_1.5.2-1ubuntu1_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-setuptools/python3-pkg-resources_20.7.0-1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/c/chardet/python3-chardet_2.3.0-2_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-idna/python3-idna_2.0-3_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/pyasn1/python3-pyasn1_0.1.9-1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/six/python3-six_1.10.0-3_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-cryptography/python3-cryptography_1.2.3-1_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/d/docopt/python3-docopt_0.6.2-1build1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/h/html5lib/python3-html5lib_0.999-4_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-jsonschema/python3-jsonschema_2.5.1-4_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/pyjwt/python3-jwt_1.3.0-1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/lxml/python3-lxml_3.5.0-1build1_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-oauthlib/python3-oauthlib_1.0.3-1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-petname/python3-petname_1.12-0ubuntu1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/python-progressbar/python3-progressbar_2.3-2_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python-urllib3/python3-urllib3_1.13.1-2ubuntu0.16.04.1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/r/requests/python3-requests_2.9.1-3_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/python-requests-oauthlib/python3-requests-oauthlib_0.4.0-1ubuntu1_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/python-requests-toolbelt/python3-requests-toolbelt_0.6.0-2_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/pyxdg/python3-xdg_0.25-4_all.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/pyyaml/python3-yaml_3.11-3build1_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/squashfs-tools/squashfs-tools_4.3-3ubuntu2_amd64.deb 500 Internal Server Error

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/f/file/python3-magic_5.25-2ubuntu1_all.deb 500 Internal Server Error

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Command '['lxc', 'exec', 'snapcraft-early-lichenlike-castiel', '--',
'apt-get', 'install', 'snapcraft', '-y']' returned non-zero exit
status 100

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

With the latest lxd you need to setup networking yourself, so my question is, did this ever work? Another question is, does `dpkg-reconfigure lxd` fix the issue?

If this is the case, please mark confirmed and I'll work on a better error message to guide people into a solution.

Changed in snapcraft:
status: New → Incomplete
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Yup, after a bunch of mucking about with lxd I got it working. Turns out it had enabled ipv6 and that just doesn't work on my ISP. Thanks!

Revision history for this message
Leon (leonbo) wrote :

@popey, what did you do to make it work?

Changed in snapcraft:
status: Incomplete → Triaged
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

I made it work by selecting NAT and no IPv6. I accepted others as suggested.

Evan (ev)
tags: added: eco-team
Leo Arias (elopio)
tags: added: cleanbuild
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

cleanbuild is considered legacy, if there is anything similar happening with newer versions please do not hesitate to report

Changed in snapcraft:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.