www.autonlab.org fixed!
Predrag Punosevac
predragp at andrew.cmu.edu
Fri May 4 13:39:33 EDT 2018
Simon Heath <sheath at andrew.cmu.edu> wrote:
> root at lweb # tail /var/log/access.log
> 192.168.10.254 - - [04/May/2018:12:36:21 -0400] "GET / HTTP/1.0" 500 0 "-"
> "Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0"
>
Great clue!!! This was broken by FreeBSD dokuwiki or php56 port
maintainer. The simple
pkg install php56-json
fixed. Apparently somebody removed php56-json as DokuWiki dependency.
Thanks Simon!
Predrag
> root at lweb # tail -f /var/log/error.log
> 2018/05/04 12:35:57 [error] 56082#100810: *200 FastCGI sent in stderr: "PHP
> message: PHP Fatal error: Call to undefined function hash_equals() in
> /usr/local/www/dokuwiki/inc/PassHash.class.php on line 94" while reading
> response header from upstream, client: 192.168.10.254, server:
> lweb.dmz.autonlab.org, request: "GET / HTTP/1.0", upstream:
> "fastcgi://unix:/var/run/php-fpm.sock:", host: "www.autonlab.org"
>
> Function it's not finding: http://php.net/manual/en/function.hash-equals.php
>
> Minimum version 5.6.0, it should be there but it isn't:
>
> root at lweb:/usr/local/etc/nginx # php
> <?php hash_equals() ?>
> PHP Fatal error: Call to undefined function hash_equals() in - on line 1
> root at lweb:/usr/local/etc/nginx # php --version
> PHP 5.6.35 (cli) (built: Apr 10 2018 01:14:01)
> Copyright (c) 1997-2016 The PHP Group
> Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
>
> Looks like `hash_equals` is part of the Hash package, which technically an
> extension, though it says it's compiled into php by default and (maybe?)
> can't be left out.
>
> root at lweb:/usr/local/etc # php -i | grep -i extension_dir
> extension_dir => /usr/local/lib/php/20131226 => /usr/local/lib/php/20131226
>
> I don't know how you compiled php for this, since it doesn't seem to be in
> /usr/ports. But looking at the Makefile in /usr/ports/lang/php56 in the
> host directory, it implies the "hash" extension isn't installed by default
> (maybe). Running "php -m" prints out the modules it has but doesn't list
> "hash". ("json" apparently is also necessary.)
>
> This makes no sense, but it appears to be what's going on. Hopefully we
> just have to compile php with the right options?
>
> Simon
>
> On Fri, May 4, 2018 at 12:31 PM, Simon Heath <sheath at andrew.cmu.edu> wrote:
>
> > Ok, I'll check it out.
> >
> > On Fri, May 4, 2018 at 12:26 PM, Predrag Punosevac <
> > predragp at andrew.cmu.edu> wrote:
> >
> >> Hi Simon,
> >>
> >> I tried to reach https://www.autonlab.org. The website is not loading.
> >> There is nothing wrong with the proxy server as you can check by loading
> >>
> >> https://www.autonlab.org/ipe
> >>
> >> or
> >>
> >> https://www.autonlab.org/sdss/
> >>
> >> I went to the warden.dmz.autonlab.org (jail host which runs
> >> lweb.dmz.autonlab.org). Host is OK. Nothing wrong with jails as well
> >>
> >> root at warden:~ # iocell list
> >> JID UUID BOOT STATE TAG
> >> TYPE IP4 RELEASE
> >> 6 600ec005-17f4-11e8-a693-0cc47aab0128 on up
> >> hugo.dmz.autonlab.org basejail 192.168.10.93 11.1-RELEASE
> >> 8 b4b45c86-c4ed-11e7-b09c-0cc47a6baaa0 on up
> >> lweb.dmz.autonlab.org basejail 192.168.10.91 11.1-RELEASE
> >>
> >>
> >> I logged into the lweb.dmz.autonlab.org
> >>
> >> iocell console lweb.dmz.autonlab.org
> >>
> >> root at lweb:~ # pwd
> >> /root
> >>
> >> nginx and php-fpm is running normally. Something is either broken with
> >> php interpreter or dokuwiki itself which also appears OK.
> >>
> >> root at lweb:/usr/local/www/dokuwiki # ls
> >> .htaccess.dist bin findbadphp.php
> >> COPYING conf inc
> >> README conf-original index.php
> >> README-Predrag.txt data install.php
> >> VERSION data-original lib
> >> _media doku.php vendor
> >> auton.png feed.php
> >>
> >>
> >> I am running here out of ideas and my brain is clouded by the lack of
> >> sleep. Can you have a quick look. This is super urgent.
> >>
> >> Predrag
> >>
> >
> >
> >
> > --
> > Simon Heath, Research Programmer and Analyst
> > Robotics Institute - Auton Lab
> > Carnegie Mellon University
> > sheath at andrew.cmu.edu
> >
>
>
>
> --
> Simon Heath, Research Programmer and Analyst
> Robotics Institute - Auton Lab
> Carnegie Mellon University
> sheath at andrew.cmu.edu
More information about the Autonlab-users
mailing list