Re: certbot problem on sparc64 (probably python)

2018-07-05 Thread Stuart Henderson
On 2018/07/04 21:24, Andrew Grillet wrote:
> Here is the log...
> 
> 
> Looks just like the other one.
> 
> I used acme.sh instead of certbot and I am now OK. Not that I have any
> objection to bugs being fixed - it seems this would
> have a wider impact than certbot.

I'd expect it affects about 15-20 ports.

BTW there is an alternative client in base, https://man.openbsd.org/acme-client

I've just committed a change to the port to build it with GCC 4.9 on
architectures that don't have clang, this may help things.

> Andrew
> 
> 
> 
> On 4 July 2018 at 13:17, Daniel Jakots  wrote:
> 
> > On Tue, 3 Jul 2018 19:29:07 +0100 (BST), and...@grillet.co.uk wrote:
> >
> > > From the log, it looks like bits are missing from the python
> > > install, but I don't know python, and I could be wrong.
> >
> > Can you share the log (so we don't have to guess) please?
> >
> >
> > Cheers,
> > Daniel
> >

> Script started on Tue Jul  3 19:07:33 2018
> sani-t# certbot certonly --webroot -w /var/www/sani-t -d www.sani-t.uk -d 
> sani-t.uk -w shop -d shop.sani-t.uk
> python2.7:/usr/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so:
>  undefined symbol '__builtin_unreachable'
> Traceback (most recent call last):
>   File "/usr/local/bin/certbot", line 11, in 
> load_entry_point('certbot==0.22.2', 'console_scripts', 'certbot')()
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 564, in load_entry_point
> return get_distribution(dist).load_entry_point(group, name)
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 2608, in load_entry_point
> return ep.load()
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 2268, in load
> return self.resolve()
>   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", 
> line 2274, in resolve
> module = __import__(self.module_name, fromlist=['__name__'], level=0)
>   File "/usr/local/lib/python2.7/site-packages/certbot/main.py", line 10, in 
> 
> import josepy as jose
>   File "/usr/local/lib/python2.7/site-packages/josepy/__init__.py", line 41, 
> in 
> from josepy.interfaces import JSONDeSerializable
>   File "/usr/local/lib/python2.7/site-packages/josepy/interfaces.py", line 8, 
> in 
> from josepy import errors, util
>   File "/usr/local/lib/python2.7/site-packages/josepy/util.py", line 4, in 
> 
> import OpenSSL
>   File "/usr/local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, 
> in 
> from OpenSSL import rand, crypto, SSL
>   File "/usr/local/lib/python2.7/site-packages/OpenSSL/rand.py", line 12, in 
> 
> from OpenSSL._util import (
>   File "/usr/local/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in 
> 
> from cryptography.hazmat.bindings.openssl.binding import Binding
>   File 
> "/usr/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py",
>  line 13, in 
> from cryptography.hazmat.bindings._openssl import ffi, lib
> ImportError: Cannot load specified object
> sani-t# exit
> 
> Script done on Tue Jul  3 19:08:01 2018



Re: certbot problem on sparc64 (probably python)

2018-07-05 Thread Andrew Grillet
Here is the log...


Looks just like the other one.

I used acme.sh instead of certbot and I am now OK. Not that I have any
objection to bugs being fixed - it seems this would
have a wider impact than certbot.

Andrew



On 4 July 2018 at 13:17, Daniel Jakots  wrote:

> On Tue, 3 Jul 2018 19:29:07 +0100 (BST), and...@grillet.co.uk wrote:
>
> > From the log, it looks like bits are missing from the python
> > install, but I don't know python, and I could be wrong.
>
> Can you share the log (so we don't have to guess) please?
>
>
> Cheers,
> Daniel
>
Script started on Tue Jul  3 19:07:33 2018
sani-t# certbot certonly --webroot -w /var/www/sani-t -d www.sani-t.uk -d sani-t.uk -w shop -d shop.sani-t.uk
python2.7:/usr/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so: undefined symbol '__builtin_unreachable'
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 11, in 
load_entry_point('certbot==0.22.2', 'console_scripts', 'certbot')()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 564, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2608, in load_entry_point
return ep.load()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2268, in load
return self.resolve()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2274, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/site-packages/certbot/main.py", line 10, in 
import josepy as jose
  File "/usr/local/lib/python2.7/site-packages/josepy/__init__.py", line 41, in 
from josepy.interfaces import JSONDeSerializable
  File "/usr/local/lib/python2.7/site-packages/josepy/interfaces.py", line 8, in 
from josepy import errors, util
  File "/usr/local/lib/python2.7/site-packages/josepy/util.py", line 4, in 
import OpenSSL
  File "/usr/local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in 
from OpenSSL import rand, crypto, SSL
  File "/usr/local/lib/python2.7/site-packages/OpenSSL/rand.py", line 12, in 
from OpenSSL._util import (
  File "/usr/local/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in 
from cryptography.hazmat.bindings.openssl.binding import Binding
  File "/usr/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 13, in 
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: Cannot load specified object
sani-t# exit

Script done on Tue Jul  3 19:08:01 2018


Re: certbot problem on sparc64 (probably python)

2018-07-04 Thread Stuart Henderson
On 2018/07/03 19:29, and...@grillet.co.uk wrote:
> >Synopsis:Unable to use certbot
> >Category:very annoying
> >Environment:
>   System  : OpenBSD 6.3
>   Details : OpenBSD 6.3 (GENERIC.MP) #486: Sat Mar 24 22:37:16 MDT 
> 2018
>
> dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
> 
>   Architecture: OpenBSD.sparc64
>   Machine : sparc64
> >Description:
>   tried to run "certbot certonly [selection of options]" it always fails 
> in the same way
> From the log, it looks like bits are missing from the python install, 
> but I don't know
> python, and I could be wrong.
> >How-To-Repeat:
>   at the shell prompt type
> > certbot certonly --manual .
> >Fix:
>   Don't know (I do have a log created with script, but don't know how to 
> attach it)
> 
> 
> dmesg:
> OpenBSD 6.3 (GENERIC.MP) #486: Sat Mar 24 22:37:16 MDT 2018
> dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
> real mem = 1572864000 (1500MB)
> avail mem = 1524817920 (1454MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root: Sun Fire T200
> cpu0 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
> cpu1 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
> vbus0 at mainbus0
> "flashprom" at vbus0 not configured
> cbus0 at vbus0
> vdsk0 at cbus0 chan 0x2: ivec 0x4, 0x5
> scsibus1 at vdsk0: 2 targets
> sd0 at scsibus1 targ 0 lun 0:  SCSI3 0/direct fixed
> sd0: 6144MB, 512 bytes/sector, 12582912 sectors
> vdsk1 at cbus0 chan 0x3: ivec 0x6, 0x7
> scsibus2 at vdsk1: 2 targets
> sd1 at scsibus2 targ 0 lun 0:  SCSI3 0/direct fixed
> sd1: 2MB, 512 bytes/sector, 5760 sectors
> vnet0 at cbus0 chan 0x4: ivec 0x8, 0x9, address 00:14:4f:fa:57:21
> vcons0 at vbus0: ivec 0x111, console
> vrtc0 at vbus0
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> bootpath: /virtual-devices@100,0/channel-devices@200,0/disk@0,0
> root on sd0a (31c2d1155bc86970.a) swap on sd0b dump on sd0b
> WARNING: / was not properly unmounted
> 
> usbdevs:
> usbdevs: no USB controllers found
> 
> pcidump:
> 
> acpidump:
> 

This is the same as https://github.com/certbot/certbot/issues/6019.
There's a problem with py-cryptography on OpenBSD on sparc64 (and likely
some other arches), between lack of time and lack of budget to power a
suitable machine I haven't been able to dig into it further yet .. if
anyone wants to look into it this is the starting point:

python2.7 -c 'from cryptography.hazmat.bindings._openssl import ffi, lib'

python2.7:/usr/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so:
 undefined symbol '__builtin_unreachable'




Re: certbot problem on sparc64 (probably python)

2018-07-04 Thread Daniel Jakots
On Tue, 3 Jul 2018 19:29:07 +0100 (BST), and...@grillet.co.uk wrote:

> From the log, it looks like bits are missing from the python
> install, but I don't know python, and I could be wrong.

Can you share the log (so we don't have to guess) please?


Cheers,
Daniel



certbot problem on sparc64 (probably python)

2018-07-04 Thread andrew
>Synopsis:  Unable to use certbot
>Category:  very annoying
>Environment:
System  : OpenBSD 6.3
Details : OpenBSD 6.3 (GENERIC.MP) #486: Sat Mar 24 22:37:16 MDT 
2018
 
dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP

Architecture: OpenBSD.sparc64
Machine : sparc64
>Description:
tried to run "certbot certonly [selection of options]" it always fails 
in the same way
From the log, it looks like bits are missing from the python install, 
but I don't know
python, and I could be wrong.
>How-To-Repeat:
at the shell prompt type
> certbot certonly --manual .
>Fix:
Don't know (I do have a log created with script, but don't know how to 
attach it)


dmesg:
OpenBSD 6.3 (GENERIC.MP) #486: Sat Mar 24 22:37:16 MDT 2018
dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
real mem = 1572864000 (1500MB)
avail mem = 1524817920 (1454MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: Sun Fire T200
cpu0 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu1 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
vbus0 at mainbus0
"flashprom" at vbus0 not configured
cbus0 at vbus0
vdsk0 at cbus0 chan 0x2: ivec 0x4, 0x5
scsibus1 at vdsk0: 2 targets
sd0 at scsibus1 targ 0 lun 0:  SCSI3 0/direct fixed
sd0: 6144MB, 512 bytes/sector, 12582912 sectors
vdsk1 at cbus0 chan 0x3: ivec 0x6, 0x7
scsibus2 at vdsk1: 2 targets
sd1 at scsibus2 targ 0 lun 0:  SCSI3 0/direct fixed
sd1: 2MB, 512 bytes/sector, 5760 sectors
vnet0 at cbus0 chan 0x4: ivec 0x8, 0x9, address 00:14:4f:fa:57:21
vcons0 at vbus0: ivec 0x111, console
vrtc0 at vbus0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
bootpath: /virtual-devices@100,0/channel-devices@200,0/disk@0,0
root on sd0a (31c2d1155bc86970.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted

usbdevs:
usbdevs: no USB controllers found

pcidump:

acpidump: