Hello,
I’m trying to install LibreNMS on Arch Linux using software compiled from source (Apache, MariaDB, PHP). Other than that, I’m using all libraries installed via the package manager, and am getting a strange Symfony/Yaml error when trying to access install.php. I would like to add that I managed to adapt the Ubuntu install instructions to work on Debian with the same compiled packages, but did not get this error previously.
[25-Apr-2018 14:12:49 Asia/Singapore] PHP Fatal error: Uncaught Symfony\Component\Yaml\Exception\ParseException: Error. in /opt/librenms/vendor/symfony/yaml/Parser.php:847
Stack trace:
#0 /opt/librenms/vendor/symfony/yaml/Parser.php(160): Symfony\Component\Yaml\Parser::preg_match('#^(?P<key>(?:"(...', 'os: 3com', Array)
#1 /opt/librenms/vendor/symfony/yaml/Parser.php(78): Symfony\Component\Yaml\Parser->doParse('os: 3com\ntext: ...', false, false, false)
#2 /opt/librenms/vendor/symfony/yaml/Yaml.php(65): Symfony\Component\Yaml\Parser->parse('os: 3com\ntext: ...', false, false, false)
#3 /opt/librenms/includes/common.php(1611): Symfony\Component\Yaml\Yaml::parse('os: 3com\ntext: ...')
#4 /opt/librenms/includes/init.php(134): load_all_os(false)
#5 /opt/librenms/html/install.php(30): require('/opt/librenms/i...')
#6 {main}
thrown in /opt/librenms/vendor/symfony/yaml/Parser.php on line 847
This is the only error that appears in the PHP log. I’ve tried various ways of installing Composer, and have reverted to the version of PHP that I have been using preiously on Debian, but with no effect.
If you look in /opt/librenms/vendor/symfony/yaml/Parser.php on line 847, it says:
/**
* A local wrapper for `preg_match` which will throw a ParseException if there
* is an internal error in the PCRE engine.
*
* This avoids us needing to check for "false" every time PCRE is used
* in the YAML engine
*
* @throws ParseException on a PCRE internal error
*
* @see preg_last_error()
*
* @internal
*/
That leads me to think that it is an internal PCRE error, but this is internal to PHP, and changing to another (known working) version of PHP doesn’t help. These are the software versions I’m running at the moment:
Apache 2.4.33
MariaDB 10.2.14
PHP 7.1.13/7.1.16
Composer 1.6.4
Does anyone have any idea what the problem could be?
Thanks!