Renew certificate


#1

Hi,

since a couple days I can’t renew my certificate. Usually I use:
/etc/letsencrypt/letsencrypt-auto renew && /etc/init.d/nginx reload > /dev/null 2>&1

Now I get the following output:
arm-linux-gnueabihf-gcc: internal compiler error: Speicherzugriffsfehler (program collect2)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 4

----------------------------------------

Command “/opt/eff.org/certbot/venv/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-lAey8x/cffi/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’
', ’
');f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-uIWj3z-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/eff.org/certbot/venv/include/site/python2.7/cffi” failed with error code 1 in /tmp/pip-build-lAey8x/cffi/

Certbot has problem setting up the virtual environment.

We were not be able to guess the right solution from your pip
output.

What’s wrong with my installation?


#2

Hi @Blaubart,

This suggests that you might not have enough RAM or you might have a CPU architecture problem. One problem that comes to mind is

… well, are you on a Raspberry Pi, and if so, which model?

Edit: By “a CPU architecture problem” I mean that some of your operating system packages might not actually be fully compatible with your CPU, for example because of the problem mentioned in the other thread where different Raspberry Pi devices have different kinds of ARM CPU and the apparently appropriate Debian packages in some cases are not compatible with the older devices.


#3

I use a Raspberry Pi 3


#4

How much RAM does your device have?


#5

Mem:
total: 945512
used: 913572
free: 31940
shared: 33348
buffers: 61204
cached: 613668


#6

Well, I’m not sure what the underlying cause of your problem is. It would be interesting to find out and I can talk to some colleagues today about whether anyone has ideas for further research.

In the meantime, if you switch away from certbot-auto to an OS-packaged version of Certbot (which operating system are you using?), your machine wouldn’t have to compile packages locally as part of the installation process, which should avoid triggering this particular problem.

Alternatively, you could use a different Let’s Encrypt client. For example, the bash clients are extremely compatible and have very low system resource requirements.

(I will emphasize that we’re still interested in figuring out why you get this error; I just want to give you some options to make sure that your certificate gets renewed.)


#7

cat /etc/os-release

PRETTY_NAME=“Raspbian GNU/Linux 8 (jessie)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“8”
VERSION=“8 (jessie)”
ID=raspbian
ID_LIKE=debian

I’m wondering, that everything was fine for a couple month. I didn’t change everything.


#8

@bmw, do you have any ideas about this? Since this is jessie, certbot-auto is our current recommendation in any case. :frowning:


#9

certbot-auto has to recompile its cryptography dependency on ARM systems every time it updates and this can use a lot of memory. I recommend following the instructions at https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment about creating a swapfile and trying to run certbot-auto again.


#10

I tried:
fallocate -l 1G /tmp/swapfile
chmod 600 /tmp/swapfile
mkswap /tmp/swapfile
swapon /tmp/swapfile
/etc/letsencrypt/letsencrypt-auto renew && /etc/init.d/nginx reload > /dev/null 2>&1

But I get the same Error


#11

No ideas what I can do?


#12

Unfortunately, I don’t think we’ve encountered this form of the problem before.

I’d like to see some more logs to try to diagnose it, but I don’t think we have a straightforward solution to recommend. If you want to get a certificate on this device right away, you’ll probably need to use a different client instead of Certbot.


#13

But if you have access to more logs from certbot-auto or pip, please do post them here!


#14

Yeah, there should be more output from certbot-auto than we’ve seen so far. You can cause even more to be printed by adding --verbose to the command line. Additional output from the script here could give us more information and allow us to offer suggestions on how to solve your problem.


#15

Is that what you need?
Command “/opt/eff.org/certbot/venv/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-EPk1BL/cffi/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-K7o0rv-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/eff.org/certbot/venv/include/site/python2.7/cffi” failed with error code 1 in /tmp/pip-build-EPk1BL/cffi/


#16

Can you run /etc/letsencrypt/letsencrypt-auto renew --verbose and paste the full output?


#17

/etc/letsencrypt/letsencrypt-auto renew --verbose

Bootstrapping dependencies for Debian-based OSes… (you can skip this with --no-bootstrap)
OK http://archive.raspberrypi.org jessie InRelease
OK http://mirrordirector.raspbian.org jessie InRelease
OK http://archive.raspberrypi.org jessie/main armhf Packages
OK http://archive.raspberrypi.org jessie/ui armhf Packages
OK http://mirrordirector.raspbian.org jessie/main armhf Packages
OK http://mirrordirector.raspbian.org jessie/contrib armhf Packages
OK http://mirrordirector.raspbian.org jessie/non-free armhf Packages
OK http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-de_DE
Ign http://archive.raspberrypi.org jessie/main Translation-de
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-de_DE
Ign http://archive.raspberrypi.org jessie/ui Translation-de
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-de
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/main Translation-de
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-de
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-de
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abh?ngigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen… Fertig
augeas-lenses ist schon die neueste Version.
ca-certificates ist schon die neueste Version.
gcc ist schon die neueste Version.
libaugeas0 ist schon die neueste Version.
libffi-dev ist schon die neueste Version.
libssl-dev ist schon die neueste Version.
openssl ist schon die neueste Version.
python ist schon die neueste Version.
python-dev ist schon die neueste Version.
python-virtualenv ist schon die neueste Version.
virtualenv ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 90 nicht aktualisiert.
Creating virtual environment…
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in /opt/eff.org/certbot/venv/bin/python2.7
Also creating executable in /opt/eff.org/certbot/venv/bin/python
Installing setuptools, pip…done.
Installing Python packages…
Collecting argparse==1.4.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 11))
Downloading https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
Collecting pycparser==2.14 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 17))
Downloading https://files.pythonhosted.org/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz (223kB)
100% |################################| 225kB 4.5MB/s
Collecting asn1crypto==0.22.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 21))
Downloading https://files.pythonhosted.org/packages/97/ba/7e8117d8efcee589f4d96dd2b2eb1d997f96d27d214cf2b7134ad8acf6ab/asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
100% |################################| 102kB 6.6MB/s
Collecting cffi==1.11.5 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 24))
Downloading https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz (438kB)
100% |################################| 440kB 8.0MB/s
Collecting ConfigArgParse==0.12.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 57))
Downloading https://files.pythonhosted.org/packages/17/8d/4a41f11b0971017c7001f118be8003da8f7b96b010c66cd792b76658d1e1/ConfigArgParse-0.12.0.tar.gz (41kB)
100% |################################| 51kB 8.4MB/s
Collecting configobj==5.0.6 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 60))
Downloading https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting cryptography==2.2.2 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 63))
Downloading https://files.pythonhosted.org/packages/ec/b2/faa78c1ab928d2b2c634c8b41ff1181f0abdd9adf9193211bd606ffa57e2/cryptography-2.2.2.tar.gz (443kB)
100% |################################| 450kB 8.7MB/s
Collecting enum34==1.1.2 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 83))
Downloading https://files.pythonhosted.org/packages/6f/e9/08fd439384b7e3d613e75a6c8236b8e64d90c47d23413493b38d4229a9a5/enum34-1.1.2.tar.gz (46kB)
100% |################################| 51kB 7.0MB/s
Collecting funcsigs==1.0.2 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 86))
Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting idna==2.5 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 89))
Downloading https://files.pythonhosted.org/packages/11/7d/9bbbd7bb35f34b0169542487d2a8859e44306bb2e6a4455d491800a5621f/idna-2.5-py2.py3-none-any.whl (55kB)
100% |################################| 61kB 7.3MB/s
Collecting ipaddress==1.0.16 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 92))
Downloading https://files.pythonhosted.org/packages/23/6a/813ac29a01e4c33c19c2bded98ac3d4266ebbf0bd2c0eb0020e1c969958d/ipaddress-1.0.16-py27-none-any.whl
Collecting josepy==1.1.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 95))
Downloading https://files.pythonhosted.org/packages/23/46/30ac29742b03be92e05d1fd9048df6f0902bb0b3b042a7ea76a2b3c30f7e/josepy-1.1.0-py2.py3-none-any.whl (53kB)
100% |################################| 61kB 7.4MB/s
Collecting linecache2==1.0.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 98))
Downloading https://files.pythonhosted.org/packages/c7/a3/c5da2a44c85bfbb6eebcfc1dde24933f8704441b98fdde6528f4831757a6/linecache2-1.0.0-py2.py3-none-any.whl
Collecting mock==1.3.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 102))
Downloading https://files.pythonhosted.org/packages/b2/50/664a70b87408bb6c14c1af2337efa64eb8d1af80c933531758b8fb41ec25/mock-1.3.0-py2.py3-none-any.whl (56kB)
100% |################################| 61kB 7.2MB/s
Collecting ordereddict==1.1 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 105))
Downloading https://files.pythonhosted.org/packages/53/25/ef88e8e45db141faa9598fbf7ad0062df8f50f881a36ed6a0073e1572126/ordereddict-1.1.tar.gz
Collecting packaging==16.8 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 108))
Downloading https://files.pythonhosted.org/packages/87/1b/c39b7c65b5612812b83d6cab7ef2885eac9f6beb0b7b8a7071a186aea3b1/packaging-16.8-py2.py3-none-any.whl
Collecting parsedatetime==2.1 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 111))
Downloading https://files.pythonhosted.org/packages/85/1f/13fc06097e516f6259d62cea502b116451321c96e18a9d0fff9da3442e02/parsedatetime-2.1-py2-none-any.whl
Collecting pbr==1.8.1 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 114))
Downloading https://files.pythonhosted.org/packages/fc/37/94af8387babb09796d306b18cf94ee5c70388c875a16d8a88e471500452c/pbr-1.8.1-py2.py3-none-any.whl (89kB)
100% |################################| 92kB 7.0MB/s
Collecting pyOpenSSL==16.2.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 117))
Downloading https://files.pythonhosted.org/packages/ac/93/b4cd538d31adacd07f83013860db6b88d78755af1f3fefe68ec22d397e7b/pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
100% |################################| 51kB 7.4MB/s
Collecting pyparsing==2.1.8 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 120))
Downloading https://files.pythonhosted.org/packages/85/b9/188515f35f78533b3f82966a2c3f1a71a86df8b801367ee75a77191a861d/pyparsing-2.1.8-py2.py3-none-any.whl (54kB)
100% |################################| 61kB 6.0MB/s
Collecting pyRFC3339==1.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 129))
Downloading https://files.pythonhosted.org/packages/9b/0a/decfa17e7707afca17d6e9595ff5c79c1c71c74063ad95576f897ed3a9f1/pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 132))
Downloading https://files.pythonhosted.org/packages/41/e6/4b6740cb3e31b82252099994cea751c648b846aa7874343c31d68c2215be/python-augeas-0.5.0.tar.gz (90kB)
100% |################################| 92kB 6.8MB/s
Collecting pytz==2015.7 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 135))
Downloading https://files.pythonhosted.org/packages/c0/28/973f0382c803b21734cd7e97e0590928148ee21b1cbe8f7fed8b506204fb/pytz-2015.7-py2.py3-none-any.whl (476kB)
100% |################################| 481kB 7.6MB/s
Collecting requests==2.20.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 149))
Downloading https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8/requests-2.20.0-py2.py3-none-any.whl (60kB)
100% |################################| 61kB 7.1MB/s
Collecting six==1.10.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 152))
Downloading https://files.pythonhosted.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Collecting traceback2==1.4.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 155))
Downloading https://files.pythonhosted.org/packages/17/0a/6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e/traceback2-1.4.0-py2.py3-none-any.whl
Collecting unittest2==1.1.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 158))
Downloading https://files.pythonhosted.org/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl (96kB)
100% |################################| 102kB 7.3MB/s
Collecting zope.component==4.2.2 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 161))
Downloading https://files.pythonhosted.org/packages/4c/c4/3f77127c876f49af478e8ea4dc223cda17730bb273c0d1606a4114c64008/zope.component-4.2.2.tar.gz (546kB)
100% |################################| 552kB 5.8MB/s
Collecting zope.event==4.1.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 164))
Downloading https://files.pythonhosted.org/packages/0e/87/75e3d62a3506953c2e56d15a150de31e5d92310e87db2c8b102dc01b0b8e/zope.event-4.1.0.tar.gz (476kB)
100% |################################| 481kB 3.6MB/s
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 167))
Downloading https://files.pythonhosted.org/packages/9d/81/2509ca3c6f59080123c1a8a97125eb48414022618cec0e64eb1313727bfe/zope.interface-4.1.3.tar.gz (141kB)
100% |################################| 143kB 3.6MB/s
Collecting requests-toolbelt==0.8.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 185))
Downloading https://files.pythonhosted.org/packages/97/8a/d710f792d6f6ecc089c5e55b66e66c3f2f35516a1ede5a8f54c13350ffb0/requests_toolbelt-0.8.0-py2.py3-none-any.whl (54kB)
100% |################################| 61kB 6.1MB/s
Collecting chardet==3.0.2 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 188))
Downloading https://files.pythonhosted.org/packages/b8/74/54fdc2fcfdd46b6c486964b64c5bb7db9a3664033ab25cf11aab06dd2a5d/chardet-3.0.2-py2.py3-none-any.whl (133kB)
100% |################################| 143kB 4.5MB/s
Collecting urllib3==1.21.1 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 191))
Downloading https://files.pythonhosted.org/packages/24/53/f397db567de0aa0e81b211d81c13c41a779f14893e42189cf5bdb97611b2/urllib3-1.21.1-py2.py3-none-any.whl (131kB)
100% |################################| 133kB 5.1MB/s
Collecting certifi==2017.4.17 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 194))
Downloading https://files.pythonhosted.org/packages/eb/01/c1f58987b777d6c4ec535b4e004a4a07bfc9db06f0c7533367ca6da8f2a6/certifi-2017.4.17-py2.py3-none-any.whl (375kB)
100% |################################| 378kB 4.4MB/s
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 205))
Downloading https://files.pythonhosted.org/packages/fd/21/0c6f33829fadec8aca0c1ebb4d6f8101c05899356a58d1b2e506cb77cf18/letsencrypt-0.7.0-py2-none-any.whl
Collecting certbot==0.29.1 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 209))
Downloading https://files.pythonhosted.org/packages/47/39/6855d8eef3264aac06fca9c713f209944792649ac869baa489bc2d7f9a14/certbot-0.29.1-py2.py3-none-any.whl (317kB)
100% |################################| 327kB 4.6MB/s
Collecting acme==0.29.1 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 212))
Downloading https://files.pythonhosted.org/packages/ce/d4/14518f6cf6f791095132d91d6177ef3c84f1b927e05fe6476e488a0ffa01/acme-0.29.1-py2.py3-none-any.whl (84kB)
100% |################################| 92kB 6.3MB/s
Collecting certbot-apache==0.29.1 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 215))
Downloading https://files.pythonhosted.org/packages/13/b5/658a0a1cda419fa102646dbe16132bf48b4ee465b8f788351ceec3214254/certbot_apache-0.29.1-py2.py3-none-any.whl (228kB)
100% |################################| 235kB 4.2MB/s
Collecting certbot-nginx==0.29.1 (from -r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 218))
Downloading https://files.pythonhosted.org/packages/2a/1b/3d6408a96d03ac08fff92ea10d0bd578b5caf6771c8f29292da2f581f6f5/certbot_nginx-0.29.1-py2.py3-none-any.whl (90kB)
100% |################################| 92kB 2.6MB/s
Requirement already satisfied: setuptools>=1.0 in /opt/eff.org/certbot/venv/lib/python2.7/site-packages (from josepy==1.1.0->-r /tmp/tmp.2iSy7nbY17/letsencrypt-auto-requirements.txt (line 95))
Installing collected packages: argparse, pycparser, asn1crypto, cffi, ConfigArgParse, six, configobj, idna, enum34, ipaddress, cryptography, funcsigs, pyOpenSSL, josepy, linecache2, pbr, mock, ordereddict, pyparsing, packaging, parsedatetime, pytz, pyRFC3339, python-augeas, urllib3, chardet, certifi, requests, traceback2, unittest2, zope.interface, zope.event, zope.component, requests-toolbelt, acme, certbot, letsencrypt, certbot-apache, certbot-nginx
Found existing installation: argparse 1.2.1
Not uninstalling argparse at /usr/lib/python2.7, outside environment /opt/eff.org/certbot/venv
Running setup.py install for pycparser … done
Running setup.py install for cffi … error
Complete output from command /opt/eff.org/certbot/venv/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-3KQNNh/cffi/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-hs9cfE-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/eff.org/certbot/venv/include/site/python2.7/cffi:
arm-linux-gnueabihf-gcc: internal compiler error: Speicherzugriffsfehler (program collect2)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Note: will not use ‘__sync_synchronize()’ in the C code
***** The above error message can be safely ignored.

running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/c
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE__THREAD -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
In file included from c/cffi1_module.c:20:0,
                 from c/_cffi_backend.c:7370:
c/call_python.c:191:5: warning: #warning "no definition for read_barrier(), missing synchronization for multi-thread initialization in embedded mode" [-Wcpp]
 #   warning "no definition for read_barrier(), missing synchronization for\
     ^
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/c/_cffi_backend.o -lffi -o build/lib.linux-armv7l-2.7/_cffi_backend.so
arm-linux-gnueabihf-gcc: internal compiler error: Speicherzugriffsfehler (program collect2)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 4

----------------------------------------

Command “/opt/eff.org/certbot/venv/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-3KQNNh/cffi/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-hs9cfE-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/eff.org/certbot/venv/include/site/python2.7/cffi” failed with error code 1 in /tmp/pip-build-3KQNNh/cffi/
Had a problem while installing Python packages.


#18

Interesting.

I don’t think I’ve seen this error before. I’m happy to help you try and debug it and/or get a bug report filed with our dependencies, but we’ll probably need to go back and forth a couple times to get more information if you don’t mind. First, can you confirm the issue still exists when running the commands:

TEMP_DIR=$(mktemp -d)
cd "$TEMP_DIR"
virtualenv --no-site-packages -p $(command -v python2.7 || command -v python27 || command -v python2 || command -v python) venv
. venv/bin/activate
pip install cffi
deactivate
cd -
rm -rf "$TEMP_DIR"
unset TEMP_DIR

This will create a temporary directory with a Python virtual environment inside it and try to install cffi which is the package that’s failing to install on your system. After that, the commands just clean everything up.


#19

It seems the installation of cffi dosen’t work:

root@server4:/home/pi# TEMP_DIR=$(mktemp -d)
root@server4:/home/pi# cd “TEMP_DIR" root@server4:/tmp/tmp.nost9okbE4# virtualenv --no-site-packages -p (command -v python2.7 || command -v python27 || command -v python2 || command -v python) venv
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in venv/bin/python2.7
Also creating executable in venv/bin/python
Installing setuptools, pip…
Complete output from command /tmp/tmp.nost9okbE4/venv/bin/python2.7 -c “import sys, pip; sys…d”] + sys.argv[1:]))” setuptools pip:
Traceback (most recent call last):
File “”, line 1, in
File “/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/init.py”, line 73, in
File “/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/util.py”, line 20, in
File “/tmp/tmp.nost9okbE4/venv/lib/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/version.py”, line 14, in
File “/tmp/tmp.nost9okbE4/venv/lib/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/compat.py”, line 31, in
ImportError: cannot import name HTTPSHandler

…Installing setuptools, pip…done.
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/virtualenv.py”, line 2378, in
main()
File “/usr/lib/python3/dist-packages/virtualenv.py”, line 830, in main
symlink=options.symlink)
File “/usr/lib/python3/dist-packages/virtualenv.py”, line 1032, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File “/usr/lib/python3/dist-packages/virtualenv.py”, line 975, in install_wheel
‘PIP_NO_INDEX’: ‘1’
File “/usr/lib/python3/dist-packages/virtualenv.py”, line 917, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /tmp/tmp.nost9okbE4/venv/bin/python2.7 -c “import sys, pip; sys…d”] + sys.argv[1:]))" setuptools pip failed with error code 1
root@server4:/tmp/tmp.nost9okbE4# . venv/bin/activate
bash: venv/bin/activate: Datei oder Verzeichnis nicht gefunden
root@server4:/tmp/tmp.nost9okbE4# pip install cffi
bash: pip: Kommando nicht gefunden.
root@server4:/tmp/tmp.nost9okbE4# deactivate
bash: deactivate: Kommando nicht gefunden.
root@server4:/tmp/tmp.nost9okbE4# cd -
/home/pi
root@server4:/home/pi# rm -rf “$TEMP_DIR”
root@server4:/home/pi# unset TEMP_DIR


#20

Now I could install cffi but still have an error:

apt-get update
apt-get python-pip
root@server4:/home/pi# TEMP_DIR=$(mktemp -d)
root@server4:/home/pi# cd "$TEMP_DIR"
root@server4:/tmp/tmp.ArZY1pwLrp# virtualenv --no-site-packages -p $(command -v python2.7 || command -v python27 || command -v python2 || command -v python) venv
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in venv/bin/python2.7
Also creating executable in venv/bin/python
Installing setuptools, pip...
  Complete output from command /tmp/tmp.ArZY1pwLrp/venv/bin/python2.7 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
  Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/__init__.py", line 73, in <module>
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/util.py", line 20, in <module>
  File "/tmp/tmp.ArZY1pwLrp/venv/lib/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/version.py", line 14, in <module>
  File "/tmp/tmp.ArZY1pwLrp/venv/lib/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/compat.py", line 31, in <module>
ImportError: cannot import name HTTPSHandler
----------------------------------------
...Installing setuptools, pip...done.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 2378, in <module>
    main()
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 830, in main
    symlink=options.symlink)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 1032, in create_environment
    install_wheel(to_install, py_executable, search_dirs)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 975, in install_wheel
    'PIP_NO_INDEX': '1'
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 917, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /tmp/tmp.ArZY1pwLrp/venv/bin/python2.7 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 1
root@server4:/tmp/tmp.ArZY1pwLrp# . venv/bin/activate
bash: venv/bin/activate: Datei oder Verzeichnis nicht gefunden
root@server4:/tmp/tmp.ArZY1pwLrp# pip install cffi
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 73, in <module>
    from pip.util import get_installed_distributions, get_prog
  File "/usr/lib/python2.7/dist-packages/pip/util.py", line 20, in <module>
    from distlib import version
  File "/usr/share/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/version.py", line 14, in <module>
  File "/usr/share/python-wheels/distlib-0.1.9-py2.py3-none-any.whl/distlib/compat.py", line 31, in <module>
ImportError: cannot import name HTTPSHandler
root@server4:/tmp/tmp.ArZY1pwLrp# deactivate
bash: deactivate: Kommando nicht gefunden.
root@server4:/tmp/tmp.ArZY1pwLrp# cd -
/home/pi
root@server4:/home/pi# rm -rf "$TEMP_DIR"
root@server4:/home/pi# unset TEMP_DIR

/etc/letsencrypt/letsencrypt-auto renew --verbose

Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
    OK   http://archive.raspberrypi.org jessie InRelease                                    
    OK   http://mirrordirector.raspbian.org jessie InRelease                                
    OK   http://archive.raspberrypi.org jessie/main armhf Packages              
    OK   http://archive.raspberrypi.org jessie/ui armhf Packages
    OK   http://mirrordirector.raspbian.org jessie/main armhf Packages
    OK   http://mirrordirector.raspbian.org jessie/contrib armhf Packages
    OK   http://mirrordirector.raspbian.org jessie/non-free armhf Packages                                               
    OK   http://mirrordirector.raspbian.org jessie/rpi armhf Packages                                                    
    Ign http://archive.raspberrypi.org jessie/main Translation-de_DE   
    Ign http://archive.raspberrypi.org jessie/main Translation-de                                                                                                                                                      
    Ign http://archive.raspberrypi.org jessie/main Translation-en                                                                                                                                                      
    Ign http://archive.raspberrypi.org jessie/ui Translation-de_DE                                                                                                                                                     
    Ign http://archive.raspberrypi.org jessie/ui Translation-de                                                                                                                                                        
    Ign http://archive.raspberrypi.org jessie/ui Translation-en                                                                                                                                                        
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-de_DE                                                                                                                                            
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-de                                                                                                                                               
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en                                                                                                                                               
    Ign http://mirrordirector.raspbian.org jessie/main Translation-de_DE                                                                                                                                               
    Ign http://mirrordirector.raspbian.org jessie/main Translation-de                                                                                                                                                  
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en                                                                                                                                                  
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-de_DE                                                                                                                                           
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-de                                                                                                                                              
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en                                                                                                                                              
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-de_DE                                                                                                                                                
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-de                                                                                                                                                   
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en                                                                                                                                                   
    Paketlisten werden gelesen... Fertig                                                                                                                                                                               
    Paketlisten werden gelesen... Fertig
    Abh?ngigkeitsbaum wird aufgebaut.       
    Statusinformationen werden eingelesen.... Fertig
    augeas-lenses ist schon die neueste Version.
    ca-certificates ist schon die neueste Version.
    gcc ist schon die neueste Version.
    libaugeas0 ist schon die neueste Version.
    libffi-dev ist schon die neueste Version.
    libssl-dev ist schon die neueste Version.
    openssl ist schon die neueste Version.
    python ist schon die neueste Version.
    python-dev ist schon die neueste Version.
    python-virtualenv ist schon die neueste Version.
    virtualenv ist schon die neueste Version.
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 103 nicht aktualisiert.
    Traceback (most recent call last):
      File "/tmp/tmp.qv0B4YUOxW/fetch.py", line 21, in <module>
        import ssl
      File "/usr/lib/python2.7/ssl.py", line 97, in <module>
        import _ssl             # if we can't import it, let the error propagate
    ImportError: libssl.so.1.0.0: cannot open shared object file: No such file or directory
    WARNING: unable to check for updates.
    Traceback (most recent call last):
      File "<stdin>", line 16, in <module>
      File "/usr/lib/python2.7/distutils/version.py", line 140, in __cmp__
        compare = cmp(self.version, other.version)
    AttributeError: StrictVersion instance has no attribute 'version'