These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

get_iplayer.cgi I/O watcher failed: SSL_ca_file SCALAR(0x7fcabd801178)

user-1952

Hi,

On a fresh 10.12.6 Mac, following the manual instructions on https://github.com/get-iplayer/get_iplayer/wiki/osx trying to refresh the cache in the cgi web app results in nothing being downloaded and the following errors.

Code:
Mojo::Reactor::Poll: I/O watcher failed: SSL_ca_file SCALAR(0x7fcabd801178) does not exist at /System/Library/Perl/Extras/5.18/IO/Socket/SSL.pm line 1642.

No home-brew, just using curl and cpanm.

get_iplayer works, but the CGI appears to default to the Apple default and ignore local::lib that is set

user-1952

Update

get_iplayer --refresh also fails

Understand its the perl modules but @inc shows the path to the local modules but for some reason the apple ones take precedence.

user-2

Use -g /path/to/get_iplayer when launching the web pvr so that it will use an actual get_iplayer script. It's probably picking up the Homebrew version in /usr/local/bin, which isn't the actual script. Probably best to remove the Homebrew version while you're messing around with this.

As for get_iplayer --refresh, post the output from:
Code:
perl -V
and
Code:
perl -MIO::Socket::SSL -e 'print "$IO::Socket::SSL::VERSION\n";'

EDIT: It occurs that you may not still have Homebrew version installed, so both failures would be due to local module library not being correctly installed.

user-1952

Code:
perl -V
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
  
  Platform:
    osname=darwin, osvers=16.0, archname=darwin-thread-multi-2level
    uname='darwin osx320.apple.com 16.0 darwin kernel version 15.0.0: wed jun 22 17:57:08 pdt 2016; root:xnu-3247.1.106.2.9~1development_x86_64 x86_64 '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=cc'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector',
    optimize='-Os',
    cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector'
    ccversion='', gccversion='4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc -mmacosx-version-min=10.12.5', ldflags ='-arch x86_64 -arch i386 -fstack-protector'
    libpth=/usr/lib /usr/local/lib
    libs=
    perllibs=
    libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -bundle -undefined dynamic_lookup -fstack-protector'


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
                        USE_REENTRANT_API
  Locally applied patches:
    /Library/Perl/Updates/<version> comes before system perl directories
    installprivlib and installarchlib points to the Updates directory
  Built under darwin
  Compiled at Feb  6 2017 22:16:22
  %ENV:
    PERL5LIB="/Users/danishan/perl5/lib/perl5"
    PERL_LOCAL_LIB_ROOT="/Users/danishan/perl5"
    PERL_MB_OPT="--install_base "/Users/danishan/perl5""
    PERL_MM_OPT="INSTALL_BASE=/Users/danishan/perl5"
  @INC:
    /Users/danishan/perl5/lib/perl5/5.18.2/darwin-thread-multi-2level
    /Users/danishan/perl5/lib/perl5/5.18.2
    /Users/danishan/perl5/lib/perl5/darwin-thread-multi-2level
    /Users/danishan/perl5/lib/perl5
    /Library/Perl/5.18/darwin-thread-multi-2level
    /Library/Perl/5.18
    /Network/Library/Perl/5.18/darwin-thread-multi-2level
    /Network/Library/Perl/5.18
    /Library/Perl/Updates/5.18.2
    /System/Library/Perl/5.18/darwin-thread-multi-2level
    /System/Library/Perl/5.18
    /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level
    /System/Library/Perl/Extras/5.18
    .

Code:
perl -MIO::Socket::SSL -e 'print "$IO::Socket::SSL::VERSION\n";'
1.966

As stated this is a Clean mac, no homebrew installed

user-2

The local::lib installation looks OK, so I can only surmise that you haven't installed a recent version of IO::Socket::SSL in it. You're still using the system version (1.966), but latest is 2.052.

user-1952

(26-10-2017, 07:53 PM)The local::lib installation looks OK, so I can only surmise that you haven't installed a recent version of IO::Socket::SSL in it. You're still using the system version (1.966), but latest is 2.052.

I saw your cheeky update in the osx install docs. I installed IO::Socket::SSL like you say and it worked first time.

Fantastic

Thanks

user-1699

The fault in homebrew has been fixed, their get_iplayer 3.06_01 now works.

These forums are archived

See this post for further info